diff --git a/go.mod b/go.mod index 86bffe8..2e0424a 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.26.2 require ( github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d - github.com/looker-open-source/sdk-codegen/go v0.26.8 + github.com/looker-open-source/sdk-codegen/go v0.26.12 github.com/olekukonko/tablewriter v1.1.4 github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c github.com/spf13/cobra v1.10.2 diff --git a/go.sum b/go.sum index 389174b..10b9281 100644 --- a/go.sum +++ b/go.sum @@ -21,8 +21,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/looker-open-source/sdk-codegen/go v0.26.8 h1:YG4ZB5LarAoTl99NKgukYXjenm17V2PPK2JU6zEbWGw= -github.com/looker-open-source/sdk-codegen/go v0.26.8/go.mod h1:Br1ntSiruDJ/4nYNjpYyWyCbqJ7+GQceWbIgn0hYims= +github.com/looker-open-source/sdk-codegen/go v0.26.12 h1:6vsRfnxlqs9qzarBoxPs4IUrER3csmLUoG+tZRGy1wk= +github.com/looker-open-source/sdk-codegen/go v0.26.12/go.mod h1:Br1ntSiruDJ/4nYNjpYyWyCbqJ7+GQceWbIgn0hYims= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= diff --git a/internal/cmd/api_generated.go b/internal/cmd/api_generated.go index c31d8c3..f2c07e2 100644 --- a/internal/cmd/api_generated.go +++ b/internal/cmd/api_generated.go @@ -2867,7 +2867,7 @@ func init() { var apiConfigGetSettingCmd = &cobra.Command{ Use: "get_setting", Short: "Get Setting", - Long: "### Get Looker Settings\n\nAvailable settings are:\n - allow_user_timezones\n - auto_certify_lookml_content\n - content_certification_documentation_link\n - custom_welcome_email\n - data_connector_default_enabled\n - dashboard_auto_refresh_restriction\n - dashboard_auto_refresh_minimum_interval\n - extension_framework_enabled\n - extension_load_url_enabled\n - instance_config\n - is_content_certification_enabled\n - managed_certificate_uri\n - marketplace_auto_install_enabled\n - marketplace_automation\n - marketplace_terms_accepted\n - marketplace_enabled\n - marketplace_site\n - onboarding_enabled\n - privatelabel_configuration\n - revoke_certification_on_edits\n - timezone\n - host_url\n - email_domain_allowlist\n - embed_cookieless_v2\n - embed_enabled\n - embed_config\n - mcp_tools\n\n", + Long: "### Get Looker Settings\n\nAvailable settings are:\n - allow_user_timezones\n - auto_certify_lookml_content\n - content_certification_documentation_link\n - custom_welcome_email\n - data_connector_default_enabled\n - dashboard_auto_refresh_restriction\n - dashboard_auto_refresh_minimum_interval\n - extension_framework_enabled\n - extension_load_url_enabled\n - instance_config\n - is_content_certification_enabled\n - managed_certificate_uri\n - marketplace_auto_install_enabled\n - marketplace_automation\n - marketplace_terms_accepted\n - marketplace_enabled\n - marketplace_site\n - onboarding_enabled\n - privatelabel_configuration\n - revoke_certification_on_edits\n - automated_mfa_enabled\n - timezone\n - host_url\n - email_domain_allowlist\n - embed_cookieless_v2\n - embed_enabled\n - embed_config\n - mcp_tools\n\n", Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { queryParams := make(map[string]string) @@ -2962,7 +2962,7 @@ func init() { var apiConfigSetSettingCmd = &cobra.Command{ Use: "set_setting [BODY_JSON_FILE_OR_-]", Short: "Set Setting", - Long: "### Configure Looker Settings\n\nAvailable settings are:\n - allow_user_timezones\n - auto_certify_lookml_content\n - content_certification_documentation_link\n - custom_welcome_email\n - data_connector_default_enabled\n - dashboard_auto_refresh_restriction\n - dashboard_auto_refresh_minimum_interval\n - extension_framework_enabled\n - extension_load_url_enabled\n - instance_config\n - is_content_certification_enabled\n - managed_certificate_uri\n - marketplace_auto_install_enabled\n - marketplace_automation\n - marketplace_terms_accepted\n - marketplace_enabled\n - marketplace_site\n - onboarding_enabled\n - privatelabel_configuration\n - revoke_certification_on_edits\n - timezone\n - host_url\n - email_domain_allowlist\n - embed_cookieless_v2\n - embed_enabled\n - embed_config\n - mcp_tools\n\nSee the `Setting` type for more information on the specific values that can be configured.\n\nIf a setting update is rejected, the API error payload should provide information on the cause of the rejection.\n", + Long: "### Configure Looker Settings\n\nAvailable settings are:\n - allow_user_timezones\n - auto_certify_lookml_content\n - content_certification_documentation_link\n - custom_welcome_email\n - data_connector_default_enabled\n - dashboard_auto_refresh_restriction\n - dashboard_auto_refresh_minimum_interval\n - extension_framework_enabled\n - extension_load_url_enabled\n - instance_config\n - is_content_certification_enabled\n - managed_certificate_uri\n - marketplace_auto_install_enabled\n - marketplace_automation\n - marketplace_terms_accepted\n - marketplace_enabled\n - marketplace_site\n - onboarding_enabled\n - privatelabel_configuration\n - revoke_certification_on_edits\n - automated_mfa_enabled\n - timezone\n - host_url\n - email_domain_allowlist\n - embed_cookieless_v2\n - embed_enabled\n - embed_config\n - mcp_tools\n\nSee the `Setting` type for more information on the specific values that can be configured.\n\nIf a setting update is rejected, the API error payload should provide information on the cause of the rejection.\n", Args: func(cmd *cobra.Command, args []string) error { if val, _ := cmd.Flags().GetBool("describe-body"); val { return nil @@ -2990,8 +2990,8 @@ var apiConfigSetSettingCmd = &cobra.Command{ }, } -const apiConfigSetSettingCmdBodySchema = "{\n \"properties\": {\n \"allow_user_timezones\": {\n \"description\": \"Toggle user-specific timezones on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"auto_certify_lookml_content\": {\n \"description\": \"Allow auto certification of lookml content.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"ca_agent_observability\": {\n \"description\": \"Toggle CA agent observability\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"content_certification_documentation_link\": {\n \"description\": \"Link to content certification documentation.\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_auto_refresh_minimum_interval\": {\n \"description\": \"Minimum time interval for dashboard element automatic refresh. Examples: (30 seconds, 1 minute)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_auto_refresh_restriction\": {\n \"description\": \"Toggle Dashboard Auto Refresh restriction\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"data_connector_default_enabled\": {\n \"description\": \"Toggle default future connectors on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"email_domain_allowlist\": {\n \"description\": \"An array of Email Domain Allowlist of type string for Scheduled Content\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": false\n },\n \"embed_cookieless_v2\": {\n \"description\": \"(DEPRECATED) Use embed_config.embed_cookieless_v2 instead. If embed_config.embed_cookieless_v2 is specified, it overrides this value.\",\n \"type\": \"boolean\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": false\n },\n \"extension_framework_enabled\": {\n \"description\": \"Toggle extension framework on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"extension_load_url_enabled\": {\n \"description\": \"(DEPRECATED) Toggle extension load url on or off. Do not use. This is temporary setting that will eventually become a noop and subsequently deleted.\",\n \"type\": \"boolean\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": false\n },\n \"host_url\": {\n \"description\": \"Change the base portion of your Looker instance URL setting\",\n \"type\": \"string\",\n \"x-looker-nullable\": false\n },\n \"is_content_certification_enabled\": {\n \"description\": \"Allow content certification.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"managed_certificate_uri\": {\n \"description\": \"Array of URIs pointing to the location of a root certificate in Secret Manager\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"marketplace_auto_install_enabled\": {\n \"description\": \"(DEPRECATED) Toggle marketplace auto install on or off. Deprecated - do not use. Auto install can now be enabled via marketplace automation settings\",\n \"type\": \"boolean\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": false\n },\n \"marketplace_enabled\": {\n \"description\": \"Toggle marketplace on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"marketplace_terms_accepted\": {\n \"description\": \"Accept marketplace terms by setting this value to true, or get the current status. Marketplace terms CANNOT be declined once accepted. Accepting marketplace terms automatically enables the marketplace. The marketplace can still be disabled after it has been enabled.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"mcp_tools\": {\n \"$ref\": \"#/definitions/McpTools\",\n \"description\": \"Configuration for MCP Tools\",\n \"x-looker-nullable\": false\n },\n \"onboarding_enabled\": {\n \"description\": \"Toggle onboarding on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"override_warnings\": {\n \"description\": \"(Write-Only) If warnings are preventing a host URL change, this parameter allows for overriding warnings to force update the setting. Does not directly change any Looker settings.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false,\n \"x-looker-write-only\": true\n },\n \"revoke_certification_on_edits\": {\n \"description\": \"Allow content certification to be revoked on edits.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"timezone\": {\n \"description\": \"Change instance-wide default timezone\",\n \"type\": \"string\",\n \"x-looker-nullable\": false\n }\n },\n \"x-looker-status\": \"stable\"\n}" -const apiConfigSetSettingCmdBodyTemplate = "{\n \"allow_user_timezones\": false,\n \"auto_certify_lookml_content\": false,\n \"ca_agent_observability\": false,\n \"content_certification_documentation_link\": \"\",\n \"dashboard_auto_refresh_minimum_interval\": \"\",\n \"dashboard_auto_refresh_restriction\": false,\n \"data_connector_default_enabled\": false,\n \"email_domain_allowlist\": [\n \"\"\n ],\n \"embed_cookieless_v2\": false,\n \"extension_framework_enabled\": false,\n \"extension_load_url_enabled\": false,\n \"host_url\": \"\",\n \"is_content_certification_enabled\": false,\n \"managed_certificate_uri\": [\n \"\"\n ],\n \"marketplace_auto_install_enabled\": false,\n \"marketplace_enabled\": false,\n \"marketplace_terms_accepted\": false,\n \"mcp_tools\": {\n \"add_dashboard_element\": {\n \"enabled\": false\n },\n \"add_dashboard_filter\": {\n \"enabled\": false\n },\n \"create_project_directory\": {\n \"enabled\": false\n },\n \"create_project_file\": {\n \"enabled\": false\n },\n \"create_view_from_table\": {\n \"enabled\": false\n },\n \"delete_project_directory\": {\n \"enabled\": false\n },\n \"delete_project_file\": {\n \"enabled\": false\n },\n \"dev_mode\": {\n \"enabled\": false\n },\n \"enable_all\": false,\n \"generate_embed_url\": {\n \"enabled\": false\n },\n \"get_connection_databases\": {\n \"enabled\": false\n },\n \"get_connection_schemas\": {\n \"enabled\": false\n },\n \"get_connection_table_columns\": {\n \"enabled\": false\n },\n \"get_connection_tables\": {\n \"enabled\": false\n },\n \"get_connections\": {\n \"enabled\": false\n },\n \"get_dashboards\": {\n \"enabled\": false\n },\n \"get_dimensions\": {\n \"enabled\": false\n },\n \"get_explores\": {\n \"enabled\": false\n },\n \"get_filters\": {\n \"enabled\": false\n },\n \"get_lookml_tests\": {\n \"enabled\": false\n },\n \"get_looks\": {\n \"enabled\": false\n },\n \"get_measures\": {\n \"enabled\": false\n },\n \"get_models\": {\n \"enabled\": false\n },\n \"get_parameters\": {\n \"enabled\": false\n },\n \"get_project_directories\": {\n \"enabled\": false\n },\n \"get_project_file\": {\n \"enabled\": false\n },\n \"get_project_files\": {\n \"enabled\": false\n },\n \"get_projects\": {\n \"enabled\": false\n },\n \"health_analyze\": {\n \"enabled\": false\n },\n \"health_pulse\": {\n \"enabled\": false\n },\n \"health_vacuum\": {\n \"enabled\": false\n },\n \"make_dashboard\": {\n \"enabled\": false\n },\n \"make_look\": {\n \"enabled\": false\n },\n \"query\": {\n \"enabled\": false\n },\n \"query_sql\": {\n \"enabled\": false\n },\n \"query_url\": {\n \"enabled\": false\n },\n \"run_dashboard\": {\n \"enabled\": false\n },\n \"run_look\": {\n \"enabled\": false\n },\n \"run_lookml_tests\": {\n \"enabled\": false\n },\n \"update_project_file\": {\n \"enabled\": false\n },\n \"validate_project\": {\n \"enabled\": false\n }\n },\n \"onboarding_enabled\": false,\n \"override_warnings\": false,\n \"revoke_certification_on_edits\": false,\n \"timezone\": \"\"\n}" +const apiConfigSetSettingCmdBodySchema = "{\n \"properties\": {\n \"allow_user_timezones\": {\n \"description\": \"Toggle user-specific timezones on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"auto_certify_lookml_content\": {\n \"description\": \"Allow auto certification of lookml content.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"automated_mfa_enabled\": {\n \"description\": \"Automatically enable Multi-Factor Authentication for users.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"ca_agent_observability\": {\n \"description\": \"Toggle Conversational Analytics Agent Token usage\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"content_certification_documentation_link\": {\n \"description\": \"Link to content certification documentation.\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_auto_refresh_minimum_interval\": {\n \"description\": \"Minimum time interval for dashboard element automatic refresh. Examples: (30 seconds, 1 minute)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_auto_refresh_restriction\": {\n \"description\": \"Toggle Dashboard Auto Refresh restriction\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"data_connector_default_enabled\": {\n \"description\": \"Toggle default future connectors on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"email_domain_allowlist\": {\n \"description\": \"An array of Email Domain Allowlist of type string for Scheduled Content\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": false\n },\n \"embed_cookieless_v2\": {\n \"description\": \"(DEPRECATED) Use embed_config.embed_cookieless_v2 instead. If embed_config.embed_cookieless_v2 is specified, it overrides this value.\",\n \"type\": \"boolean\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": false\n },\n \"extension_framework_enabled\": {\n \"description\": \"Toggle extension framework on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"extension_load_url_enabled\": {\n \"description\": \"(DEPRECATED) Toggle extension load url on or off. Do not use. This is temporary setting that will eventually become a noop and subsequently deleted.\",\n \"type\": \"boolean\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": false\n },\n \"host_url\": {\n \"description\": \"Change the base portion of your Looker instance URL setting\",\n \"type\": \"string\",\n \"x-looker-nullable\": false\n },\n \"is_content_certification_enabled\": {\n \"description\": \"Allow content certification.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"managed_certificate_uri\": {\n \"description\": \"Array of URIs pointing to the location of a root certificate in Secret Manager\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"marketplace_auto_install_enabled\": {\n \"description\": \"(DEPRECATED) Toggle marketplace auto install on or off. Deprecated - do not use. Auto install can now be enabled via marketplace automation settings\",\n \"type\": \"boolean\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": false\n },\n \"marketplace_enabled\": {\n \"description\": \"Toggle marketplace on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"marketplace_terms_accepted\": {\n \"description\": \"Accept marketplace terms by setting this value to true, or get the current status. Marketplace terms CANNOT be declined once accepted. Accepting marketplace terms automatically enables the marketplace. The marketplace can still be disabled after it has been enabled.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"mcp_tools\": {\n \"$ref\": \"#/definitions/McpTools\",\n \"description\": \"Configuration for MCP Tools\",\n \"x-looker-nullable\": false\n },\n \"onboarding_enabled\": {\n \"description\": \"Toggle onboarding on or off\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"override_warnings\": {\n \"description\": \"(Write-Only) If warnings are preventing a host URL change, this parameter allows for overriding warnings to force update the setting. Does not directly change any Looker settings.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false,\n \"x-looker-write-only\": true\n },\n \"revoke_certification_on_edits\": {\n \"description\": \"Allow content certification to be revoked on edits.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"timezone\": {\n \"description\": \"Change instance-wide default timezone\",\n \"type\": \"string\",\n \"x-looker-nullable\": false\n }\n },\n \"x-looker-status\": \"stable\"\n}" +const apiConfigSetSettingCmdBodyTemplate = "{\n \"allow_user_timezones\": false,\n \"auto_certify_lookml_content\": false,\n \"automated_mfa_enabled\": false,\n \"ca_agent_observability\": false,\n \"content_certification_documentation_link\": \"\",\n \"dashboard_auto_refresh_minimum_interval\": \"\",\n \"dashboard_auto_refresh_restriction\": false,\n \"data_connector_default_enabled\": false,\n \"email_domain_allowlist\": [\n \"\"\n ],\n \"embed_cookieless_v2\": false,\n \"extension_framework_enabled\": false,\n \"extension_load_url_enabled\": false,\n \"host_url\": \"\",\n \"is_content_certification_enabled\": false,\n \"managed_certificate_uri\": [\n \"\"\n ],\n \"marketplace_auto_install_enabled\": false,\n \"marketplace_enabled\": false,\n \"marketplace_terms_accepted\": false,\n \"mcp_tools\": {\n \"add_dashboard_element\": {\n \"enabled\": false\n },\n \"add_dashboard_filter\": {\n \"enabled\": false\n },\n \"create_project_directory\": {\n \"enabled\": false\n },\n \"create_project_file\": {\n \"enabled\": false\n },\n \"create_view_from_table\": {\n \"enabled\": false\n },\n \"delete_project_directory\": {\n \"enabled\": false\n },\n \"delete_project_file\": {\n \"enabled\": false\n },\n \"dev_mode\": {\n \"enabled\": false\n },\n \"enable_all\": false,\n \"generate_embed_url\": {\n \"enabled\": false\n },\n \"get_connection_databases\": {\n \"enabled\": false\n },\n \"get_connection_schemas\": {\n \"enabled\": false\n },\n \"get_connection_table_columns\": {\n \"enabled\": false\n },\n \"get_connection_tables\": {\n \"enabled\": false\n },\n \"get_connections\": {\n \"enabled\": false\n },\n \"get_dashboards\": {\n \"enabled\": false\n },\n \"get_dimensions\": {\n \"enabled\": false\n },\n \"get_explores\": {\n \"enabled\": false\n },\n \"get_filters\": {\n \"enabled\": false\n },\n \"get_lookml_tests\": {\n \"enabled\": false\n },\n \"get_looks\": {\n \"enabled\": false\n },\n \"get_measures\": {\n \"enabled\": false\n },\n \"get_models\": {\n \"enabled\": false\n },\n \"get_parameters\": {\n \"enabled\": false\n },\n \"get_project_directories\": {\n \"enabled\": false\n },\n \"get_project_file\": {\n \"enabled\": false\n },\n \"get_project_files\": {\n \"enabled\": false\n },\n \"get_projects\": {\n \"enabled\": false\n },\n \"health_analyze\": {\n \"enabled\": false\n },\n \"health_pulse\": {\n \"enabled\": false\n },\n \"health_vacuum\": {\n \"enabled\": false\n },\n \"make_dashboard\": {\n \"enabled\": false\n },\n \"make_look\": {\n \"enabled\": false\n },\n \"query\": {\n \"enabled\": false\n },\n \"query_sql\": {\n \"enabled\": false\n },\n \"query_url\": {\n \"enabled\": false\n },\n \"run_dashboard\": {\n \"enabled\": false\n },\n \"run_look\": {\n \"enabled\": false\n },\n \"run_lookml_tests\": {\n \"enabled\": false\n },\n \"update_project_file\": {\n \"enabled\": false\n },\n \"validate_project\": {\n \"enabled\": false\n }\n },\n \"onboarding_enabled\": false,\n \"override_warnings\": false,\n \"revoke_certification_on_edits\": false,\n \"timezone\": \"\"\n}" func init() { apiConfigCmd.AddCommand(apiConfigSetSettingCmd) @@ -9306,6 +9306,42 @@ func init() { apiProjectCmd.AddCommand(apiProjectCreateGitDeployKeyCmd) } +var apiProjectCreateGitDiagnosticReportCmd = &cobra.Command{ + Use: "create_git_diagnostic_report [PROJECT_ID] [BODY_JSON_FILE_OR_-]", + Short: "Initiate Git Diagnosis", + Long: "### Initiate Git Diagnosis Suite\n", + Args: func(cmd *cobra.Command, args []string) error { + if val, _ := cmd.Flags().GetBool("describe-body"); val { + return nil + } + if val, _ := cmd.Flags().GetBool("template"); val { + return nil + } + return cobra.ExactArgs(2)(cmd, args) + }, + RunE: func(cmd *cobra.Command, args []string) error { + if val, _ := cmd.Flags().GetBool("describe-body"); val { + fmt.Println(apiProjectCreateGitDiagnosticReportCmdBodySchema) + return nil + } + if val, _ := cmd.Flags().GetBool("template"); val { + fmt.Println(apiProjectCreateGitDiagnosticReportCmdBodyTemplate) + return nil + } + queryParams := make(map[string]string) + return executeApiCallGeneric(cmd, "POST", "/projects/{project_id}/git_diagnostic_report", []string{"project_id"}, []string{}, "body", queryParams, args) + }, +} + +const apiProjectCreateGitDiagnosticReportCmdBodySchema = "{\n \"properties\": {\n \"project_type\": {\n \"description\": \"Project structure type.\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"beta\"\n}" +const apiProjectCreateGitDiagnosticReportCmdBodyTemplate = "{\n \"project_type\": \"\"\n}" + +func init() { + apiProjectCmd.AddCommand(apiProjectCreateGitDiagnosticReportCmd) + apiProjectCreateGitDiagnosticReportCmd.Flags().Bool("describe-body", false, "Describe the JSON schema expected in the body") + apiProjectCreateGitDiagnosticReportCmd.Flags().Bool("template", false, "Output a simplified JSON template for the request body") +} + var apiProjectCreateProjectCmd = &cobra.Command{ Use: "create_project [BODY_JSON_FILE_OR_-]", Short: "Create Project", @@ -9482,6 +9518,21 @@ func init() { apiProjectGetContinuousIntegrationRunCmd.Flags().String("fields", "", "Requested fields") } +var apiProjectGetGitDiagnosticReportCmd = &cobra.Command{ + Use: "get_git_diagnostic_report [PROJECT_ID] [REPORT_ID]", + Short: "Get Live Git Diagnosis", + Long: "### Retrieve Live Git Diagnostic Suite Execution Status\n", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + queryParams := make(map[string]string) + return executeApiCallGeneric(cmd, "GET", "/projects/{project_id}/git_diagnostic_report/{report_id}", []string{"project_id", "report_id"}, []string{}, "", queryParams, args) + }, +} + +func init() { + apiProjectCmd.AddCommand(apiProjectGetGitDiagnosticReportCmd) +} + var apiProjectGitBranchCmd = &cobra.Command{ Use: "git_branch [PROJECT_ID]", Short: "Get Active Git Branch", @@ -9627,6 +9678,42 @@ func init() { apiProjectProjectWorkspaceCmd.Flags().String("fields", "", "Requested fields") } +var apiProjectRepairGitDiagnosticReportCmd = &cobra.Command{ + Use: "repair_git_diagnostic_report [PROJECT_ID] [REPORT_ID] [BODY_JSON_FILE_OR_-]", + Short: "Repair Git Configuration", + Long: "### Repair Git Configuration Issues\n", + Args: func(cmd *cobra.Command, args []string) error { + if val, _ := cmd.Flags().GetBool("describe-body"); val { + return nil + } + if val, _ := cmd.Flags().GetBool("template"); val { + return nil + } + return cobra.ExactArgs(3)(cmd, args) + }, + RunE: func(cmd *cobra.Command, args []string) error { + if val, _ := cmd.Flags().GetBool("describe-body"); val { + fmt.Println(apiProjectRepairGitDiagnosticReportCmdBodySchema) + return nil + } + if val, _ := cmd.Flags().GetBool("template"); val { + fmt.Println(apiProjectRepairGitDiagnosticReportCmdBodyTemplate) + return nil + } + queryParams := make(map[string]string) + return executeApiCallGeneric(cmd, "POST", "/projects/{project_id}/git_diagnostic_report/{report_id}/repair", []string{"project_id", "report_id"}, []string{}, "body", queryParams, args) + }, +} + +const apiProjectRepairGitDiagnosticReportCmdBodySchema = "{\n \"properties\": {\n \"project_type\": {\n \"description\": \"Project structure type.\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"beta\"\n}" +const apiProjectRepairGitDiagnosticReportCmdBodyTemplate = "{\n \"project_type\": \"\"\n}" + +func init() { + apiProjectCmd.AddCommand(apiProjectRepairGitDiagnosticReportCmd) + apiProjectRepairGitDiagnosticReportCmd.Flags().Bool("describe-body", false, "Describe the JSON schema expected in the body") + apiProjectRepairGitDiagnosticReportCmd.Flags().Bool("template", false, "Output a simplified JSON template for the request body") +} + var apiProjectResetProjectToProductionCmd = &cobra.Command{ Use: "reset_project_to_production [PROJECT_ID]", Short: "Reset To Production", @@ -11557,8 +11644,8 @@ var apiScheduledPlanCreateScheduledPlanCmd = &cobra.Command{ }, } -const apiScheduledPlanCreateScheduledPlanCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" -const apiScheduledPlanCreateScheduledPlanCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" +const apiScheduledPlanCreateScheduledPlanCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_dashboard_summary\": {\n \"description\": \"Whether to include a dashboard summary in the scheduled email\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" +const apiScheduledPlanCreateScheduledPlanCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_dashboard_summary\": false,\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" func init() { apiScheduledPlanCmd.AddCommand(apiScheduledPlanCreateScheduledPlanCmd) @@ -11628,8 +11715,8 @@ var apiScheduledPlanScheduledPlanRunOnceCmd = &cobra.Command{ }, } -const apiScheduledPlanScheduledPlanRunOnceCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" -const apiScheduledPlanScheduledPlanRunOnceCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" +const apiScheduledPlanScheduledPlanRunOnceCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_dashboard_summary\": {\n \"description\": \"Whether to include a dashboard summary in the scheduled email\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" +const apiScheduledPlanScheduledPlanRunOnceCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_dashboard_summary\": false,\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" func init() { apiScheduledPlanCmd.AddCommand(apiScheduledPlanScheduledPlanRunOnceCmd) @@ -11664,8 +11751,8 @@ var apiScheduledPlanScheduledPlanRunOnceByIdCmd = &cobra.Command{ }, } -const apiScheduledPlanScheduledPlanRunOnceByIdCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" -const apiScheduledPlanScheduledPlanRunOnceByIdCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" +const apiScheduledPlanScheduledPlanRunOnceByIdCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_dashboard_summary\": {\n \"description\": \"Whether to include a dashboard summary in the scheduled email\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" +const apiScheduledPlanScheduledPlanRunOnceByIdCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_dashboard_summary\": false,\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" func init() { apiScheduledPlanCmd.AddCommand(apiScheduledPlanScheduledPlanRunOnceByIdCmd) @@ -11905,8 +11992,8 @@ var apiScheduledPlanUpdateScheduledPlanCmd = &cobra.Command{ }, } -const apiScheduledPlanUpdateScheduledPlanCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" -const apiScheduledPlanUpdateScheduledPlanCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" +const apiScheduledPlanUpdateScheduledPlanCmdBodySchema = "{\n \"properties\": {\n \"color_theme\": {\n \"description\": \"Color scheme of the dashboard if applicable\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"crontab\": {\n \"description\": \"Vixie-Style crontab specification when to run\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_base\": {\n \"description\": \"Custom url domain for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_label\": {\n \"description\": \"Custom url label for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"custom_url_params\": {\n \"description\": \"Custom url path and parameters for the scheduled entity\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"dashboard_filters\": {\n \"description\": \"(DEPRECATED) Alias for filters_string field\",\n \"type\": \"string\",\n \"x-looker-deprecated\": true,\n \"x-looker-nullable\": true\n },\n \"dashboard_id\": {\n \"description\": \"Id of a dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"datagroup\": {\n \"description\": \"Name of a datagroup; if specified will run when datagroup triggered (can't be used with cron string)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"embed\": {\n \"description\": \"Whether this schedule is in an embed context or not\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"enabled\": {\n \"description\": \"Whether the ScheduledPlan is enabled\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"filters_string\": {\n \"description\": \"Query string to run look or dashboard with\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"include_dashboard_summary\": {\n \"description\": \"Whether to include a dashboard summary in the scheduled email\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"include_links\": {\n \"description\": \"Whether links back to Looker should be included in this ScheduledPlan\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"inline_table_width\": {\n \"description\": \"The pixel width at which we render the inline table visualizations\",\n \"format\": \"int64\",\n \"type\": \"integer\",\n \"x-looker-nullable\": true\n },\n \"long_tables\": {\n \"description\": \"Whether or not to expand table vis to full length\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"look_id\": {\n \"description\": \"Id of a look\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"lookml_dashboard_id\": {\n \"description\": \"Id of a LookML dashboard\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"name\": {\n \"description\": \"Name of this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"pdf_landscape\": {\n \"description\": \"Whether the PDF should be formatted for landscape orientation\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_page_breaks\": {\n \"description\": \"Whether or not to add page breaks between tabs\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"pdf_paper_size\": {\n \"description\": \"The size of paper the PDF should be formatted to fit. Valid values are: \\\"letter\\\", \\\"legal\\\", \\\"tabloid\\\", \\\"a0\\\", \\\"a1\\\", \\\"a2\\\", \\\"a3\\\", \\\"a4\\\", \\\"a5\\\".\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"query_id\": {\n \"description\": \"Query id\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"require_change\": {\n \"description\": \"Delivery should occur if data have changed since the last run\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_no_results\": {\n \"description\": \"Delivery should occur if the dashboard look does not return results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"require_results\": {\n \"description\": \"Delivery should occur if running the dashboard or look returns results\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_as_recipient\": {\n \"description\": \"Whether schedule is run as recipient (only applicable for email recipients)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"run_once\": {\n \"description\": \"Whether the plan in question should only be run once (usually for testing)\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"scheduled_plan_destination\": {\n \"description\": \"Scheduled plan destinations\",\n \"items\": {\n \"$ref\": \"#/definitions/ScheduledPlanDestination\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"send_all_results\": {\n \"description\": \"Will run an unlimited query and send all results.\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"show_custom_url\": {\n \"description\": \"Whether to show custom link back instead of standard looker link\",\n \"type\": \"boolean\",\n \"x-looker-nullable\": false\n },\n \"tab_ids\": {\n \"description\": \"IDs of tabs to render (ID on a UDD and a tab label on lookml dashboards)\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"x-looker-nullable\": true\n },\n \"timezone\": {\n \"description\": \"Timezone for interpreting the specified crontab (default is Looker instance timezone)\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n },\n \"user_id\": {\n \"description\": \"User Id which owns this scheduled plan\",\n \"type\": \"string\",\n \"x-looker-nullable\": true\n }\n },\n \"x-looker-status\": \"stable\"\n}" +const apiScheduledPlanUpdateScheduledPlanCmdBodyTemplate = "{\n \"color_theme\": \"\",\n \"crontab\": \"\",\n \"custom_url_base\": \"\",\n \"custom_url_label\": \"\",\n \"custom_url_params\": \"\",\n \"dashboard_filters\": \"\",\n \"dashboard_id\": \"\",\n \"datagroup\": \"\",\n \"embed\": false,\n \"enabled\": false,\n \"filters_string\": \"\",\n \"include_dashboard_summary\": false,\n \"include_links\": false,\n \"inline_table_width\": 0,\n \"long_tables\": false,\n \"look_id\": \"\",\n \"lookml_dashboard_id\": \"\",\n \"name\": \"\",\n \"pdf_landscape\": false,\n \"pdf_page_breaks\": false,\n \"pdf_paper_size\": \"\",\n \"query_id\": \"\",\n \"require_change\": false,\n \"require_no_results\": false,\n \"require_results\": false,\n \"run_as_recipient\": false,\n \"run_once\": false,\n \"scheduled_plan_destination\": [\n {\n \"address\": \"\",\n \"apply_formatting\": false,\n \"apply_vis\": false,\n \"format\": \"\",\n \"message\": \"\",\n \"parameters\": \"\",\n \"scheduled_plan_id\": \"\",\n \"secret_parameters\": \"\",\n \"type\": \"\"\n }\n ],\n \"send_all_results\": false,\n \"show_custom_url\": false,\n \"tab_ids\": [\n \"\"\n ],\n \"timezone\": \"\",\n \"user_id\": \"\"\n}" func init() { apiScheduledPlanCmd.AddCommand(apiScheduledPlanUpdateScheduledPlanCmd) @@ -11944,6 +12031,21 @@ func init() { apiSelfServiceGetSelfServiceModelAllowedConnectionsCmd.Flags().Bool("google_sheets", false, "Include connections allowed for Google Sheets.") } +var apiSelfServiceGetSelfServiceModelLookmlCmd = &cobra.Command{ + Use: "get_self_service_model_lookml [MODEL_NAME]", + Short: "Get Self Service LookML", + Long: "### Get Generated LookML for a Self Service Model\n", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + queryParams := make(map[string]string) + return executeApiCallGeneric(cmd, "GET", "/self_service_models/{model_name}/lookml", []string{"model_name"}, []string{}, "", queryParams, args) + }, +} + +func init() { + apiSelfServiceCmd.AddCommand(apiSelfServiceGetSelfServiceModelLookmlCmd) +} + var apiSelfServiceUpdateSelfServiceExploreCertificationCmd = &cobra.Command{ Use: "update_self_service_explore_certification [MODEL_NAME] [BODY_JSON_FILE_OR_-]", Short: "Update certification for a Self Service Explore", @@ -12147,6 +12249,10 @@ var apiThemeActiveThemesCmd = &cobra.Command{ val, _ := cmd.Flags().GetString("name") queryParams["name"] = val } + if cmd.Flags().Changed("theme_type") { + val, _ := cmd.Flags().GetString("theme_type") + queryParams["theme_type"] = val + } if cmd.Flags().Changed("ts") { val, _ := cmd.Flags().GetString("ts") queryParams["ts"] = val @@ -12159,6 +12265,7 @@ func init() { apiThemeCmd.AddCommand(apiThemeActiveThemesCmd) apiThemeActiveThemesCmd.Flags().String("fields", "", "Requested fields.") apiThemeActiveThemesCmd.Flags().String("name", "", "Name of theme") + apiThemeActiveThemesCmd.Flags().String("theme_type", "", "Theme type.") apiThemeActiveThemesCmd.Flags().String("ts", "", "Timestamp representing the target datetime for the active period. Defaults to 'now'") } @@ -12221,7 +12328,7 @@ func init() { var apiThemeDefaultThemeCmd = &cobra.Command{ Use: "default_theme", Short: "Get Default Theme", - Long: "### Get the default theme\n\nReturns the active theme object set as the default.\n\nThe **default** theme name can be set in the UI on the Admin|Theme UI page\n\nThe optional `ts` parameter can specify a different timestamp than \"now.\" If specified, it returns the default theme at the time indicated.\n", + Long: "### Get the default theme\n\nThis endpoint is deprecated. [Get Default Theme (with type)](#!/Theme/default_theme_by_type) should be used instead.\n\nReturns the active theme object set as the default.\n\nThe **default** theme name can be set in the UI on the Admin|Theme UI page\n\nThe optional `ts` parameter can specify a different timestamp than \"now.\" If specified, it returns the default theme at the time indicated.\n", Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { queryParams := make(map[string]string) @@ -12238,6 +12345,26 @@ func init() { apiThemeDefaultThemeCmd.Flags().String("ts", "", "Timestamp representing the target datetime for the active period. Defaults to 'now'") } +var apiThemeDefaultThemeByTypeCmd = &cobra.Command{ + Use: "default_theme_by_type [THEME_TYPE]", + Short: "Get Default Theme (with type)", + Long: "### Get the default theme\n\nReturns the active theme object set as the default.\n\nThe **default** theme name can be set in the UI on the Admin|Theme UI page\n\nThe optional `ts` parameter can specify a different timestamp than \"now.\" If specified, it returns the default theme at the time indicated.\n\nThe optional `theme_type` parameter can specify the theme type to select for.\n", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + queryParams := make(map[string]string) + if cmd.Flags().Changed("ts") { + val, _ := cmd.Flags().GetString("ts") + queryParams["ts"] = val + } + return executeApiCallGeneric(cmd, "GET", "/themes/default_theme", []string{}, []string{"theme_type"}, "", queryParams, args) + }, +} + +func init() { + apiThemeCmd.AddCommand(apiThemeDefaultThemeByTypeCmd) + apiThemeDefaultThemeByTypeCmd.Flags().String("ts", "", "Timestamp representing the target datetime for the active period. Defaults to 'now'") +} + var apiThemeDeleteThemeCmd = &cobra.Command{ Use: "delete_theme [THEME_ID]", Short: "Delete Theme", @@ -12321,7 +12448,7 @@ func init() { var apiThemeSetDefaultThemeCmd = &cobra.Command{ Use: "set_default_theme [NAME]", Short: "Set Default Theme", - Long: "### Set the global default theme by theme name\n\nOnly Admin users can call this function.\n\nOnly an active theme with no expiration (`end_at` not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.\n\n[Create Theme](#!/Theme/create) has detailed information on rules for default and active themes\n\nReturns the new specified default theme object.\n\n**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or https://console.cloud.google.com/support/cases/ to update your license for this feature.\n\n", + Long: "### Set the global default theme by theme name\n\nThis endpoint is deprecated. [Set Default Theme (with type)](#!/Theme/set_default_theme_by_type) should be used instead.\n\nOnly Admin users can call this function.\n\nOnly an active theme with no expiration (`end_at` not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.\n\n[Create Theme](#!/Theme/create) has detailed information on rules for default and active themes\n\nReturns the new specified default theme object.\n\n**Note**: Custom themes needs to be enabled by Looker. Unless custom themes are enabled, only the automatically generated default theme can be used. Please contact your Account Manager or https://console.cloud.google.com/support/cases/ to update your license for this feature.\n\n", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { queryParams := make(map[string]string) @@ -12333,6 +12460,21 @@ func init() { apiThemeCmd.AddCommand(apiThemeSetDefaultThemeCmd) } +var apiThemeSetDefaultThemeByTypeCmd = &cobra.Command{ + Use: "set_default_theme_by_type [NAME] [THEME_TYPE]", + Short: "Set Default Theme (with type)", + Long: "### Set the global default theme by theme name\n\nOnly Admin users can call this function.\n\nOnly an active theme with no expiration (`end_at` not set) can be assigned as the default theme. As long as a theme has an active record with no expiration, it can be set as the default.\n\n[Create Theme](#!/Theme/create) has detailed information on rules for default and active themes\n\nReturns the new specified default theme object.\n\nThe optional `theme_type` parameter can specify the theme type to select for.\n", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + queryParams := make(map[string]string) + return executeApiCallGeneric(cmd, "PUT", "/themes/default_theme", []string{}, []string{"name", "theme_type"}, "", queryParams, args) + }, +} + +func init() { + apiThemeCmd.AddCommand(apiThemeSetDefaultThemeByTypeCmd) +} + var apiThemeThemeCmd = &cobra.Command{ Use: "theme [THEME_ID]", Short: "Get Theme",