From a4600c25670b8f74723889b6767158994426f00a Mon Sep 17 00:00:00 2001 From: Enis Soztutar Date: Thu, 13 Jul 2023 06:10:36 -0700 Subject: [PATCH] CDPCP-9951 Clone swagger files locally (#29) I added a clone-swaggers Makefile target to copy the swagger files from the upstream repo and added them to this git repo. We can now reflect upstream changes to the local copies of these files (by sending a PR against the swaggeers) before waiting on the public API release which can take 2-3 weeks. When the API changes are released upstream, changing the target API release version in Makefile and running: ``` make clone-swaggers ``` will just override the existing local copies with the upstream files so that we can keep the swaggers in sync and will not diverge much. Added more details in the README. Co-authored-by: Enis Soztutar --- cdp-sdk-go/Makefile | 51 +- cdp-sdk-go/README.md | 29 +- .../datahub/models/auto_scale_load_request.go | 1 + .../models/auto_scale_load_response.go | 1 + .../models/auto_scale_policy_request.go | 10 + .../models/auto_scale_policy_response.go | 10 + .../models/auto_scale_rules_response.go | 5 + .../models/auto_scale_schedule_request.go | 5 + .../models/auto_scale_schedule_response.go | 5 + .../models/azure_instance_group_request.go | 5 + cdp-sdk-go/gen/datahub/models/cluster.go | 20 + .../models/cluster_lifecycle_events.go | 18 + .../gen/datahub/models/cluster_template.go | 5 + .../models/cluster_template_summary.go | 5 + .../collect_datahub_diagnostics_request.go | 5 + .../models/create_a_w_s_cluster_request.go | 24 + .../models/create_a_w_s_cluster_response.go | 1 + .../models/create_auto_scale_rules_request.go | 5 + .../create_auto_scale_rules_response.go | 5 + .../models/create_azure_cluster_request.go | 28 + .../models/create_azure_cluster_response.go | 1 + .../create_cluster_definition_response.go | 1 + .../models/create_cluster_template_request.go | 5 + .../create_cluster_template_response.go | 1 + .../create_custom_configurations_request.go | 5 + .../create_custom_configurations_response.go | 1 + .../models/create_g_c_p_cluster_request.go | 24 + .../models/create_g_c_p_cluster_response.go | 1 + .../datahub/models/create_recipe_response.go | 1 + .../datahub/models/custom_configurations.go | 5 + ...datahub_diagnostics_collection_response.go | 5 + .../delete_cluster_definitions_response.go | 5 + .../delete_cluster_templates_response.go | 5 + .../delete_custom_configurations_response.go | 5 + .../models/delete_instances_response.go | 1 + .../datahub/models/delete_recipes_response.go | 5 + .../describe_auto_scale_rules_response.go | 5 + .../describe_cluster_definition_response.go | 1 + .../models/describe_cluster_response.go | 1 + .../describe_cluster_template_response.go | 1 + ...describe_custom_configurations_response.go | 1 + .../models/describe_recipe_response.go | 1 + cdp-sdk-go/gen/datahub/models/endpoints.go | 5 + .../models/g_c_p_instance_group_request.go | 5 + .../get_cluster_host_status_response.go | 5 + .../get_cluster_service_status_response.go | 5 + .../get_datahub_log_descriptors_response.go | 5 + cdp-sdk-go/gen/datahub/models/image_info.go | 5 + .../models/individual_schedule_request.go | 3 + .../models/individual_schedule_response.go | 3 + .../gen/datahub/models/instance_group.go | 5 + .../datahub/models/instance_group_request.go | 10 + .../list_auto_scale_history_response.go | 5 + .../list_cluster_definitions_response.go | 5 + .../list_cluster_lifecycle_events_response.go | 5 + .../models/list_cluster_templates_response.go | 5 + .../datahub/models/list_clusters_response.go | 5 + .../list_custom_configurations_response.go | 5 + .../list_datahub_diagnostics_response.go | 5 + .../datahub/models/list_recipes_response.go | 5 + .../prepare_cluster_upgrade_response.go | 10 + .../datahub/models/repair_cluster_request.go | 5 + .../datahub/models/replace_recipes_request.go | 5 + .../models/replace_recipes_response.go | 10 + .../gen/datahub/models/service_status.go | 5 + .../start_cluster_vertical_scaling_request.go | 1 + .../models/update_auto_scale_rules_request.go | 5 + .../update_auto_scale_rules_response.go | 5 + .../models/upgrade_cluster_response.go | 10 + .../admin_operations_backup_restore_state.go | 4 + .../models/backup_datalake_response.go | 1 + .../models/backup_datalake_status_response.go | 1 + .../collect_datalake_diagnostics_request.go | 5 + .../models/create_a_w_s_datalake_request.go | 25 + .../models/create_a_w_s_datalake_response.go | 1 + .../models/create_azure_datalake_request.go | 29 + .../models/create_azure_datalake_response.go | 1 + .../models/create_g_c_p_datalake_request.go | 25 + .../models/create_g_c_p_datalake_response.go | 1 + .../models/database_backup_restore_state.go | 1 + .../gen/datalake/models/datalake_details.go | 39 + ...atalake_diagnostics_collection_response.go | 5 + .../models/describe_datalake_response.go | 1 + cdp-sdk-go/gen/datalake/models/endpoints.go | 5 + .../get_cluster_host_status_response.go | 5 + .../get_cluster_service_status_response.go | 5 + .../get_datalake_log_descriptors_response.go | 5 + .../models/hbase_backup_restore_state.go | 2 + cdp-sdk-go/gen/datalake/models/image_info.go | 5 + cdp-sdk-go/gen/datalake/models/instance.go | 8 + .../gen/datalake/models/instance_group.go | 5 + .../models/internal_backup_restore_state.go | 4 + .../models/list_datalake_backups_response.go | 5 + .../list_datalake_diagnostics_response.go | 5 + .../models/list_datalakes_response.go | 5 + .../datalake/models/list_runtimes_response.go | 5 + .../prepare_datalake_upgrade_response.go | 10 + .../models/repair_datalake_request.go | 5 + .../models/replace_recipes_request.go | 5 + .../models/replace_recipes_response.go | 10 + .../models/restore_datalake_response.go | 1 + .../restore_datalake_status_response.go | 1 + .../gen/datalake/models/service_status.go | 5 + .../models/solr_backup_restore_state.go | 24 + ...start_datalake_vertical_scaling_request.go | 1 + .../models/upgrade_datalake_response.go | 10 + .../gen/dw/models/application_config_diff.go | 5 + .../gen/dw/models/application_config_req.go | 5 + .../gen/dw/models/application_config_resp.go | 5 + cdp-sdk-go/gen/dw/models/backup.go | 10 + .../dw/models/cluster_diagnostic_data_job.go | 4 + .../gen/dw/models/cluster_summary_response.go | 15 + cdp-sdk-go/gen/dw/models/config_block_diff.go | 5 + cdp-sdk-go/gen/dw/models/config_block_req.go | 1 + cdp-sdk-go/gen/dw/models/config_block_resp.go | 5 + .../gen/dw/models/config_blocks_diffs.go | 20 + .../gen/dw/models/config_content_diff.go | 5 + ...ate_cluster_diagnostic_data_job_request.go | 5 + .../gen/dw/models/create_cluster_request.go | 20 + .../create_data_visualization_request.go | 1 + .../create_dbc_diagnostic_data_job_request.go | 5 + .../create_vw_diagnostic_data_job_request.go | 10 + cdp-sdk-go/gen/dw/models/create_vw_request.go | 31 + .../gen/dw/models/dbc_diagnostic_data_job.go | 4 + cdp-sdk-go/gen/dw/models/dbc_summary.go | 5 + ...escribe_allowed_instance_types_response.go | 10 + .../gen/dw/models/describe_backup_response.go | 1 + ...be_cluster_diagnostic_data_job_response.go | 5 + .../dw/models/describe_cluster_response.go | 5 + .../models/describe_config_diff_response.go | 5 + .../gen/dw/models/describe_config_response.go | 5 + .../describe_data_visualization_response.go | 5 + .../dw/models/describe_dbc_config_response.go | 5 + ...scribe_dbc_diagnostic_data_job_response.go | 5 + .../gen/dw/models/describe_dbc_response.go | 5 + .../dw/models/describe_restore_response.go | 1 + .../dw/models/describe_server_setting_item.go | 4 + .../describe_server_setting_response.go | 5 + .../dw/models/describe_vw_config_response.go | 5 + ...escribe_vw_diagnostic_data_job_response.go | 5 + .../gen/dw/models/describe_vw_response.go | 5 + ..._visualization_upgrade_version_response.go | 5 + .../impala_h_a_settings_create_request.go | 4 + .../impala_h_a_settings_options_response.go | 4 + .../gen/dw/models/list_backups_response.go | 5 + ...st_cluster_diagnostic_data_jobs_request.go | 4 + ...t_cluster_diagnostic_data_jobs_response.go | 5 + .../gen/dw/models/list_clusters_response.go | 5 + .../list_data_visualizations_response.go | 5 + .../dw/models/list_dbc_configs_response.go | 5 + .../list_dbc_diagnostic_data_jobs_request.go | 4 + .../list_dbc_diagnostic_data_jobs_response.go | 5 + .../gen/dw/models/list_dbc_events_response.go | 5 + .../gen/dw/models/list_dbcs_response.go | 5 + .../gen/dw/models/list_restores_response.go | 5 + .../gen/dw/models/list_users_response.go | 5 + .../gen/dw/models/list_vw_configs_response.go | 5 + .../list_vw_diagnostic_data_jobs_request.go | 4 + .../list_vw_diagnostic_data_jobs_response.go | 5 + .../gen/dw/models/list_vw_events_response.go | 5 + cdp-sdk-go/gen/dw/models/list_vws_request.go | 5 + cdp-sdk-go/gen/dw/models/list_vws_response.go | 5 + cdp-sdk-go/gen/dw/models/restore.go | 10 + .../gen/dw/models/restore_cluster_response.go | 20 + .../gen/dw/models/service_config_diff.go | 5 + .../gen/dw/models/service_config_req.go | 5 + .../gen/dw/models/service_config_resp.go | 5 + .../gen/dw/models/update_cluster_request.go | 15 + .../update_data_visualization_request.go | 5 + .../dw/models/update_dbc_config_request.go | 5 + .../gen/dw/models/update_dbc_request.go | 5 + .../models/update_server_setting_request.go | 5 + .../gen/dw/models/update_vw_config_request.go | 5 + cdp-sdk-go/gen/dw/models/update_vw_request.go | 20 + .../gen/dw/models/vw_diagnostic_data_job.go | 4 + cdp-sdk-go/gen/dw/models/vw_filter.go | 4 + cdp-sdk-go/gen/dw/models/vw_summary.go | 54 + .../aws_credential_prerequisites_response.go | 5 + ...azure_credential_prerequisites_response.go | 5 + .../models/azure_credential_properties.go | 9 + .../gen/environments/models/backup_storage.go | 15 + .../gen/environments/models/cdp_cluster.go | 10 + .../change_environment_credential_response.go | 1 + ...check_environment_connectivity_response.go | 5 + .../collect_freeipa_diagnostics_request.go | 5 + .../create_a_w_s_credential_response.go | 1 + .../create_a_w_s_environment_request.go | 18 + .../create_a_w_s_environment_response.go | 1 + .../models/create_azure_credential_request.go | 5 + .../create_azure_credential_response.go | 1 + .../create_azure_environment_request.go | 27 + .../create_azure_environment_response.go | 1 + .../create_g_c_p_credential_response.go | 1 + .../create_g_c_p_environment_request.go | 21 + .../create_g_c_p_environment_response.go | 1 + .../create_private_environment_request.go | 5 + .../create_private_environment_response.go | 1 + .../models/create_proxy_config_response.go | 1 + .../gen/environments/models/credential.go | 15 + .../models/describe_environment_response.go | 1 + .../gen/environments/models/environment.go | 46 + .../environments/models/exposed_service.go | 5 + ...freeipa_diagnostics_collection_response.go | 5 + .../get_account_telemetry_default_response.go | 5 + .../models/get_account_telemetry_response.go | 5 + ...audit_credential_prerequisites_response.go | 10 + ...omated_sync_environment_status_response.go | 5 + .../get_credential_prerequisites_response.go | 10 + .../get_freeipa_log_descriptors_response.go | 5 + .../models/get_id_broker_mappings_response.go | 5 + ...id_broker_mappings_sync_status_response.go | 1 + .../get_repair_freeipa_status_response.go | 14 + .../models/id_broker_sync_status.go | 1 + .../environments/models/instance_template.go | 10 + .../models/list_audit_credentials_response.go | 5 + .../models/list_credentials_response.go | 5 + .../models/list_environments_response.go | 5 + .../list_freeipa_diagnostics_response.go | 5 + .../models/list_proxy_configs_response.go | 5 + .../gen/environments/models/log_storage.go | 15 + cdp-sdk-go/gen/environments/models/network.go | 15 + .../models/repair_freeipa_response.go | 14 + .../set_a_w_s_audit_credential_response.go | 1 + .../models/set_account_telemetry_request.go | 5 + .../models/set_account_telemetry_response.go | 5 + .../set_azure_audit_credential_request.go | 1 + .../set_azure_audit_credential_response.go | 1 + .../models/set_id_broker_mappings_request.go | 5 + .../models/set_id_broker_mappings_response.go | 5 + .../models/set_password_response.go | 18 + ...start_free_ipa_vertical_scaling_request.go | 1 + .../models/sync_all_users_response.go | 18 + .../models/sync_status_response.go | 18 + .../environments/models/sync_user_response.go | 18 + .../test_account_telemetry_rules_request.go | 5 + ...aws_disk_encryption_parameters_response.go | 6 + .../models/update_azure_credential_request.go | 2 + .../update_azure_credential_response.go | 5 + ...ate_azure_encryption_resources_response.go | 6 + .../models/update_subnet_response.go | 1 + .../models/upgrade_freeipa_response.go | 10 + cdp-sdk-go/gen/iam/models/access_key.go | 9 + cdp-sdk-go/gen/iam/models/account.go | 11 + .../iam/models/add_ssh_public_key_response.go | 1 + .../gen/iam/models/create_group_response.go | 1 + .../create_machine_user_access_key_request.go | 4 + ...create_machine_user_access_key_response.go | 1 + .../models/create_machine_user_response.go | 1 + .../models/create_saml_provider_response.go | 1 + .../create_scim_access_token_response.go | 1 + .../models/create_user_access_key_request.go | 4 + .../models/create_user_access_key_response.go | 1 + .../gen/iam/models/create_user_response.go | 1 + .../models/delete_machine_user_response.go | 5 + .../gen/iam/models/delete_user_response.go | 5 + .../models/describe_saml_provider_response.go | 1 + .../describe_ssh_public_key_response.go | 1 + .../generate_workload_auth_token_request.go | 1 + .../gen/iam/models/get_access_key_response.go | 1 + .../gen/iam/models/get_account_response.go | 1 + .../gen/iam/models/get_user_response.go | 1 + cdp-sdk-go/gen/iam/models/group.go | 5 + .../iam/models/list_access_keys_response.go | 5 + ..._group_assigned_resource_roles_response.go | 5 + .../gen/iam/models/list_groups_response.go | 5 + ...e_user_assigned_resource_roles_response.go | 5 + .../iam/models/list_machine_users_response.go | 5 + .../list_resource_assignees_response.go | 5 + .../models/list_resource_roles_response.go | 5 + .../gen/iam/models/list_roles_response.go | 5 + .../models/list_saml_providers_response.go | 5 + .../list_scim_access_tokens_response.go | 5 + ...ice_principal_cloud_identities_response.go | 5 + .../models/list_ssh_public_keys_response.go | 5 + ...t_user_assigned_resource_roles_response.go | 5 + .../gen/iam/models/list_users_response.go | 5 + cdp-sdk-go/gen/iam/models/machine_user.go | 10 + cdp-sdk-go/gen/iam/models/policy.go | 5 + cdp-sdk-go/gen/iam/models/role.go | 5 + .../service_principal_cloud_identities.go | 5 + .../set_workload_password_policy_request.go | 10 + ..._machine_user_in_control_plane_response.go | 1 + .../unlock_user_in_control_plane_response.go | 1 + .../iam/models/update_access_key_response.go | 1 + .../gen/iam/models/update_group_response.go | 1 + .../models/update_saml_provider_response.go | 1 + .../gen/iam/models/update_user_response.go | 1 + cdp-sdk-go/gen/iam/models/user.go | 10 + cdp-sdk-go/gen/ml/models/audit_events.go | 5 + cdp-sdk-go/gen/ml/models/audit_logs.go | 5 + .../gen/ml/models/create_workspace_request.go | 14 + .../ml/models/describe_workspace_response.go | 1 + .../ml/models/get_audit_events_response.go | 1 + cdp-sdk-go/gen/ml/models/get_logs_response.go | 1 + cdp-sdk-go/gen/ml/models/instance_group.go | 10 + .../models/list_workspace_backups_request.go | 5 + .../models/list_workspace_backups_response.go | 5 + .../gen/ml/models/list_workspaces_response.go | 5 + cdp-sdk-go/gen/ml/models/overlay_network.go | 5 + .../gen/ml/models/provision_k8s_request.go | 15 + .../request_workflow_cancellation_response.go | 5 + .../ml/models/restore_workspace_request.go | 5 + cdp-sdk-go/gen/ml/models/workspace.go | 25 + .../gen/ml/models/workspace_instance_group.go | 10 + cdp-sdk-go/gen/ml/models/workspace_summary.go | 15 + cdp-sdk-go/resources/swagger/datahub.yaml | 4116 +++++++++++++ cdp-sdk-go/resources/swagger/datalake.yaml | 2907 +++++++++ cdp-sdk-go/resources/swagger/dw.yaml | 5341 +++++++++++++++++ .../resources/swagger/environments.yaml | 4875 +++++++++++++++ cdp-sdk-go/resources/swagger/iam.yaml | 4073 +++++++++++++ cdp-sdk-go/resources/swagger/ml.yaml | 1679 ++++++ go.mod | 67 +- go.sum | 500 +- utils/copyright_test.go | 2 +- 314 files changed, 25066 insertions(+), 531 deletions(-) create mode 100644 cdp-sdk-go/resources/swagger/datahub.yaml create mode 100644 cdp-sdk-go/resources/swagger/datalake.yaml create mode 100644 cdp-sdk-go/resources/swagger/dw.yaml create mode 100644 cdp-sdk-go/resources/swagger/environments.yaml create mode 100644 cdp-sdk-go/resources/swagger/iam.yaml create mode 100644 cdp-sdk-go/resources/swagger/ml.yaml diff --git a/cdp-sdk-go/Makefile b/cdp-sdk-go/Makefile index f1bdc3bb..e28202a4 100644 --- a/cdp-sdk-go/Makefile +++ b/cdp-sdk-go/Makefile @@ -14,13 +14,6 @@ SWAGGER_REPO_RAW=https://raw.githubusercontent.com/cloudera/cdp-dev-docs/ API_DEFINITION_TAG ?= cdp-api-0.9.88 SWAGGER=$(SWAGGER_REPO_RAW)/$(API_DEFINITION_TAG)/api-docs-beta/swagger -IAM_SWAGGER_YAML=$(SWAGGER)/iam.yaml -ENVIRONMENTS_SWAGGER_YAML=$(SWAGGER)/environments.yaml -DATALAKE_SWAGGER_YAML=$(SWAGGER)/datalake.yaml -DATAHUB_SWAGGER_YAML=$(SWAGGER)/datahub.yaml -ML_SWAGGER_YAML=$(SWAGGER)/ml.yaml -DW_SWAGGER_YAML=$(SWAGGER)/dw.yaml - all: check-go test build check-go: @@ -53,30 +46,30 @@ vet: generate: go generate ./common/... ./cdp/... -mkdirs: - mkdir -p gen/iam gen/environments gen/datalake gen/datahub gen/ml gen/dw +mkdir-%: + mkdir -p gen/$* # TODO: Manage this via go mod install-go-swagger: go get github.com/go-swagger/go-swagger/cmd/swagger -# TODO: should run this as a part of main build -swagger-gen: mkdirs install-go-swagger swagger-gen-iam swagger-gen-environments swagger-gen-datalake swagger-gen-datahub swagger-gen-ml swagger-gen-dw - -swagger-gen-iam: mkdirs - go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f $(IAM_SWAGGER_YAML) -A iam -t gen/iam/ - -swagger-gen-environments: mkdirs - go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f $(ENVIRONMENTS_SWAGGER_YAML) -A environments -t gen/environments/ - -swagger-gen-datalake: mkdirs - go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f $(DATALAKE_SWAGGER_YAML) -A datalake -t gen/datalake/ - -swagger-gen-datahub: mkdirs - go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f $(DATAHUB_SWAGGER_YAML) -A datahub -t gen/datahub/ - -swagger-gen-ml: mkdirs - go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f $(ML_SWAGGER_YAML) -A ml -t gen/ml/ - -swagger-gen-dw: mkdirs - go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f $(DW_SWAGGER_YAML) -A dw -t gen/dw/ +swagger-gen: install-go-swagger +swagger-gen: swagger-gen-iam +swagger-gen: swagger-gen-environments +swagger-gen: swagger-gen-datalake +swagger-gen: swagger-gen-datahub +swagger-gen: swagger-gen-ml +swagger-gen: swagger-gen-dw + +clone-swaggers: clone-swagger-iam +clone-swaggers: clone-swagger-environments +clone-swaggers: clone-swagger-datalake +clone-swaggers: clone-swagger-datahub +clone-swaggers: clone-swagger-ml +clone-swaggers: clone-swagger-dw + +clone-swagger-%: + wget $(SWAGGER)/$*.yaml -O resources/swagger/$*.yaml + +swagger-gen-%: mkdir-% + go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f resources/swagger/$*.yaml -A $* -t gen/$*/ \ No newline at end of file diff --git a/cdp-sdk-go/README.md b/cdp-sdk-go/README.md index baf4a897..27bc3991 100644 --- a/cdp-sdk-go/README.md +++ b/cdp-sdk-go/README.md @@ -19,19 +19,38 @@ API release. These tags correspond to CDP API release versions. The tag can be f ``` API_DEFINITION_TAG ?= cdp-api-0.9.88 ``` +Then run: +``` + make clone-swaggers +``` +which will copy the swagger files from the upstream repo to this repo. -**Note:** Only publicly-released APIs can be consumed from the Terraform provider. We use the Beta API swaggers. +We have a local copy of the swagger files from the upstream repos since we sometimes need the changes to the API that +are yet to be released publicly. The local copies of the swagger files can be found at +[./resources/swagger](./resources/swagger). A PR can be sent to reflect the API changes to these swagger files for +upcoming API changes that will be released soon, but since we have a local copy, we can generate the swagger code before +waiting for the API release. Once the API changes are released publicly, simply update the local copy of the swagger files +by running: +``` + make clone-swaggers +``` +which will override any local changes from the upstream repo. To upgrade the version, simply get a new git tag from https://github.com/cloudera/cdp-dev-docs/, and update it in the Makefile. Afterwards, run: ``` - make swagger-gen + make clone-swaggers swagger-gen ``` to generate for the new code. Then send a PR for the new changes to check in the code. +**Note:** Only publicly-released (or soon-to-be-released) APIs can be consumed from the Terraform provider. We use the +Beta API swaggers. + # Supporting a new Service -Adding a new CDP service (CML, CDW, CDE, etc) should be trivial and should follow the existing model from `Makefile`: +Adding a new CDP service (CML, CDW, CDE, etc) should be trivial and should follow the existing model from `Makefile`. +Add two new directives like this: ``` -swagger-gen-: mkdirs - go run github.com/go-swagger/go-swagger/cmd/swagger generate client -f $(NEWSERVICE_SWAGGER_YAML) -A dw -t gen// +swagger-gen: swagger-gen- + +clone-swaggers: clone-swagger- ``` \ No newline at end of file diff --git a/cdp-sdk-go/gen/datahub/models/auto_scale_load_request.go b/cdp-sdk-go/gen/datahub/models/auto_scale_load_request.go index 7858e508..9fa2c970 100644 --- a/cdp-sdk-go/gen/datahub/models/auto_scale_load_request.go +++ b/cdp-sdk-go/gen/datahub/models/auto_scale_load_request.go @@ -125,6 +125,7 @@ func (m *AutoScaleLoadRequest) ContextValidate(ctx context.Context, formats strf func (m *AutoScaleLoadRequest) contextValidateConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.Configuration != nil { + if err := m.Configuration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration") diff --git a/cdp-sdk-go/gen/datahub/models/auto_scale_load_response.go b/cdp-sdk-go/gen/datahub/models/auto_scale_load_response.go index 4a767091..8087c2e7 100644 --- a/cdp-sdk-go/gen/datahub/models/auto_scale_load_response.go +++ b/cdp-sdk-go/gen/datahub/models/auto_scale_load_response.go @@ -95,6 +95,7 @@ func (m *AutoScaleLoadResponse) ContextValidate(ctx context.Context, formats str func (m *AutoScaleLoadResponse) contextValidateConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.Configuration != nil { + if err := m.Configuration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration") diff --git a/cdp-sdk-go/gen/datahub/models/auto_scale_policy_request.go b/cdp-sdk-go/gen/datahub/models/auto_scale_policy_request.go index 1353dc18..77e5231d 100644 --- a/cdp-sdk-go/gen/datahub/models/auto_scale_policy_request.go +++ b/cdp-sdk-go/gen/datahub/models/auto_scale_policy_request.go @@ -130,6 +130,11 @@ func (m *AutoScalePolicyRequest) ContextValidate(ctx context.Context, formats st func (m *AutoScalePolicyRequest) contextValidateLoadBasedPolicy(ctx context.Context, formats strfmt.Registry) error { if m.LoadBasedPolicy != nil { + + if swag.IsZero(m.LoadBasedPolicy) { // not required + return nil + } + if err := m.LoadBasedPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("loadBasedPolicy") @@ -146,6 +151,11 @@ func (m *AutoScalePolicyRequest) contextValidateLoadBasedPolicy(ctx context.Cont func (m *AutoScalePolicyRequest) contextValidateScheduleBasedPolicy(ctx context.Context, formats strfmt.Registry) error { if m.ScheduleBasedPolicy != nil { + + if swag.IsZero(m.ScheduleBasedPolicy) { // not required + return nil + } + if err := m.ScheduleBasedPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scheduleBasedPolicy") diff --git a/cdp-sdk-go/gen/datahub/models/auto_scale_policy_response.go b/cdp-sdk-go/gen/datahub/models/auto_scale_policy_response.go index fad52a18..caab58a5 100644 --- a/cdp-sdk-go/gen/datahub/models/auto_scale_policy_response.go +++ b/cdp-sdk-go/gen/datahub/models/auto_scale_policy_response.go @@ -120,6 +120,11 @@ func (m *AutoScalePolicyResponse) ContextValidate(ctx context.Context, formats s func (m *AutoScalePolicyResponse) contextValidateLoadBasedPolicy(ctx context.Context, formats strfmt.Registry) error { if m.LoadBasedPolicy != nil { + + if swag.IsZero(m.LoadBasedPolicy) { // not required + return nil + } + if err := m.LoadBasedPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("loadBasedPolicy") @@ -136,6 +141,11 @@ func (m *AutoScalePolicyResponse) contextValidateLoadBasedPolicy(ctx context.Con func (m *AutoScalePolicyResponse) contextValidateScheduleBasedPolicy(ctx context.Context, formats strfmt.Registry) error { if m.ScheduleBasedPolicy != nil { + + if swag.IsZero(m.ScheduleBasedPolicy) { // not required + return nil + } + if err := m.ScheduleBasedPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scheduleBasedPolicy") diff --git a/cdp-sdk-go/gen/datahub/models/auto_scale_rules_response.go b/cdp-sdk-go/gen/datahub/models/auto_scale_rules_response.go index e609b891..51a127de 100644 --- a/cdp-sdk-go/gen/datahub/models/auto_scale_rules_response.go +++ b/cdp-sdk-go/gen/datahub/models/auto_scale_rules_response.go @@ -132,6 +132,11 @@ func (m *AutoScaleRulesResponse) contextValidateAutoScalePolicies(ctx context.Co for i := 0; i < len(m.AutoScalePolicies); i++ { if m.AutoScalePolicies[i] != nil { + + if swag.IsZero(m.AutoScalePolicies[i]) { // not required + return nil + } + if err := m.AutoScalePolicies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoScalePolicies" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_request.go b/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_request.go index 9c5d9279..ef13ac98 100644 --- a/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_request.go +++ b/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_request.go @@ -82,6 +82,11 @@ func (m *AutoScaleScheduleRequest) contextValidateSchedules(ctx context.Context, for i := 0; i < len(m.Schedules); i++ { if m.Schedules[i] != nil { + + if swag.IsZero(m.Schedules[i]) { // not required + return nil + } + if err := m.Schedules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("schedules" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_response.go b/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_response.go index b8df2075..76d66e34 100644 --- a/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_response.go +++ b/cdp-sdk-go/gen/datahub/models/auto_scale_schedule_response.go @@ -82,6 +82,11 @@ func (m *AutoScaleScheduleResponse) contextValidateSchedules(ctx context.Context for i := 0; i < len(m.Schedules); i++ { if m.Schedules[i] != nil { + + if swag.IsZero(m.Schedules[i]) { // not required + return nil + } + if err := m.Schedules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("schedules" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/azure_instance_group_request.go b/cdp-sdk-go/gen/datahub/models/azure_instance_group_request.go index 4969f5c0..c2b8771b 100644 --- a/cdp-sdk-go/gen/datahub/models/azure_instance_group_request.go +++ b/cdp-sdk-go/gen/datahub/models/azure_instance_group_request.go @@ -176,6 +176,11 @@ func (m *AzureInstanceGroupRequest) contextValidateAttachedVolumeConfiguration(c for i := 0; i < len(m.AttachedVolumeConfiguration); i++ { if m.AttachedVolumeConfiguration[i] != nil { + + if swag.IsZero(m.AttachedVolumeConfiguration[i]) { // not required + return nil + } + if err := m.AttachedVolumeConfiguration[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attachedVolumeConfiguration" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/cluster.go b/cdp-sdk-go/gen/datahub/models/cluster.go index 78cbaf2f..e7bce03a 100644 --- a/cdp-sdk-go/gen/datahub/models/cluster.go +++ b/cdp-sdk-go/gen/datahub/models/cluster.go @@ -255,6 +255,11 @@ func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Cluster) contextValidateClouderaManager(ctx context.Context, formats strfmt.Registry) error { if m.ClouderaManager != nil { + + if swag.IsZero(m.ClouderaManager) { // not required + return nil + } + if err := m.ClouderaManager.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clouderaManager") @@ -271,6 +276,11 @@ func (m *Cluster) contextValidateClouderaManager(ctx context.Context, formats st func (m *Cluster) contextValidateEndpoints(ctx context.Context, formats strfmt.Registry) error { if m.Endpoints != nil { + + if swag.IsZero(m.Endpoints) { // not required + return nil + } + if err := m.Endpoints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("endpoints") @@ -287,6 +297,11 @@ func (m *Cluster) contextValidateEndpoints(ctx context.Context, formats strfmt.R func (m *Cluster) contextValidateImageDetails(ctx context.Context, formats strfmt.Registry) error { if m.ImageDetails != nil { + + if swag.IsZero(m.ImageDetails) { // not required + return nil + } + if err := m.ImageDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageDetails") @@ -305,6 +320,11 @@ func (m *Cluster) contextValidateInstanceGroups(ctx context.Context, formats str for i := 0; i < len(m.InstanceGroups); i++ { if m.InstanceGroups[i] != nil { + + if swag.IsZero(m.InstanceGroups[i]) { // not required + return nil + } + if err := m.InstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroups" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/cluster_lifecycle_events.go b/cdp-sdk-go/gen/datahub/models/cluster_lifecycle_events.go index ed6aa3e9..b9353369 100644 --- a/cdp-sdk-go/gen/datahub/models/cluster_lifecycle_events.go +++ b/cdp-sdk-go/gen/datahub/models/cluster_lifecycle_events.go @@ -229,6 +229,10 @@ func (m *ClusterLifecycleEvents) ContextValidate(ctx context.Context, formats st func (m *ClusterLifecycleEvents) contextValidateClusterStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.ClusterStatus) { // not required + return nil + } + if err := m.ClusterStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterStatus") @@ -244,6 +248,11 @@ func (m *ClusterLifecycleEvents) contextValidateClusterStatus(ctx context.Contex func (m *ClusterLifecycleEvents) contextValidateLdapDetails(ctx context.Context, formats strfmt.Registry) error { if m.LdapDetails != nil { + + if swag.IsZero(m.LdapDetails) { // not required + return nil + } + if err := m.LdapDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ldapDetails") @@ -260,6 +269,11 @@ func (m *ClusterLifecycleEvents) contextValidateLdapDetails(ctx context.Context, func (m *ClusterLifecycleEvents) contextValidateRdsDetails(ctx context.Context, formats strfmt.Registry) error { if m.RdsDetails != nil { + + if swag.IsZero(m.RdsDetails) { // not required + return nil + } + if err := m.RdsDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rdsDetails") @@ -275,6 +289,10 @@ func (m *ClusterLifecycleEvents) contextValidateRdsDetails(ctx context.Context, func (m *ClusterLifecycleEvents) contextValidateStackStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.StackStatus) { // not required + return nil + } + if err := m.StackStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stackStatus") diff --git a/cdp-sdk-go/gen/datahub/models/cluster_template.go b/cdp-sdk-go/gen/datahub/models/cluster_template.go index 29cb894a..36b06f41 100644 --- a/cdp-sdk-go/gen/datahub/models/cluster_template.go +++ b/cdp-sdk-go/gen/datahub/models/cluster_template.go @@ -129,6 +129,11 @@ func (m *ClusterTemplate) contextValidateTags(ctx context.Context, formats strfm for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/cluster_template_summary.go b/cdp-sdk-go/gen/datahub/models/cluster_template_summary.go index 42e01c5e..5ea2a8c0 100644 --- a/cdp-sdk-go/gen/datahub/models/cluster_template_summary.go +++ b/cdp-sdk-go/gen/datahub/models/cluster_template_summary.go @@ -129,6 +129,11 @@ func (m *ClusterTemplateSummary) contextValidateTags(ctx context.Context, format for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_request.go b/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_request.go index 5cd490ec..0355b3b8 100644 --- a/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_request.go +++ b/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_request.go @@ -317,6 +317,11 @@ func (m *CollectDatahubDiagnosticsRequest) contextValidateAdditionalLogs(ctx con for i := 0; i < len(m.AdditionalLogs); i++ { if m.AdditionalLogs[i] != nil { + + if swag.IsZero(m.AdditionalLogs[i]) { // not required + return nil + } + if err := m.AdditionalLogs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("additionalLogs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_request.go b/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_request.go index 68fd0204..0804220d 100644 --- a/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_request.go +++ b/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_request.go @@ -270,6 +270,11 @@ func (m *CreateAWSClusterRequest) ContextValidate(ctx context.Context, formats s func (m *CreateAWSClusterRequest) contextValidateClusterExtension(ctx context.Context, formats strfmt.Registry) error { if m.ClusterExtension != nil { + + if swag.IsZero(m.ClusterExtension) { // not required + return nil + } + if err := m.ClusterExtension.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterExtension") @@ -285,6 +290,10 @@ func (m *CreateAWSClusterRequest) contextValidateClusterExtension(ctx context.Co func (m *CreateAWSClusterRequest) contextValidateDatahubDatabase(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.DatahubDatabase) { // not required + return nil + } + if err := m.DatahubDatabase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datahubDatabase") @@ -300,6 +309,11 @@ func (m *CreateAWSClusterRequest) contextValidateDatahubDatabase(ctx context.Con func (m *CreateAWSClusterRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -318,6 +332,11 @@ func (m *CreateAWSClusterRequest) contextValidateInstanceGroups(ctx context.Cont for i := 0; i < len(m.InstanceGroups); i++ { if m.InstanceGroups[i] != nil { + + if swag.IsZero(m.InstanceGroups[i]) { // not required + return nil + } + if err := m.InstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroups" + "." + strconv.Itoa(i)) @@ -338,6 +357,11 @@ func (m *CreateAWSClusterRequest) contextValidateTags(ctx context.Context, forma for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_response.go b/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_response.go index daccbe82..a57686d4 100644 --- a/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_a_w_s_cluster_response.go @@ -75,6 +75,7 @@ func (m *CreateAWSClusterResponse) ContextValidate(ctx context.Context, formats func (m *CreateAWSClusterResponse) contextValidateCluster(ctx context.Context, formats strfmt.Registry) error { if m.Cluster != nil { + if err := m.Cluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster") diff --git a/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_request.go b/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_request.go index b8769a6b..6223b44c 100644 --- a/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_request.go +++ b/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_request.go @@ -118,6 +118,11 @@ func (m *CreateAutoScaleRulesRequest) contextValidateAutoScalePolicies(ctx conte for i := 0; i < len(m.AutoScalePolicies); i++ { if m.AutoScalePolicies[i] != nil { + + if swag.IsZero(m.AutoScalePolicies[i]) { // not required + return nil + } + if err := m.AutoScalePolicies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoScalePolicies" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_response.go b/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_response.go index ebea9c02..a18621c6 100644 --- a/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_auto_scale_rules_response.go @@ -72,6 +72,11 @@ func (m *CreateAutoScaleRulesResponse) ContextValidate(ctx context.Context, form func (m *CreateAutoScaleRulesResponse) contextValidateAutoScaleRules(ctx context.Context, formats strfmt.Registry) error { if m.AutoScaleRules != nil { + + if swag.IsZero(m.AutoScaleRules) { // not required + return nil + } + if err := m.AutoScaleRules.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoScaleRules") diff --git a/cdp-sdk-go/gen/datahub/models/create_azure_cluster_request.go b/cdp-sdk-go/gen/datahub/models/create_azure_cluster_request.go index 815252ed..46546e16 100644 --- a/cdp-sdk-go/gen/datahub/models/create_azure_cluster_request.go +++ b/cdp-sdk-go/gen/datahub/models/create_azure_cluster_request.go @@ -283,6 +283,11 @@ func (m *CreateAzureClusterRequest) ContextValidate(ctx context.Context, formats func (m *CreateAzureClusterRequest) contextValidateClusterExtension(ctx context.Context, formats strfmt.Registry) error { if m.ClusterExtension != nil { + + if swag.IsZero(m.ClusterExtension) { // not required + return nil + } + if err := m.ClusterExtension.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterExtension") @@ -298,6 +303,10 @@ func (m *CreateAzureClusterRequest) contextValidateClusterExtension(ctx context. func (m *CreateAzureClusterRequest) contextValidateDatahubDatabase(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.DatahubDatabase) { // not required + return nil + } + if err := m.DatahubDatabase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datahubDatabase") @@ -313,6 +322,11 @@ func (m *CreateAzureClusterRequest) contextValidateDatahubDatabase(ctx context.C func (m *CreateAzureClusterRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -331,6 +345,11 @@ func (m *CreateAzureClusterRequest) contextValidateInstanceGroups(ctx context.Co for i := 0; i < len(m.InstanceGroups); i++ { if m.InstanceGroups[i] != nil { + + if swag.IsZero(m.InstanceGroups[i]) { // not required + return nil + } + if err := m.InstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroups" + "." + strconv.Itoa(i)) @@ -348,6 +367,10 @@ func (m *CreateAzureClusterRequest) contextValidateInstanceGroups(ctx context.Co func (m *CreateAzureClusterRequest) contextValidateLoadBalancerSku(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.LoadBalancerSku) { // not required + return nil + } + if err := m.LoadBalancerSku.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("loadBalancerSku") @@ -365,6 +388,11 @@ func (m *CreateAzureClusterRequest) contextValidateTags(ctx context.Context, for for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/create_azure_cluster_response.go b/cdp-sdk-go/gen/datahub/models/create_azure_cluster_response.go index 8e4efe33..9e048411 100644 --- a/cdp-sdk-go/gen/datahub/models/create_azure_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_azure_cluster_response.go @@ -75,6 +75,7 @@ func (m *CreateAzureClusterResponse) ContextValidate(ctx context.Context, format func (m *CreateAzureClusterResponse) contextValidateCluster(ctx context.Context, formats strfmt.Registry) error { if m.Cluster != nil { + if err := m.Cluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster") diff --git a/cdp-sdk-go/gen/datahub/models/create_cluster_definition_response.go b/cdp-sdk-go/gen/datahub/models/create_cluster_definition_response.go index 161a1d58..7284d868 100644 --- a/cdp-sdk-go/gen/datahub/models/create_cluster_definition_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_cluster_definition_response.go @@ -75,6 +75,7 @@ func (m *CreateClusterDefinitionResponse) ContextValidate(ctx context.Context, f func (m *CreateClusterDefinitionResponse) contextValidateClusterDefinition(ctx context.Context, formats strfmt.Registry) error { if m.ClusterDefinition != nil { + if err := m.ClusterDefinition.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterDefinition") diff --git a/cdp-sdk-go/gen/datahub/models/create_cluster_template_request.go b/cdp-sdk-go/gen/datahub/models/create_cluster_template_request.go index 60d7e63b..d2e52dcf 100644 --- a/cdp-sdk-go/gen/datahub/models/create_cluster_template_request.go +++ b/cdp-sdk-go/gen/datahub/models/create_cluster_template_request.go @@ -147,6 +147,11 @@ func (m *CreateClusterTemplateRequest) contextValidateTags(ctx context.Context, for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/create_cluster_template_response.go b/cdp-sdk-go/gen/datahub/models/create_cluster_template_response.go index 01b3f194..54182c00 100644 --- a/cdp-sdk-go/gen/datahub/models/create_cluster_template_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_cluster_template_response.go @@ -75,6 +75,7 @@ func (m *CreateClusterTemplateResponse) ContextValidate(ctx context.Context, for func (m *CreateClusterTemplateResponse) contextValidateClusterTemplate(ctx context.Context, formats strfmt.Registry) error { if m.ClusterTemplate != nil { + if err := m.ClusterTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterTemplate") diff --git a/cdp-sdk-go/gen/datahub/models/create_custom_configurations_request.go b/cdp-sdk-go/gen/datahub/models/create_custom_configurations_request.go index 6374bade..9f85cd1f 100644 --- a/cdp-sdk-go/gen/datahub/models/create_custom_configurations_request.go +++ b/cdp-sdk-go/gen/datahub/models/create_custom_configurations_request.go @@ -105,6 +105,11 @@ func (m *CreateCustomConfigurationsRequest) contextValidateConfigurations(ctx co for i := 0; i < len(m.Configurations); i++ { if m.Configurations[i] != nil { + + if swag.IsZero(m.Configurations[i]) { // not required + return nil + } + if err := m.Configurations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configurations" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/create_custom_configurations_response.go b/cdp-sdk-go/gen/datahub/models/create_custom_configurations_response.go index 2b879668..313b8a1f 100644 --- a/cdp-sdk-go/gen/datahub/models/create_custom_configurations_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_custom_configurations_response.go @@ -75,6 +75,7 @@ func (m *CreateCustomConfigurationsResponse) ContextValidate(ctx context.Context func (m *CreateCustomConfigurationsResponse) contextValidateCustomConfigurations(ctx context.Context, formats strfmt.Registry) error { if m.CustomConfigurations != nil { + if err := m.CustomConfigurations.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customConfigurations") diff --git a/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_request.go b/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_request.go index 9a47a0ca..1e2fdc65 100644 --- a/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_request.go +++ b/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_request.go @@ -252,6 +252,11 @@ func (m *CreateGCPClusterRequest) ContextValidate(ctx context.Context, formats s func (m *CreateGCPClusterRequest) contextValidateClusterExtension(ctx context.Context, formats strfmt.Registry) error { if m.ClusterExtension != nil { + + if swag.IsZero(m.ClusterExtension) { // not required + return nil + } + if err := m.ClusterExtension.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterExtension") @@ -267,6 +272,10 @@ func (m *CreateGCPClusterRequest) contextValidateClusterExtension(ctx context.Co func (m *CreateGCPClusterRequest) contextValidateDatahubDatabase(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.DatahubDatabase) { // not required + return nil + } + if err := m.DatahubDatabase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datahubDatabase") @@ -282,6 +291,11 @@ func (m *CreateGCPClusterRequest) contextValidateDatahubDatabase(ctx context.Con func (m *CreateGCPClusterRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -300,6 +314,11 @@ func (m *CreateGCPClusterRequest) contextValidateInstanceGroups(ctx context.Cont for i := 0; i < len(m.InstanceGroups); i++ { if m.InstanceGroups[i] != nil { + + if swag.IsZero(m.InstanceGroups[i]) { // not required + return nil + } + if err := m.InstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroups" + "." + strconv.Itoa(i)) @@ -320,6 +339,11 @@ func (m *CreateGCPClusterRequest) contextValidateTags(ctx context.Context, forma for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_response.go b/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_response.go index e9f2fb8e..cfd6e1ee 100644 --- a/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_g_c_p_cluster_response.go @@ -75,6 +75,7 @@ func (m *CreateGCPClusterResponse) ContextValidate(ctx context.Context, formats func (m *CreateGCPClusterResponse) contextValidateCluster(ctx context.Context, formats strfmt.Registry) error { if m.Cluster != nil { + if err := m.Cluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster") diff --git a/cdp-sdk-go/gen/datahub/models/create_recipe_response.go b/cdp-sdk-go/gen/datahub/models/create_recipe_response.go index 6c628c15..973cc4f2 100644 --- a/cdp-sdk-go/gen/datahub/models/create_recipe_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_recipe_response.go @@ -75,6 +75,7 @@ func (m *CreateRecipeResponse) ContextValidate(ctx context.Context, formats strf func (m *CreateRecipeResponse) contextValidateRecipe(ctx context.Context, formats strfmt.Registry) error { if m.Recipe != nil { + if err := m.Recipe.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("recipe") diff --git a/cdp-sdk-go/gen/datahub/models/custom_configurations.go b/cdp-sdk-go/gen/datahub/models/custom_configurations.go index 12c4fada..4ff657d4 100644 --- a/cdp-sdk-go/gen/datahub/models/custom_configurations.go +++ b/cdp-sdk-go/gen/datahub/models/custom_configurations.go @@ -125,6 +125,11 @@ func (m *CustomConfigurations) contextValidateConfigurations(ctx context.Context for i := 0; i < len(m.Configurations); i++ { if m.Configurations[i] != nil { + + if swag.IsZero(m.Configurations[i]) { // not required + return nil + } + if err := m.Configurations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configurations" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/datahub_diagnostics_collection_response.go b/cdp-sdk-go/gen/datahub/models/datahub_diagnostics_collection_response.go index 212c2cfa..62a9862a 100644 --- a/cdp-sdk-go/gen/datahub/models/datahub_diagnostics_collection_response.go +++ b/cdp-sdk-go/gen/datahub/models/datahub_diagnostics_collection_response.go @@ -159,6 +159,11 @@ func (m *DatahubDiagnosticsCollectionResponse) ContextValidate(ctx context.Conte func (m *DatahubDiagnosticsCollectionResponse) contextValidateCollectionDetails(ctx context.Context, formats strfmt.Registry) error { if m.CollectionDetails != nil { + + if swag.IsZero(m.CollectionDetails) { // not required + return nil + } + if err := m.CollectionDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("collectionDetails") diff --git a/cdp-sdk-go/gen/datahub/models/delete_cluster_definitions_response.go b/cdp-sdk-go/gen/datahub/models/delete_cluster_definitions_response.go index 296811d4..b64d7b95 100644 --- a/cdp-sdk-go/gen/datahub/models/delete_cluster_definitions_response.go +++ b/cdp-sdk-go/gen/datahub/models/delete_cluster_definitions_response.go @@ -85,6 +85,11 @@ func (m *DeleteClusterDefinitionsResponse) contextValidateClusterDefinitions(ctx for i := 0; i < len(m.ClusterDefinitions); i++ { if m.ClusterDefinitions[i] != nil { + + if swag.IsZero(m.ClusterDefinitions[i]) { // not required + return nil + } + if err := m.ClusterDefinitions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterDefinitions" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/delete_cluster_templates_response.go b/cdp-sdk-go/gen/datahub/models/delete_cluster_templates_response.go index 91471035..7b8cfdb6 100644 --- a/cdp-sdk-go/gen/datahub/models/delete_cluster_templates_response.go +++ b/cdp-sdk-go/gen/datahub/models/delete_cluster_templates_response.go @@ -85,6 +85,11 @@ func (m *DeleteClusterTemplatesResponse) contextValidateClusterTemplates(ctx con for i := 0; i < len(m.ClusterTemplates); i++ { if m.ClusterTemplates[i] != nil { + + if swag.IsZero(m.ClusterTemplates[i]) { // not required + return nil + } + if err := m.ClusterTemplates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterTemplates" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/delete_custom_configurations_response.go b/cdp-sdk-go/gen/datahub/models/delete_custom_configurations_response.go index 79285802..d0558b97 100644 --- a/cdp-sdk-go/gen/datahub/models/delete_custom_configurations_response.go +++ b/cdp-sdk-go/gen/datahub/models/delete_custom_configurations_response.go @@ -85,6 +85,11 @@ func (m *DeleteCustomConfigurationsResponse) contextValidateCustomConfigurations for i := 0; i < len(m.CustomConfigurations); i++ { if m.CustomConfigurations[i] != nil { + + if swag.IsZero(m.CustomConfigurations[i]) { // not required + return nil + } + if err := m.CustomConfigurations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customConfigurations" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/delete_instances_response.go b/cdp-sdk-go/gen/datahub/models/delete_instances_response.go index 8fadb9a5..fa49106f 100644 --- a/cdp-sdk-go/gen/datahub/models/delete_instances_response.go +++ b/cdp-sdk-go/gen/datahub/models/delete_instances_response.go @@ -75,6 +75,7 @@ func (m *DeleteInstancesResponse) ContextValidate(ctx context.Context, formats s func (m *DeleteInstancesResponse) contextValidateCluster(ctx context.Context, formats strfmt.Registry) error { if m.Cluster != nil { + if err := m.Cluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster") diff --git a/cdp-sdk-go/gen/datahub/models/delete_recipes_response.go b/cdp-sdk-go/gen/datahub/models/delete_recipes_response.go index 686107f2..1d6b247c 100644 --- a/cdp-sdk-go/gen/datahub/models/delete_recipes_response.go +++ b/cdp-sdk-go/gen/datahub/models/delete_recipes_response.go @@ -85,6 +85,11 @@ func (m *DeleteRecipesResponse) contextValidateRecipes(ctx context.Context, form for i := 0; i < len(m.Recipes); i++ { if m.Recipes[i] != nil { + + if swag.IsZero(m.Recipes[i]) { // not required + return nil + } + if err := m.Recipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("recipes" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/describe_auto_scale_rules_response.go b/cdp-sdk-go/gen/datahub/models/describe_auto_scale_rules_response.go index 72cd9cbb..fd36f11c 100644 --- a/cdp-sdk-go/gen/datahub/models/describe_auto_scale_rules_response.go +++ b/cdp-sdk-go/gen/datahub/models/describe_auto_scale_rules_response.go @@ -72,6 +72,11 @@ func (m *DescribeAutoScaleRulesResponse) ContextValidate(ctx context.Context, fo func (m *DescribeAutoScaleRulesResponse) contextValidateAutoScaleRules(ctx context.Context, formats strfmt.Registry) error { if m.AutoScaleRules != nil { + + if swag.IsZero(m.AutoScaleRules) { // not required + return nil + } + if err := m.AutoScaleRules.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoScaleRules") diff --git a/cdp-sdk-go/gen/datahub/models/describe_cluster_definition_response.go b/cdp-sdk-go/gen/datahub/models/describe_cluster_definition_response.go index 385fe286..b2c79825 100644 --- a/cdp-sdk-go/gen/datahub/models/describe_cluster_definition_response.go +++ b/cdp-sdk-go/gen/datahub/models/describe_cluster_definition_response.go @@ -75,6 +75,7 @@ func (m *DescribeClusterDefinitionResponse) ContextValidate(ctx context.Context, func (m *DescribeClusterDefinitionResponse) contextValidateClusterDefinition(ctx context.Context, formats strfmt.Registry) error { if m.ClusterDefinition != nil { + if err := m.ClusterDefinition.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterDefinition") diff --git a/cdp-sdk-go/gen/datahub/models/describe_cluster_response.go b/cdp-sdk-go/gen/datahub/models/describe_cluster_response.go index 17aab991..da97a642 100644 --- a/cdp-sdk-go/gen/datahub/models/describe_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/describe_cluster_response.go @@ -75,6 +75,7 @@ func (m *DescribeClusterResponse) ContextValidate(ctx context.Context, formats s func (m *DescribeClusterResponse) contextValidateCluster(ctx context.Context, formats strfmt.Registry) error { if m.Cluster != nil { + if err := m.Cluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster") diff --git a/cdp-sdk-go/gen/datahub/models/describe_cluster_template_response.go b/cdp-sdk-go/gen/datahub/models/describe_cluster_template_response.go index 2654e940..6c089de2 100644 --- a/cdp-sdk-go/gen/datahub/models/describe_cluster_template_response.go +++ b/cdp-sdk-go/gen/datahub/models/describe_cluster_template_response.go @@ -75,6 +75,7 @@ func (m *DescribeClusterTemplateResponse) ContextValidate(ctx context.Context, f func (m *DescribeClusterTemplateResponse) contextValidateClusterTemplate(ctx context.Context, formats strfmt.Registry) error { if m.ClusterTemplate != nil { + if err := m.ClusterTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterTemplate") diff --git a/cdp-sdk-go/gen/datahub/models/describe_custom_configurations_response.go b/cdp-sdk-go/gen/datahub/models/describe_custom_configurations_response.go index 401a3498..ba1dd7ef 100644 --- a/cdp-sdk-go/gen/datahub/models/describe_custom_configurations_response.go +++ b/cdp-sdk-go/gen/datahub/models/describe_custom_configurations_response.go @@ -75,6 +75,7 @@ func (m *DescribeCustomConfigurationsResponse) ContextValidate(ctx context.Conte func (m *DescribeCustomConfigurationsResponse) contextValidateCustomConfigurations(ctx context.Context, formats strfmt.Registry) error { if m.CustomConfigurations != nil { + if err := m.CustomConfigurations.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customConfigurations") diff --git a/cdp-sdk-go/gen/datahub/models/describe_recipe_response.go b/cdp-sdk-go/gen/datahub/models/describe_recipe_response.go index ca91b004..0d84a457 100644 --- a/cdp-sdk-go/gen/datahub/models/describe_recipe_response.go +++ b/cdp-sdk-go/gen/datahub/models/describe_recipe_response.go @@ -75,6 +75,7 @@ func (m *DescribeRecipeResponse) ContextValidate(ctx context.Context, formats st func (m *DescribeRecipeResponse) contextValidateRecipe(ctx context.Context, formats strfmt.Registry) error { if m.Recipe != nil { + if err := m.Recipe.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("recipe") diff --git a/cdp-sdk-go/gen/datahub/models/endpoints.go b/cdp-sdk-go/gen/datahub/models/endpoints.go index 7d1bbcae..57a4f71e 100644 --- a/cdp-sdk-go/gen/datahub/models/endpoints.go +++ b/cdp-sdk-go/gen/datahub/models/endpoints.go @@ -85,6 +85,11 @@ func (m *Endpoints) contextValidateEndpoints(ctx context.Context, formats strfmt for i := 0; i < len(m.Endpoints); i++ { if m.Endpoints[i] != nil { + + if swag.IsZero(m.Endpoints[i]) { // not required + return nil + } + if err := m.Endpoints[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("endpoints" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/g_c_p_instance_group_request.go b/cdp-sdk-go/gen/datahub/models/g_c_p_instance_group_request.go index 905aa08d..ca450cc4 100644 --- a/cdp-sdk-go/gen/datahub/models/g_c_p_instance_group_request.go +++ b/cdp-sdk-go/gen/datahub/models/g_c_p_instance_group_request.go @@ -176,6 +176,11 @@ func (m *GCPInstanceGroupRequest) contextValidateAttachedVolumeConfiguration(ctx for i := 0; i < len(m.AttachedVolumeConfiguration); i++ { if m.AttachedVolumeConfiguration[i] != nil { + + if swag.IsZero(m.AttachedVolumeConfiguration[i]) { // not required + return nil + } + if err := m.AttachedVolumeConfiguration[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attachedVolumeConfiguration" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/get_cluster_host_status_response.go b/cdp-sdk-go/gen/datahub/models/get_cluster_host_status_response.go index 641c28f8..d1215e2c 100644 --- a/cdp-sdk-go/gen/datahub/models/get_cluster_host_status_response.go +++ b/cdp-sdk-go/gen/datahub/models/get_cluster_host_status_response.go @@ -85,6 +85,11 @@ func (m *GetClusterHostStatusResponse) contextValidateHosts(ctx context.Context, for i := 0; i < len(m.Hosts); i++ { if m.Hosts[i] != nil { + + if swag.IsZero(m.Hosts[i]) { // not required + return nil + } + if err := m.Hosts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hosts" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/get_cluster_service_status_response.go b/cdp-sdk-go/gen/datahub/models/get_cluster_service_status_response.go index 81d0b89b..ec13fe21 100644 --- a/cdp-sdk-go/gen/datahub/models/get_cluster_service_status_response.go +++ b/cdp-sdk-go/gen/datahub/models/get_cluster_service_status_response.go @@ -85,6 +85,11 @@ func (m *GetClusterServiceStatusResponse) contextValidateServices(ctx context.Co for i := 0; i < len(m.Services); i++ { if m.Services[i] != nil { + + if swag.IsZero(m.Services[i]) { // not required + return nil + } + if err := m.Services[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("services" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/get_datahub_log_descriptors_response.go b/cdp-sdk-go/gen/datahub/models/get_datahub_log_descriptors_response.go index be07ea7d..2d06dc86 100644 --- a/cdp-sdk-go/gen/datahub/models/get_datahub_log_descriptors_response.go +++ b/cdp-sdk-go/gen/datahub/models/get_datahub_log_descriptors_response.go @@ -82,6 +82,11 @@ func (m *GetDatahubLogDescriptorsResponse) contextValidateLogs(ctx context.Conte for i := 0; i < len(m.Logs); i++ { if m.Logs[i] != nil { + + if swag.IsZero(m.Logs[i]) { // not required + return nil + } + if err := m.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/image_info.go b/cdp-sdk-go/gen/datahub/models/image_info.go index f0c5d025..698eefd0 100644 --- a/cdp-sdk-go/gen/datahub/models/image_info.go +++ b/cdp-sdk-go/gen/datahub/models/image_info.go @@ -84,6 +84,11 @@ func (m *ImageInfo) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *ImageInfo) contextValidateComponentVersions(ctx context.Context, formats strfmt.Registry) error { if m.ComponentVersions != nil { + + if swag.IsZero(m.ComponentVersions) { // not required + return nil + } + if err := m.ComponentVersions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("componentVersions") diff --git a/cdp-sdk-go/gen/datahub/models/individual_schedule_request.go b/cdp-sdk-go/gen/datahub/models/individual_schedule_request.go index 1f39b9df..404102a8 100644 --- a/cdp-sdk-go/gen/datahub/models/individual_schedule_request.go +++ b/cdp-sdk-go/gen/datahub/models/individual_schedule_request.go @@ -126,6 +126,7 @@ func (m *IndividualScheduleRequest) ContextValidate(ctx context.Context, formats func (m *IndividualScheduleRequest) contextValidateConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.Configuration != nil { + if err := m.Configuration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration") @@ -250,6 +251,7 @@ func (m *IndividualScheduleRequestConfiguration) ContextValidate(ctx context.Con func (m *IndividualScheduleRequestConfiguration) contextValidateAction(ctx context.Context, formats strfmt.Registry) error { if m.Action != nil { + if err := m.Action.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration" + "." + "action") @@ -266,6 +268,7 @@ func (m *IndividualScheduleRequestConfiguration) contextValidateAction(ctx conte func (m *IndividualScheduleRequestConfiguration) contextValidateTrigger(ctx context.Context, formats strfmt.Registry) error { if m.Trigger != nil { + if err := m.Trigger.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration" + "." + "trigger") diff --git a/cdp-sdk-go/gen/datahub/models/individual_schedule_response.go b/cdp-sdk-go/gen/datahub/models/individual_schedule_response.go index 991844da..cfbe2d86 100644 --- a/cdp-sdk-go/gen/datahub/models/individual_schedule_response.go +++ b/cdp-sdk-go/gen/datahub/models/individual_schedule_response.go @@ -96,6 +96,7 @@ func (m *IndividualScheduleResponse) ContextValidate(ctx context.Context, format func (m *IndividualScheduleResponse) contextValidateConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.Configuration != nil { + if err := m.Configuration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration") @@ -220,6 +221,7 @@ func (m *IndividualScheduleResponseConfiguration) ContextValidate(ctx context.Co func (m *IndividualScheduleResponseConfiguration) contextValidateAction(ctx context.Context, formats strfmt.Registry) error { if m.Action != nil { + if err := m.Action.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration" + "." + "action") @@ -236,6 +238,7 @@ func (m *IndividualScheduleResponseConfiguration) contextValidateAction(ctx cont func (m *IndividualScheduleResponseConfiguration) contextValidateTrigger(ctx context.Context, formats strfmt.Registry) error { if m.Trigger != nil { + if err := m.Trigger.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration" + "." + "trigger") diff --git a/cdp-sdk-go/gen/datahub/models/instance_group.go b/cdp-sdk-go/gen/datahub/models/instance_group.go index 2da8d443..de344d65 100644 --- a/cdp-sdk-go/gen/datahub/models/instance_group.go +++ b/cdp-sdk-go/gen/datahub/models/instance_group.go @@ -102,6 +102,11 @@ func (m *InstanceGroup) contextValidateInstances(ctx context.Context, formats st for i := 0; i < len(m.Instances); i++ { if m.Instances[i] != nil { + + if swag.IsZero(m.Instances[i]) { // not required + return nil + } + if err := m.Instances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/instance_group_request.go b/cdp-sdk-go/gen/datahub/models/instance_group_request.go index ebdea4cf..f572dcb5 100644 --- a/cdp-sdk-go/gen/datahub/models/instance_group_request.go +++ b/cdp-sdk-go/gen/datahub/models/instance_group_request.go @@ -192,6 +192,11 @@ func (m *InstanceGroupRequest) contextValidateAttachedVolumeConfiguration(ctx co for i := 0; i < len(m.AttachedVolumeConfiguration); i++ { if m.AttachedVolumeConfiguration[i] != nil { + + if swag.IsZero(m.AttachedVolumeConfiguration[i]) { // not required + return nil + } + if err := m.AttachedVolumeConfiguration[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attachedVolumeConfiguration" + "." + strconv.Itoa(i)) @@ -210,6 +215,11 @@ func (m *InstanceGroupRequest) contextValidateAttachedVolumeConfiguration(ctx co func (m *InstanceGroupRequest) contextValidateVolumeEncryption(ctx context.Context, formats strfmt.Registry) error { if m.VolumeEncryption != nil { + + if swag.IsZero(m.VolumeEncryption) { // not required + return nil + } + if err := m.VolumeEncryption.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("volumeEncryption") diff --git a/cdp-sdk-go/gen/datahub/models/list_auto_scale_history_response.go b/cdp-sdk-go/gen/datahub/models/list_auto_scale_history_response.go index f8eb0ffe..ab57f7bc 100644 --- a/cdp-sdk-go/gen/datahub/models/list_auto_scale_history_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_auto_scale_history_response.go @@ -82,6 +82,11 @@ func (m *ListAutoScaleHistoryResponse) contextValidateHistoryEvents(ctx context. for i := 0; i < len(m.HistoryEvents); i++ { if m.HistoryEvents[i] != nil { + + if swag.IsZero(m.HistoryEvents[i]) { // not required + return nil + } + if err := m.HistoryEvents[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("historyEvents" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/list_cluster_definitions_response.go b/cdp-sdk-go/gen/datahub/models/list_cluster_definitions_response.go index 57710cab..11ce9626 100644 --- a/cdp-sdk-go/gen/datahub/models/list_cluster_definitions_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_cluster_definitions_response.go @@ -85,6 +85,11 @@ func (m *ListClusterDefinitionsResponse) contextValidateClusterDefinitions(ctx c for i := 0; i < len(m.ClusterDefinitions); i++ { if m.ClusterDefinitions[i] != nil { + + if swag.IsZero(m.ClusterDefinitions[i]) { // not required + return nil + } + if err := m.ClusterDefinitions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterDefinitions" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/list_cluster_lifecycle_events_response.go b/cdp-sdk-go/gen/datahub/models/list_cluster_lifecycle_events_response.go index d4f6f8b6..86ee2b50 100644 --- a/cdp-sdk-go/gen/datahub/models/list_cluster_lifecycle_events_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_cluster_lifecycle_events_response.go @@ -88,6 +88,11 @@ func (m *ListClusterLifecycleEventsResponse) contextValidateClusterEvents(ctx co for i := 0; i < len(m.ClusterEvents); i++ { if m.ClusterEvents[i] != nil { + + if swag.IsZero(m.ClusterEvents[i]) { // not required + return nil + } + if err := m.ClusterEvents[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterEvents" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/list_cluster_templates_response.go b/cdp-sdk-go/gen/datahub/models/list_cluster_templates_response.go index 7d5f5ebc..917c3ef6 100644 --- a/cdp-sdk-go/gen/datahub/models/list_cluster_templates_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_cluster_templates_response.go @@ -85,6 +85,11 @@ func (m *ListClusterTemplatesResponse) contextValidateClusterTemplates(ctx conte for i := 0; i < len(m.ClusterTemplates); i++ { if m.ClusterTemplates[i] != nil { + + if swag.IsZero(m.ClusterTemplates[i]) { // not required + return nil + } + if err := m.ClusterTemplates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterTemplates" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/list_clusters_response.go b/cdp-sdk-go/gen/datahub/models/list_clusters_response.go index 06e9e15f..1cbd734b 100644 --- a/cdp-sdk-go/gen/datahub/models/list_clusters_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_clusters_response.go @@ -85,6 +85,11 @@ func (m *ListClustersResponse) contextValidateClusters(ctx context.Context, form for i := 0; i < len(m.Clusters); i++ { if m.Clusters[i] != nil { + + if swag.IsZero(m.Clusters[i]) { // not required + return nil + } + if err := m.Clusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusters" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/list_custom_configurations_response.go b/cdp-sdk-go/gen/datahub/models/list_custom_configurations_response.go index e56a29d5..cdd7ef46 100644 --- a/cdp-sdk-go/gen/datahub/models/list_custom_configurations_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_custom_configurations_response.go @@ -88,6 +88,11 @@ func (m *ListCustomConfigurationsResponse) contextValidateCustomConfigurations(c for i := 0; i < len(m.CustomConfigurations); i++ { if m.CustomConfigurations[i] != nil { + + if swag.IsZero(m.CustomConfigurations[i]) { // not required + return nil + } + if err := m.CustomConfigurations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customConfigurations" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/list_datahub_diagnostics_response.go b/cdp-sdk-go/gen/datahub/models/list_datahub_diagnostics_response.go index c1f7aeea..dabfa34c 100644 --- a/cdp-sdk-go/gen/datahub/models/list_datahub_diagnostics_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_datahub_diagnostics_response.go @@ -82,6 +82,11 @@ func (m *ListDatahubDiagnosticsResponse) contextValidateCollections(ctx context. for i := 0; i < len(m.Collections); i++ { if m.Collections[i] != nil { + + if swag.IsZero(m.Collections[i]) { // not required + return nil + } + if err := m.Collections[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("collections" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/list_recipes_response.go b/cdp-sdk-go/gen/datahub/models/list_recipes_response.go index aed41674..6f43b579 100644 --- a/cdp-sdk-go/gen/datahub/models/list_recipes_response.go +++ b/cdp-sdk-go/gen/datahub/models/list_recipes_response.go @@ -85,6 +85,11 @@ func (m *ListRecipesResponse) contextValidateRecipes(ctx context.Context, format for i := 0; i < len(m.Recipes); i++ { if m.Recipes[i] != nil { + + if swag.IsZero(m.Recipes[i]) { // not required + return nil + } + if err := m.Recipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("recipes" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/prepare_cluster_upgrade_response.go b/cdp-sdk-go/gen/datahub/models/prepare_cluster_upgrade_response.go index 0c119ae6..535119f8 100644 --- a/cdp-sdk-go/gen/datahub/models/prepare_cluster_upgrade_response.go +++ b/cdp-sdk-go/gen/datahub/models/prepare_cluster_upgrade_response.go @@ -113,6 +113,11 @@ func (m *PrepareClusterUpgradeResponse) ContextValidate(ctx context.Context, for func (m *PrepareClusterUpgradeResponse) contextValidateCurrent(ctx context.Context, formats strfmt.Registry) error { if m.Current != nil { + + if swag.IsZero(m.Current) { // not required + return nil + } + if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") @@ -131,6 +136,11 @@ func (m *PrepareClusterUpgradeResponse) contextValidateUpgradeCandidates(ctx con for i := 0; i < len(m.UpgradeCandidates); i++ { if m.UpgradeCandidates[i] != nil { + + if swag.IsZero(m.UpgradeCandidates[i]) { // not required + return nil + } + if err := m.UpgradeCandidates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("upgradeCandidates" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/repair_cluster_request.go b/cdp-sdk-go/gen/datahub/models/repair_cluster_request.go index e88bb24f..cf1b6860 100644 --- a/cdp-sdk-go/gen/datahub/models/repair_cluster_request.go +++ b/cdp-sdk-go/gen/datahub/models/repair_cluster_request.go @@ -96,6 +96,11 @@ func (m *RepairClusterRequest) ContextValidate(ctx context.Context, formats strf func (m *RepairClusterRequest) contextValidateInstances(ctx context.Context, formats strfmt.Registry) error { if m.Instances != nil { + + if swag.IsZero(m.Instances) { // not required + return nil + } + if err := m.Instances.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances") diff --git a/cdp-sdk-go/gen/datahub/models/replace_recipes_request.go b/cdp-sdk-go/gen/datahub/models/replace_recipes_request.go index 66d8db3a..4fc51179 100644 --- a/cdp-sdk-go/gen/datahub/models/replace_recipes_request.go +++ b/cdp-sdk-go/gen/datahub/models/replace_recipes_request.go @@ -102,6 +102,11 @@ func (m *ReplaceRecipesRequest) contextValidateInstanceGroupRecipes(ctx context. for i := 0; i < len(m.InstanceGroupRecipes); i++ { if m.InstanceGroupRecipes[i] != nil { + + if swag.IsZero(m.InstanceGroupRecipes[i]) { // not required + return nil + } + if err := m.InstanceGroupRecipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroupRecipes" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/replace_recipes_response.go b/cdp-sdk-go/gen/datahub/models/replace_recipes_response.go index 66b8ccfd..ba17e6b9 100644 --- a/cdp-sdk-go/gen/datahub/models/replace_recipes_response.go +++ b/cdp-sdk-go/gen/datahub/models/replace_recipes_response.go @@ -119,6 +119,11 @@ func (m *ReplaceRecipesResponse) contextValidateAttachedRecipes(ctx context.Cont for i := 0; i < len(m.AttachedRecipes); i++ { if m.AttachedRecipes[i] != nil { + + if swag.IsZero(m.AttachedRecipes[i]) { // not required + return nil + } + if err := m.AttachedRecipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attachedRecipes" + "." + strconv.Itoa(i)) @@ -139,6 +144,11 @@ func (m *ReplaceRecipesResponse) contextValidateDetachedRecipes(ctx context.Cont for i := 0; i < len(m.DetachedRecipes); i++ { if m.DetachedRecipes[i] != nil { + + if swag.IsZero(m.DetachedRecipes[i]) { // not required + return nil + } + if err := m.DetachedRecipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("detachedRecipes" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/service_status.go b/cdp-sdk-go/gen/datahub/models/service_status.go index e4c62a37..1ed69044 100644 --- a/cdp-sdk-go/gen/datahub/models/service_status.go +++ b/cdp-sdk-go/gen/datahub/models/service_status.go @@ -91,6 +91,11 @@ func (m *ServiceStatus) contextValidateHealthChecks(ctx context.Context, formats for i := 0; i < len(m.HealthChecks); i++ { if m.HealthChecks[i] != nil { + + if swag.IsZero(m.HealthChecks[i]) { // not required + return nil + } + if err := m.HealthChecks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("healthChecks" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_request.go b/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_request.go index 2f4d0fc1..c49aa980 100644 --- a/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_request.go +++ b/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_request.go @@ -109,6 +109,7 @@ func (m *StartClusterVerticalScalingRequest) ContextValidate(ctx context.Context func (m *StartClusterVerticalScalingRequest) contextValidateInstanceTemplate(ctx context.Context, formats strfmt.Registry) error { if m.InstanceTemplate != nil { + if err := m.InstanceTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceTemplate") diff --git a/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_request.go b/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_request.go index 3e6fe280..8dee38ee 100644 --- a/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_request.go +++ b/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_request.go @@ -116,6 +116,11 @@ func (m *UpdateAutoScaleRulesRequest) contextValidateAutoScalePolicies(ctx conte for i := 0; i < len(m.AutoScalePolicies); i++ { if m.AutoScalePolicies[i] != nil { + + if swag.IsZero(m.AutoScalePolicies[i]) { // not required + return nil + } + if err := m.AutoScalePolicies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoScalePolicies" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_response.go b/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_response.go index 1954151a..91d67676 100644 --- a/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_response.go +++ b/cdp-sdk-go/gen/datahub/models/update_auto_scale_rules_response.go @@ -72,6 +72,11 @@ func (m *UpdateAutoScaleRulesResponse) ContextValidate(ctx context.Context, form func (m *UpdateAutoScaleRulesResponse) contextValidateAutoScaleRules(ctx context.Context, formats strfmt.Registry) error { if m.AutoScaleRules != nil { + + if swag.IsZero(m.AutoScaleRules) { // not required + return nil + } + if err := m.AutoScaleRules.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoScaleRules") diff --git a/cdp-sdk-go/gen/datahub/models/upgrade_cluster_response.go b/cdp-sdk-go/gen/datahub/models/upgrade_cluster_response.go index 243a1e86..2dc7db2e 100644 --- a/cdp-sdk-go/gen/datahub/models/upgrade_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/upgrade_cluster_response.go @@ -113,6 +113,11 @@ func (m *UpgradeClusterResponse) ContextValidate(ctx context.Context, formats st func (m *UpgradeClusterResponse) contextValidateCurrent(ctx context.Context, formats strfmt.Registry) error { if m.Current != nil { + + if swag.IsZero(m.Current) { // not required + return nil + } + if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") @@ -131,6 +136,11 @@ func (m *UpgradeClusterResponse) contextValidateUpgradeCandidates(ctx context.Co for i := 0; i < len(m.UpgradeCandidates); i++ { if m.UpgradeCandidates[i] != nil { + + if swag.IsZero(m.UpgradeCandidates[i]) { // not required + return nil + } + if err := m.UpgradeCandidates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("upgradeCandidates" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/admin_operations_backup_restore_state.go b/cdp-sdk-go/gen/datalake/models/admin_operations_backup_restore_state.go index e4836701..11972b47 100644 --- a/cdp-sdk-go/gen/datalake/models/admin_operations_backup_restore_state.go +++ b/cdp-sdk-go/gen/datalake/models/admin_operations_backup_restore_state.go @@ -171,6 +171,7 @@ func (m *AdminOperationsBackupRestoreState) ContextValidate(ctx context.Context, func (m *AdminOperationsBackupRestoreState) contextValidatePrecheckStoragePermission(ctx context.Context, formats strfmt.Registry) error { if m.PrecheckStoragePermission != nil { + if err := m.PrecheckStoragePermission.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("precheckStoragePermission") @@ -187,6 +188,7 @@ func (m *AdminOperationsBackupRestoreState) contextValidatePrecheckStoragePermis func (m *AdminOperationsBackupRestoreState) contextValidateRangerAuditCollectionValidation(ctx context.Context, formats strfmt.Registry) error { if m.RangerAuditCollectionValidation != nil { + if err := m.RangerAuditCollectionValidation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rangerAuditCollectionValidation") @@ -203,6 +205,7 @@ func (m *AdminOperationsBackupRestoreState) contextValidateRangerAuditCollection func (m *AdminOperationsBackupRestoreState) contextValidateStartServices(ctx context.Context, formats strfmt.Registry) error { if m.StartServices != nil { + if err := m.StartServices.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("startServices") @@ -219,6 +222,7 @@ func (m *AdminOperationsBackupRestoreState) contextValidateStartServices(ctx con func (m *AdminOperationsBackupRestoreState) contextValidateStopServices(ctx context.Context, formats strfmt.Registry) error { if m.StopServices != nil { + if err := m.StopServices.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stopServices") diff --git a/cdp-sdk-go/gen/datalake/models/backup_datalake_response.go b/cdp-sdk-go/gen/datalake/models/backup_datalake_response.go index cfc06d50..0eb9b241 100644 --- a/cdp-sdk-go/gen/datalake/models/backup_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/backup_datalake_response.go @@ -220,6 +220,7 @@ func (m *BackupDatalakeResponse) ContextValidate(ctx context.Context, formats st func (m *BackupDatalakeResponse) contextValidateOperationStates(ctx context.Context, formats strfmt.Registry) error { if m.OperationStates != nil { + if err := m.OperationStates.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationStates") diff --git a/cdp-sdk-go/gen/datalake/models/backup_datalake_status_response.go b/cdp-sdk-go/gen/datalake/models/backup_datalake_status_response.go index 3d7a29ff..1427e0f4 100644 --- a/cdp-sdk-go/gen/datalake/models/backup_datalake_status_response.go +++ b/cdp-sdk-go/gen/datalake/models/backup_datalake_status_response.go @@ -220,6 +220,7 @@ func (m *BackupDatalakeStatusResponse) ContextValidate(ctx context.Context, form func (m *BackupDatalakeStatusResponse) contextValidateOperationStates(ctx context.Context, formats strfmt.Registry) error { if m.OperationStates != nil { + if err := m.OperationStates.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationStates") diff --git a/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_request.go b/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_request.go index 68af44eb..9cd1bad6 100644 --- a/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_request.go +++ b/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_request.go @@ -317,6 +317,11 @@ func (m *CollectDatalakeDiagnosticsRequest) contextValidateAdditionalLogs(ctx co for i := 0; i < len(m.AdditionalLogs); i++ { if m.AdditionalLogs[i] != nil { + + if swag.IsZero(m.AdditionalLogs[i]) { // not required + return nil + } + if err := m.AdditionalLogs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("additionalLogs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_request.go b/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_request.go index 76498483..9b090b2a 100644 --- a/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_request.go +++ b/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_request.go @@ -301,6 +301,7 @@ func (m *CreateAWSDatalakeRequest) ContextValidate(ctx context.Context, formats func (m *CreateAWSDatalakeRequest) contextValidateCloudProviderConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.CloudProviderConfiguration != nil { + if err := m.CloudProviderConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cloudProviderConfiguration") @@ -319,6 +320,11 @@ func (m *CreateAWSDatalakeRequest) contextValidateCustomInstanceGroups(ctx conte for i := 0; i < len(m.CustomInstanceGroups); i++ { if m.CustomInstanceGroups[i] != nil { + + if swag.IsZero(m.CustomInstanceGroups[i]) { // not required + return nil + } + if err := m.CustomInstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customInstanceGroups" + "." + strconv.Itoa(i)) @@ -337,6 +343,11 @@ func (m *CreateAWSDatalakeRequest) contextValidateCustomInstanceGroups(ctx conte func (m *CreateAWSDatalakeRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -355,6 +366,11 @@ func (m *CreateAWSDatalakeRequest) contextValidateRecipes(ctx context.Context, f for i := 0; i < len(m.Recipes); i++ { if m.Recipes[i] != nil { + + if swag.IsZero(m.Recipes[i]) { // not required + return nil + } + if err := m.Recipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("recipes" + "." + strconv.Itoa(i)) @@ -372,6 +388,10 @@ func (m *CreateAWSDatalakeRequest) contextValidateRecipes(ctx context.Context, f func (m *CreateAWSDatalakeRequest) contextValidateScale(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Scale) { // not required + return nil + } + if err := m.Scale.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scale") @@ -389,6 +409,11 @@ func (m *CreateAWSDatalakeRequest) contextValidateTags(ctx context.Context, form for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_response.go b/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_response.go index 786d982f..2460cd76 100644 --- a/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/create_a_w_s_datalake_response.go @@ -75,6 +75,7 @@ func (m *CreateAWSDatalakeResponse) ContextValidate(ctx context.Context, formats func (m *CreateAWSDatalakeResponse) contextValidateDatalake(ctx context.Context, formats strfmt.Registry) error { if m.Datalake != nil { + if err := m.Datalake.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datalake") diff --git a/cdp-sdk-go/gen/datalake/models/create_azure_datalake_request.go b/cdp-sdk-go/gen/datalake/models/create_azure_datalake_request.go index 7c4b2cd1..a6c10370 100644 --- a/cdp-sdk-go/gen/datalake/models/create_azure_datalake_request.go +++ b/cdp-sdk-go/gen/datalake/models/create_azure_datalake_request.go @@ -326,6 +326,7 @@ func (m *CreateAzureDatalakeRequest) ContextValidate(ctx context.Context, format func (m *CreateAzureDatalakeRequest) contextValidateCloudProviderConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.CloudProviderConfiguration != nil { + if err := m.CloudProviderConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cloudProviderConfiguration") @@ -344,6 +345,11 @@ func (m *CreateAzureDatalakeRequest) contextValidateCustomInstanceGroups(ctx con for i := 0; i < len(m.CustomInstanceGroups); i++ { if m.CustomInstanceGroups[i] != nil { + + if swag.IsZero(m.CustomInstanceGroups[i]) { // not required + return nil + } + if err := m.CustomInstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customInstanceGroups" + "." + strconv.Itoa(i)) @@ -362,6 +368,11 @@ func (m *CreateAzureDatalakeRequest) contextValidateCustomInstanceGroups(ctx con func (m *CreateAzureDatalakeRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -377,6 +388,10 @@ func (m *CreateAzureDatalakeRequest) contextValidateImage(ctx context.Context, f func (m *CreateAzureDatalakeRequest) contextValidateLoadBalancerSku(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.LoadBalancerSku) { // not required + return nil + } + if err := m.LoadBalancerSku.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("loadBalancerSku") @@ -394,6 +409,11 @@ func (m *CreateAzureDatalakeRequest) contextValidateRecipes(ctx context.Context, for i := 0; i < len(m.Recipes); i++ { if m.Recipes[i] != nil { + + if swag.IsZero(m.Recipes[i]) { // not required + return nil + } + if err := m.Recipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("recipes" + "." + strconv.Itoa(i)) @@ -411,6 +431,10 @@ func (m *CreateAzureDatalakeRequest) contextValidateRecipes(ctx context.Context, func (m *CreateAzureDatalakeRequest) contextValidateScale(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Scale) { // not required + return nil + } + if err := m.Scale.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scale") @@ -428,6 +452,11 @@ func (m *CreateAzureDatalakeRequest) contextValidateTags(ctx context.Context, fo for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/create_azure_datalake_response.go b/cdp-sdk-go/gen/datalake/models/create_azure_datalake_response.go index b2282528..bd4db425 100644 --- a/cdp-sdk-go/gen/datalake/models/create_azure_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/create_azure_datalake_response.go @@ -75,6 +75,7 @@ func (m *CreateAzureDatalakeResponse) ContextValidate(ctx context.Context, forma func (m *CreateAzureDatalakeResponse) contextValidateDatalake(ctx context.Context, formats strfmt.Registry) error { if m.Datalake != nil { + if err := m.Datalake.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datalake") diff --git a/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_request.go b/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_request.go index 2aaae6e3..0334b4d6 100644 --- a/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_request.go +++ b/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_request.go @@ -298,6 +298,7 @@ func (m *CreateGCPDatalakeRequest) ContextValidate(ctx context.Context, formats func (m *CreateGCPDatalakeRequest) contextValidateCloudProviderConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.CloudProviderConfiguration != nil { + if err := m.CloudProviderConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cloudProviderConfiguration") @@ -316,6 +317,11 @@ func (m *CreateGCPDatalakeRequest) contextValidateCustomInstanceGroups(ctx conte for i := 0; i < len(m.CustomInstanceGroups); i++ { if m.CustomInstanceGroups[i] != nil { + + if swag.IsZero(m.CustomInstanceGroups[i]) { // not required + return nil + } + if err := m.CustomInstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customInstanceGroups" + "." + strconv.Itoa(i)) @@ -334,6 +340,11 @@ func (m *CreateGCPDatalakeRequest) contextValidateCustomInstanceGroups(ctx conte func (m *CreateGCPDatalakeRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -352,6 +363,11 @@ func (m *CreateGCPDatalakeRequest) contextValidateRecipes(ctx context.Context, f for i := 0; i < len(m.Recipes); i++ { if m.Recipes[i] != nil { + + if swag.IsZero(m.Recipes[i]) { // not required + return nil + } + if err := m.Recipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("recipes" + "." + strconv.Itoa(i)) @@ -369,6 +385,10 @@ func (m *CreateGCPDatalakeRequest) contextValidateRecipes(ctx context.Context, f func (m *CreateGCPDatalakeRequest) contextValidateScale(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Scale) { // not required + return nil + } + if err := m.Scale.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scale") @@ -386,6 +406,11 @@ func (m *CreateGCPDatalakeRequest) contextValidateTags(ctx context.Context, form for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_response.go b/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_response.go index d7bd2b98..51685eb9 100644 --- a/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/create_g_c_p_datalake_response.go @@ -75,6 +75,7 @@ func (m *CreateGCPDatalakeResponse) ContextValidate(ctx context.Context, formats func (m *CreateGCPDatalakeResponse) contextValidateDatalake(ctx context.Context, formats strfmt.Registry) error { if m.Datalake != nil { + if err := m.Datalake.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datalake") diff --git a/cdp-sdk-go/gen/datalake/models/database_backup_restore_state.go b/cdp-sdk-go/gen/datalake/models/database_backup_restore_state.go index 50dd2e34..17d786cc 100644 --- a/cdp-sdk-go/gen/datalake/models/database_backup_restore_state.go +++ b/cdp-sdk-go/gen/datalake/models/database_backup_restore_state.go @@ -75,6 +75,7 @@ func (m *DatabaseBackupRestoreState) ContextValidate(ctx context.Context, format func (m *DatabaseBackupRestoreState) contextValidateDatabase(ctx context.Context, formats strfmt.Registry) error { if m.Database != nil { + if err := m.Database.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("database") diff --git a/cdp-sdk-go/gen/datalake/models/datalake_details.go b/cdp-sdk-go/gen/datalake/models/datalake_details.go index 9b2ec6de..7ee825ff 100644 --- a/cdp-sdk-go/gen/datalake/models/datalake_details.go +++ b/cdp-sdk-go/gen/datalake/models/datalake_details.go @@ -374,6 +374,11 @@ func (m *DatalakeDetails) ContextValidate(ctx context.Context, formats strfmt.Re func (m *DatalakeDetails) contextValidateAwsConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.AwsConfiguration != nil { + + if swag.IsZero(m.AwsConfiguration) { // not required + return nil + } + if err := m.AwsConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsConfiguration") @@ -390,6 +395,11 @@ func (m *DatalakeDetails) contextValidateAwsConfiguration(ctx context.Context, f func (m *DatalakeDetails) contextValidateAzureConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.AzureConfiguration != nil { + + if swag.IsZero(m.AzureConfiguration) { // not required + return nil + } + if err := m.AzureConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureConfiguration") @@ -406,6 +416,11 @@ func (m *DatalakeDetails) contextValidateAzureConfiguration(ctx context.Context, func (m *DatalakeDetails) contextValidateClouderaManager(ctx context.Context, formats strfmt.Registry) error { if m.ClouderaManager != nil { + + if swag.IsZero(m.ClouderaManager) { // not required + return nil + } + if err := m.ClouderaManager.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clouderaManager") @@ -422,6 +437,11 @@ func (m *DatalakeDetails) contextValidateClouderaManager(ctx context.Context, fo func (m *DatalakeDetails) contextValidateEndpoints(ctx context.Context, formats strfmt.Registry) error { if m.Endpoints != nil { + + if swag.IsZero(m.Endpoints) { // not required + return nil + } + if err := m.Endpoints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("endpoints") @@ -438,6 +458,11 @@ func (m *DatalakeDetails) contextValidateEndpoints(ctx context.Context, formats func (m *DatalakeDetails) contextValidateGcpConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.GcpConfiguration != nil { + + if swag.IsZero(m.GcpConfiguration) { // not required + return nil + } + if err := m.GcpConfiguration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("gcpConfiguration") @@ -456,6 +481,11 @@ func (m *DatalakeDetails) contextValidateInstanceGroups(ctx context.Context, for for i := 0; i < len(m.InstanceGroups); i++ { if m.InstanceGroups[i] != nil { + + if swag.IsZero(m.InstanceGroups[i]) { // not required + return nil + } + if err := m.InstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroups" + "." + strconv.Itoa(i)) @@ -476,6 +506,11 @@ func (m *DatalakeDetails) contextValidateProductVersions(ctx context.Context, fo for i := 0; i < len(m.ProductVersions); i++ { if m.ProductVersions[i] != nil { + + if swag.IsZero(m.ProductVersions[i]) { // not required + return nil + } + if err := m.ProductVersions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("productVersions" + "." + strconv.Itoa(i)) @@ -493,6 +528,10 @@ func (m *DatalakeDetails) contextValidateProductVersions(ctx context.Context, fo func (m *DatalakeDetails) contextValidateShape(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Shape) { // not required + return nil + } + if err := m.Shape.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shape") diff --git a/cdp-sdk-go/gen/datalake/models/datalake_diagnostics_collection_response.go b/cdp-sdk-go/gen/datalake/models/datalake_diagnostics_collection_response.go index f0412405..b8eaeb09 100644 --- a/cdp-sdk-go/gen/datalake/models/datalake_diagnostics_collection_response.go +++ b/cdp-sdk-go/gen/datalake/models/datalake_diagnostics_collection_response.go @@ -159,6 +159,11 @@ func (m *DatalakeDiagnosticsCollectionResponse) ContextValidate(ctx context.Cont func (m *DatalakeDiagnosticsCollectionResponse) contextValidateCollectionDetails(ctx context.Context, formats strfmt.Registry) error { if m.CollectionDetails != nil { + + if swag.IsZero(m.CollectionDetails) { // not required + return nil + } + if err := m.CollectionDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("collectionDetails") diff --git a/cdp-sdk-go/gen/datalake/models/describe_datalake_response.go b/cdp-sdk-go/gen/datalake/models/describe_datalake_response.go index 677fb1cf..76c9495a 100644 --- a/cdp-sdk-go/gen/datalake/models/describe_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/describe_datalake_response.go @@ -75,6 +75,7 @@ func (m *DescribeDatalakeResponse) ContextValidate(ctx context.Context, formats func (m *DescribeDatalakeResponse) contextValidateDatalake(ctx context.Context, formats strfmt.Registry) error { if m.Datalake != nil { + if err := m.Datalake.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datalake") diff --git a/cdp-sdk-go/gen/datalake/models/endpoints.go b/cdp-sdk-go/gen/datalake/models/endpoints.go index 5ad05540..08aa2255 100644 --- a/cdp-sdk-go/gen/datalake/models/endpoints.go +++ b/cdp-sdk-go/gen/datalake/models/endpoints.go @@ -85,6 +85,11 @@ func (m *Endpoints) contextValidateEndpoints(ctx context.Context, formats strfmt for i := 0; i < len(m.Endpoints); i++ { if m.Endpoints[i] != nil { + + if swag.IsZero(m.Endpoints[i]) { // not required + return nil + } + if err := m.Endpoints[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("endpoints" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/get_cluster_host_status_response.go b/cdp-sdk-go/gen/datalake/models/get_cluster_host_status_response.go index 641c28f8..d1215e2c 100644 --- a/cdp-sdk-go/gen/datalake/models/get_cluster_host_status_response.go +++ b/cdp-sdk-go/gen/datalake/models/get_cluster_host_status_response.go @@ -85,6 +85,11 @@ func (m *GetClusterHostStatusResponse) contextValidateHosts(ctx context.Context, for i := 0; i < len(m.Hosts); i++ { if m.Hosts[i] != nil { + + if swag.IsZero(m.Hosts[i]) { // not required + return nil + } + if err := m.Hosts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hosts" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/get_cluster_service_status_response.go b/cdp-sdk-go/gen/datalake/models/get_cluster_service_status_response.go index 81d0b89b..ec13fe21 100644 --- a/cdp-sdk-go/gen/datalake/models/get_cluster_service_status_response.go +++ b/cdp-sdk-go/gen/datalake/models/get_cluster_service_status_response.go @@ -85,6 +85,11 @@ func (m *GetClusterServiceStatusResponse) contextValidateServices(ctx context.Co for i := 0; i < len(m.Services); i++ { if m.Services[i] != nil { + + if swag.IsZero(m.Services[i]) { // not required + return nil + } + if err := m.Services[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("services" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/get_datalake_log_descriptors_response.go b/cdp-sdk-go/gen/datalake/models/get_datalake_log_descriptors_response.go index 55158d12..132b9b4b 100644 --- a/cdp-sdk-go/gen/datalake/models/get_datalake_log_descriptors_response.go +++ b/cdp-sdk-go/gen/datalake/models/get_datalake_log_descriptors_response.go @@ -82,6 +82,11 @@ func (m *GetDatalakeLogDescriptorsResponse) contextValidateLogs(ctx context.Cont for i := 0; i < len(m.Logs); i++ { if m.Logs[i] != nil { + + if swag.IsZero(m.Logs[i]) { // not required + return nil + } + if err := m.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/hbase_backup_restore_state.go b/cdp-sdk-go/gen/datalake/models/hbase_backup_restore_state.go index ba36c6b9..89fc70b0 100644 --- a/cdp-sdk-go/gen/datalake/models/hbase_backup_restore_state.go +++ b/cdp-sdk-go/gen/datalake/models/hbase_backup_restore_state.go @@ -107,6 +107,7 @@ func (m *HbaseBackupRestoreState) ContextValidate(ctx context.Context, formats s func (m *HbaseBackupRestoreState) contextValidateAtlasEntityAuditEventTable(ctx context.Context, formats strfmt.Registry) error { if m.AtlasEntityAuditEventTable != nil { + if err := m.AtlasEntityAuditEventTable.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("atlasEntityAuditEventTable") @@ -123,6 +124,7 @@ func (m *HbaseBackupRestoreState) contextValidateAtlasEntityAuditEventTable(ctx func (m *HbaseBackupRestoreState) contextValidateAtlasJanusTable(ctx context.Context, formats strfmt.Registry) error { if m.AtlasJanusTable != nil { + if err := m.AtlasJanusTable.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("atlasJanusTable") diff --git a/cdp-sdk-go/gen/datalake/models/image_info.go b/cdp-sdk-go/gen/datalake/models/image_info.go index 857a4ba0..71afa697 100644 --- a/cdp-sdk-go/gen/datalake/models/image_info.go +++ b/cdp-sdk-go/gen/datalake/models/image_info.go @@ -84,6 +84,11 @@ func (m *ImageInfo) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *ImageInfo) contextValidateComponentVersions(ctx context.Context, formats strfmt.Registry) error { if m.ComponentVersions != nil { + + if swag.IsZero(m.ComponentVersions) { // not required + return nil + } + if err := m.ComponentVersions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("componentVersions") diff --git a/cdp-sdk-go/gen/datalake/models/instance.go b/cdp-sdk-go/gen/datalake/models/instance.go index d89acee3..84701101 100644 --- a/cdp-sdk-go/gen/datalake/models/instance.go +++ b/cdp-sdk-go/gen/datalake/models/instance.go @@ -150,6 +150,10 @@ func (m *Instance) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Instance) contextValidateInstanceStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.InstanceStatus) { // not required + return nil + } + if err := m.InstanceStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceStatus") @@ -164,6 +168,10 @@ func (m *Instance) contextValidateInstanceStatus(ctx context.Context, formats st func (m *Instance) contextValidateInstanceTypeVal(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.InstanceTypeVal) { // not required + return nil + } + if err := m.InstanceTypeVal.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceTypeVal") diff --git a/cdp-sdk-go/gen/datalake/models/instance_group.go b/cdp-sdk-go/gen/datalake/models/instance_group.go index 48b9f5cf..bd16992b 100644 --- a/cdp-sdk-go/gen/datalake/models/instance_group.go +++ b/cdp-sdk-go/gen/datalake/models/instance_group.go @@ -102,6 +102,11 @@ func (m *InstanceGroup) contextValidateInstances(ctx context.Context, formats st for i := 0; i < len(m.Instances); i++ { if m.Instances[i] != nil { + + if swag.IsZero(m.Instances[i]) { // not required + return nil + } + if err := m.Instances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/internal_backup_restore_state.go b/cdp-sdk-go/gen/datalake/models/internal_backup_restore_state.go index a3994f4a..5a125a40 100644 --- a/cdp-sdk-go/gen/datalake/models/internal_backup_restore_state.go +++ b/cdp-sdk-go/gen/datalake/models/internal_backup_restore_state.go @@ -171,6 +171,7 @@ func (m *InternalBackupRestoreState) ContextValidate(ctx context.Context, format func (m *InternalBackupRestoreState) contextValidateAdminOperations(ctx context.Context, formats strfmt.Registry) error { if m.AdminOperations != nil { + if err := m.AdminOperations.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminOperations") @@ -187,6 +188,7 @@ func (m *InternalBackupRestoreState) contextValidateAdminOperations(ctx context. func (m *InternalBackupRestoreState) contextValidateDatabase(ctx context.Context, formats strfmt.Registry) error { if m.Database != nil { + if err := m.Database.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("database") @@ -203,6 +205,7 @@ func (m *InternalBackupRestoreState) contextValidateDatabase(ctx context.Context func (m *InternalBackupRestoreState) contextValidateHbase(ctx context.Context, formats strfmt.Registry) error { if m.Hbase != nil { + if err := m.Hbase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hbase") @@ -219,6 +222,7 @@ func (m *InternalBackupRestoreState) contextValidateHbase(ctx context.Context, f func (m *InternalBackupRestoreState) contextValidateSolr(ctx context.Context, formats strfmt.Registry) error { if m.Solr != nil { + if err := m.Solr.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("solr") diff --git a/cdp-sdk-go/gen/datalake/models/list_datalake_backups_response.go b/cdp-sdk-go/gen/datalake/models/list_datalake_backups_response.go index b7e9af49..17392042 100644 --- a/cdp-sdk-go/gen/datalake/models/list_datalake_backups_response.go +++ b/cdp-sdk-go/gen/datalake/models/list_datalake_backups_response.go @@ -82,6 +82,11 @@ func (m *ListDatalakeBackupsResponse) contextValidateBackups(ctx context.Context for i := 0; i < len(m.Backups); i++ { if m.Backups[i] != nil { + + if swag.IsZero(m.Backups[i]) { // not required + return nil + } + if err := m.Backups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backups" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/list_datalake_diagnostics_response.go b/cdp-sdk-go/gen/datalake/models/list_datalake_diagnostics_response.go index 34830ba9..1a9d92d2 100644 --- a/cdp-sdk-go/gen/datalake/models/list_datalake_diagnostics_response.go +++ b/cdp-sdk-go/gen/datalake/models/list_datalake_diagnostics_response.go @@ -82,6 +82,11 @@ func (m *ListDatalakeDiagnosticsResponse) contextValidateCollections(ctx context for i := 0; i < len(m.Collections); i++ { if m.Collections[i] != nil { + + if swag.IsZero(m.Collections[i]) { // not required + return nil + } + if err := m.Collections[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("collections" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/list_datalakes_response.go b/cdp-sdk-go/gen/datalake/models/list_datalakes_response.go index c9d27359..7ffc65fe 100644 --- a/cdp-sdk-go/gen/datalake/models/list_datalakes_response.go +++ b/cdp-sdk-go/gen/datalake/models/list_datalakes_response.go @@ -85,6 +85,11 @@ func (m *ListDatalakesResponse) contextValidateDatalakes(ctx context.Context, fo for i := 0; i < len(m.Datalakes); i++ { if m.Datalakes[i] != nil { + + if swag.IsZero(m.Datalakes[i]) { // not required + return nil + } + if err := m.Datalakes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datalakes" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/list_runtimes_response.go b/cdp-sdk-go/gen/datalake/models/list_runtimes_response.go index 52b63699..7af34786 100644 --- a/cdp-sdk-go/gen/datalake/models/list_runtimes_response.go +++ b/cdp-sdk-go/gen/datalake/models/list_runtimes_response.go @@ -85,6 +85,11 @@ func (m *ListRuntimesResponse) contextValidateVersions(ctx context.Context, form for i := 0; i < len(m.Versions); i++ { if m.Versions[i] != nil { + + if swag.IsZero(m.Versions[i]) { // not required + return nil + } + if err := m.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("versions" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/prepare_datalake_upgrade_response.go b/cdp-sdk-go/gen/datalake/models/prepare_datalake_upgrade_response.go index 18a57619..5744ff60 100644 --- a/cdp-sdk-go/gen/datalake/models/prepare_datalake_upgrade_response.go +++ b/cdp-sdk-go/gen/datalake/models/prepare_datalake_upgrade_response.go @@ -113,6 +113,11 @@ func (m *PrepareDatalakeUpgradeResponse) ContextValidate(ctx context.Context, fo func (m *PrepareDatalakeUpgradeResponse) contextValidateCurrent(ctx context.Context, formats strfmt.Registry) error { if m.Current != nil { + + if swag.IsZero(m.Current) { // not required + return nil + } + if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") @@ -131,6 +136,11 @@ func (m *PrepareDatalakeUpgradeResponse) contextValidateUpgradeCandidates(ctx co for i := 0; i < len(m.UpgradeCandidates); i++ { if m.UpgradeCandidates[i] != nil { + + if swag.IsZero(m.UpgradeCandidates[i]) { // not required + return nil + } + if err := m.UpgradeCandidates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("upgradeCandidates" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/repair_datalake_request.go b/cdp-sdk-go/gen/datalake/models/repair_datalake_request.go index ad780ac0..9a34ebe2 100644 --- a/cdp-sdk-go/gen/datalake/models/repair_datalake_request.go +++ b/cdp-sdk-go/gen/datalake/models/repair_datalake_request.go @@ -96,6 +96,11 @@ func (m *RepairDatalakeRequest) ContextValidate(ctx context.Context, formats str func (m *RepairDatalakeRequest) contextValidateInstances(ctx context.Context, formats strfmt.Registry) error { if m.Instances != nil { + + if swag.IsZero(m.Instances) { // not required + return nil + } + if err := m.Instances.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances") diff --git a/cdp-sdk-go/gen/datalake/models/replace_recipes_request.go b/cdp-sdk-go/gen/datalake/models/replace_recipes_request.go index 35127b71..46c69e0c 100644 --- a/cdp-sdk-go/gen/datalake/models/replace_recipes_request.go +++ b/cdp-sdk-go/gen/datalake/models/replace_recipes_request.go @@ -102,6 +102,11 @@ func (m *ReplaceRecipesRequest) contextValidateInstanceGroupRecipes(ctx context. for i := 0; i < len(m.InstanceGroupRecipes); i++ { if m.InstanceGroupRecipes[i] != nil { + + if swag.IsZero(m.InstanceGroupRecipes[i]) { // not required + return nil + } + if err := m.InstanceGroupRecipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroupRecipes" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/replace_recipes_response.go b/cdp-sdk-go/gen/datalake/models/replace_recipes_response.go index 66b8ccfd..ba17e6b9 100644 --- a/cdp-sdk-go/gen/datalake/models/replace_recipes_response.go +++ b/cdp-sdk-go/gen/datalake/models/replace_recipes_response.go @@ -119,6 +119,11 @@ func (m *ReplaceRecipesResponse) contextValidateAttachedRecipes(ctx context.Cont for i := 0; i < len(m.AttachedRecipes); i++ { if m.AttachedRecipes[i] != nil { + + if swag.IsZero(m.AttachedRecipes[i]) { // not required + return nil + } + if err := m.AttachedRecipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attachedRecipes" + "." + strconv.Itoa(i)) @@ -139,6 +144,11 @@ func (m *ReplaceRecipesResponse) contextValidateDetachedRecipes(ctx context.Cont for i := 0; i < len(m.DetachedRecipes); i++ { if m.DetachedRecipes[i] != nil { + + if swag.IsZero(m.DetachedRecipes[i]) { // not required + return nil + } + if err := m.DetachedRecipes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("detachedRecipes" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/restore_datalake_response.go b/cdp-sdk-go/gen/datalake/models/restore_datalake_response.go index 822fb037..f246e052 100644 --- a/cdp-sdk-go/gen/datalake/models/restore_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/restore_datalake_response.go @@ -237,6 +237,7 @@ func (m *RestoreDatalakeResponse) ContextValidate(ctx context.Context, formats s func (m *RestoreDatalakeResponse) contextValidateOperationStates(ctx context.Context, formats strfmt.Registry) error { if m.OperationStates != nil { + if err := m.OperationStates.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationStates") diff --git a/cdp-sdk-go/gen/datalake/models/restore_datalake_status_response.go b/cdp-sdk-go/gen/datalake/models/restore_datalake_status_response.go index f08c7b0a..037728f9 100644 --- a/cdp-sdk-go/gen/datalake/models/restore_datalake_status_response.go +++ b/cdp-sdk-go/gen/datalake/models/restore_datalake_status_response.go @@ -237,6 +237,7 @@ func (m *RestoreDatalakeStatusResponse) ContextValidate(ctx context.Context, for func (m *RestoreDatalakeStatusResponse) contextValidateOperationStates(ctx context.Context, formats strfmt.Registry) error { if m.OperationStates != nil { + if err := m.OperationStates.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationStates") diff --git a/cdp-sdk-go/gen/datalake/models/service_status.go b/cdp-sdk-go/gen/datalake/models/service_status.go index e4c62a37..1ed69044 100644 --- a/cdp-sdk-go/gen/datalake/models/service_status.go +++ b/cdp-sdk-go/gen/datalake/models/service_status.go @@ -91,6 +91,11 @@ func (m *ServiceStatus) contextValidateHealthChecks(ctx context.Context, formats for i := 0; i < len(m.HealthChecks); i++ { if m.HealthChecks[i] != nil { + + if swag.IsZero(m.HealthChecks[i]) { // not required + return nil + } + if err := m.HealthChecks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("healthChecks" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/datalake/models/solr_backup_restore_state.go b/cdp-sdk-go/gen/datalake/models/solr_backup_restore_state.go index ba4308d6..80538d6e 100644 --- a/cdp-sdk-go/gen/datalake/models/solr_backup_restore_state.go +++ b/cdp-sdk-go/gen/datalake/models/solr_backup_restore_state.go @@ -291,6 +291,7 @@ func (m *SolrBackupRestoreState) ContextValidate(ctx context.Context, formats st func (m *SolrBackupRestoreState) contextValidateEdgeIndexCollection(ctx context.Context, formats strfmt.Registry) error { if m.EdgeIndexCollection != nil { + if err := m.EdgeIndexCollection.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("edgeIndexCollection") @@ -307,6 +308,11 @@ func (m *SolrBackupRestoreState) contextValidateEdgeIndexCollection(ctx context. func (m *SolrBackupRestoreState) contextValidateEdgeIndexCollectionDelete(ctx context.Context, formats strfmt.Registry) error { if m.EdgeIndexCollectionDelete != nil { + + if swag.IsZero(m.EdgeIndexCollectionDelete) { // not required + return nil + } + if err := m.EdgeIndexCollectionDelete.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("edgeIndexCollectionDelete") @@ -323,6 +329,7 @@ func (m *SolrBackupRestoreState) contextValidateEdgeIndexCollectionDelete(ctx co func (m *SolrBackupRestoreState) contextValidateFulltextIndexCollection(ctx context.Context, formats strfmt.Registry) error { if m.FulltextIndexCollection != nil { + if err := m.FulltextIndexCollection.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("fulltextIndexCollection") @@ -339,6 +346,11 @@ func (m *SolrBackupRestoreState) contextValidateFulltextIndexCollection(ctx cont func (m *SolrBackupRestoreState) contextValidateFulltextIndexCollectionDelete(ctx context.Context, formats strfmt.Registry) error { if m.FulltextIndexCollectionDelete != nil { + + if swag.IsZero(m.FulltextIndexCollectionDelete) { // not required + return nil + } + if err := m.FulltextIndexCollectionDelete.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("fulltextIndexCollectionDelete") @@ -355,6 +367,7 @@ func (m *SolrBackupRestoreState) contextValidateFulltextIndexCollectionDelete(ct func (m *SolrBackupRestoreState) contextValidateRangerAuditsCollection(ctx context.Context, formats strfmt.Registry) error { if m.RangerAuditsCollection != nil { + if err := m.RangerAuditsCollection.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rangerAuditsCollection") @@ -371,6 +384,11 @@ func (m *SolrBackupRestoreState) contextValidateRangerAuditsCollection(ctx conte func (m *SolrBackupRestoreState) contextValidateRangerAuditsCollectionDelete(ctx context.Context, formats strfmt.Registry) error { if m.RangerAuditsCollectionDelete != nil { + + if swag.IsZero(m.RangerAuditsCollectionDelete) { // not required + return nil + } + if err := m.RangerAuditsCollectionDelete.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rangerAuditsCollectionDelete") @@ -387,6 +405,7 @@ func (m *SolrBackupRestoreState) contextValidateRangerAuditsCollectionDelete(ctx func (m *SolrBackupRestoreState) contextValidateVertexIndexCollection(ctx context.Context, formats strfmt.Registry) error { if m.VertexIndexCollection != nil { + if err := m.VertexIndexCollection.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vertexIndexCollection") @@ -403,6 +422,11 @@ func (m *SolrBackupRestoreState) contextValidateVertexIndexCollection(ctx contex func (m *SolrBackupRestoreState) contextValidateVertexIndexCollectionDelete(ctx context.Context, formats strfmt.Registry) error { if m.VertexIndexCollectionDelete != nil { + + if swag.IsZero(m.VertexIndexCollectionDelete) { // not required + return nil + } + if err := m.VertexIndexCollectionDelete.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vertexIndexCollectionDelete") diff --git a/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_request.go b/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_request.go index da0f5711..b774d17b 100644 --- a/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_request.go +++ b/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_request.go @@ -109,6 +109,7 @@ func (m *StartDatalakeVerticalScalingRequest) ContextValidate(ctx context.Contex func (m *StartDatalakeVerticalScalingRequest) contextValidateInstanceTemplate(ctx context.Context, formats strfmt.Registry) error { if m.InstanceTemplate != nil { + if err := m.InstanceTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceTemplate") diff --git a/cdp-sdk-go/gen/datalake/models/upgrade_datalake_response.go b/cdp-sdk-go/gen/datalake/models/upgrade_datalake_response.go index 055df6ae..71099174 100644 --- a/cdp-sdk-go/gen/datalake/models/upgrade_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/upgrade_datalake_response.go @@ -113,6 +113,11 @@ func (m *UpgradeDatalakeResponse) ContextValidate(ctx context.Context, formats s func (m *UpgradeDatalakeResponse) contextValidateCurrent(ctx context.Context, formats strfmt.Registry) error { if m.Current != nil { + + if swag.IsZero(m.Current) { // not required + return nil + } + if err := m.Current.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current") @@ -131,6 +136,11 @@ func (m *UpgradeDatalakeResponse) contextValidateUpgradeCandidates(ctx context.C for i := 0; i < len(m.UpgradeCandidates); i++ { if m.UpgradeCandidates[i] != nil { + + if swag.IsZero(m.UpgradeCandidates[i]) { // not required + return nil + } + if err := m.UpgradeCandidates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("upgradeCandidates" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/application_config_diff.go b/cdp-sdk-go/gen/dw/models/application_config_diff.go index b57f83c3..8b91d442 100644 --- a/cdp-sdk-go/gen/dw/models/application_config_diff.go +++ b/cdp-sdk-go/gen/dw/models/application_config_diff.go @@ -90,6 +90,11 @@ func (m *ApplicationConfigDiff) ContextValidate(ctx context.Context, formats str func (m *ApplicationConfigDiff) contextValidateConfigBlocksDiffs(ctx context.Context, formats strfmt.Registry) error { if m.ConfigBlocksDiffs != nil { + + if swag.IsZero(m.ConfigBlocksDiffs) { // not required + return nil + } + if err := m.ConfigBlocksDiffs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configBlocksDiffs") diff --git a/cdp-sdk-go/gen/dw/models/application_config_req.go b/cdp-sdk-go/gen/dw/models/application_config_req.go index fac67f3c..e230b413 100644 --- a/cdp-sdk-go/gen/dw/models/application_config_req.go +++ b/cdp-sdk-go/gen/dw/models/application_config_req.go @@ -82,6 +82,11 @@ func (m *ApplicationConfigReq) contextValidateConfigBlocks(ctx context.Context, for i := 0; i < len(m.ConfigBlocks); i++ { if m.ConfigBlocks[i] != nil { + + if swag.IsZero(m.ConfigBlocks[i]) { // not required + return nil + } + if err := m.ConfigBlocks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configBlocks" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/application_config_resp.go b/cdp-sdk-go/gen/dw/models/application_config_resp.go index eff77716..749c8666 100644 --- a/cdp-sdk-go/gen/dw/models/application_config_resp.go +++ b/cdp-sdk-go/gen/dw/models/application_config_resp.go @@ -82,6 +82,11 @@ func (m *ApplicationConfigResp) contextValidateConfigBlocks(ctx context.Context, for i := 0; i < len(m.ConfigBlocks); i++ { if m.ConfigBlocks[i] != nil { + + if swag.IsZero(m.ConfigBlocks[i]) { // not required + return nil + } + if err := m.ConfigBlocks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configBlocks" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/backup.go b/cdp-sdk-go/gen/dw/models/backup.go index d8678ed8..40239266 100644 --- a/cdp-sdk-go/gen/dw/models/backup.go +++ b/cdp-sdk-go/gen/dw/models/backup.go @@ -143,6 +143,11 @@ func (m *Backup) contextValidateErrors(ctx context.Context, formats strfmt.Regis for i := 0; i < len(m.Errors); i++ { if m.Errors[i] != nil { + + if swag.IsZero(m.Errors[i]) { // not required + return nil + } + if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) @@ -163,6 +168,11 @@ func (m *Backup) contextValidateWarnings(ctx context.Context, formats strfmt.Reg for i := 0; i < len(m.Warnings); i++ { if m.Warnings[i] != nil { + + if swag.IsZero(m.Warnings[i]) { // not required + return nil + } + if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/cluster_diagnostic_data_job.go b/cdp-sdk-go/gen/dw/models/cluster_diagnostic_data_job.go index 3d7e89eb..186130d1 100644 --- a/cdp-sdk-go/gen/dw/models/cluster_diagnostic_data_job.go +++ b/cdp-sdk-go/gen/dw/models/cluster_diagnostic_data_job.go @@ -119,6 +119,10 @@ func (m *ClusterDiagnosticDataJob) ContextValidate(ctx context.Context, formats func (m *ClusterDiagnosticDataJob) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/cdp-sdk-go/gen/dw/models/cluster_summary_response.go b/cdp-sdk-go/gen/dw/models/cluster_summary_response.go index aeb57347..3e4f670e 100644 --- a/cdp-sdk-go/gen/dw/models/cluster_summary_response.go +++ b/cdp-sdk-go/gen/dw/models/cluster_summary_response.go @@ -183,6 +183,11 @@ func (m *ClusterSummaryResponse) ContextValidate(ctx context.Context, formats st func (m *ClusterSummaryResponse) contextValidateAwsOptions(ctx context.Context, formats strfmt.Registry) error { if m.AwsOptions != nil { + + if swag.IsZero(m.AwsOptions) { // not required + return nil + } + if err := m.AwsOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsOptions") @@ -199,6 +204,11 @@ func (m *ClusterSummaryResponse) contextValidateAwsOptions(ctx context.Context, func (m *ClusterSummaryResponse) contextValidateAzureOptions(ctx context.Context, formats strfmt.Registry) error { if m.AzureOptions != nil { + + if swag.IsZero(m.AzureOptions) { // not required + return nil + } + if err := m.AzureOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureOptions") @@ -215,6 +225,11 @@ func (m *ClusterSummaryResponse) contextValidateAzureOptions(ctx context.Context func (m *ClusterSummaryResponse) contextValidateCreator(ctx context.Context, formats strfmt.Registry) error { if m.Creator != nil { + + if swag.IsZero(m.Creator) { // not required + return nil + } + if err := m.Creator.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("creator") diff --git a/cdp-sdk-go/gen/dw/models/config_block_diff.go b/cdp-sdk-go/gen/dw/models/config_block_diff.go index 212a4d4a..880e97f1 100644 --- a/cdp-sdk-go/gen/dw/models/config_block_diff.go +++ b/cdp-sdk-go/gen/dw/models/config_block_diff.go @@ -75,6 +75,11 @@ func (m *ConfigBlockDiff) ContextValidate(ctx context.Context, formats strfmt.Re func (m *ConfigBlockDiff) contextValidateContentDiff(ctx context.Context, formats strfmt.Registry) error { if m.ContentDiff != nil { + + if swag.IsZero(m.ContentDiff) { // not required + return nil + } + if err := m.ContentDiff.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("contentDiff") diff --git a/cdp-sdk-go/gen/dw/models/config_block_req.go b/cdp-sdk-go/gen/dw/models/config_block_req.go index 57b802b3..1e2c1703 100644 --- a/cdp-sdk-go/gen/dw/models/config_block_req.go +++ b/cdp-sdk-go/gen/dw/models/config_block_req.go @@ -160,6 +160,7 @@ func (m *ConfigBlockReq) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *ConfigBlockReq) contextValidateContent(ctx context.Context, formats strfmt.Registry) error { if m.Content != nil { + if err := m.Content.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("content") diff --git a/cdp-sdk-go/gen/dw/models/config_block_resp.go b/cdp-sdk-go/gen/dw/models/config_block_resp.go index 0d86d010..f2f7d5b2 100644 --- a/cdp-sdk-go/gen/dw/models/config_block_resp.go +++ b/cdp-sdk-go/gen/dw/models/config_block_resp.go @@ -142,6 +142,11 @@ func (m *ConfigBlockResp) ContextValidate(ctx context.Context, formats strfmt.Re func (m *ConfigBlockResp) contextValidateContent(ctx context.Context, formats strfmt.Registry) error { if m.Content != nil { + + if swag.IsZero(m.Content) { // not required + return nil + } + if err := m.Content.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("content") diff --git a/cdp-sdk-go/gen/dw/models/config_blocks_diffs.go b/cdp-sdk-go/gen/dw/models/config_blocks_diffs.go index 4006be47..d28615e5 100644 --- a/cdp-sdk-go/gen/dw/models/config_blocks_diffs.go +++ b/cdp-sdk-go/gen/dw/models/config_blocks_diffs.go @@ -211,6 +211,11 @@ func (m *ConfigBlocksDiffs) contextValidateAdded(ctx context.Context, formats st for i := 0; i < len(m.Added); i++ { if m.Added[i] != nil { + + if swag.IsZero(m.Added[i]) { // not required + return nil + } + if err := m.Added[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("added" + "." + strconv.Itoa(i)) @@ -231,6 +236,11 @@ func (m *ConfigBlocksDiffs) contextValidateChanged(ctx context.Context, formats for i := 0; i < len(m.Changed); i++ { if m.Changed[i] != nil { + + if swag.IsZero(m.Changed[i]) { // not required + return nil + } + if err := m.Changed[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("changed" + "." + strconv.Itoa(i)) @@ -251,6 +261,11 @@ func (m *ConfigBlocksDiffs) contextValidateRemoved(ctx context.Context, formats for i := 0; i < len(m.Removed); i++ { if m.Removed[i] != nil { + + if swag.IsZero(m.Removed[i]) { // not required + return nil + } + if err := m.Removed[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("removed" + "." + strconv.Itoa(i)) @@ -271,6 +286,11 @@ func (m *ConfigBlocksDiffs) contextValidateSame(ctx context.Context, formats str for i := 0; i < len(m.Same); i++ { if m.Same[i] != nil { + + if swag.IsZero(m.Same[i]) { // not required + return nil + } + if err := m.Same[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("same" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/config_content_diff.go b/cdp-sdk-go/gen/dw/models/config_content_diff.go index d4599970..06803ce6 100644 --- a/cdp-sdk-go/gen/dw/models/config_content_diff.go +++ b/cdp-sdk-go/gen/dw/models/config_content_diff.go @@ -72,6 +72,11 @@ func (m *ConfigContentDiff) ContextValidate(ctx context.Context, formats strfmt. func (m *ConfigContentDiff) contextValidateKeyValues(ctx context.Context, formats strfmt.Registry) error { if m.KeyValues != nil { + + if swag.IsZero(m.KeyValues) { // not required + return nil + } + if err := m.KeyValues.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("keyValues") diff --git a/cdp-sdk-go/gen/dw/models/create_cluster_diagnostic_data_job_request.go b/cdp-sdk-go/gen/dw/models/create_cluster_diagnostic_data_job_request.go index 582b88a8..e07c33a4 100644 --- a/cdp-sdk-go/gen/dw/models/create_cluster_diagnostic_data_job_request.go +++ b/cdp-sdk-go/gen/dw/models/create_cluster_diagnostic_data_job_request.go @@ -192,6 +192,11 @@ func (m *CreateClusterDiagnosticDataJobRequest) ContextValidate(ctx context.Cont func (m *CreateClusterDiagnosticDataJobRequest) contextValidateDownloadOptions(ctx context.Context, formats strfmt.Registry) error { if m.DownloadOptions != nil { + + if swag.IsZero(m.DownloadOptions) { // not required + return nil + } + if err := m.DownloadOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("downloadOptions") diff --git a/cdp-sdk-go/gen/dw/models/create_cluster_request.go b/cdp-sdk-go/gen/dw/models/create_cluster_request.go index ef8e29cf..a3c34d2f 100644 --- a/cdp-sdk-go/gen/dw/models/create_cluster_request.go +++ b/cdp-sdk-go/gen/dw/models/create_cluster_request.go @@ -204,6 +204,11 @@ func (m *CreateClusterRequest) ContextValidate(ctx context.Context, formats strf func (m *CreateClusterRequest) contextValidateAwsOptions(ctx context.Context, formats strfmt.Registry) error { if m.AwsOptions != nil { + + if swag.IsZero(m.AwsOptions) { // not required + return nil + } + if err := m.AwsOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsOptions") @@ -220,6 +225,11 @@ func (m *CreateClusterRequest) contextValidateAwsOptions(ctx context.Context, fo func (m *CreateClusterRequest) contextValidateAzureOptions(ctx context.Context, formats strfmt.Registry) error { if m.AzureOptions != nil { + + if swag.IsZero(m.AzureOptions) { // not required + return nil + } + if err := m.AzureOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureOptions") @@ -236,6 +246,11 @@ func (m *CreateClusterRequest) contextValidateAzureOptions(ctx context.Context, func (m *CreateClusterRequest) contextValidateCustomRegistryOptions(ctx context.Context, formats strfmt.Registry) error { if m.CustomRegistryOptions != nil { + + if swag.IsZero(m.CustomRegistryOptions) { // not required + return nil + } + if err := m.CustomRegistryOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customRegistryOptions") @@ -252,6 +267,11 @@ func (m *CreateClusterRequest) contextValidateCustomRegistryOptions(ctx context. func (m *CreateClusterRequest) contextValidatePrivateCloudOptions(ctx context.Context, formats strfmt.Registry) error { if m.PrivateCloudOptions != nil { + + if swag.IsZero(m.PrivateCloudOptions) { // not required + return nil + } + if err := m.PrivateCloudOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("privateCloudOptions") diff --git a/cdp-sdk-go/gen/dw/models/create_data_visualization_request.go b/cdp-sdk-go/gen/dw/models/create_data_visualization_request.go index 152e4e86..776c2396 100644 --- a/cdp-sdk-go/gen/dw/models/create_data_visualization_request.go +++ b/cdp-sdk-go/gen/dw/models/create_data_visualization_request.go @@ -115,6 +115,7 @@ func (m *CreateDataVisualizationRequest) ContextValidate(ctx context.Context, fo func (m *CreateDataVisualizationRequest) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") diff --git a/cdp-sdk-go/gen/dw/models/create_dbc_diagnostic_data_job_request.go b/cdp-sdk-go/gen/dw/models/create_dbc_diagnostic_data_job_request.go index 134ec57b..0bbfe8b5 100644 --- a/cdp-sdk-go/gen/dw/models/create_dbc_diagnostic_data_job_request.go +++ b/cdp-sdk-go/gen/dw/models/create_dbc_diagnostic_data_job_request.go @@ -209,6 +209,11 @@ func (m *CreateDbcDiagnosticDataJobRequest) ContextValidate(ctx context.Context, func (m *CreateDbcDiagnosticDataJobRequest) contextValidateDownloadOptions(ctx context.Context, formats strfmt.Registry) error { if m.DownloadOptions != nil { + + if swag.IsZero(m.DownloadOptions) { // not required + return nil + } + if err := m.DownloadOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("downloadOptions") diff --git a/cdp-sdk-go/gen/dw/models/create_vw_diagnostic_data_job_request.go b/cdp-sdk-go/gen/dw/models/create_vw_diagnostic_data_job_request.go index c1993efd..cbc0516f 100644 --- a/cdp-sdk-go/gen/dw/models/create_vw_diagnostic_data_job_request.go +++ b/cdp-sdk-go/gen/dw/models/create_vw_diagnostic_data_job_request.go @@ -239,6 +239,11 @@ func (m *CreateVwDiagnosticDataJobRequest) ContextValidate(ctx context.Context, func (m *CreateVwDiagnosticDataJobRequest) contextValidateHiveDownloadOptions(ctx context.Context, formats strfmt.Registry) error { if m.HiveDownloadOptions != nil { + + if swag.IsZero(m.HiveDownloadOptions) { // not required + return nil + } + if err := m.HiveDownloadOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hiveDownloadOptions") @@ -255,6 +260,11 @@ func (m *CreateVwDiagnosticDataJobRequest) contextValidateHiveDownloadOptions(ct func (m *CreateVwDiagnosticDataJobRequest) contextValidateImpalaDownloadOptions(ctx context.Context, formats strfmt.Registry) error { if m.ImpalaDownloadOptions != nil { + + if swag.IsZero(m.ImpalaDownloadOptions) { // not required + return nil + } + if err := m.ImpalaDownloadOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("impalaDownloadOptions") diff --git a/cdp-sdk-go/gen/dw/models/create_vw_request.go b/cdp-sdk-go/gen/dw/models/create_vw_request.go index 0d4719fd..ae45030b 100644 --- a/cdp-sdk-go/gen/dw/models/create_vw_request.go +++ b/cdp-sdk-go/gen/dw/models/create_vw_request.go @@ -390,6 +390,11 @@ func (m *CreateVwRequest) ContextValidate(ctx context.Context, formats strfmt.Re func (m *CreateVwRequest) contextValidateAutoscaling(ctx context.Context, formats strfmt.Registry) error { if m.Autoscaling != nil { + + if swag.IsZero(m.Autoscaling) { // not required + return nil + } + if err := m.Autoscaling.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscaling") @@ -406,6 +411,11 @@ func (m *CreateVwRequest) contextValidateAutoscaling(ctx context.Context, format func (m *CreateVwRequest) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") @@ -422,6 +432,11 @@ func (m *CreateVwRequest) contextValidateConfig(ctx context.Context, formats str func (m *CreateVwRequest) contextValidateImpalaHaSettings(ctx context.Context, formats strfmt.Registry) error { if m.ImpalaHaSettings != nil { + + if swag.IsZero(m.ImpalaHaSettings) { // not required + return nil + } + if err := m.ImpalaHaSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("impalaHaSettings") @@ -438,6 +453,11 @@ func (m *CreateVwRequest) contextValidateImpalaHaSettings(ctx context.Context, f func (m *CreateVwRequest) contextValidateImpalaOptions(ctx context.Context, formats strfmt.Registry) error { if m.ImpalaOptions != nil { + + if swag.IsZero(m.ImpalaOptions) { // not required + return nil + } + if err := m.ImpalaOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("impalaOptions") @@ -454,6 +474,11 @@ func (m *CreateVwRequest) contextValidateImpalaOptions(ctx context.Context, form func (m *CreateVwRequest) contextValidateQueryIsolationOptions(ctx context.Context, formats strfmt.Registry) error { if m.QueryIsolationOptions != nil { + + if swag.IsZero(m.QueryIsolationOptions) { // not required + return nil + } + if err := m.QueryIsolationOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("queryIsolationOptions") @@ -472,6 +497,11 @@ func (m *CreateVwRequest) contextValidateTags(ctx context.Context, formats strfm for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) @@ -490,6 +520,7 @@ func (m *CreateVwRequest) contextValidateTags(ctx context.Context, formats strfm func (m *CreateVwRequest) contextValidateVwType(ctx context.Context, formats strfmt.Registry) error { if m.VwType != nil { + if err := m.VwType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vwType") diff --git a/cdp-sdk-go/gen/dw/models/dbc_diagnostic_data_job.go b/cdp-sdk-go/gen/dw/models/dbc_diagnostic_data_job.go index f3fb7003..2711d827 100644 --- a/cdp-sdk-go/gen/dw/models/dbc_diagnostic_data_job.go +++ b/cdp-sdk-go/gen/dw/models/dbc_diagnostic_data_job.go @@ -119,6 +119,10 @@ func (m *DbcDiagnosticDataJob) ContextValidate(ctx context.Context, formats strf func (m *DbcDiagnosticDataJob) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/cdp-sdk-go/gen/dw/models/dbc_summary.go b/cdp-sdk-go/gen/dw/models/dbc_summary.go index fc0a6b89..04e64bf6 100644 --- a/cdp-sdk-go/gen/dw/models/dbc_summary.go +++ b/cdp-sdk-go/gen/dw/models/dbc_summary.go @@ -125,6 +125,11 @@ func (m *DbcSummary) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *DbcSummary) contextValidateCreator(ctx context.Context, formats strfmt.Registry) error { if m.Creator != nil { + + if swag.IsZero(m.Creator) { // not required + return nil + } + if err := m.Creator.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("creator") diff --git a/cdp-sdk-go/gen/dw/models/describe_allowed_instance_types_response.go b/cdp-sdk-go/gen/dw/models/describe_allowed_instance_types_response.go index 38659670..851d526d 100644 --- a/cdp-sdk-go/gen/dw/models/describe_allowed_instance_types_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_allowed_instance_types_response.go @@ -102,6 +102,11 @@ func (m *DescribeAllowedInstanceTypesResponse) ContextValidate(ctx context.Conte func (m *DescribeAllowedInstanceTypesResponse) contextValidateAws(ctx context.Context, formats strfmt.Registry) error { if m.Aws != nil { + + if swag.IsZero(m.Aws) { // not required + return nil + } + if err := m.Aws.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("aws") @@ -118,6 +123,11 @@ func (m *DescribeAllowedInstanceTypesResponse) contextValidateAws(ctx context.Co func (m *DescribeAllowedInstanceTypesResponse) contextValidateAzure(ctx context.Context, formats strfmt.Registry) error { if m.Azure != nil { + + if swag.IsZero(m.Azure) { // not required + return nil + } + if err := m.Azure.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azure") diff --git a/cdp-sdk-go/gen/dw/models/describe_backup_response.go b/cdp-sdk-go/gen/dw/models/describe_backup_response.go index ac9be586..3d1c54b3 100644 --- a/cdp-sdk-go/gen/dw/models/describe_backup_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_backup_response.go @@ -75,6 +75,7 @@ func (m *DescribeBackupResponse) ContextValidate(ctx context.Context, formats st func (m *DescribeBackupResponse) contextValidateBackup(ctx context.Context, formats strfmt.Registry) error { if m.Backup != nil { + if err := m.Backup.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backup") diff --git a/cdp-sdk-go/gen/dw/models/describe_cluster_diagnostic_data_job_response.go b/cdp-sdk-go/gen/dw/models/describe_cluster_diagnostic_data_job_response.go index 72995eb4..c7a58fde 100644 --- a/cdp-sdk-go/gen/dw/models/describe_cluster_diagnostic_data_job_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_cluster_diagnostic_data_job_response.go @@ -72,6 +72,11 @@ func (m *DescribeClusterDiagnosticDataJobResponse) ContextValidate(ctx context.C func (m *DescribeClusterDiagnosticDataJobResponse) contextValidateJob(ctx context.Context, formats strfmt.Registry) error { if m.Job != nil { + + if swag.IsZero(m.Job) { // not required + return nil + } + if err := m.Job.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("job") diff --git a/cdp-sdk-go/gen/dw/models/describe_cluster_response.go b/cdp-sdk-go/gen/dw/models/describe_cluster_response.go index 499e77c9..3398b2cb 100644 --- a/cdp-sdk-go/gen/dw/models/describe_cluster_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_cluster_response.go @@ -72,6 +72,11 @@ func (m *DescribeClusterResponse) ContextValidate(ctx context.Context, formats s func (m *DescribeClusterResponse) contextValidateCluster(ctx context.Context, formats strfmt.Registry) error { if m.Cluster != nil { + + if swag.IsZero(m.Cluster) { // not required + return nil + } + if err := m.Cluster.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cluster") diff --git a/cdp-sdk-go/gen/dw/models/describe_config_diff_response.go b/cdp-sdk-go/gen/dw/models/describe_config_diff_response.go index 16156f93..3e1be07c 100644 --- a/cdp-sdk-go/gen/dw/models/describe_config_diff_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_config_diff_response.go @@ -72,6 +72,11 @@ func (m *DescribeConfigDiffResponse) ContextValidate(ctx context.Context, format func (m *DescribeConfigDiffResponse) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") diff --git a/cdp-sdk-go/gen/dw/models/describe_config_response.go b/cdp-sdk-go/gen/dw/models/describe_config_response.go index 98c0f59c..078a5e18 100644 --- a/cdp-sdk-go/gen/dw/models/describe_config_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_config_response.go @@ -72,6 +72,11 @@ func (m *DescribeConfigResponse) ContextValidate(ctx context.Context, formats st func (m *DescribeConfigResponse) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") diff --git a/cdp-sdk-go/gen/dw/models/describe_data_visualization_response.go b/cdp-sdk-go/gen/dw/models/describe_data_visualization_response.go index 06545798..68a6bf50 100644 --- a/cdp-sdk-go/gen/dw/models/describe_data_visualization_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_data_visualization_response.go @@ -72,6 +72,11 @@ func (m *DescribeDataVisualizationResponse) ContextValidate(ctx context.Context, func (m *DescribeDataVisualizationResponse) contextValidateDataVisualization(ctx context.Context, formats strfmt.Registry) error { if m.DataVisualization != nil { + + if swag.IsZero(m.DataVisualization) { // not required + return nil + } + if err := m.DataVisualization.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dataVisualization") diff --git a/cdp-sdk-go/gen/dw/models/describe_dbc_config_response.go b/cdp-sdk-go/gen/dw/models/describe_dbc_config_response.go index d76f6496..15ad68eb 100644 --- a/cdp-sdk-go/gen/dw/models/describe_dbc_config_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_dbc_config_response.go @@ -72,6 +72,11 @@ func (m *DescribeDbcConfigResponse) ContextValidate(ctx context.Context, formats func (m *DescribeDbcConfigResponse) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") diff --git a/cdp-sdk-go/gen/dw/models/describe_dbc_diagnostic_data_job_response.go b/cdp-sdk-go/gen/dw/models/describe_dbc_diagnostic_data_job_response.go index 01eca25c..73f980f1 100644 --- a/cdp-sdk-go/gen/dw/models/describe_dbc_diagnostic_data_job_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_dbc_diagnostic_data_job_response.go @@ -72,6 +72,11 @@ func (m *DescribeDbcDiagnosticDataJobResponse) ContextValidate(ctx context.Conte func (m *DescribeDbcDiagnosticDataJobResponse) contextValidateJob(ctx context.Context, formats strfmt.Registry) error { if m.Job != nil { + + if swag.IsZero(m.Job) { // not required + return nil + } + if err := m.Job.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("job") diff --git a/cdp-sdk-go/gen/dw/models/describe_dbc_response.go b/cdp-sdk-go/gen/dw/models/describe_dbc_response.go index 9562f5ab..9ec99b4d 100644 --- a/cdp-sdk-go/gen/dw/models/describe_dbc_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_dbc_response.go @@ -72,6 +72,11 @@ func (m *DescribeDbcResponse) ContextValidate(ctx context.Context, formats strfm func (m *DescribeDbcResponse) contextValidateDbc(ctx context.Context, formats strfmt.Registry) error { if m.Dbc != nil { + + if swag.IsZero(m.Dbc) { // not required + return nil + } + if err := m.Dbc.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dbc") diff --git a/cdp-sdk-go/gen/dw/models/describe_restore_response.go b/cdp-sdk-go/gen/dw/models/describe_restore_response.go index f296ecc3..69759ed3 100644 --- a/cdp-sdk-go/gen/dw/models/describe_restore_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_restore_response.go @@ -75,6 +75,7 @@ func (m *DescribeRestoreResponse) ContextValidate(ctx context.Context, formats s func (m *DescribeRestoreResponse) contextValidateRestore(ctx context.Context, formats strfmt.Registry) error { if m.Restore != nil { + if err := m.Restore.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restore") diff --git a/cdp-sdk-go/gen/dw/models/describe_server_setting_item.go b/cdp-sdk-go/gen/dw/models/describe_server_setting_item.go index 3d6e1b96..5dfdf7a5 100644 --- a/cdp-sdk-go/gen/dw/models/describe_server_setting_item.go +++ b/cdp-sdk-go/gen/dw/models/describe_server_setting_item.go @@ -88,6 +88,10 @@ func (m *DescribeServerSettingItem) contextValidateRequiresUpdate(ctx context.Co for i := 0; i < len(m.RequiresUpdate); i++ { + if swag.IsZero(m.RequiresUpdate[i]) { // not required + return nil + } + if err := m.RequiresUpdate[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("requiresUpdate" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/describe_server_setting_response.go b/cdp-sdk-go/gen/dw/models/describe_server_setting_response.go index b3c503bb..48b31bb5 100644 --- a/cdp-sdk-go/gen/dw/models/describe_server_setting_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_server_setting_response.go @@ -82,6 +82,11 @@ func (m *DescribeServerSettingResponse) contextValidateSettings(ctx context.Cont for i := 0; i < len(m.Settings); i++ { if m.Settings[i] != nil { + + if swag.IsZero(m.Settings[i]) { // not required + return nil + } + if err := m.Settings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/describe_vw_config_response.go b/cdp-sdk-go/gen/dw/models/describe_vw_config_response.go index 5bd9a4ae..70a78919 100644 --- a/cdp-sdk-go/gen/dw/models/describe_vw_config_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_vw_config_response.go @@ -72,6 +72,11 @@ func (m *DescribeVwConfigResponse) ContextValidate(ctx context.Context, formats func (m *DescribeVwConfigResponse) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") diff --git a/cdp-sdk-go/gen/dw/models/describe_vw_diagnostic_data_job_response.go b/cdp-sdk-go/gen/dw/models/describe_vw_diagnostic_data_job_response.go index 566a4a35..5fe111a0 100644 --- a/cdp-sdk-go/gen/dw/models/describe_vw_diagnostic_data_job_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_vw_diagnostic_data_job_response.go @@ -72,6 +72,11 @@ func (m *DescribeVwDiagnosticDataJobResponse) ContextValidate(ctx context.Contex func (m *DescribeVwDiagnosticDataJobResponse) contextValidateJob(ctx context.Context, formats strfmt.Registry) error { if m.Job != nil { + + if swag.IsZero(m.Job) { // not required + return nil + } + if err := m.Job.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("job") diff --git a/cdp-sdk-go/gen/dw/models/describe_vw_response.go b/cdp-sdk-go/gen/dw/models/describe_vw_response.go index d1b245ed..ea28cd6f 100644 --- a/cdp-sdk-go/gen/dw/models/describe_vw_response.go +++ b/cdp-sdk-go/gen/dw/models/describe_vw_response.go @@ -72,6 +72,11 @@ func (m *DescribeVwResponse) ContextValidate(ctx context.Context, formats strfmt func (m *DescribeVwResponse) contextValidateVw(ctx context.Context, formats strfmt.Registry) error { if m.Vw != nil { + + if swag.IsZero(m.Vw) { // not required + return nil + } + if err := m.Vw.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vw") diff --git a/cdp-sdk-go/gen/dw/models/get_data_visualization_upgrade_version_response.go b/cdp-sdk-go/gen/dw/models/get_data_visualization_upgrade_version_response.go index 243399f9..260bfe1d 100644 --- a/cdp-sdk-go/gen/dw/models/get_data_visualization_upgrade_version_response.go +++ b/cdp-sdk-go/gen/dw/models/get_data_visualization_upgrade_version_response.go @@ -72,6 +72,11 @@ func (m *GetDataVisualizationUpgradeVersionResponse) ContextValidate(ctx context func (m *GetDataVisualizationUpgradeVersionResponse) contextValidateUpgradeVersions(ctx context.Context, formats strfmt.Registry) error { if m.UpgradeVersions != nil { + + if swag.IsZero(m.UpgradeVersions) { // not required + return nil + } + if err := m.UpgradeVersions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("upgradeVersions") diff --git a/cdp-sdk-go/gen/dw/models/impala_h_a_settings_create_request.go b/cdp-sdk-go/gen/dw/models/impala_h_a_settings_create_request.go index 2e3c35c4..083952f6 100644 --- a/cdp-sdk-go/gen/dw/models/impala_h_a_settings_create_request.go +++ b/cdp-sdk-go/gen/dw/models/impala_h_a_settings_create_request.go @@ -81,6 +81,10 @@ func (m *ImpalaHASettingsCreateRequest) ContextValidate(ctx context.Context, for func (m *ImpalaHASettingsCreateRequest) contextValidateHighAvailabilityMode(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.HighAvailabilityMode) { // not required + return nil + } + if err := m.HighAvailabilityMode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("highAvailabilityMode") diff --git a/cdp-sdk-go/gen/dw/models/impala_h_a_settings_options_response.go b/cdp-sdk-go/gen/dw/models/impala_h_a_settings_options_response.go index 9e840ccf..70645b64 100644 --- a/cdp-sdk-go/gen/dw/models/impala_h_a_settings_options_response.go +++ b/cdp-sdk-go/gen/dw/models/impala_h_a_settings_options_response.go @@ -81,6 +81,10 @@ func (m *ImpalaHASettingsOptionsResponse) ContextValidate(ctx context.Context, f func (m *ImpalaHASettingsOptionsResponse) contextValidateHighAvailabilityMode(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.HighAvailabilityMode) { // not required + return nil + } + if err := m.HighAvailabilityMode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("highAvailabilityMode") diff --git a/cdp-sdk-go/gen/dw/models/list_backups_response.go b/cdp-sdk-go/gen/dw/models/list_backups_response.go index 2fa8941c..e2b4bc11 100644 --- a/cdp-sdk-go/gen/dw/models/list_backups_response.go +++ b/cdp-sdk-go/gen/dw/models/list_backups_response.go @@ -85,6 +85,11 @@ func (m *ListBackupsResponse) contextValidateBackups(ctx context.Context, format for i := 0; i < len(m.Backups); i++ { if m.Backups[i] != nil { + + if swag.IsZero(m.Backups[i]) { // not required + return nil + } + if err := m.Backups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backups" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_request.go b/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_request.go index 2cc16378..57b6ff08 100644 --- a/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_request.go +++ b/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_request.go @@ -115,6 +115,10 @@ func (m *ListClusterDiagnosticDataJobsRequest) ContextValidate(ctx context.Conte func (m *ListClusterDiagnosticDataJobsRequest) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_response.go b/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_response.go index b000e421..a450b343 100644 --- a/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_response.go +++ b/cdp-sdk-go/gen/dw/models/list_cluster_diagnostic_data_jobs_response.go @@ -85,6 +85,11 @@ func (m *ListClusterDiagnosticDataJobsResponse) contextValidateJobs(ctx context. for i := 0; i < len(m.Jobs); i++ { if m.Jobs[i] != nil { + + if swag.IsZero(m.Jobs[i]) { // not required + return nil + } + if err := m.Jobs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("jobs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_clusters_response.go b/cdp-sdk-go/gen/dw/models/list_clusters_response.go index b86d9a5e..d36e5189 100644 --- a/cdp-sdk-go/gen/dw/models/list_clusters_response.go +++ b/cdp-sdk-go/gen/dw/models/list_clusters_response.go @@ -82,6 +82,11 @@ func (m *ListClustersResponse) contextValidateClusters(ctx context.Context, form for i := 0; i < len(m.Clusters); i++ { if m.Clusters[i] != nil { + + if swag.IsZero(m.Clusters[i]) { // not required + return nil + } + if err := m.Clusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusters" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_data_visualizations_response.go b/cdp-sdk-go/gen/dw/models/list_data_visualizations_response.go index 096ef15f..6e83eb59 100644 --- a/cdp-sdk-go/gen/dw/models/list_data_visualizations_response.go +++ b/cdp-sdk-go/gen/dw/models/list_data_visualizations_response.go @@ -82,6 +82,11 @@ func (m *ListDataVisualizationsResponse) contextValidateDataVisualizations(ctx c for i := 0; i < len(m.DataVisualizations); i++ { if m.DataVisualizations[i] != nil { + + if swag.IsZero(m.DataVisualizations[i]) { // not required + return nil + } + if err := m.DataVisualizations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dataVisualizations" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_dbc_configs_response.go b/cdp-sdk-go/gen/dw/models/list_dbc_configs_response.go index 6ad5f8d0..41a284ef 100644 --- a/cdp-sdk-go/gen/dw/models/list_dbc_configs_response.go +++ b/cdp-sdk-go/gen/dw/models/list_dbc_configs_response.go @@ -82,6 +82,11 @@ func (m *ListDbcConfigsResponse) contextValidateConfigHistory(ctx context.Contex for i := 0; i < len(m.ConfigHistory); i++ { if m.ConfigHistory[i] != nil { + + if swag.IsZero(m.ConfigHistory[i]) { // not required + return nil + } + if err := m.ConfigHistory[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configHistory" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_request.go b/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_request.go index 6212078f..7159e89b 100644 --- a/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_request.go +++ b/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_request.go @@ -132,6 +132,10 @@ func (m *ListDbcDiagnosticDataJobsRequest) ContextValidate(ctx context.Context, func (m *ListDbcDiagnosticDataJobsRequest) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_response.go b/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_response.go index 66f7801f..e278da73 100644 --- a/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_response.go +++ b/cdp-sdk-go/gen/dw/models/list_dbc_diagnostic_data_jobs_response.go @@ -85,6 +85,11 @@ func (m *ListDbcDiagnosticDataJobsResponse) contextValidateJobs(ctx context.Cont for i := 0; i < len(m.Jobs); i++ { if m.Jobs[i] != nil { + + if swag.IsZero(m.Jobs[i]) { // not required + return nil + } + if err := m.Jobs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("jobs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_dbc_events_response.go b/cdp-sdk-go/gen/dw/models/list_dbc_events_response.go index 1d793ab6..0714d3b1 100644 --- a/cdp-sdk-go/gen/dw/models/list_dbc_events_response.go +++ b/cdp-sdk-go/gen/dw/models/list_dbc_events_response.go @@ -82,6 +82,11 @@ func (m *ListDbcEventsResponse) contextValidateEvents(ctx context.Context, forma for i := 0; i < len(m.Events); i++ { if m.Events[i] != nil { + + if swag.IsZero(m.Events[i]) { // not required + return nil + } + if err := m.Events[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("events" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_dbcs_response.go b/cdp-sdk-go/gen/dw/models/list_dbcs_response.go index 8936bf86..5bc52aac 100644 --- a/cdp-sdk-go/gen/dw/models/list_dbcs_response.go +++ b/cdp-sdk-go/gen/dw/models/list_dbcs_response.go @@ -82,6 +82,11 @@ func (m *ListDbcsResponse) contextValidateDbcs(ctx context.Context, formats strf for i := 0; i < len(m.Dbcs); i++ { if m.Dbcs[i] != nil { + + if swag.IsZero(m.Dbcs[i]) { // not required + return nil + } + if err := m.Dbcs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dbcs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_restores_response.go b/cdp-sdk-go/gen/dw/models/list_restores_response.go index 938ab5d3..4d6b27e8 100644 --- a/cdp-sdk-go/gen/dw/models/list_restores_response.go +++ b/cdp-sdk-go/gen/dw/models/list_restores_response.go @@ -85,6 +85,11 @@ func (m *ListRestoresResponse) contextValidateRestores(ctx context.Context, form for i := 0; i < len(m.Restores); i++ { if m.Restores[i] != nil { + + if swag.IsZero(m.Restores[i]) { // not required + return nil + } + if err := m.Restores[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restores" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_users_response.go b/cdp-sdk-go/gen/dw/models/list_users_response.go index 4988d931..260d1e30 100644 --- a/cdp-sdk-go/gen/dw/models/list_users_response.go +++ b/cdp-sdk-go/gen/dw/models/list_users_response.go @@ -82,6 +82,11 @@ func (m *ListUsersResponse) contextValidateUsers(ctx context.Context, formats st for i := 0; i < len(m.Users); i++ { if m.Users[i] != nil { + + if swag.IsZero(m.Users[i]) { // not required + return nil + } + if err := m.Users[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_vw_configs_response.go b/cdp-sdk-go/gen/dw/models/list_vw_configs_response.go index dc550d4e..d8096f5d 100644 --- a/cdp-sdk-go/gen/dw/models/list_vw_configs_response.go +++ b/cdp-sdk-go/gen/dw/models/list_vw_configs_response.go @@ -82,6 +82,11 @@ func (m *ListVwConfigsResponse) contextValidateConfigHistory(ctx context.Context for i := 0; i < len(m.ConfigHistory); i++ { if m.ConfigHistory[i] != nil { + + if swag.IsZero(m.ConfigHistory[i]) { // not required + return nil + } + if err := m.ConfigHistory[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configHistory" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_request.go b/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_request.go index c7f98378..64f0098b 100644 --- a/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_request.go +++ b/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_request.go @@ -132,6 +132,10 @@ func (m *ListVwDiagnosticDataJobsRequest) ContextValidate(ctx context.Context, f func (m *ListVwDiagnosticDataJobsRequest) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_response.go b/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_response.go index 0504b8e8..1b84f371 100644 --- a/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_response.go +++ b/cdp-sdk-go/gen/dw/models/list_vw_diagnostic_data_jobs_response.go @@ -85,6 +85,11 @@ func (m *ListVwDiagnosticDataJobsResponse) contextValidateJobs(ctx context.Conte for i := 0; i < len(m.Jobs); i++ { if m.Jobs[i] != nil { + + if swag.IsZero(m.Jobs[i]) { // not required + return nil + } + if err := m.Jobs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("jobs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_vw_events_response.go b/cdp-sdk-go/gen/dw/models/list_vw_events_response.go index d4453587..4c4fd4f2 100644 --- a/cdp-sdk-go/gen/dw/models/list_vw_events_response.go +++ b/cdp-sdk-go/gen/dw/models/list_vw_events_response.go @@ -82,6 +82,11 @@ func (m *ListVwEventsResponse) contextValidateEvents(ctx context.Context, format for i := 0; i < len(m.Events); i++ { if m.Events[i] != nil { + + if swag.IsZero(m.Events[i]) { // not required + return nil + } + if err := m.Events[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("events" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/list_vws_request.go b/cdp-sdk-go/gen/dw/models/list_vws_request.go index 0419b724..464faa12 100644 --- a/cdp-sdk-go/gen/dw/models/list_vws_request.go +++ b/cdp-sdk-go/gen/dw/models/list_vws_request.go @@ -90,6 +90,11 @@ func (m *ListVwsRequest) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *ListVwsRequest) contextValidateFilter(ctx context.Context, formats strfmt.Registry) error { if m.Filter != nil { + + if swag.IsZero(m.Filter) { // not required + return nil + } + if err := m.Filter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("filter") diff --git a/cdp-sdk-go/gen/dw/models/list_vws_response.go b/cdp-sdk-go/gen/dw/models/list_vws_response.go index b8ddb87c..85c5f13b 100644 --- a/cdp-sdk-go/gen/dw/models/list_vws_response.go +++ b/cdp-sdk-go/gen/dw/models/list_vws_response.go @@ -82,6 +82,11 @@ func (m *ListVwsResponse) contextValidateVws(ctx context.Context, formats strfmt for i := 0; i < len(m.Vws); i++ { if m.Vws[i] != nil { + + if swag.IsZero(m.Vws[i]) { // not required + return nil + } + if err := m.Vws[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vws" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/restore.go b/cdp-sdk-go/gen/dw/models/restore.go index b0b2b044..01d4f701 100644 --- a/cdp-sdk-go/gen/dw/models/restore.go +++ b/cdp-sdk-go/gen/dw/models/restore.go @@ -149,6 +149,11 @@ func (m *Restore) contextValidateErrors(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Errors); i++ { if m.Errors[i] != nil { + + if swag.IsZero(m.Errors[i]) { // not required + return nil + } + if err := m.Errors[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errors" + "." + strconv.Itoa(i)) @@ -169,6 +174,11 @@ func (m *Restore) contextValidateWarnings(ctx context.Context, formats strfmt.Re for i := 0; i < len(m.Warnings); i++ { if m.Warnings[i] != nil { + + if swag.IsZero(m.Warnings[i]) { // not required + return nil + } + if err := m.Warnings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("warnings" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/restore_cluster_response.go b/cdp-sdk-go/gen/dw/models/restore_cluster_response.go index 21aff69b..5d03592a 100644 --- a/cdp-sdk-go/gen/dw/models/restore_cluster_response.go +++ b/cdp-sdk-go/gen/dw/models/restore_cluster_response.go @@ -199,6 +199,11 @@ func (m *RestoreClusterResponse) contextValidateDbcRestorePlans(ctx context.Cont for i := 0; i < len(m.DbcRestorePlans); i++ { if m.DbcRestorePlans[i] != nil { + + if swag.IsZero(m.DbcRestorePlans[i]) { // not required + return nil + } + if err := m.DbcRestorePlans[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dbcRestorePlans" + "." + strconv.Itoa(i)) @@ -219,6 +224,11 @@ func (m *RestoreClusterResponse) contextValidateHiveRestorePlans(ctx context.Con for i := 0; i < len(m.HiveRestorePlans); i++ { if m.HiveRestorePlans[i] != nil { + + if swag.IsZero(m.HiveRestorePlans[i]) { // not required + return nil + } + if err := m.HiveRestorePlans[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hiveRestorePlans" + "." + strconv.Itoa(i)) @@ -239,6 +249,11 @@ func (m *RestoreClusterResponse) contextValidateImpalaRestorePlans(ctx context.C for i := 0; i < len(m.ImpalaRestorePlans); i++ { if m.ImpalaRestorePlans[i] != nil { + + if swag.IsZero(m.ImpalaRestorePlans[i]) { // not required + return nil + } + if err := m.ImpalaRestorePlans[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("impalaRestorePlans" + "." + strconv.Itoa(i)) @@ -259,6 +274,11 @@ func (m *RestoreClusterResponse) contextValidateVizRestorePlans(ctx context.Cont for i := 0; i < len(m.VizRestorePlans); i++ { if m.VizRestorePlans[i] != nil { + + if swag.IsZero(m.VizRestorePlans[i]) { // not required + return nil + } + if err := m.VizRestorePlans[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vizRestorePlans" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/service_config_diff.go b/cdp-sdk-go/gen/dw/models/service_config_diff.go index fbfc5447..3d4d1ad8 100644 --- a/cdp-sdk-go/gen/dw/models/service_config_diff.go +++ b/cdp-sdk-go/gen/dw/models/service_config_diff.go @@ -128,6 +128,11 @@ func (m *ServiceConfigDiff) contextValidateApplicationConfigsDiffs(ctx context.C func (m *ServiceConfigDiff) contextValidateCommonConfigsDiff(ctx context.Context, formats strfmt.Registry) error { if m.CommonConfigsDiff != nil { + + if swag.IsZero(m.CommonConfigsDiff) { // not required + return nil + } + if err := m.CommonConfigsDiff.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commonConfigsDiff") diff --git a/cdp-sdk-go/gen/dw/models/service_config_req.go b/cdp-sdk-go/gen/dw/models/service_config_req.go index 9c09fec2..48bf16aa 100644 --- a/cdp-sdk-go/gen/dw/models/service_config_req.go +++ b/cdp-sdk-go/gen/dw/models/service_config_req.go @@ -131,6 +131,11 @@ func (m *ServiceConfigReq) contextValidateApplicationConfigs(ctx context.Context func (m *ServiceConfigReq) contextValidateCommonConfigs(ctx context.Context, formats strfmt.Registry) error { if m.CommonConfigs != nil { + + if swag.IsZero(m.CommonConfigs) { // not required + return nil + } + if err := m.CommonConfigs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commonConfigs") diff --git a/cdp-sdk-go/gen/dw/models/service_config_resp.go b/cdp-sdk-go/gen/dw/models/service_config_resp.go index 2ea299e6..416423a4 100644 --- a/cdp-sdk-go/gen/dw/models/service_config_resp.go +++ b/cdp-sdk-go/gen/dw/models/service_config_resp.go @@ -131,6 +131,11 @@ func (m *ServiceConfigResp) contextValidateApplicationConfigs(ctx context.Contex func (m *ServiceConfigResp) contextValidateCommonConfigs(ctx context.Context, formats strfmt.Registry) error { if m.CommonConfigs != nil { + + if swag.IsZero(m.CommonConfigs) { // not required + return nil + } + if err := m.CommonConfigs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commonConfigs") diff --git a/cdp-sdk-go/gen/dw/models/update_cluster_request.go b/cdp-sdk-go/gen/dw/models/update_cluster_request.go index 5fc699ee..0bc23c8b 100644 --- a/cdp-sdk-go/gen/dw/models/update_cluster_request.go +++ b/cdp-sdk-go/gen/dw/models/update_cluster_request.go @@ -162,6 +162,11 @@ func (m *UpdateClusterRequest) ContextValidate(ctx context.Context, formats strf func (m *UpdateClusterRequest) contextValidateAwsUpdate(ctx context.Context, formats strfmt.Registry) error { if m.AwsUpdate != nil { + + if swag.IsZero(m.AwsUpdate) { // not required + return nil + } + if err := m.AwsUpdate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsUpdate") @@ -178,6 +183,11 @@ func (m *UpdateClusterRequest) contextValidateAwsUpdate(ctx context.Context, for func (m *UpdateClusterRequest) contextValidateAzureUpdate(ctx context.Context, formats strfmt.Registry) error { if m.AzureUpdate != nil { + + if swag.IsZero(m.AzureUpdate) { // not required + return nil + } + if err := m.AzureUpdate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureUpdate") @@ -194,6 +204,11 @@ func (m *UpdateClusterRequest) contextValidateAzureUpdate(ctx context.Context, f func (m *UpdateClusterRequest) contextValidateObservabilityConfig(ctx context.Context, formats strfmt.Registry) error { if m.ObservabilityConfig != nil { + + if swag.IsZero(m.ObservabilityConfig) { // not required + return nil + } + if err := m.ObservabilityConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("observabilityConfig") diff --git a/cdp-sdk-go/gen/dw/models/update_data_visualization_request.go b/cdp-sdk-go/gen/dw/models/update_data_visualization_request.go index 2b0b9819..afa75b72 100644 --- a/cdp-sdk-go/gen/dw/models/update_data_visualization_request.go +++ b/cdp-sdk-go/gen/dw/models/update_data_visualization_request.go @@ -107,6 +107,11 @@ func (m *UpdateDataVisualizationRequest) ContextValidate(ctx context.Context, fo func (m *UpdateDataVisualizationRequest) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") diff --git a/cdp-sdk-go/gen/dw/models/update_dbc_config_request.go b/cdp-sdk-go/gen/dw/models/update_dbc_config_request.go index 7e106f5b..ba868632 100644 --- a/cdp-sdk-go/gen/dw/models/update_dbc_config_request.go +++ b/cdp-sdk-go/gen/dw/models/update_dbc_config_request.go @@ -176,6 +176,11 @@ func (m *UpdateDbcConfigRequest) contextValidateSet(ctx context.Context, formats for i := 0; i < len(m.Set); i++ { if m.Set[i] != nil { + + if swag.IsZero(m.Set[i]) { // not required + return nil + } + if err := m.Set[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("set" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/update_dbc_request.go b/cdp-sdk-go/gen/dw/models/update_dbc_request.go index 5160eabc..710c20df 100644 --- a/cdp-sdk-go/gen/dw/models/update_dbc_request.go +++ b/cdp-sdk-go/gen/dw/models/update_dbc_request.go @@ -107,6 +107,11 @@ func (m *UpdateDbcRequest) ContextValidate(ctx context.Context, formats strfmt.R func (m *UpdateDbcRequest) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") diff --git a/cdp-sdk-go/gen/dw/models/update_server_setting_request.go b/cdp-sdk-go/gen/dw/models/update_server_setting_request.go index 2f5ae408..3d49a638 100644 --- a/cdp-sdk-go/gen/dw/models/update_server_setting_request.go +++ b/cdp-sdk-go/gen/dw/models/update_server_setting_request.go @@ -82,6 +82,11 @@ func (m *UpdateServerSettingRequest) contextValidateSettings(ctx context.Context for i := 0; i < len(m.Settings); i++ { if m.Settings[i] != nil { + + if swag.IsZero(m.Settings[i]) { // not required + return nil + } + if err := m.Settings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("settings" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/update_vw_config_request.go b/cdp-sdk-go/gen/dw/models/update_vw_config_request.go index b946dfb2..7ff96a05 100644 --- a/cdp-sdk-go/gen/dw/models/update_vw_config_request.go +++ b/cdp-sdk-go/gen/dw/models/update_vw_config_request.go @@ -206,6 +206,11 @@ func (m *UpdateVwConfigRequest) contextValidateSet(ctx context.Context, formats for i := 0; i < len(m.Set); i++ { if m.Set[i] != nil { + + if swag.IsZero(m.Set[i]) { // not required + return nil + } + if err := m.Set[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("set" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/dw/models/update_vw_request.go b/cdp-sdk-go/gen/dw/models/update_vw_request.go index d9a9a405..1a54214e 100644 --- a/cdp-sdk-go/gen/dw/models/update_vw_request.go +++ b/cdp-sdk-go/gen/dw/models/update_vw_request.go @@ -200,6 +200,11 @@ func (m *UpdateVwRequest) ContextValidate(ctx context.Context, formats strfmt.Re func (m *UpdateVwRequest) contextValidateAutoscaling(ctx context.Context, formats strfmt.Registry) error { if m.Autoscaling != nil { + + if swag.IsZero(m.Autoscaling) { // not required + return nil + } + if err := m.Autoscaling.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscaling") @@ -216,6 +221,11 @@ func (m *UpdateVwRequest) contextValidateAutoscaling(ctx context.Context, format func (m *UpdateVwRequest) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") @@ -232,6 +242,11 @@ func (m *UpdateVwRequest) contextValidateConfig(ctx context.Context, formats str func (m *UpdateVwRequest) contextValidateImpalaHaSettings(ctx context.Context, formats strfmt.Registry) error { if m.ImpalaHaSettings != nil { + + if swag.IsZero(m.ImpalaHaSettings) { // not required + return nil + } + if err := m.ImpalaHaSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("impalaHaSettings") @@ -248,6 +263,11 @@ func (m *UpdateVwRequest) contextValidateImpalaHaSettings(ctx context.Context, f func (m *UpdateVwRequest) contextValidateQueryIsolationOptions(ctx context.Context, formats strfmt.Registry) error { if m.QueryIsolationOptions != nil { + + if swag.IsZero(m.QueryIsolationOptions) { // not required + return nil + } + if err := m.QueryIsolationOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("queryIsolationOptions") diff --git a/cdp-sdk-go/gen/dw/models/vw_diagnostic_data_job.go b/cdp-sdk-go/gen/dw/models/vw_diagnostic_data_job.go index f036cc4b..5371c2e1 100644 --- a/cdp-sdk-go/gen/dw/models/vw_diagnostic_data_job.go +++ b/cdp-sdk-go/gen/dw/models/vw_diagnostic_data_job.go @@ -119,6 +119,10 @@ func (m *VwDiagnosticDataJob) ContextValidate(ctx context.Context, formats strfm func (m *VwDiagnosticDataJob) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/cdp-sdk-go/gen/dw/models/vw_filter.go b/cdp-sdk-go/gen/dw/models/vw_filter.go index ffc91ff8..23f91d46 100644 --- a/cdp-sdk-go/gen/dw/models/vw_filter.go +++ b/cdp-sdk-go/gen/dw/models/vw_filter.go @@ -78,6 +78,10 @@ func (m *VwFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *VwFilter) contextValidateVwType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.VwType) { // not required + return nil + } + if err := m.VwType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vwType") diff --git a/cdp-sdk-go/gen/dw/models/vw_summary.go b/cdp-sdk-go/gen/dw/models/vw_summary.go index df0cc11c..cc429d48 100644 --- a/cdp-sdk-go/gen/dw/models/vw_summary.go +++ b/cdp-sdk-go/gen/dw/models/vw_summary.go @@ -452,6 +452,11 @@ func (m *VwSummary) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *VwSummary) contextValidateAutoscalingOptions(ctx context.Context, formats strfmt.Registry) error { if m.AutoscalingOptions != nil { + + if swag.IsZero(m.AutoscalingOptions) { // not required + return nil + } + if err := m.AutoscalingOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscalingOptions") @@ -468,6 +473,11 @@ func (m *VwSummary) contextValidateAutoscalingOptions(ctx context.Context, forma func (m *VwSummary) contextValidateCreator(ctx context.Context, formats strfmt.Registry) error { if m.Creator != nil { + + if swag.IsZero(m.Creator) { // not required + return nil + } + if err := m.Creator.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("creator") @@ -484,6 +494,11 @@ func (m *VwSummary) contextValidateCreator(ctx context.Context, formats strfmt.R func (m *VwSummary) contextValidateEndpoints(ctx context.Context, formats strfmt.Registry) error { if m.Endpoints != nil { + + if swag.IsZero(m.Endpoints) { // not required + return nil + } + if err := m.Endpoints.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("endpoints") @@ -500,6 +515,11 @@ func (m *VwSummary) contextValidateEndpoints(ctx context.Context, formats strfmt func (m *VwSummary) contextValidateImpalaHaSettingsOptions(ctx context.Context, formats strfmt.Registry) error { if m.ImpalaHaSettingsOptions != nil { + + if swag.IsZero(m.ImpalaHaSettingsOptions) { // not required + return nil + } + if err := m.ImpalaHaSettingsOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("impalaHaSettingsOptions") @@ -516,6 +536,11 @@ func (m *VwSummary) contextValidateImpalaHaSettingsOptions(ctx context.Context, func (m *VwSummary) contextValidateImpalaOptions(ctx context.Context, formats strfmt.Registry) error { if m.ImpalaOptions != nil { + + if swag.IsZero(m.ImpalaOptions) { // not required + return nil + } + if err := m.ImpalaOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("impalaOptions") @@ -532,6 +557,11 @@ func (m *VwSummary) contextValidateImpalaOptions(ctx context.Context, formats st func (m *VwSummary) contextValidateJwtAuth(ctx context.Context, formats strfmt.Registry) error { if m.JwtAuth != nil { + + if swag.IsZero(m.JwtAuth) { // not required + return nil + } + if err := m.JwtAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("jwtAuth") @@ -548,6 +578,11 @@ func (m *VwSummary) contextValidateJwtAuth(ctx context.Context, formats strfmt.R func (m *VwSummary) contextValidateQueryIsolationOptions(ctx context.Context, formats strfmt.Registry) error { if m.QueryIsolationOptions != nil { + + if swag.IsZero(m.QueryIsolationOptions) { // not required + return nil + } + if err := m.QueryIsolationOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("queryIsolationOptions") @@ -564,6 +599,11 @@ func (m *VwSummary) contextValidateQueryIsolationOptions(ctx context.Context, fo func (m *VwSummary) contextValidateReplicaStatus(ctx context.Context, formats strfmt.Registry) error { if m.ReplicaStatus != nil { + + if swag.IsZero(m.ReplicaStatus) { // not required + return nil + } + if err := m.ReplicaStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("replicaStatus") @@ -580,6 +620,11 @@ func (m *VwSummary) contextValidateReplicaStatus(ctx context.Context, formats st func (m *VwSummary) contextValidateSupportedAuthMethods(ctx context.Context, formats strfmt.Registry) error { if m.SupportedAuthMethods != nil { + + if swag.IsZero(m.SupportedAuthMethods) { // not required + return nil + } + if err := m.SupportedAuthMethods.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("supportedAuthMethods") @@ -598,6 +643,11 @@ func (m *VwSummary) contextValidateTags(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) @@ -615,6 +665,10 @@ func (m *VwSummary) contextValidateTags(ctx context.Context, formats strfmt.Regi func (m *VwSummary) contextValidateVwType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.VwType) { // not required + return nil + } + if err := m.VwType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vwType") diff --git a/cdp-sdk-go/gen/environments/models/aws_credential_prerequisites_response.go b/cdp-sdk-go/gen/environments/models/aws_credential_prerequisites_response.go index 170ba1d9..7c6935eb 100644 --- a/cdp-sdk-go/gen/environments/models/aws_credential_prerequisites_response.go +++ b/cdp-sdk-go/gen/environments/models/aws_credential_prerequisites_response.go @@ -117,6 +117,11 @@ func (m *AwsCredentialPrerequisitesResponse) contextValidatePolicies(ctx context for i := 0; i < len(m.Policies); i++ { if m.Policies[i] != nil { + + if swag.IsZero(m.Policies[i]) { // not required + return nil + } + if err := m.Policies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/azure_credential_prerequisites_response.go b/cdp-sdk-go/gen/environments/models/azure_credential_prerequisites_response.go index 2367253c..4ce39dee 100644 --- a/cdp-sdk-go/gen/environments/models/azure_credential_prerequisites_response.go +++ b/cdp-sdk-go/gen/environments/models/azure_credential_prerequisites_response.go @@ -117,6 +117,11 @@ func (m *AzureCredentialPrerequisitesResponse) contextValidatePolicies(ctx conte for i := 0; i < len(m.Policies); i++ { if m.Policies[i] != nil { + + if swag.IsZero(m.Policies[i]) { // not required + return nil + } + if err := m.Policies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/azure_credential_properties.go b/cdp-sdk-go/gen/environments/models/azure_credential_properties.go index 98fd0911..228a946c 100644 --- a/cdp-sdk-go/gen/environments/models/azure_credential_properties.go +++ b/cdp-sdk-go/gen/environments/models/azure_credential_properties.go @@ -108,6 +108,10 @@ func (m *AzureCredentialProperties) ContextValidate(ctx context.Context, formats func (m *AzureCredentialProperties) contextValidateAuthenticationType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.AuthenticationType) { // not required + return nil + } + if err := m.AuthenticationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("authenticationType") @@ -123,6 +127,11 @@ func (m *AzureCredentialProperties) contextValidateAuthenticationType(ctx contex func (m *AzureCredentialProperties) contextValidateCertificate(ctx context.Context, formats strfmt.Registry) error { if m.Certificate != nil { + + if swag.IsZero(m.Certificate) { // not required + return nil + } + if err := m.Certificate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("certificate") diff --git a/cdp-sdk-go/gen/environments/models/backup_storage.go b/cdp-sdk-go/gen/environments/models/backup_storage.go index 2a6b1ce1..2b617cad 100644 --- a/cdp-sdk-go/gen/environments/models/backup_storage.go +++ b/cdp-sdk-go/gen/environments/models/backup_storage.go @@ -135,6 +135,11 @@ func (m *BackupStorage) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *BackupStorage) contextValidateAwsDetails(ctx context.Context, formats strfmt.Registry) error { if m.AwsDetails != nil { + + if swag.IsZero(m.AwsDetails) { // not required + return nil + } + if err := m.AwsDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsDetails") @@ -151,6 +156,11 @@ func (m *BackupStorage) contextValidateAwsDetails(ctx context.Context, formats s func (m *BackupStorage) contextValidateAzureDetails(ctx context.Context, formats strfmt.Registry) error { if m.AzureDetails != nil { + + if swag.IsZero(m.AzureDetails) { // not required + return nil + } + if err := m.AzureDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureDetails") @@ -167,6 +177,11 @@ func (m *BackupStorage) contextValidateAzureDetails(ctx context.Context, formats func (m *BackupStorage) contextValidateGcpDetails(ctx context.Context, formats strfmt.Registry) error { if m.GcpDetails != nil { + + if swag.IsZero(m.GcpDetails) { // not required + return nil + } + if err := m.GcpDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("gcpDetails") diff --git a/cdp-sdk-go/gen/environments/models/cdp_cluster.go b/cdp-sdk-go/gen/environments/models/cdp_cluster.go index c70c5359..41106544 100644 --- a/cdp-sdk-go/gen/environments/models/cdp_cluster.go +++ b/cdp-sdk-go/gen/environments/models/cdp_cluster.go @@ -131,6 +131,11 @@ func (m *CdpCluster) contextValidateClusterValidationMessages(ctx context.Contex for i := 0; i < len(m.ClusterValidationMessages); i++ { if m.ClusterValidationMessages[i] != nil { + + if swag.IsZero(m.ClusterValidationMessages[i]) { // not required + return nil + } + if err := m.ClusterValidationMessages[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterValidationMessages" + "." + strconv.Itoa(i)) @@ -151,6 +156,11 @@ func (m *CdpCluster) contextValidateExposedServices(ctx context.Context, formats for i := 0; i < len(m.ExposedServices); i++ { if m.ExposedServices[i] != nil { + + if swag.IsZero(m.ExposedServices[i]) { // not required + return nil + } + if err := m.ExposedServices[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("exposedServices" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/change_environment_credential_response.go b/cdp-sdk-go/gen/environments/models/change_environment_credential_response.go index 64f6e711..a7967557 100644 --- a/cdp-sdk-go/gen/environments/models/change_environment_credential_response.go +++ b/cdp-sdk-go/gen/environments/models/change_environment_credential_response.go @@ -75,6 +75,7 @@ func (m *ChangeEnvironmentCredentialResponse) ContextValidate(ctx context.Contex func (m *ChangeEnvironmentCredentialResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/check_environment_connectivity_response.go b/cdp-sdk-go/gen/environments/models/check_environment_connectivity_response.go index b133621e..d63132b7 100644 --- a/cdp-sdk-go/gen/environments/models/check_environment_connectivity_response.go +++ b/cdp-sdk-go/gen/environments/models/check_environment_connectivity_response.go @@ -85,6 +85,11 @@ func (m *CheckEnvironmentConnectivityResponse) contextValidateClusters(ctx conte for i := 0; i < len(m.Clusters); i++ { if m.Clusters[i] != nil { + + if swag.IsZero(m.Clusters[i]) { // not required + return nil + } + if err := m.Clusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusters" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_request.go b/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_request.go index b0ff534a..ac350444 100644 --- a/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_request.go +++ b/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_request.go @@ -317,6 +317,11 @@ func (m *CollectFreeipaDiagnosticsRequest) contextValidateAdditionalLogs(ctx con for i := 0; i < len(m.AdditionalLogs); i++ { if m.AdditionalLogs[i] != nil { + + if swag.IsZero(m.AdditionalLogs[i]) { // not required + return nil + } + if err := m.AdditionalLogs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("additionalLogs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/create_a_w_s_credential_response.go b/cdp-sdk-go/gen/environments/models/create_a_w_s_credential_response.go index 007adc6d..faa98b7e 100644 --- a/cdp-sdk-go/gen/environments/models/create_a_w_s_credential_response.go +++ b/cdp-sdk-go/gen/environments/models/create_a_w_s_credential_response.go @@ -75,6 +75,7 @@ func (m *CreateAWSCredentialResponse) ContextValidate(ctx context.Context, forma func (m *CreateAWSCredentialResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") diff --git a/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_request.go b/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_request.go index 270196b9..1690d81d 100644 --- a/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_request.go +++ b/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_request.go @@ -395,6 +395,7 @@ func (m *CreateAWSEnvironmentRequest) ContextValidate(ctx context.Context, forma func (m *CreateAWSEnvironmentRequest) contextValidateAuthentication(ctx context.Context, formats strfmt.Registry) error { if m.Authentication != nil { + if err := m.Authentication.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("authentication") @@ -411,6 +412,11 @@ func (m *CreateAWSEnvironmentRequest) contextValidateAuthentication(ctx context. func (m *CreateAWSEnvironmentRequest) contextValidateFreeIpa(ctx context.Context, formats strfmt.Registry) error { if m.FreeIpa != nil { + + if swag.IsZero(m.FreeIpa) { // not required + return nil + } + if err := m.FreeIpa.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("freeIpa") @@ -427,6 +433,11 @@ func (m *CreateAWSEnvironmentRequest) contextValidateFreeIpa(ctx context.Context func (m *CreateAWSEnvironmentRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -443,6 +454,7 @@ func (m *CreateAWSEnvironmentRequest) contextValidateImage(ctx context.Context, func (m *CreateAWSEnvironmentRequest) contextValidateLogStorage(ctx context.Context, formats strfmt.Registry) error { if m.LogStorage != nil { + if err := m.LogStorage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logStorage") @@ -459,6 +471,7 @@ func (m *CreateAWSEnvironmentRequest) contextValidateLogStorage(ctx context.Cont func (m *CreateAWSEnvironmentRequest) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { + if err := m.SecurityAccess.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("securityAccess") @@ -477,6 +490,11 @@ func (m *CreateAWSEnvironmentRequest) contextValidateTags(ctx context.Context, f for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_response.go b/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_response.go index 6391ef35..f334d3f7 100644 --- a/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_response.go +++ b/cdp-sdk-go/gen/environments/models/create_a_w_s_environment_response.go @@ -75,6 +75,7 @@ func (m *CreateAWSEnvironmentResponse) ContextValidate(ctx context.Context, form func (m *CreateAWSEnvironmentResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/create_azure_credential_request.go b/cdp-sdk-go/gen/environments/models/create_azure_credential_request.go index 7a2c7c02..f56d3111 100644 --- a/cdp-sdk-go/gen/environments/models/create_azure_credential_request.go +++ b/cdp-sdk-go/gen/environments/models/create_azure_credential_request.go @@ -101,6 +101,7 @@ func (m *CreateAzureCredentialRequest) ContextValidate(ctx context.Context, form func (m *CreateAzureCredentialRequest) contextValidateAppBased(ctx context.Context, formats strfmt.Registry) error { if m.AppBased != nil { + if err := m.AppBased.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appBased") @@ -194,6 +195,10 @@ func (m *CreateAzureCredentialRequestAppBased) ContextValidate(ctx context.Conte func (m *CreateAzureCredentialRequestAppBased) contextValidateAuthenticationType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.AuthenticationType) { // not required + return nil + } + if err := m.AuthenticationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appBased" + "." + "authenticationType") diff --git a/cdp-sdk-go/gen/environments/models/create_azure_credential_response.go b/cdp-sdk-go/gen/environments/models/create_azure_credential_response.go index f4a7ccb7..3f7e93f1 100644 --- a/cdp-sdk-go/gen/environments/models/create_azure_credential_response.go +++ b/cdp-sdk-go/gen/environments/models/create_azure_credential_response.go @@ -75,6 +75,7 @@ func (m *CreateAzureCredentialResponse) ContextValidate(ctx context.Context, for func (m *CreateAzureCredentialResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") diff --git a/cdp-sdk-go/gen/environments/models/create_azure_environment_request.go b/cdp-sdk-go/gen/environments/models/create_azure_environment_request.go index 72f88ec9..34e371f4 100644 --- a/cdp-sdk-go/gen/environments/models/create_azure_environment_request.go +++ b/cdp-sdk-go/gen/environments/models/create_azure_environment_request.go @@ -431,6 +431,11 @@ func (m *CreateAzureEnvironmentRequest) ContextValidate(ctx context.Context, for func (m *CreateAzureEnvironmentRequest) contextValidateExistingNetworkParams(ctx context.Context, formats strfmt.Registry) error { if m.ExistingNetworkParams != nil { + + if swag.IsZero(m.ExistingNetworkParams) { // not required + return nil + } + if err := m.ExistingNetworkParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("existingNetworkParams") @@ -447,6 +452,11 @@ func (m *CreateAzureEnvironmentRequest) contextValidateExistingNetworkParams(ctx func (m *CreateAzureEnvironmentRequest) contextValidateFreeIpa(ctx context.Context, formats strfmt.Registry) error { if m.FreeIpa != nil { + + if swag.IsZero(m.FreeIpa) { // not required + return nil + } + if err := m.FreeIpa.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("freeIpa") @@ -463,6 +473,11 @@ func (m *CreateAzureEnvironmentRequest) contextValidateFreeIpa(ctx context.Conte func (m *CreateAzureEnvironmentRequest) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -479,6 +494,7 @@ func (m *CreateAzureEnvironmentRequest) contextValidateImage(ctx context.Context func (m *CreateAzureEnvironmentRequest) contextValidateLogStorage(ctx context.Context, formats strfmt.Registry) error { if m.LogStorage != nil { + if err := m.LogStorage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logStorage") @@ -495,6 +511,11 @@ func (m *CreateAzureEnvironmentRequest) contextValidateLogStorage(ctx context.Co func (m *CreateAzureEnvironmentRequest) contextValidateNewNetworkParams(ctx context.Context, formats strfmt.Registry) error { if m.NewNetworkParams != nil { + + if swag.IsZero(m.NewNetworkParams) { // not required + return nil + } + if err := m.NewNetworkParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("newNetworkParams") @@ -511,6 +532,7 @@ func (m *CreateAzureEnvironmentRequest) contextValidateNewNetworkParams(ctx cont func (m *CreateAzureEnvironmentRequest) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { + if err := m.SecurityAccess.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("securityAccess") @@ -529,6 +551,11 @@ func (m *CreateAzureEnvironmentRequest) contextValidateTags(ctx context.Context, for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/create_azure_environment_response.go b/cdp-sdk-go/gen/environments/models/create_azure_environment_response.go index caadaa57..8ca1daee 100644 --- a/cdp-sdk-go/gen/environments/models/create_azure_environment_response.go +++ b/cdp-sdk-go/gen/environments/models/create_azure_environment_response.go @@ -75,6 +75,7 @@ func (m *CreateAzureEnvironmentResponse) ContextValidate(ctx context.Context, fo func (m *CreateAzureEnvironmentResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/create_g_c_p_credential_response.go b/cdp-sdk-go/gen/environments/models/create_g_c_p_credential_response.go index ba5d3dcd..38325943 100644 --- a/cdp-sdk-go/gen/environments/models/create_g_c_p_credential_response.go +++ b/cdp-sdk-go/gen/environments/models/create_g_c_p_credential_response.go @@ -75,6 +75,7 @@ func (m *CreateGCPCredentialResponse) ContextValidate(ctx context.Context, forma func (m *CreateGCPCredentialResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") diff --git a/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_request.go b/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_request.go index c890c0ca..d815c7a1 100644 --- a/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_request.go +++ b/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_request.go @@ -357,6 +357,7 @@ func (m *CreateGCPEnvironmentRequest) ContextValidate(ctx context.Context, forma func (m *CreateGCPEnvironmentRequest) contextValidateExistingNetworkParams(ctx context.Context, formats strfmt.Registry) error { if m.ExistingNetworkParams != nil { + if err := m.ExistingNetworkParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("existingNetworkParams") @@ -373,6 +374,11 @@ func (m *CreateGCPEnvironmentRequest) contextValidateExistingNetworkParams(ctx c func (m *CreateGCPEnvironmentRequest) contextValidateFreeIpa(ctx context.Context, formats strfmt.Registry) error { if m.FreeIpa != nil { + + if swag.IsZero(m.FreeIpa) { // not required + return nil + } + if err := m.FreeIpa.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("freeIpa") @@ -389,6 +395,11 @@ func (m *CreateGCPEnvironmentRequest) contextValidateFreeIpa(ctx context.Context func (m *CreateGCPEnvironmentRequest) contextValidateLogStorage(ctx context.Context, formats strfmt.Registry) error { if m.LogStorage != nil { + + if swag.IsZero(m.LogStorage) { // not required + return nil + } + if err := m.LogStorage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logStorage") @@ -405,6 +416,11 @@ func (m *CreateGCPEnvironmentRequest) contextValidateLogStorage(ctx context.Cont func (m *CreateGCPEnvironmentRequest) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { + + if swag.IsZero(m.SecurityAccess) { // not required + return nil + } + if err := m.SecurityAccess.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("securityAccess") @@ -423,6 +439,11 @@ func (m *CreateGCPEnvironmentRequest) contextValidateTags(ctx context.Context, f for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_response.go b/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_response.go index 93466add..86dfc10b 100644 --- a/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_response.go +++ b/cdp-sdk-go/gen/environments/models/create_g_c_p_environment_response.go @@ -75,6 +75,7 @@ func (m *CreateGCPEnvironmentResponse) ContextValidate(ctx context.Context, form func (m *CreateGCPEnvironmentResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/create_private_environment_request.go b/cdp-sdk-go/gen/environments/models/create_private_environment_request.go index 2a4b193c..b988e463 100644 --- a/cdp-sdk-go/gen/environments/models/create_private_environment_request.go +++ b/cdp-sdk-go/gen/environments/models/create_private_environment_request.go @@ -227,6 +227,11 @@ func (m *CreatePrivateEnvironmentRequest) ContextValidate(ctx context.Context, f func (m *CreatePrivateEnvironmentRequest) contextValidateDockerUserPass(ctx context.Context, formats strfmt.Registry) error { if m.DockerUserPass != nil { + + if swag.IsZero(m.DockerUserPass) { // not required + return nil + } + if err := m.DockerUserPass.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dockerUserPass") diff --git a/cdp-sdk-go/gen/environments/models/create_private_environment_response.go b/cdp-sdk-go/gen/environments/models/create_private_environment_response.go index cf360889..5c829183 100644 --- a/cdp-sdk-go/gen/environments/models/create_private_environment_response.go +++ b/cdp-sdk-go/gen/environments/models/create_private_environment_response.go @@ -75,6 +75,7 @@ func (m *CreatePrivateEnvironmentResponse) ContextValidate(ctx context.Context, func (m *CreatePrivateEnvironmentResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/create_proxy_config_response.go b/cdp-sdk-go/gen/environments/models/create_proxy_config_response.go index 5b1dda32..d96edaae 100644 --- a/cdp-sdk-go/gen/environments/models/create_proxy_config_response.go +++ b/cdp-sdk-go/gen/environments/models/create_proxy_config_response.go @@ -75,6 +75,7 @@ func (m *CreateProxyConfigResponse) ContextValidate(ctx context.Context, formats func (m *CreateProxyConfigResponse) contextValidateProxyConfig(ctx context.Context, formats strfmt.Registry) error { if m.ProxyConfig != nil { + if err := m.ProxyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxyConfig") diff --git a/cdp-sdk-go/gen/environments/models/credential.go b/cdp-sdk-go/gen/environments/models/credential.go index a70d24ca..3a3dc92f 100644 --- a/cdp-sdk-go/gen/environments/models/credential.go +++ b/cdp-sdk-go/gen/environments/models/credential.go @@ -187,6 +187,11 @@ func (m *Credential) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *Credential) contextValidateAwsCredentialProperties(ctx context.Context, formats strfmt.Registry) error { if m.AwsCredentialProperties != nil { + + if swag.IsZero(m.AwsCredentialProperties) { // not required + return nil + } + if err := m.AwsCredentialProperties.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsCredentialProperties") @@ -203,6 +208,11 @@ func (m *Credential) contextValidateAwsCredentialProperties(ctx context.Context, func (m *Credential) contextValidateAzureCredentialProperties(ctx context.Context, formats strfmt.Registry) error { if m.AzureCredentialProperties != nil { + + if swag.IsZero(m.AzureCredentialProperties) { // not required + return nil + } + if err := m.AzureCredentialProperties.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureCredentialProperties") @@ -219,6 +229,11 @@ func (m *Credential) contextValidateAzureCredentialProperties(ctx context.Contex func (m *Credential) contextValidateGcpCredentialProperties(ctx context.Context, formats strfmt.Registry) error { if m.GcpCredentialProperties != nil { + + if swag.IsZero(m.GcpCredentialProperties) { // not required + return nil + } + if err := m.GcpCredentialProperties.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("gcpCredentialProperties") diff --git a/cdp-sdk-go/gen/environments/models/describe_environment_response.go b/cdp-sdk-go/gen/environments/models/describe_environment_response.go index 244abf47..0baf0333 100644 --- a/cdp-sdk-go/gen/environments/models/describe_environment_response.go +++ b/cdp-sdk-go/gen/environments/models/describe_environment_response.go @@ -75,6 +75,7 @@ func (m *DescribeEnvironmentResponse) ContextValidate(ctx context.Context, forma func (m *DescribeEnvironmentResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/environment.go b/cdp-sdk-go/gen/environments/models/environment.go index 06000974..018a3203 100644 --- a/cdp-sdk-go/gen/environments/models/environment.go +++ b/cdp-sdk-go/gen/environments/models/environment.go @@ -515,6 +515,11 @@ func (m *Environment) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *Environment) contextValidateAuthentication(ctx context.Context, formats strfmt.Registry) error { if m.Authentication != nil { + + if swag.IsZero(m.Authentication) { // not required + return nil + } + if err := m.Authentication.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("authentication") @@ -531,6 +536,11 @@ func (m *Environment) contextValidateAuthentication(ctx context.Context, formats func (m *Environment) contextValidateAwsDetails(ctx context.Context, formats strfmt.Registry) error { if m.AwsDetails != nil { + + if swag.IsZero(m.AwsDetails) { // not required + return nil + } + if err := m.AwsDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsDetails") @@ -547,6 +557,11 @@ func (m *Environment) contextValidateAwsDetails(ctx context.Context, formats str func (m *Environment) contextValidateBackupStorage(ctx context.Context, formats strfmt.Registry) error { if m.BackupStorage != nil { + + if swag.IsZero(m.BackupStorage) { // not required + return nil + } + if err := m.BackupStorage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backupStorage") @@ -563,6 +578,11 @@ func (m *Environment) contextValidateBackupStorage(ctx context.Context, formats func (m *Environment) contextValidateFreeipa(ctx context.Context, formats strfmt.Registry) error { if m.Freeipa != nil { + + if swag.IsZero(m.Freeipa) { // not required + return nil + } + if err := m.Freeipa.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("freeipa") @@ -579,6 +599,11 @@ func (m *Environment) contextValidateFreeipa(ctx context.Context, formats strfmt func (m *Environment) contextValidateGcpDetails(ctx context.Context, formats strfmt.Registry) error { if m.GcpDetails != nil { + + if swag.IsZero(m.GcpDetails) { // not required + return nil + } + if err := m.GcpDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("gcpDetails") @@ -595,6 +620,7 @@ func (m *Environment) contextValidateGcpDetails(ctx context.Context, formats str func (m *Environment) contextValidateLogStorage(ctx context.Context, formats strfmt.Registry) error { if m.LogStorage != nil { + if err := m.LogStorage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logStorage") @@ -611,6 +637,7 @@ func (m *Environment) contextValidateLogStorage(ctx context.Context, formats str func (m *Environment) contextValidateNetwork(ctx context.Context, formats strfmt.Registry) error { if m.Network != nil { + if err := m.Network.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("network") @@ -627,6 +654,11 @@ func (m *Environment) contextValidateNetwork(ctx context.Context, formats strfmt func (m *Environment) contextValidateProxyConfig(ctx context.Context, formats strfmt.Registry) error { if m.ProxyConfig != nil { + + if swag.IsZero(m.ProxyConfig) { // not required + return nil + } + if err := m.ProxyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxyConfig") @@ -643,6 +675,11 @@ func (m *Environment) contextValidateProxyConfig(ctx context.Context, formats st func (m *Environment) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { + + if swag.IsZero(m.SecurityAccess) { // not required + return nil + } + if err := m.SecurityAccess.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("securityAccess") @@ -659,6 +696,11 @@ func (m *Environment) contextValidateSecurityAccess(ctx context.Context, formats func (m *Environment) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { if m.Tags != nil { + + if swag.IsZero(m.Tags) { // not required + return nil + } + if err := m.Tags.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags") @@ -674,6 +716,10 @@ func (m *Environment) contextValidateTags(ctx context.Context, formats strfmt.Re func (m *Environment) contextValidateTunnelType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.TunnelType) { // not required + return nil + } + if err := m.TunnelType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tunnelType") diff --git a/cdp-sdk-go/gen/environments/models/exposed_service.go b/cdp-sdk-go/gen/environments/models/exposed_service.go index e77fc04f..2bf72eee 100644 --- a/cdp-sdk-go/gen/environments/models/exposed_service.go +++ b/cdp-sdk-go/gen/environments/models/exposed_service.go @@ -100,6 +100,11 @@ func (m *ExposedService) contextValidateServiceValidationMessages(ctx context.Co for i := 0; i < len(m.ServiceValidationMessages); i++ { if m.ServiceValidationMessages[i] != nil { + + if swag.IsZero(m.ServiceValidationMessages[i]) { // not required + return nil + } + if err := m.ServiceValidationMessages[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("serviceValidationMessages" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/freeipa_diagnostics_collection_response.go b/cdp-sdk-go/gen/environments/models/freeipa_diagnostics_collection_response.go index 164f7281..fe87c32e 100644 --- a/cdp-sdk-go/gen/environments/models/freeipa_diagnostics_collection_response.go +++ b/cdp-sdk-go/gen/environments/models/freeipa_diagnostics_collection_response.go @@ -159,6 +159,11 @@ func (m *FreeipaDiagnosticsCollectionResponse) ContextValidate(ctx context.Conte func (m *FreeipaDiagnosticsCollectionResponse) contextValidateCollectionDetails(ctx context.Context, formats strfmt.Registry) error { if m.CollectionDetails != nil { + + if swag.IsZero(m.CollectionDetails) { // not required + return nil + } + if err := m.CollectionDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("collectionDetails") diff --git a/cdp-sdk-go/gen/environments/models/get_account_telemetry_default_response.go b/cdp-sdk-go/gen/environments/models/get_account_telemetry_default_response.go index 7757cd44..a656b283 100644 --- a/cdp-sdk-go/gen/environments/models/get_account_telemetry_default_response.go +++ b/cdp-sdk-go/gen/environments/models/get_account_telemetry_default_response.go @@ -88,6 +88,11 @@ func (m *GetAccountTelemetryDefaultResponse) contextValidateRules(ctx context.Co for i := 0; i < len(m.Rules); i++ { if m.Rules[i] != nil { + + if swag.IsZero(m.Rules[i]) { // not required + return nil + } + if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/get_account_telemetry_response.go b/cdp-sdk-go/gen/environments/models/get_account_telemetry_response.go index 803c0160..933e650b 100644 --- a/cdp-sdk-go/gen/environments/models/get_account_telemetry_response.go +++ b/cdp-sdk-go/gen/environments/models/get_account_telemetry_response.go @@ -88,6 +88,11 @@ func (m *GetAccountTelemetryResponse) contextValidateRules(ctx context.Context, for i := 0; i < len(m.Rules); i++ { if m.Rules[i] != nil { + + if swag.IsZero(m.Rules[i]) { // not required + return nil + } + if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/get_audit_credential_prerequisites_response.go b/cdp-sdk-go/gen/environments/models/get_audit_credential_prerequisites_response.go index 8054e78d..e5ac9f27 100644 --- a/cdp-sdk-go/gen/environments/models/get_audit_credential_prerequisites_response.go +++ b/cdp-sdk-go/gen/environments/models/get_audit_credential_prerequisites_response.go @@ -123,6 +123,11 @@ func (m *GetAuditCredentialPrerequisitesResponse) ContextValidate(ctx context.Co func (m *GetAuditCredentialPrerequisitesResponse) contextValidateAws(ctx context.Context, formats strfmt.Registry) error { if m.Aws != nil { + + if swag.IsZero(m.Aws) { // not required + return nil + } + if err := m.Aws.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("aws") @@ -139,6 +144,11 @@ func (m *GetAuditCredentialPrerequisitesResponse) contextValidateAws(ctx context func (m *GetAuditCredentialPrerequisitesResponse) contextValidateAzure(ctx context.Context, formats strfmt.Registry) error { if m.Azure != nil { + + if swag.IsZero(m.Azure) { // not required + return nil + } + if err := m.Azure.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azure") diff --git a/cdp-sdk-go/gen/environments/models/get_automated_sync_environment_status_response.go b/cdp-sdk-go/gen/environments/models/get_automated_sync_environment_status_response.go index 92e94e7a..f842b544 100644 --- a/cdp-sdk-go/gen/environments/models/get_automated_sync_environment_status_response.go +++ b/cdp-sdk-go/gen/environments/models/get_automated_sync_environment_status_response.go @@ -133,6 +133,11 @@ func (m *GetAutomatedSyncEnvironmentStatusResponse) ContextValidate(ctx context. func (m *GetAutomatedSyncEnvironmentStatusResponse) contextValidateLastSyncStatus(ctx context.Context, formats strfmt.Registry) error { if m.LastSyncStatus != nil { + + if swag.IsZero(m.LastSyncStatus) { // not required + return nil + } + if err := m.LastSyncStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lastSyncStatus") diff --git a/cdp-sdk-go/gen/environments/models/get_credential_prerequisites_response.go b/cdp-sdk-go/gen/environments/models/get_credential_prerequisites_response.go index 9efd8d86..0dd7edbf 100644 --- a/cdp-sdk-go/gen/environments/models/get_credential_prerequisites_response.go +++ b/cdp-sdk-go/gen/environments/models/get_credential_prerequisites_response.go @@ -123,6 +123,11 @@ func (m *GetCredentialPrerequisitesResponse) ContextValidate(ctx context.Context func (m *GetCredentialPrerequisitesResponse) contextValidateAws(ctx context.Context, formats strfmt.Registry) error { if m.Aws != nil { + + if swag.IsZero(m.Aws) { // not required + return nil + } + if err := m.Aws.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("aws") @@ -139,6 +144,11 @@ func (m *GetCredentialPrerequisitesResponse) contextValidateAws(ctx context.Cont func (m *GetCredentialPrerequisitesResponse) contextValidateAzure(ctx context.Context, formats strfmt.Registry) error { if m.Azure != nil { + + if swag.IsZero(m.Azure) { // not required + return nil + } + if err := m.Azure.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azure") diff --git a/cdp-sdk-go/gen/environments/models/get_freeipa_log_descriptors_response.go b/cdp-sdk-go/gen/environments/models/get_freeipa_log_descriptors_response.go index 698e8b2c..5d008f12 100644 --- a/cdp-sdk-go/gen/environments/models/get_freeipa_log_descriptors_response.go +++ b/cdp-sdk-go/gen/environments/models/get_freeipa_log_descriptors_response.go @@ -82,6 +82,11 @@ func (m *GetFreeipaLogDescriptorsResponse) contextValidateLogs(ctx context.Conte for i := 0; i < len(m.Logs); i++ { if m.Logs[i] != nil { + + if swag.IsZero(m.Logs[i]) { // not required + return nil + } + if err := m.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_response.go b/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_response.go index 3028fbde..e3116100 100644 --- a/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_response.go +++ b/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_response.go @@ -140,6 +140,11 @@ func (m *GetIDBrokerMappingsResponse) contextValidateMappings(ctx context.Contex for i := 0; i < len(m.Mappings); i++ { if m.Mappings[i] != nil { + + if swag.IsZero(m.Mappings[i]) { // not required + return nil + } + if err := m.Mappings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mappings" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_sync_status_response.go b/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_sync_status_response.go index ed09fde1..1d463161 100644 --- a/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_sync_status_response.go +++ b/cdp-sdk-go/gen/environments/models/get_id_broker_mappings_sync_status_response.go @@ -135,6 +135,7 @@ func (m *GetIDBrokerMappingsSyncStatusResponse) ContextValidate(ctx context.Cont func (m *GetIDBrokerMappingsSyncStatusResponse) contextValidateGlobalStatus(ctx context.Context, formats strfmt.Registry) error { if m.GlobalStatus != nil { + if err := m.GlobalStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("globalStatus") diff --git a/cdp-sdk-go/gen/environments/models/get_repair_freeipa_status_response.go b/cdp-sdk-go/gen/environments/models/get_repair_freeipa_status_response.go index 80618186..efe8d6b9 100644 --- a/cdp-sdk-go/gen/environments/models/get_repair_freeipa_status_response.go +++ b/cdp-sdk-go/gen/environments/models/get_repair_freeipa_status_response.go @@ -191,6 +191,11 @@ func (m *GetRepairFreeipaStatusResponse) contextValidateFailureOperationDetails( for i := 0; i < len(m.FailureOperationDetails); i++ { if m.FailureOperationDetails[i] != nil { + + if swag.IsZero(m.FailureOperationDetails[i]) { // not required + return nil + } + if err := m.FailureOperationDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failureOperationDetails" + "." + strconv.Itoa(i)) @@ -208,6 +213,10 @@ func (m *GetRepairFreeipaStatusResponse) contextValidateFailureOperationDetails( func (m *GetRepairFreeipaStatusResponse) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -225,6 +234,11 @@ func (m *GetRepairFreeipaStatusResponse) contextValidateSuccessfulOperationDetai for i := 0; i < len(m.SuccessfulOperationDetails); i++ { if m.SuccessfulOperationDetails[i] != nil { + + if swag.IsZero(m.SuccessfulOperationDetails[i]) { // not required + return nil + } + if err := m.SuccessfulOperationDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("successfulOperationDetails" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/id_broker_sync_status.go b/cdp-sdk-go/gen/environments/models/id_broker_sync_status.go index ed3a1d4f..99c4a440 100644 --- a/cdp-sdk-go/gen/environments/models/id_broker_sync_status.go +++ b/cdp-sdk-go/gen/environments/models/id_broker_sync_status.go @@ -122,6 +122,7 @@ func (m *IDBrokerSyncStatus) ContextValidate(ctx context.Context, formats strfmt func (m *IDBrokerSyncStatus) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/cdp-sdk-go/gen/environments/models/instance_template.go b/cdp-sdk-go/gen/environments/models/instance_template.go index a163b2ba..102b026c 100644 --- a/cdp-sdk-go/gen/environments/models/instance_template.go +++ b/cdp-sdk-go/gen/environments/models/instance_template.go @@ -115,6 +115,11 @@ func (m *InstanceTemplate) contextValidateAttachedVolumes(ctx context.Context, f for i := 0; i < len(m.AttachedVolumes); i++ { if m.AttachedVolumes[i] != nil { + + if swag.IsZero(m.AttachedVolumes[i]) { // not required + return nil + } + if err := m.AttachedVolumes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attachedVolumes" + "." + strconv.Itoa(i)) @@ -133,6 +138,11 @@ func (m *InstanceTemplate) contextValidateAttachedVolumes(ctx context.Context, f func (m *InstanceTemplate) contextValidateAwsProperties(ctx context.Context, formats strfmt.Registry) error { if m.AwsProperties != nil { + + if swag.IsZero(m.AwsProperties) { // not required + return nil + } + if err := m.AwsProperties.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsProperties") diff --git a/cdp-sdk-go/gen/environments/models/list_audit_credentials_response.go b/cdp-sdk-go/gen/environments/models/list_audit_credentials_response.go index 87b1afdf..8ef73170 100644 --- a/cdp-sdk-go/gen/environments/models/list_audit_credentials_response.go +++ b/cdp-sdk-go/gen/environments/models/list_audit_credentials_response.go @@ -85,6 +85,11 @@ func (m *ListAuditCredentialsResponse) contextValidateCredentials(ctx context.Co for i := 0; i < len(m.Credentials); i++ { if m.Credentials[i] != nil { + + if swag.IsZero(m.Credentials[i]) { // not required + return nil + } + if err := m.Credentials[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credentials" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/list_credentials_response.go b/cdp-sdk-go/gen/environments/models/list_credentials_response.go index d6e95563..d4b52e9b 100644 --- a/cdp-sdk-go/gen/environments/models/list_credentials_response.go +++ b/cdp-sdk-go/gen/environments/models/list_credentials_response.go @@ -85,6 +85,11 @@ func (m *ListCredentialsResponse) contextValidateCredentials(ctx context.Context for i := 0; i < len(m.Credentials); i++ { if m.Credentials[i] != nil { + + if swag.IsZero(m.Credentials[i]) { // not required + return nil + } + if err := m.Credentials[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credentials" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/list_environments_response.go b/cdp-sdk-go/gen/environments/models/list_environments_response.go index 8bff50ad..6a8f7aa7 100644 --- a/cdp-sdk-go/gen/environments/models/list_environments_response.go +++ b/cdp-sdk-go/gen/environments/models/list_environments_response.go @@ -85,6 +85,11 @@ func (m *ListEnvironmentsResponse) contextValidateEnvironments(ctx context.Conte for i := 0; i < len(m.Environments); i++ { if m.Environments[i] != nil { + + if swag.IsZero(m.Environments[i]) { // not required + return nil + } + if err := m.Environments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environments" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/list_freeipa_diagnostics_response.go b/cdp-sdk-go/gen/environments/models/list_freeipa_diagnostics_response.go index 03976604..449c592b 100644 --- a/cdp-sdk-go/gen/environments/models/list_freeipa_diagnostics_response.go +++ b/cdp-sdk-go/gen/environments/models/list_freeipa_diagnostics_response.go @@ -82,6 +82,11 @@ func (m *ListFreeipaDiagnosticsResponse) contextValidateCollections(ctx context. for i := 0; i < len(m.Collections); i++ { if m.Collections[i] != nil { + + if swag.IsZero(m.Collections[i]) { // not required + return nil + } + if err := m.Collections[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("collections" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/list_proxy_configs_response.go b/cdp-sdk-go/gen/environments/models/list_proxy_configs_response.go index 266a4523..fa488adc 100644 --- a/cdp-sdk-go/gen/environments/models/list_proxy_configs_response.go +++ b/cdp-sdk-go/gen/environments/models/list_proxy_configs_response.go @@ -85,6 +85,11 @@ func (m *ListProxyConfigsResponse) contextValidateProxyConfigs(ctx context.Conte for i := 0; i < len(m.ProxyConfigs); i++ { if m.ProxyConfigs[i] != nil { + + if swag.IsZero(m.ProxyConfigs[i]) { // not required + return nil + } + if err := m.ProxyConfigs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxyConfigs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/log_storage.go b/cdp-sdk-go/gen/environments/models/log_storage.go index 0c1a58c0..1a06ef4f 100644 --- a/cdp-sdk-go/gen/environments/models/log_storage.go +++ b/cdp-sdk-go/gen/environments/models/log_storage.go @@ -150,6 +150,11 @@ func (m *LogStorage) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *LogStorage) contextValidateAwsDetails(ctx context.Context, formats strfmt.Registry) error { if m.AwsDetails != nil { + + if swag.IsZero(m.AwsDetails) { // not required + return nil + } + if err := m.AwsDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsDetails") @@ -166,6 +171,11 @@ func (m *LogStorage) contextValidateAwsDetails(ctx context.Context, formats strf func (m *LogStorage) contextValidateAzureDetails(ctx context.Context, formats strfmt.Registry) error { if m.AzureDetails != nil { + + if swag.IsZero(m.AzureDetails) { // not required + return nil + } + if err := m.AzureDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureDetails") @@ -182,6 +192,11 @@ func (m *LogStorage) contextValidateAzureDetails(ctx context.Context, formats st func (m *LogStorage) contextValidateGcpDetails(ctx context.Context, formats strfmt.Registry) error { if m.GcpDetails != nil { + + if swag.IsZero(m.GcpDetails) { // not required + return nil + } + if err := m.GcpDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("gcpDetails") diff --git a/cdp-sdk-go/gen/environments/models/network.go b/cdp-sdk-go/gen/environments/models/network.go index 91e0e303..7e3de6fd 100644 --- a/cdp-sdk-go/gen/environments/models/network.go +++ b/cdp-sdk-go/gen/environments/models/network.go @@ -283,6 +283,11 @@ func (m *Network) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Network) contextValidateAws(ctx context.Context, formats strfmt.Registry) error { if m.Aws != nil { + + if swag.IsZero(m.Aws) { // not required + return nil + } + if err := m.Aws.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("aws") @@ -299,6 +304,11 @@ func (m *Network) contextValidateAws(ctx context.Context, formats strfmt.Registr func (m *Network) contextValidateAzure(ctx context.Context, formats strfmt.Registry) error { if m.Azure != nil { + + if swag.IsZero(m.Azure) { // not required + return nil + } + if err := m.Azure.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azure") @@ -315,6 +325,11 @@ func (m *Network) contextValidateAzure(ctx context.Context, formats strfmt.Regis func (m *Network) contextValidateGcp(ctx context.Context, formats strfmt.Registry) error { if m.Gcp != nil { + + if swag.IsZero(m.Gcp) { // not required + return nil + } + if err := m.Gcp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("gcp") diff --git a/cdp-sdk-go/gen/environments/models/repair_freeipa_response.go b/cdp-sdk-go/gen/environments/models/repair_freeipa_response.go index 595ac97f..81d5f8a2 100644 --- a/cdp-sdk-go/gen/environments/models/repair_freeipa_response.go +++ b/cdp-sdk-go/gen/environments/models/repair_freeipa_response.go @@ -194,6 +194,11 @@ func (m *RepairFreeipaResponse) contextValidateFailureOperationDetails(ctx conte for i := 0; i < len(m.FailureOperationDetails); i++ { if m.FailureOperationDetails[i] != nil { + + if swag.IsZero(m.FailureOperationDetails[i]) { // not required + return nil + } + if err := m.FailureOperationDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failureOperationDetails" + "." + strconv.Itoa(i)) @@ -211,6 +216,10 @@ func (m *RepairFreeipaResponse) contextValidateFailureOperationDetails(ctx conte func (m *RepairFreeipaResponse) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -228,6 +237,11 @@ func (m *RepairFreeipaResponse) contextValidateSuccessfulOperationDetails(ctx co for i := 0; i < len(m.SuccessfulOperationDetails); i++ { if m.SuccessfulOperationDetails[i] != nil { + + if swag.IsZero(m.SuccessfulOperationDetails[i]) { // not required + return nil + } + if err := m.SuccessfulOperationDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("successfulOperationDetails" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/set_a_w_s_audit_credential_response.go b/cdp-sdk-go/gen/environments/models/set_a_w_s_audit_credential_response.go index dbee291c..4ff76dd1 100644 --- a/cdp-sdk-go/gen/environments/models/set_a_w_s_audit_credential_response.go +++ b/cdp-sdk-go/gen/environments/models/set_a_w_s_audit_credential_response.go @@ -75,6 +75,7 @@ func (m *SetAWSAuditCredentialResponse) ContextValidate(ctx context.Context, for func (m *SetAWSAuditCredentialResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") diff --git a/cdp-sdk-go/gen/environments/models/set_account_telemetry_request.go b/cdp-sdk-go/gen/environments/models/set_account_telemetry_request.go index d1f7565f..4774c38d 100644 --- a/cdp-sdk-go/gen/environments/models/set_account_telemetry_request.go +++ b/cdp-sdk-go/gen/environments/models/set_account_telemetry_request.go @@ -88,6 +88,11 @@ func (m *SetAccountTelemetryRequest) contextValidateRules(ctx context.Context, f for i := 0; i < len(m.Rules); i++ { if m.Rules[i] != nil { + + if swag.IsZero(m.Rules[i]) { // not required + return nil + } + if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/set_account_telemetry_response.go b/cdp-sdk-go/gen/environments/models/set_account_telemetry_response.go index 63615f89..a86ed45c 100644 --- a/cdp-sdk-go/gen/environments/models/set_account_telemetry_response.go +++ b/cdp-sdk-go/gen/environments/models/set_account_telemetry_response.go @@ -88,6 +88,11 @@ func (m *SetAccountTelemetryResponse) contextValidateRules(ctx context.Context, for i := 0; i < len(m.Rules); i++ { if m.Rules[i] != nil { + + if swag.IsZero(m.Rules[i]) { // not required + return nil + } + if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_request.go b/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_request.go index 341a2d5c..4f2cf868 100644 --- a/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_request.go +++ b/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_request.go @@ -109,6 +109,7 @@ func (m *SetAzureAuditCredentialRequest) ContextValidate(ctx context.Context, fo func (m *SetAzureAuditCredentialRequest) contextValidateAppBased(ctx context.Context, formats strfmt.Registry) error { if m.AppBased != nil { + if err := m.AppBased.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appBased") diff --git a/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_response.go b/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_response.go index 44879ae4..300fd396 100644 --- a/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_response.go +++ b/cdp-sdk-go/gen/environments/models/set_azure_audit_credential_response.go @@ -75,6 +75,7 @@ func (m *SetAzureAuditCredentialResponse) ContextValidate(ctx context.Context, f func (m *SetAzureAuditCredentialResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") diff --git a/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_request.go b/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_request.go index 8b1be83b..1a55fff0 100644 --- a/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_request.go +++ b/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_request.go @@ -129,6 +129,11 @@ func (m *SetIDBrokerMappingsRequest) contextValidateMappings(ctx context.Context for i := 0; i < len(m.Mappings); i++ { if m.Mappings[i] != nil { + + if swag.IsZero(m.Mappings[i]) { // not required + return nil + } + if err := m.Mappings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mappings" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_response.go b/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_response.go index 4f25193e..06c1442a 100644 --- a/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_response.go +++ b/cdp-sdk-go/gen/environments/models/set_id_broker_mappings_response.go @@ -140,6 +140,11 @@ func (m *SetIDBrokerMappingsResponse) contextValidateMappings(ctx context.Contex for i := 0; i < len(m.Mappings); i++ { if m.Mappings[i] != nil { + + if swag.IsZero(m.Mappings[i]) { // not required + return nil + } + if err := m.Mappings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mappings" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/set_password_response.go b/cdp-sdk-go/gen/environments/models/set_password_response.go index 72ed1888..30a1465a 100644 --- a/cdp-sdk-go/gen/environments/models/set_password_response.go +++ b/cdp-sdk-go/gen/environments/models/set_password_response.go @@ -202,6 +202,11 @@ func (m *SetPasswordResponse) contextValidateFailure(ctx context.Context, format for i := 0; i < len(m.Failure); i++ { if m.Failure[i] != nil { + + if swag.IsZero(m.Failure[i]) { // not required + return nil + } + if err := m.Failure[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failure" + "." + strconv.Itoa(i)) @@ -219,6 +224,10 @@ func (m *SetPasswordResponse) contextValidateFailure(ctx context.Context, format func (m *SetPasswordResponse) contextValidateOperationType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.OperationType) { // not required + return nil + } + if err := m.OperationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationType") @@ -233,6 +242,10 @@ func (m *SetPasswordResponse) contextValidateOperationType(ctx context.Context, func (m *SetPasswordResponse) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -250,6 +263,11 @@ func (m *SetPasswordResponse) contextValidateSuccess(ctx context.Context, format for i := 0; i < len(m.Success); i++ { if m.Success[i] != nil { + + if swag.IsZero(m.Success[i]) { // not required + return nil + } + if err := m.Success[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("success" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_request.go b/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_request.go index 354e9d0a..5c59865a 100644 --- a/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_request.go +++ b/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_request.go @@ -92,6 +92,7 @@ func (m *StartFreeIpaVerticalScalingRequest) ContextValidate(ctx context.Context func (m *StartFreeIpaVerticalScalingRequest) contextValidateInstanceTemplate(ctx context.Context, formats strfmt.Registry) error { if m.InstanceTemplate != nil { + if err := m.InstanceTemplate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceTemplate") diff --git a/cdp-sdk-go/gen/environments/models/sync_all_users_response.go b/cdp-sdk-go/gen/environments/models/sync_all_users_response.go index a4da9190..90cfd5b6 100644 --- a/cdp-sdk-go/gen/environments/models/sync_all_users_response.go +++ b/cdp-sdk-go/gen/environments/models/sync_all_users_response.go @@ -202,6 +202,11 @@ func (m *SyncAllUsersResponse) contextValidateFailure(ctx context.Context, forma for i := 0; i < len(m.Failure); i++ { if m.Failure[i] != nil { + + if swag.IsZero(m.Failure[i]) { // not required + return nil + } + if err := m.Failure[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failure" + "." + strconv.Itoa(i)) @@ -219,6 +224,10 @@ func (m *SyncAllUsersResponse) contextValidateFailure(ctx context.Context, forma func (m *SyncAllUsersResponse) contextValidateOperationType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.OperationType) { // not required + return nil + } + if err := m.OperationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationType") @@ -233,6 +242,10 @@ func (m *SyncAllUsersResponse) contextValidateOperationType(ctx context.Context, func (m *SyncAllUsersResponse) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -250,6 +263,11 @@ func (m *SyncAllUsersResponse) contextValidateSuccess(ctx context.Context, forma for i := 0; i < len(m.Success); i++ { if m.Success[i] != nil { + + if swag.IsZero(m.Success[i]) { // not required + return nil + } + if err := m.Success[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("success" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/sync_status_response.go b/cdp-sdk-go/gen/environments/models/sync_status_response.go index a11e75d7..9a11f91e 100644 --- a/cdp-sdk-go/gen/environments/models/sync_status_response.go +++ b/cdp-sdk-go/gen/environments/models/sync_status_response.go @@ -202,6 +202,11 @@ func (m *SyncStatusResponse) contextValidateFailure(ctx context.Context, formats for i := 0; i < len(m.Failure); i++ { if m.Failure[i] != nil { + + if swag.IsZero(m.Failure[i]) { // not required + return nil + } + if err := m.Failure[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failure" + "." + strconv.Itoa(i)) @@ -219,6 +224,10 @@ func (m *SyncStatusResponse) contextValidateFailure(ctx context.Context, formats func (m *SyncStatusResponse) contextValidateOperationType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.OperationType) { // not required + return nil + } + if err := m.OperationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationType") @@ -233,6 +242,10 @@ func (m *SyncStatusResponse) contextValidateOperationType(ctx context.Context, f func (m *SyncStatusResponse) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -250,6 +263,11 @@ func (m *SyncStatusResponse) contextValidateSuccess(ctx context.Context, formats for i := 0; i < len(m.Success); i++ { if m.Success[i] != nil { + + if swag.IsZero(m.Success[i]) { // not required + return nil + } + if err := m.Success[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("success" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/sync_user_response.go b/cdp-sdk-go/gen/environments/models/sync_user_response.go index b0a4b3e5..c4ec5b6f 100644 --- a/cdp-sdk-go/gen/environments/models/sync_user_response.go +++ b/cdp-sdk-go/gen/environments/models/sync_user_response.go @@ -202,6 +202,11 @@ func (m *SyncUserResponse) contextValidateFailure(ctx context.Context, formats s for i := 0; i < len(m.Failure); i++ { if m.Failure[i] != nil { + + if swag.IsZero(m.Failure[i]) { // not required + return nil + } + if err := m.Failure[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failure" + "." + strconv.Itoa(i)) @@ -219,6 +224,10 @@ func (m *SyncUserResponse) contextValidateFailure(ctx context.Context, formats s func (m *SyncUserResponse) contextValidateOperationType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.OperationType) { // not required + return nil + } + if err := m.OperationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationType") @@ -233,6 +242,10 @@ func (m *SyncUserResponse) contextValidateOperationType(ctx context.Context, for func (m *SyncUserResponse) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -250,6 +263,11 @@ func (m *SyncUserResponse) contextValidateSuccess(ctx context.Context, formats s for i := 0; i < len(m.Success); i++ { if m.Success[i] != nil { + + if swag.IsZero(m.Success[i]) { // not required + return nil + } + if err := m.Success[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("success" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/test_account_telemetry_rules_request.go b/cdp-sdk-go/gen/environments/models/test_account_telemetry_rules_request.go index bc437bf8..a46c6120 100644 --- a/cdp-sdk-go/gen/environments/models/test_account_telemetry_rules_request.go +++ b/cdp-sdk-go/gen/environments/models/test_account_telemetry_rules_request.go @@ -102,6 +102,11 @@ func (m *TestAccountTelemetryRulesRequest) contextValidateRules(ctx context.Cont for i := 0; i < len(m.Rules); i++ { if m.Rules[i] != nil { + + if swag.IsZero(m.Rules[i]) { // not required + return nil + } + if err := m.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rules" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/environments/models/update_aws_disk_encryption_parameters_response.go b/cdp-sdk-go/gen/environments/models/update_aws_disk_encryption_parameters_response.go index 8fc84701..e4f0fbbf 100644 --- a/cdp-sdk-go/gen/environments/models/update_aws_disk_encryption_parameters_response.go +++ b/cdp-sdk-go/gen/environments/models/update_aws_disk_encryption_parameters_response.go @@ -105,6 +105,11 @@ func (m *UpdateAwsDiskEncryptionParametersResponse) ContextValidate(ctx context. func (m *UpdateAwsDiskEncryptionParametersResponse) contextValidateAwsDiskEncryptionParameters(ctx context.Context, formats strfmt.Registry) error { if m.AwsDiskEncryptionParameters != nil { + + if swag.IsZero(m.AwsDiskEncryptionParameters) { // not required + return nil + } + if err := m.AwsDiskEncryptionParameters.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("awsDiskEncryptionParameters") @@ -121,6 +126,7 @@ func (m *UpdateAwsDiskEncryptionParametersResponse) contextValidateAwsDiskEncryp func (m *UpdateAwsDiskEncryptionParametersResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/update_azure_credential_request.go b/cdp-sdk-go/gen/environments/models/update_azure_credential_request.go index 64c52611..83a22d1b 100644 --- a/cdp-sdk-go/gen/environments/models/update_azure_credential_request.go +++ b/cdp-sdk-go/gen/environments/models/update_azure_credential_request.go @@ -129,6 +129,7 @@ func (m *UpdateAzureCredentialRequest) ContextValidate(ctx context.Context, form func (m *UpdateAzureCredentialRequest) contextValidateAppBased(ctx context.Context, formats strfmt.Registry) error { if m.AppBased != nil { + if err := m.AppBased.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appBased") @@ -242,6 +243,7 @@ func (m *UpdateAzureCredentialRequestAppBased) ContextValidate(ctx context.Conte func (m *UpdateAzureCredentialRequestAppBased) contextValidateAuthenticationType(ctx context.Context, formats strfmt.Registry) error { if m.AuthenticationType != nil { + if err := m.AuthenticationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appBased" + "." + "authenticationType") diff --git a/cdp-sdk-go/gen/environments/models/update_azure_credential_response.go b/cdp-sdk-go/gen/environments/models/update_azure_credential_response.go index d59292e3..86a2f538 100644 --- a/cdp-sdk-go/gen/environments/models/update_azure_credential_response.go +++ b/cdp-sdk-go/gen/environments/models/update_azure_credential_response.go @@ -72,6 +72,11 @@ func (m *UpdateAzureCredentialResponse) ContextValidate(ctx context.Context, for func (m *UpdateAzureCredentialResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + + if swag.IsZero(m.Credential) { // not required + return nil + } + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") diff --git a/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_response.go b/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_response.go index 764cca73..a9226aa2 100644 --- a/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_response.go +++ b/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_response.go @@ -105,6 +105,7 @@ func (m *UpdateAzureEncryptionResourcesResponse) ContextValidate(ctx context.Con func (m *UpdateAzureEncryptionResourcesResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") @@ -121,6 +122,11 @@ func (m *UpdateAzureEncryptionResourcesResponse) contextValidateEnvironment(ctx func (m *UpdateAzureEncryptionResourcesResponse) contextValidateResourceEncryptionParameters(ctx context.Context, formats strfmt.Registry) error { if m.ResourceEncryptionParameters != nil { + + if swag.IsZero(m.ResourceEncryptionParameters) { // not required + return nil + } + if err := m.ResourceEncryptionParameters.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourceEncryptionParameters") diff --git a/cdp-sdk-go/gen/environments/models/update_subnet_response.go b/cdp-sdk-go/gen/environments/models/update_subnet_response.go index c1db335a..6032fc56 100644 --- a/cdp-sdk-go/gen/environments/models/update_subnet_response.go +++ b/cdp-sdk-go/gen/environments/models/update_subnet_response.go @@ -75,6 +75,7 @@ func (m *UpdateSubnetResponse) ContextValidate(ctx context.Context, formats strf func (m *UpdateSubnetResponse) contextValidateEnvironment(ctx context.Context, formats strfmt.Registry) error { if m.Environment != nil { + if err := m.Environment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environment") diff --git a/cdp-sdk-go/gen/environments/models/upgrade_freeipa_response.go b/cdp-sdk-go/gen/environments/models/upgrade_freeipa_response.go index b1d4b15c..c373b7df 100644 --- a/cdp-sdk-go/gen/environments/models/upgrade_freeipa_response.go +++ b/cdp-sdk-go/gen/environments/models/upgrade_freeipa_response.go @@ -105,6 +105,11 @@ func (m *UpgradeFreeipaResponse) ContextValidate(ctx context.Context, formats st func (m *UpgradeFreeipaResponse) contextValidateOriginalImage(ctx context.Context, formats strfmt.Registry) error { if m.OriginalImage != nil { + + if swag.IsZero(m.OriginalImage) { // not required + return nil + } + if err := m.OriginalImage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originalImage") @@ -121,6 +126,11 @@ func (m *UpgradeFreeipaResponse) contextValidateOriginalImage(ctx context.Contex func (m *UpgradeFreeipaResponse) contextValidateTargetImage(ctx context.Context, formats strfmt.Registry) error { if m.TargetImage != nil { + + if swag.IsZero(m.TargetImage) { // not required + return nil + } + if err := m.TargetImage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("targetImage") diff --git a/cdp-sdk-go/gen/iam/models/access_key.go b/cdp-sdk-go/gen/iam/models/access_key.go index 53bd62b9..cefad3d8 100644 --- a/cdp-sdk-go/gen/iam/models/access_key.go +++ b/cdp-sdk-go/gen/iam/models/access_key.go @@ -225,6 +225,11 @@ func (m *AccessKey) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *AccessKey) contextValidateLastUsage(ctx context.Context, formats strfmt.Registry) error { if m.LastUsage != nil { + + if swag.IsZero(m.LastUsage) { // not required + return nil + } + if err := m.LastUsage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lastUsage") @@ -240,6 +245,10 @@ func (m *AccessKey) contextValidateLastUsage(ctx context.Context, formats strfmt func (m *AccessKey) contextValidateType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/cdp-sdk-go/gen/iam/models/account.go b/cdp-sdk-go/gen/iam/models/account.go index a8a7dd11..87ec21f2 100644 --- a/cdp-sdk-go/gen/iam/models/account.go +++ b/cdp-sdk-go/gen/iam/models/account.go @@ -169,6 +169,11 @@ func (m *Account) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Account) contextValidateAuthenticationPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AuthenticationPolicy != nil { + + if swag.IsZero(m.AuthenticationPolicy) { // not required + return nil + } + if err := m.AuthenticationPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("authenticationPolicy") @@ -185,6 +190,11 @@ func (m *Account) contextValidateAuthenticationPolicy(ctx context.Context, forma func (m *Account) contextValidateMachineUserWorkloadPasswordPolicy(ctx context.Context, formats strfmt.Registry) error { if m.MachineUserWorkloadPasswordPolicy != nil { + + if swag.IsZero(m.MachineUserWorkloadPasswordPolicy) { // not required + return nil + } + if err := m.MachineUserWorkloadPasswordPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machineUserWorkloadPasswordPolicy") @@ -201,6 +211,7 @@ func (m *Account) contextValidateMachineUserWorkloadPasswordPolicy(ctx context.C func (m *Account) contextValidateWorkloadPasswordPolicy(ctx context.Context, formats strfmt.Registry) error { if m.WorkloadPasswordPolicy != nil { + if err := m.WorkloadPasswordPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("workloadPasswordPolicy") diff --git a/cdp-sdk-go/gen/iam/models/add_ssh_public_key_response.go b/cdp-sdk-go/gen/iam/models/add_ssh_public_key_response.go index b06016a3..e4969de2 100644 --- a/cdp-sdk-go/gen/iam/models/add_ssh_public_key_response.go +++ b/cdp-sdk-go/gen/iam/models/add_ssh_public_key_response.go @@ -75,6 +75,7 @@ func (m *AddSSHPublicKeyResponse) ContextValidate(ctx context.Context, formats s func (m *AddSSHPublicKeyResponse) contextValidateSSHPublicKey(ctx context.Context, formats strfmt.Registry) error { if m.SSHPublicKey != nil { + if err := m.SSHPublicKey.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sshPublicKey") diff --git a/cdp-sdk-go/gen/iam/models/create_group_response.go b/cdp-sdk-go/gen/iam/models/create_group_response.go index 480dbc1b..2bc12ca2 100644 --- a/cdp-sdk-go/gen/iam/models/create_group_response.go +++ b/cdp-sdk-go/gen/iam/models/create_group_response.go @@ -75,6 +75,7 @@ func (m *CreateGroupResponse) ContextValidate(ctx context.Context, formats strfm func (m *CreateGroupResponse) contextValidateGroup(ctx context.Context, formats strfmt.Registry) error { if m.Group != nil { + if err := m.Group.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group") diff --git a/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_request.go b/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_request.go index 38ee4581..80511414 100644 --- a/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_request.go +++ b/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_request.go @@ -87,6 +87,10 @@ func (m *CreateMachineUserAccessKeyRequest) ContextValidate(ctx context.Context, func (m *CreateMachineUserAccessKeyRequest) contextValidateType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_response.go b/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_response.go index e9074ac6..ee66b11a 100644 --- a/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_response.go +++ b/cdp-sdk-go/gen/iam/models/create_machine_user_access_key_response.go @@ -92,6 +92,7 @@ func (m *CreateMachineUserAccessKeyResponse) ContextValidate(ctx context.Context func (m *CreateMachineUserAccessKeyResponse) contextValidateAccessKey(ctx context.Context, formats strfmt.Registry) error { if m.AccessKey != nil { + if err := m.AccessKey.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessKey") diff --git a/cdp-sdk-go/gen/iam/models/create_machine_user_response.go b/cdp-sdk-go/gen/iam/models/create_machine_user_response.go index d831464c..b2dd88c9 100644 --- a/cdp-sdk-go/gen/iam/models/create_machine_user_response.go +++ b/cdp-sdk-go/gen/iam/models/create_machine_user_response.go @@ -75,6 +75,7 @@ func (m *CreateMachineUserResponse) ContextValidate(ctx context.Context, formats func (m *CreateMachineUserResponse) contextValidateMachineUser(ctx context.Context, formats strfmt.Registry) error { if m.MachineUser != nil { + if err := m.MachineUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machineUser") diff --git a/cdp-sdk-go/gen/iam/models/create_saml_provider_response.go b/cdp-sdk-go/gen/iam/models/create_saml_provider_response.go index 239adb04..11720064 100644 --- a/cdp-sdk-go/gen/iam/models/create_saml_provider_response.go +++ b/cdp-sdk-go/gen/iam/models/create_saml_provider_response.go @@ -75,6 +75,7 @@ func (m *CreateSamlProviderResponse) ContextValidate(ctx context.Context, format func (m *CreateSamlProviderResponse) contextValidateSamlProvider(ctx context.Context, formats strfmt.Registry) error { if m.SamlProvider != nil { + if err := m.SamlProvider.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("samlProvider") diff --git a/cdp-sdk-go/gen/iam/models/create_scim_access_token_response.go b/cdp-sdk-go/gen/iam/models/create_scim_access_token_response.go index 3edb8c77..2860674b 100644 --- a/cdp-sdk-go/gen/iam/models/create_scim_access_token_response.go +++ b/cdp-sdk-go/gen/iam/models/create_scim_access_token_response.go @@ -92,6 +92,7 @@ func (m *CreateScimAccessTokenResponse) ContextValidate(ctx context.Context, for func (m *CreateScimAccessTokenResponse) contextValidateAccessToken(ctx context.Context, formats strfmt.Registry) error { if m.AccessToken != nil { + if err := m.AccessToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessToken") diff --git a/cdp-sdk-go/gen/iam/models/create_user_access_key_request.go b/cdp-sdk-go/gen/iam/models/create_user_access_key_request.go index b5bcd805..a4c008b2 100644 --- a/cdp-sdk-go/gen/iam/models/create_user_access_key_request.go +++ b/cdp-sdk-go/gen/iam/models/create_user_access_key_request.go @@ -72,6 +72,10 @@ func (m *CreateUserAccessKeyRequest) ContextValidate(ctx context.Context, format func (m *CreateUserAccessKeyRequest) contextValidateType(ctx context.Context, formats strfmt.Registry) error { + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/cdp-sdk-go/gen/iam/models/create_user_access_key_response.go b/cdp-sdk-go/gen/iam/models/create_user_access_key_response.go index a736f1e2..b4681cf5 100644 --- a/cdp-sdk-go/gen/iam/models/create_user_access_key_response.go +++ b/cdp-sdk-go/gen/iam/models/create_user_access_key_response.go @@ -92,6 +92,7 @@ func (m *CreateUserAccessKeyResponse) ContextValidate(ctx context.Context, forma func (m *CreateUserAccessKeyResponse) contextValidateAccessKey(ctx context.Context, formats strfmt.Registry) error { if m.AccessKey != nil { + if err := m.AccessKey.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessKey") diff --git a/cdp-sdk-go/gen/iam/models/create_user_response.go b/cdp-sdk-go/gen/iam/models/create_user_response.go index 1c3984eb..abcfaee2 100644 --- a/cdp-sdk-go/gen/iam/models/create_user_response.go +++ b/cdp-sdk-go/gen/iam/models/create_user_response.go @@ -75,6 +75,7 @@ func (m *CreateUserResponse) ContextValidate(ctx context.Context, formats strfmt func (m *CreateUserResponse) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/cdp-sdk-go/gen/iam/models/delete_machine_user_response.go b/cdp-sdk-go/gen/iam/models/delete_machine_user_response.go index 239e17d9..61371db5 100644 --- a/cdp-sdk-go/gen/iam/models/delete_machine_user_response.go +++ b/cdp-sdk-go/gen/iam/models/delete_machine_user_response.go @@ -136,6 +136,11 @@ func (m *DeleteMachineUserResponse) contextValidateResourcesUnassigned(ctx conte for i := 0; i < len(m.ResourcesUnassigned); i++ { if m.ResourcesUnassigned[i] != nil { + + if swag.IsZero(m.ResourcesUnassigned[i]) { // not required + return nil + } + if err := m.ResourcesUnassigned[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourcesUnassigned" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/delete_user_response.go b/cdp-sdk-go/gen/iam/models/delete_user_response.go index 639c75e3..a7676412 100644 --- a/cdp-sdk-go/gen/iam/models/delete_user_response.go +++ b/cdp-sdk-go/gen/iam/models/delete_user_response.go @@ -136,6 +136,11 @@ func (m *DeleteUserResponse) contextValidateResourcesUnassigned(ctx context.Cont for i := 0; i < len(m.ResourcesUnassigned); i++ { if m.ResourcesUnassigned[i] != nil { + + if swag.IsZero(m.ResourcesUnassigned[i]) { // not required + return nil + } + if err := m.ResourcesUnassigned[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourcesUnassigned" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/describe_saml_provider_response.go b/cdp-sdk-go/gen/iam/models/describe_saml_provider_response.go index 2a1923f9..ec15e020 100644 --- a/cdp-sdk-go/gen/iam/models/describe_saml_provider_response.go +++ b/cdp-sdk-go/gen/iam/models/describe_saml_provider_response.go @@ -75,6 +75,7 @@ func (m *DescribeSamlProviderResponse) ContextValidate(ctx context.Context, form func (m *DescribeSamlProviderResponse) contextValidateSamlProvider(ctx context.Context, formats strfmt.Registry) error { if m.SamlProvider != nil { + if err := m.SamlProvider.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("samlProvider") diff --git a/cdp-sdk-go/gen/iam/models/describe_ssh_public_key_response.go b/cdp-sdk-go/gen/iam/models/describe_ssh_public_key_response.go index 764d005e..f90d3b47 100644 --- a/cdp-sdk-go/gen/iam/models/describe_ssh_public_key_response.go +++ b/cdp-sdk-go/gen/iam/models/describe_ssh_public_key_response.go @@ -75,6 +75,7 @@ func (m *DescribeSSHPublicKeyResponse) ContextValidate(ctx context.Context, form func (m *DescribeSSHPublicKeyResponse) contextValidateSSHPublicKey(ctx context.Context, formats strfmt.Registry) error { if m.SSHPublicKey != nil { + if err := m.SSHPublicKey.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sshPublicKey") diff --git a/cdp-sdk-go/gen/iam/models/generate_workload_auth_token_request.go b/cdp-sdk-go/gen/iam/models/generate_workload_auth_token_request.go index 0ffe2fd7..b09535b5 100644 --- a/cdp-sdk-go/gen/iam/models/generate_workload_auth_token_request.go +++ b/cdp-sdk-go/gen/iam/models/generate_workload_auth_token_request.go @@ -82,6 +82,7 @@ func (m *GenerateWorkloadAuthTokenRequest) ContextValidate(ctx context.Context, func (m *GenerateWorkloadAuthTokenRequest) contextValidateWorkloadName(ctx context.Context, formats strfmt.Registry) error { if m.WorkloadName != nil { + if err := m.WorkloadName.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("workloadName") diff --git a/cdp-sdk-go/gen/iam/models/get_access_key_response.go b/cdp-sdk-go/gen/iam/models/get_access_key_response.go index c28039e7..afc1f5a2 100644 --- a/cdp-sdk-go/gen/iam/models/get_access_key_response.go +++ b/cdp-sdk-go/gen/iam/models/get_access_key_response.go @@ -75,6 +75,7 @@ func (m *GetAccessKeyResponse) ContextValidate(ctx context.Context, formats strf func (m *GetAccessKeyResponse) contextValidateAccessKey(ctx context.Context, formats strfmt.Registry) error { if m.AccessKey != nil { + if err := m.AccessKey.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessKey") diff --git a/cdp-sdk-go/gen/iam/models/get_account_response.go b/cdp-sdk-go/gen/iam/models/get_account_response.go index ac319b41..0e4f9262 100644 --- a/cdp-sdk-go/gen/iam/models/get_account_response.go +++ b/cdp-sdk-go/gen/iam/models/get_account_response.go @@ -75,6 +75,7 @@ func (m *GetAccountResponse) ContextValidate(ctx context.Context, formats strfmt func (m *GetAccountResponse) contextValidateAccount(ctx context.Context, formats strfmt.Registry) error { if m.Account != nil { + if err := m.Account.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("account") diff --git a/cdp-sdk-go/gen/iam/models/get_user_response.go b/cdp-sdk-go/gen/iam/models/get_user_response.go index 53c3a470..1781e552 100644 --- a/cdp-sdk-go/gen/iam/models/get_user_response.go +++ b/cdp-sdk-go/gen/iam/models/get_user_response.go @@ -75,6 +75,7 @@ func (m *GetUserResponse) ContextValidate(ctx context.Context, formats strfmt.Re func (m *GetUserResponse) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/cdp-sdk-go/gen/iam/models/group.go b/cdp-sdk-go/gen/iam/models/group.go index f26841c6..70f7a9c4 100644 --- a/cdp-sdk-go/gen/iam/models/group.go +++ b/cdp-sdk-go/gen/iam/models/group.go @@ -142,6 +142,11 @@ func (m *Group) contextValidateAzureCloudIdentities(ctx context.Context, formats for i := 0; i < len(m.AzureCloudIdentities); i++ { if m.AzureCloudIdentities[i] != nil { + + if swag.IsZero(m.AzureCloudIdentities[i]) { // not required + return nil + } + if err := m.AzureCloudIdentities[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureCloudIdentities" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_access_keys_response.go b/cdp-sdk-go/gen/iam/models/list_access_keys_response.go index 92f3610f..40b8b412 100644 --- a/cdp-sdk-go/gen/iam/models/list_access_keys_response.go +++ b/cdp-sdk-go/gen/iam/models/list_access_keys_response.go @@ -88,6 +88,11 @@ func (m *ListAccessKeysResponse) contextValidateAccessKeys(ctx context.Context, for i := 0; i < len(m.AccessKeys); i++ { if m.AccessKeys[i] != nil { + + if swag.IsZero(m.AccessKeys[i]) { // not required + return nil + } + if err := m.AccessKeys[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessKeys" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_group_assigned_resource_roles_response.go b/cdp-sdk-go/gen/iam/models/list_group_assigned_resource_roles_response.go index 5148b2c5..175f0f75 100644 --- a/cdp-sdk-go/gen/iam/models/list_group_assigned_resource_roles_response.go +++ b/cdp-sdk-go/gen/iam/models/list_group_assigned_resource_roles_response.go @@ -88,6 +88,11 @@ func (m *ListGroupAssignedResourceRolesResponse) contextValidateResourceAssignme for i := 0; i < len(m.ResourceAssignments); i++ { if m.ResourceAssignments[i] != nil { + + if swag.IsZero(m.ResourceAssignments[i]) { // not required + return nil + } + if err := m.ResourceAssignments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourceAssignments" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_groups_response.go b/cdp-sdk-go/gen/iam/models/list_groups_response.go index 219f4cb0..c97b75bf 100644 --- a/cdp-sdk-go/gen/iam/models/list_groups_response.go +++ b/cdp-sdk-go/gen/iam/models/list_groups_response.go @@ -88,6 +88,11 @@ func (m *ListGroupsResponse) contextValidateGroups(ctx context.Context, formats for i := 0; i < len(m.Groups); i++ { if m.Groups[i] != nil { + + if swag.IsZero(m.Groups[i]) { // not required + return nil + } + if err := m.Groups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("groups" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_machine_user_assigned_resource_roles_response.go b/cdp-sdk-go/gen/iam/models/list_machine_user_assigned_resource_roles_response.go index b0f05ca2..456bf8b0 100644 --- a/cdp-sdk-go/gen/iam/models/list_machine_user_assigned_resource_roles_response.go +++ b/cdp-sdk-go/gen/iam/models/list_machine_user_assigned_resource_roles_response.go @@ -88,6 +88,11 @@ func (m *ListMachineUserAssignedResourceRolesResponse) contextValidateResourceAs for i := 0; i < len(m.ResourceAssignments); i++ { if m.ResourceAssignments[i] != nil { + + if swag.IsZero(m.ResourceAssignments[i]) { // not required + return nil + } + if err := m.ResourceAssignments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourceAssignments" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_machine_users_response.go b/cdp-sdk-go/gen/iam/models/list_machine_users_response.go index 3fbe1202..994bee04 100644 --- a/cdp-sdk-go/gen/iam/models/list_machine_users_response.go +++ b/cdp-sdk-go/gen/iam/models/list_machine_users_response.go @@ -88,6 +88,11 @@ func (m *ListMachineUsersResponse) contextValidateMachineUsers(ctx context.Conte for i := 0; i < len(m.MachineUsers); i++ { if m.MachineUsers[i] != nil { + + if swag.IsZero(m.MachineUsers[i]) { // not required + return nil + } + if err := m.MachineUsers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machineUsers" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_resource_assignees_response.go b/cdp-sdk-go/gen/iam/models/list_resource_assignees_response.go index 189652b4..f4c4e0c7 100644 --- a/cdp-sdk-go/gen/iam/models/list_resource_assignees_response.go +++ b/cdp-sdk-go/gen/iam/models/list_resource_assignees_response.go @@ -88,6 +88,11 @@ func (m *ListResourceAssigneesResponse) contextValidateResourceAssignees(ctx con for i := 0; i < len(m.ResourceAssignees); i++ { if m.ResourceAssignees[i] != nil { + + if swag.IsZero(m.ResourceAssignees[i]) { // not required + return nil + } + if err := m.ResourceAssignees[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourceAssignees" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_resource_roles_response.go b/cdp-sdk-go/gen/iam/models/list_resource_roles_response.go index 48cb588c..5effba24 100644 --- a/cdp-sdk-go/gen/iam/models/list_resource_roles_response.go +++ b/cdp-sdk-go/gen/iam/models/list_resource_roles_response.go @@ -88,6 +88,11 @@ func (m *ListResourceRolesResponse) contextValidateResourceRoles(ctx context.Con for i := 0; i < len(m.ResourceRoles); i++ { if m.ResourceRoles[i] != nil { + + if swag.IsZero(m.ResourceRoles[i]) { // not required + return nil + } + if err := m.ResourceRoles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourceRoles" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_roles_response.go b/cdp-sdk-go/gen/iam/models/list_roles_response.go index ead05990..e1ad2ca0 100644 --- a/cdp-sdk-go/gen/iam/models/list_roles_response.go +++ b/cdp-sdk-go/gen/iam/models/list_roles_response.go @@ -88,6 +88,11 @@ func (m *ListRolesResponse) contextValidateRoles(ctx context.Context, formats st for i := 0; i < len(m.Roles); i++ { if m.Roles[i] != nil { + + if swag.IsZero(m.Roles[i]) { // not required + return nil + } + if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_saml_providers_response.go b/cdp-sdk-go/gen/iam/models/list_saml_providers_response.go index 100fbd12..e598b0b5 100644 --- a/cdp-sdk-go/gen/iam/models/list_saml_providers_response.go +++ b/cdp-sdk-go/gen/iam/models/list_saml_providers_response.go @@ -88,6 +88,11 @@ func (m *ListSamlProvidersResponse) contextValidateSamlProviders(ctx context.Con for i := 0; i < len(m.SamlProviders); i++ { if m.SamlProviders[i] != nil { + + if swag.IsZero(m.SamlProviders[i]) { // not required + return nil + } + if err := m.SamlProviders[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("samlProviders" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_scim_access_tokens_response.go b/cdp-sdk-go/gen/iam/models/list_scim_access_tokens_response.go index 12fa9b1b..fff3a29e 100644 --- a/cdp-sdk-go/gen/iam/models/list_scim_access_tokens_response.go +++ b/cdp-sdk-go/gen/iam/models/list_scim_access_tokens_response.go @@ -88,6 +88,11 @@ func (m *ListScimAccessTokensResponse) contextValidateAccessTokens(ctx context.C for i := 0; i < len(m.AccessTokens); i++ { if m.AccessTokens[i] != nil { + + if swag.IsZero(m.AccessTokens[i]) { // not required + return nil + } + if err := m.AccessTokens[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessTokens" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_service_principal_cloud_identities_response.go b/cdp-sdk-go/gen/iam/models/list_service_principal_cloud_identities_response.go index 22357028..dcd54615 100644 --- a/cdp-sdk-go/gen/iam/models/list_service_principal_cloud_identities_response.go +++ b/cdp-sdk-go/gen/iam/models/list_service_principal_cloud_identities_response.go @@ -88,6 +88,11 @@ func (m *ListServicePrincipalCloudIdentitiesResponse) contextValidateServicePrin for i := 0; i < len(m.ServicePrincipalCloudIdentities); i++ { if m.ServicePrincipalCloudIdentities[i] != nil { + + if swag.IsZero(m.ServicePrincipalCloudIdentities[i]) { // not required + return nil + } + if err := m.ServicePrincipalCloudIdentities[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("servicePrincipalCloudIdentities" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_ssh_public_keys_response.go b/cdp-sdk-go/gen/iam/models/list_ssh_public_keys_response.go index 1740c1a9..4c0c2f48 100644 --- a/cdp-sdk-go/gen/iam/models/list_ssh_public_keys_response.go +++ b/cdp-sdk-go/gen/iam/models/list_ssh_public_keys_response.go @@ -85,6 +85,11 @@ func (m *ListSSHPublicKeysResponse) contextValidateSSHPublicKeys(ctx context.Con for i := 0; i < len(m.SSHPublicKeys); i++ { if m.SSHPublicKeys[i] != nil { + + if swag.IsZero(m.SSHPublicKeys[i]) { // not required + return nil + } + if err := m.SSHPublicKeys[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sshPublicKeys" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_user_assigned_resource_roles_response.go b/cdp-sdk-go/gen/iam/models/list_user_assigned_resource_roles_response.go index c56aab1e..f86e1835 100644 --- a/cdp-sdk-go/gen/iam/models/list_user_assigned_resource_roles_response.go +++ b/cdp-sdk-go/gen/iam/models/list_user_assigned_resource_roles_response.go @@ -88,6 +88,11 @@ func (m *ListUserAssignedResourceRolesResponse) contextValidateResourceAssignmen for i := 0; i < len(m.ResourceAssignments); i++ { if m.ResourceAssignments[i] != nil { + + if swag.IsZero(m.ResourceAssignments[i]) { // not required + return nil + } + if err := m.ResourceAssignments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourceAssignments" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/list_users_response.go b/cdp-sdk-go/gen/iam/models/list_users_response.go index a4c61bff..82ac4a35 100644 --- a/cdp-sdk-go/gen/iam/models/list_users_response.go +++ b/cdp-sdk-go/gen/iam/models/list_users_response.go @@ -88,6 +88,11 @@ func (m *ListUsersResponse) contextValidateUsers(ctx context.Context, formats st for i := 0; i < len(m.Users); i++ { if m.Users[i] != nil { + + if swag.IsZero(m.Users[i]) { // not required + return nil + } + if err := m.Users[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/machine_user.go b/cdp-sdk-go/gen/iam/models/machine_user.go index 86aabe18..7fb9d8b4 100644 --- a/cdp-sdk-go/gen/iam/models/machine_user.go +++ b/cdp-sdk-go/gen/iam/models/machine_user.go @@ -172,6 +172,11 @@ func (m *MachineUser) contextValidateAzureCloudIdentities(ctx context.Context, f for i := 0; i < len(m.AzureCloudIdentities); i++ { if m.AzureCloudIdentities[i] != nil { + + if swag.IsZero(m.AzureCloudIdentities[i]) { // not required + return nil + } + if err := m.AzureCloudIdentities[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureCloudIdentities" + "." + strconv.Itoa(i)) @@ -190,6 +195,11 @@ func (m *MachineUser) contextValidateAzureCloudIdentities(ctx context.Context, f func (m *MachineUser) contextValidateWorkloadPasswordDetails(ctx context.Context, formats strfmt.Registry) error { if m.WorkloadPasswordDetails != nil { + + if swag.IsZero(m.WorkloadPasswordDetails) { // not required + return nil + } + if err := m.WorkloadPasswordDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("workloadPasswordDetails") diff --git a/cdp-sdk-go/gen/iam/models/policy.go b/cdp-sdk-go/gen/iam/models/policy.go index c543f342..59195991 100644 --- a/cdp-sdk-go/gen/iam/models/policy.go +++ b/cdp-sdk-go/gen/iam/models/policy.go @@ -102,6 +102,11 @@ func (m *Policy) contextValidatePolicyStatements(ctx context.Context, formats st for i := 0; i < len(m.PolicyStatements); i++ { if m.PolicyStatements[i] != nil { + + if swag.IsZero(m.PolicyStatements[i]) { // not required + return nil + } + if err := m.PolicyStatements[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policyStatements" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/role.go b/cdp-sdk-go/gen/iam/models/role.go index 344846aa..6914d7c7 100644 --- a/cdp-sdk-go/gen/iam/models/role.go +++ b/cdp-sdk-go/gen/iam/models/role.go @@ -102,6 +102,11 @@ func (m *Role) contextValidatePolicies(ctx context.Context, formats strfmt.Regis for i := 0; i < len(m.Policies); i++ { if m.Policies[i] != nil { + + if swag.IsZero(m.Policies[i]) { // not required + return nil + } + if err := m.Policies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/service_principal_cloud_identities.go b/cdp-sdk-go/gen/iam/models/service_principal_cloud_identities.go index 29bb5557..d34a32d6 100644 --- a/cdp-sdk-go/gen/iam/models/service_principal_cloud_identities.go +++ b/cdp-sdk-go/gen/iam/models/service_principal_cloud_identities.go @@ -100,6 +100,11 @@ func (m *ServicePrincipalCloudIdentities) contextValidateAzureCloudIdentities(ct for i := 0; i < len(m.AzureCloudIdentities); i++ { if m.AzureCloudIdentities[i] != nil { + + if swag.IsZero(m.AzureCloudIdentities[i]) { // not required + return nil + } + if err := m.AzureCloudIdentities[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureCloudIdentities" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/iam/models/set_workload_password_policy_request.go b/cdp-sdk-go/gen/iam/models/set_workload_password_policy_request.go index be95bb3e..b825fd07 100644 --- a/cdp-sdk-go/gen/iam/models/set_workload_password_policy_request.go +++ b/cdp-sdk-go/gen/iam/models/set_workload_password_policy_request.go @@ -102,6 +102,11 @@ func (m *SetWorkloadPasswordPolicyRequest) ContextValidate(ctx context.Context, func (m *SetWorkloadPasswordPolicyRequest) contextValidateGlobalPasswordPolicy(ctx context.Context, formats strfmt.Registry) error { if m.GlobalPasswordPolicy != nil { + + if swag.IsZero(m.GlobalPasswordPolicy) { // not required + return nil + } + if err := m.GlobalPasswordPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("globalPasswordPolicy") @@ -118,6 +123,11 @@ func (m *SetWorkloadPasswordPolicyRequest) contextValidateGlobalPasswordPolicy(c func (m *SetWorkloadPasswordPolicyRequest) contextValidateMachineUsersPasswordPolicy(ctx context.Context, formats strfmt.Registry) error { if m.MachineUsersPasswordPolicy != nil { + + if swag.IsZero(m.MachineUsersPasswordPolicy) { // not required + return nil + } + if err := m.MachineUsersPasswordPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machineUsersPasswordPolicy") diff --git a/cdp-sdk-go/gen/iam/models/unlock_machine_user_in_control_plane_response.go b/cdp-sdk-go/gen/iam/models/unlock_machine_user_in_control_plane_response.go index c3b5bee6..1becbfa7 100644 --- a/cdp-sdk-go/gen/iam/models/unlock_machine_user_in_control_plane_response.go +++ b/cdp-sdk-go/gen/iam/models/unlock_machine_user_in_control_plane_response.go @@ -75,6 +75,7 @@ func (m *UnlockMachineUserInControlPlaneResponse) ContextValidate(ctx context.Co func (m *UnlockMachineUserInControlPlaneResponse) contextValidateMachineUser(ctx context.Context, formats strfmt.Registry) error { if m.MachineUser != nil { + if err := m.MachineUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machineUser") diff --git a/cdp-sdk-go/gen/iam/models/unlock_user_in_control_plane_response.go b/cdp-sdk-go/gen/iam/models/unlock_user_in_control_plane_response.go index 3960d93e..99891968 100644 --- a/cdp-sdk-go/gen/iam/models/unlock_user_in_control_plane_response.go +++ b/cdp-sdk-go/gen/iam/models/unlock_user_in_control_plane_response.go @@ -75,6 +75,7 @@ func (m *UnlockUserInControlPlaneResponse) ContextValidate(ctx context.Context, func (m *UnlockUserInControlPlaneResponse) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/cdp-sdk-go/gen/iam/models/update_access_key_response.go b/cdp-sdk-go/gen/iam/models/update_access_key_response.go index 047cdf7d..eb83a1b2 100644 --- a/cdp-sdk-go/gen/iam/models/update_access_key_response.go +++ b/cdp-sdk-go/gen/iam/models/update_access_key_response.go @@ -75,6 +75,7 @@ func (m *UpdateAccessKeyResponse) ContextValidate(ctx context.Context, formats s func (m *UpdateAccessKeyResponse) contextValidateAccessKey(ctx context.Context, formats strfmt.Registry) error { if m.AccessKey != nil { + if err := m.AccessKey.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessKey") diff --git a/cdp-sdk-go/gen/iam/models/update_group_response.go b/cdp-sdk-go/gen/iam/models/update_group_response.go index 523808dd..9a585ea5 100644 --- a/cdp-sdk-go/gen/iam/models/update_group_response.go +++ b/cdp-sdk-go/gen/iam/models/update_group_response.go @@ -75,6 +75,7 @@ func (m *UpdateGroupResponse) ContextValidate(ctx context.Context, formats strfm func (m *UpdateGroupResponse) contextValidateGroup(ctx context.Context, formats strfmt.Registry) error { if m.Group != nil { + if err := m.Group.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("group") diff --git a/cdp-sdk-go/gen/iam/models/update_saml_provider_response.go b/cdp-sdk-go/gen/iam/models/update_saml_provider_response.go index 26a0ff8e..269e7de4 100644 --- a/cdp-sdk-go/gen/iam/models/update_saml_provider_response.go +++ b/cdp-sdk-go/gen/iam/models/update_saml_provider_response.go @@ -75,6 +75,7 @@ func (m *UpdateSamlProviderResponse) ContextValidate(ctx context.Context, format func (m *UpdateSamlProviderResponse) contextValidateSamlProvider(ctx context.Context, formats strfmt.Registry) error { if m.SamlProvider != nil { + if err := m.SamlProvider.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("samlProvider") diff --git a/cdp-sdk-go/gen/iam/models/update_user_response.go b/cdp-sdk-go/gen/iam/models/update_user_response.go index b3d83113..9c0074cb 100644 --- a/cdp-sdk-go/gen/iam/models/update_user_response.go +++ b/cdp-sdk-go/gen/iam/models/update_user_response.go @@ -75,6 +75,7 @@ func (m *UpdateUserResponse) ContextValidate(ctx context.Context, formats strfmt func (m *UpdateUserResponse) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/cdp-sdk-go/gen/iam/models/user.go b/cdp-sdk-go/gen/iam/models/user.go index 2493f46d..d9ced3b5 100644 --- a/cdp-sdk-go/gen/iam/models/user.go +++ b/cdp-sdk-go/gen/iam/models/user.go @@ -277,6 +277,11 @@ func (m *User) contextValidateAzureCloudIdentities(ctx context.Context, formats for i := 0; i < len(m.AzureCloudIdentities); i++ { if m.AzureCloudIdentities[i] != nil { + + if swag.IsZero(m.AzureCloudIdentities[i]) { // not required + return nil + } + if err := m.AzureCloudIdentities[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureCloudIdentities" + "." + strconv.Itoa(i)) @@ -295,6 +300,11 @@ func (m *User) contextValidateAzureCloudIdentities(ctx context.Context, formats func (m *User) contextValidateWorkloadPasswordDetails(ctx context.Context, formats strfmt.Registry) error { if m.WorkloadPasswordDetails != nil { + + if swag.IsZero(m.WorkloadPasswordDetails) { // not required + return nil + } + if err := m.WorkloadPasswordDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("workloadPasswordDetails") diff --git a/cdp-sdk-go/gen/ml/models/audit_events.go b/cdp-sdk-go/gen/ml/models/audit_events.go index cbd84dc6..1e3d2f64 100644 --- a/cdp-sdk-go/gen/ml/models/audit_events.go +++ b/cdp-sdk-go/gen/ml/models/audit_events.go @@ -102,6 +102,11 @@ func (m *AuditEvents) contextValidateEvents(ctx context.Context, formats strfmt. for i := 0; i < len(m.Events); i++ { if m.Events[i] != nil { + + if swag.IsZero(m.Events[i]) { // not required + return nil + } + if err := m.Events[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("events" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/ml/models/audit_logs.go b/cdp-sdk-go/gen/ml/models/audit_logs.go index 3559524c..174c2303 100644 --- a/cdp-sdk-go/gen/ml/models/audit_logs.go +++ b/cdp-sdk-go/gen/ml/models/audit_logs.go @@ -119,6 +119,11 @@ func (m *AuditLogs) contextValidateLogs(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Logs); i++ { if m.Logs[i] != nil { + + if swag.IsZero(m.Logs[i]) { // not required + return nil + } + if err := m.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logs" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/ml/models/create_workspace_request.go b/cdp-sdk-go/gen/ml/models/create_workspace_request.go index aabb971b..92febf4e 100644 --- a/cdp-sdk-go/gen/ml/models/create_workspace_request.go +++ b/cdp-sdk-go/gen/ml/models/create_workspace_request.go @@ -215,6 +215,11 @@ func (m *CreateWorkspaceRequest) ContextValidate(ctx context.Context, formats st func (m *CreateWorkspaceRequest) contextValidateExistingDatabaseConfig(ctx context.Context, formats strfmt.Registry) error { if m.ExistingDatabaseConfig != nil { + + if swag.IsZero(m.ExistingDatabaseConfig) { // not required + return nil + } + if err := m.ExistingDatabaseConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("existingDatabaseConfig") @@ -232,6 +237,10 @@ func (m *CreateWorkspaceRequest) contextValidateOutboundTypes(ctx context.Contex for i := 0; i < len(m.OutboundTypes); i++ { + if swag.IsZero(m.OutboundTypes[i]) { // not required + return nil + } + if err := m.OutboundTypes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("outboundTypes" + "." + strconv.Itoa(i)) @@ -249,6 +258,11 @@ func (m *CreateWorkspaceRequest) contextValidateOutboundTypes(ctx context.Contex func (m *CreateWorkspaceRequest) contextValidateProvisionK8sRequest(ctx context.Context, formats strfmt.Registry) error { if m.ProvisionK8sRequest != nil { + + if swag.IsZero(m.ProvisionK8sRequest) { // not required + return nil + } + if err := m.ProvisionK8sRequest.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("provisionK8sRequest") diff --git a/cdp-sdk-go/gen/ml/models/describe_workspace_response.go b/cdp-sdk-go/gen/ml/models/describe_workspace_response.go index 3e74ddcc..70b2d840 100644 --- a/cdp-sdk-go/gen/ml/models/describe_workspace_response.go +++ b/cdp-sdk-go/gen/ml/models/describe_workspace_response.go @@ -75,6 +75,7 @@ func (m *DescribeWorkspaceResponse) ContextValidate(ctx context.Context, formats func (m *DescribeWorkspaceResponse) contextValidateWorkspace(ctx context.Context, formats strfmt.Registry) error { if m.Workspace != nil { + if err := m.Workspace.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("workspace") diff --git a/cdp-sdk-go/gen/ml/models/get_audit_events_response.go b/cdp-sdk-go/gen/ml/models/get_audit_events_response.go index 23529090..f1506802 100644 --- a/cdp-sdk-go/gen/ml/models/get_audit_events_response.go +++ b/cdp-sdk-go/gen/ml/models/get_audit_events_response.go @@ -75,6 +75,7 @@ func (m *GetAuditEventsResponse) ContextValidate(ctx context.Context, formats st func (m *GetAuditEventsResponse) contextValidateAuditEvents(ctx context.Context, formats strfmt.Registry) error { if m.AuditEvents != nil { + if err := m.AuditEvents.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("auditEvents") diff --git a/cdp-sdk-go/gen/ml/models/get_logs_response.go b/cdp-sdk-go/gen/ml/models/get_logs_response.go index 69ff56bb..d7205bd4 100644 --- a/cdp-sdk-go/gen/ml/models/get_logs_response.go +++ b/cdp-sdk-go/gen/ml/models/get_logs_response.go @@ -75,6 +75,7 @@ func (m *GetLogsResponse) ContextValidate(ctx context.Context, formats strfmt.Re func (m *GetLogsResponse) contextValidateAuditLogs(ctx context.Context, formats strfmt.Registry) error { if m.AuditLogs != nil { + if err := m.AuditLogs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("auditLogs") diff --git a/cdp-sdk-go/gen/ml/models/instance_group.go b/cdp-sdk-go/gen/ml/models/instance_group.go index 8409e7a1..84552961 100644 --- a/cdp-sdk-go/gen/ml/models/instance_group.go +++ b/cdp-sdk-go/gen/ml/models/instance_group.go @@ -132,6 +132,11 @@ func (m *InstanceGroup) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *InstanceGroup) contextValidateAutoscaling(ctx context.Context, formats strfmt.Registry) error { if m.Autoscaling != nil { + + if swag.IsZero(m.Autoscaling) { // not required + return nil + } + if err := m.Autoscaling.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("autoscaling") @@ -148,6 +153,11 @@ func (m *InstanceGroup) contextValidateAutoscaling(ctx context.Context, formats func (m *InstanceGroup) contextValidateRootVolume(ctx context.Context, formats strfmt.Registry) error { if m.RootVolume != nil { + + if swag.IsZero(m.RootVolume) { // not required + return nil + } + if err := m.RootVolume.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rootVolume") diff --git a/cdp-sdk-go/gen/ml/models/list_workspace_backups_request.go b/cdp-sdk-go/gen/ml/models/list_workspace_backups_request.go index 8129b3ad..f9d89218 100644 --- a/cdp-sdk-go/gen/ml/models/list_workspace_backups_request.go +++ b/cdp-sdk-go/gen/ml/models/list_workspace_backups_request.go @@ -81,6 +81,11 @@ func (m *ListWorkspaceBackupsRequest) ContextValidate(ctx context.Context, forma func (m *ListWorkspaceBackupsRequest) contextValidateQueryOptions(ctx context.Context, formats strfmt.Registry) error { if m.QueryOptions != nil { + + if swag.IsZero(m.QueryOptions) { // not required + return nil + } + if err := m.QueryOptions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("queryOptions") diff --git a/cdp-sdk-go/gen/ml/models/list_workspace_backups_response.go b/cdp-sdk-go/gen/ml/models/list_workspace_backups_response.go index c0b464af..20e13027 100644 --- a/cdp-sdk-go/gen/ml/models/list_workspace_backups_response.go +++ b/cdp-sdk-go/gen/ml/models/list_workspace_backups_response.go @@ -82,6 +82,11 @@ func (m *ListWorkspaceBackupsResponse) contextValidateBackups(ctx context.Contex for i := 0; i < len(m.Backups); i++ { if m.Backups[i] != nil { + + if swag.IsZero(m.Backups[i]) { // not required + return nil + } + if err := m.Backups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backups" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/ml/models/list_workspaces_response.go b/cdp-sdk-go/gen/ml/models/list_workspaces_response.go index c7f423d9..3781cc63 100644 --- a/cdp-sdk-go/gen/ml/models/list_workspaces_response.go +++ b/cdp-sdk-go/gen/ml/models/list_workspaces_response.go @@ -82,6 +82,11 @@ func (m *ListWorkspacesResponse) contextValidateWorkspaces(ctx context.Context, for i := 0; i < len(m.Workspaces); i++ { if m.Workspaces[i] != nil { + + if swag.IsZero(m.Workspaces[i]) { // not required + return nil + } + if err := m.Workspaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("workspaces" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/ml/models/overlay_network.go b/cdp-sdk-go/gen/ml/models/overlay_network.go index 1eb4ac43..fe79cca8 100644 --- a/cdp-sdk-go/gen/ml/models/overlay_network.go +++ b/cdp-sdk-go/gen/ml/models/overlay_network.go @@ -75,6 +75,11 @@ func (m *OverlayNetwork) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *OverlayNetwork) contextValidateTopology(ctx context.Context, formats strfmt.Registry) error { if m.Topology != nil { + + if swag.IsZero(m.Topology) { // not required + return nil + } + if err := m.Topology.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topology") diff --git a/cdp-sdk-go/gen/ml/models/provision_k8s_request.go b/cdp-sdk-go/gen/ml/models/provision_k8s_request.go index 5a727a88..c8744e9b 100644 --- a/cdp-sdk-go/gen/ml/models/provision_k8s_request.go +++ b/cdp-sdk-go/gen/ml/models/provision_k8s_request.go @@ -169,6 +169,11 @@ func (m *ProvisionK8sRequest) contextValidateInstanceGroups(ctx context.Context, for i := 0; i < len(m.InstanceGroups); i++ { if m.InstanceGroups[i] != nil { + + if swag.IsZero(m.InstanceGroups[i]) { // not required + return nil + } + if err := m.InstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroups" + "." + strconv.Itoa(i)) @@ -187,6 +192,11 @@ func (m *ProvisionK8sRequest) contextValidateInstanceGroups(ctx context.Context, func (m *ProvisionK8sRequest) contextValidateNetwork(ctx context.Context, formats strfmt.Registry) error { if m.Network != nil { + + if swag.IsZero(m.Network) { // not required + return nil + } + if err := m.Network.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("network") @@ -205,6 +215,11 @@ func (m *ProvisionK8sRequest) contextValidateTags(ctx context.Context, formats s for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/ml/models/request_workflow_cancellation_response.go b/cdp-sdk-go/gen/ml/models/request_workflow_cancellation_response.go index 922a6be0..e699c1d6 100644 --- a/cdp-sdk-go/gen/ml/models/request_workflow_cancellation_response.go +++ b/cdp-sdk-go/gen/ml/models/request_workflow_cancellation_response.go @@ -82,6 +82,11 @@ func (m *RequestWorkflowCancellationResponse) contextValidateWorkflowMetadata(ct for i := 0; i < len(m.WorkflowMetadata); i++ { if m.WorkflowMetadata[i] != nil { + + if swag.IsZero(m.WorkflowMetadata[i]) { // not required + return nil + } + if err := m.WorkflowMetadata[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("workflowMetadata" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/ml/models/restore_workspace_request.go b/cdp-sdk-go/gen/ml/models/restore_workspace_request.go index 7e387ad0..d77e9816 100644 --- a/cdp-sdk-go/gen/ml/models/restore_workspace_request.go +++ b/cdp-sdk-go/gen/ml/models/restore_workspace_request.go @@ -81,6 +81,11 @@ func (m *RestoreWorkspaceRequest) ContextValidate(ctx context.Context, formats s func (m *RestoreWorkspaceRequest) contextValidateNewWorkspaceParameters(ctx context.Context, formats strfmt.Registry) error { if m.NewWorkspaceParameters != nil { + + if swag.IsZero(m.NewWorkspaceParameters) { // not required + return nil + } + if err := m.NewWorkspaceParameters.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("newWorkspaceParameters") diff --git a/cdp-sdk-go/gen/ml/models/workspace.go b/cdp-sdk-go/gen/ml/models/workspace.go index 77bf98d7..f8b7d38d 100644 --- a/cdp-sdk-go/gen/ml/models/workspace.go +++ b/cdp-sdk-go/gen/ml/models/workspace.go @@ -513,6 +513,11 @@ func (m *Workspace) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *Workspace) contextValidateBackupMetadata(ctx context.Context, formats strfmt.Registry) error { if m.BackupMetadata != nil { + + if swag.IsZero(m.BackupMetadata) { // not required + return nil + } + if err := m.BackupMetadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backupMetadata") @@ -531,6 +536,11 @@ func (m *Workspace) contextValidateHealthInfoLists(ctx context.Context, formats for i := 0; i < len(m.HealthInfoLists); i++ { if m.HealthInfoLists[i] != nil { + + if swag.IsZero(m.HealthInfoLists[i]) { // not required + return nil + } + if err := m.HealthInfoLists[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("healthInfoLists" + "." + strconv.Itoa(i)) @@ -551,6 +561,11 @@ func (m *Workspace) contextValidateInstanceGroups(ctx context.Context, formats s for i := 0; i < len(m.InstanceGroups); i++ { if m.InstanceGroups[i] != nil { + + if swag.IsZero(m.InstanceGroups[i]) { // not required + return nil + } + if err := m.InstanceGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceGroups" + "." + strconv.Itoa(i)) @@ -571,6 +586,11 @@ func (m *Workspace) contextValidateTags(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) @@ -589,6 +609,11 @@ func (m *Workspace) contextValidateTags(ctx context.Context, formats strfmt.Regi func (m *Workspace) contextValidateUpgradeState(ctx context.Context, formats strfmt.Registry) error { if m.UpgradeState != nil { + + if swag.IsZero(m.UpgradeState) { // not required + return nil + } + if err := m.UpgradeState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("upgradeState") diff --git a/cdp-sdk-go/gen/ml/models/workspace_instance_group.go b/cdp-sdk-go/gen/ml/models/workspace_instance_group.go index 60033707..8791af92 100644 --- a/cdp-sdk-go/gen/ml/models/workspace_instance_group.go +++ b/cdp-sdk-go/gen/ml/models/workspace_instance_group.go @@ -209,6 +209,11 @@ func (m *WorkspaceInstanceGroup) contextValidateInstances(ctx context.Context, f for i := 0; i < len(m.Instances); i++ { if m.Instances[i] != nil { + + if swag.IsZero(m.Instances[i]) { // not required + return nil + } + if err := m.Instances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instances" + "." + strconv.Itoa(i)) @@ -229,6 +234,11 @@ func (m *WorkspaceInstanceGroup) contextValidateTags(ctx context.Context, format for i := 0; i < len(m.Tags); i++ { if m.Tags[i] != nil { + + if swag.IsZero(m.Tags[i]) { // not required + return nil + } + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tags" + "." + strconv.Itoa(i)) diff --git a/cdp-sdk-go/gen/ml/models/workspace_summary.go b/cdp-sdk-go/gen/ml/models/workspace_summary.go index cde1319c..898bc37a 100644 --- a/cdp-sdk-go/gen/ml/models/workspace_summary.go +++ b/cdp-sdk-go/gen/ml/models/workspace_summary.go @@ -397,6 +397,11 @@ func (m *WorkspaceSummary) ContextValidate(ctx context.Context, formats strfmt.R func (m *WorkspaceSummary) contextValidateBackupMetadata(ctx context.Context, formats strfmt.Registry) error { if m.BackupMetadata != nil { + + if swag.IsZero(m.BackupMetadata) { // not required + return nil + } + if err := m.BackupMetadata.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backupMetadata") @@ -415,6 +420,11 @@ func (m *WorkspaceSummary) contextValidateHealthInfoLists(ctx context.Context, f for i := 0; i < len(m.HealthInfoLists); i++ { if m.HealthInfoLists[i] != nil { + + if swag.IsZero(m.HealthInfoLists[i]) { // not required + return nil + } + if err := m.HealthInfoLists[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("healthInfoLists" + "." + strconv.Itoa(i)) @@ -433,6 +443,11 @@ func (m *WorkspaceSummary) contextValidateHealthInfoLists(ctx context.Context, f func (m *WorkspaceSummary) contextValidateUpgradeState(ctx context.Context, formats strfmt.Registry) error { if m.UpgradeState != nil { + + if swag.IsZero(m.UpgradeState) { // not required + return nil + } + if err := m.UpgradeState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("upgradeState") diff --git a/cdp-sdk-go/resources/swagger/datahub.yaml b/cdp-sdk-go/resources/swagger/datahub.yaml new file mode 100644 index 00000000..dba1a0e4 --- /dev/null +++ b/cdp-sdk-go/resources/swagger/datahub.yaml @@ -0,0 +1,4116 @@ +swagger: '2.0' +x-endpoint-name: datahub +x-interface-model: cdp +x-products: CDP +x-form-factors: public +x-cdp-releases: PUBLIC +x-audit: true +info: + version: 0.9.87 (BETA) + title: Cloudera Data hub Service + license: + name: Apache 2.0 + description: Cloudera data hub is a service for launching and managing workload clusters powered by Cloudera Runtime. + termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html +schemes: + - https +consumes: + - application/json +produces: + - application/json +paths: + /api/v1/datahub/deleteInstances: + post: + summary: Deletes instances for the specified cluster. + description: Deletes instances for the specified cluster. + operationId: deleteInstances + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteInstancesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteInstancesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listClusters: + post: + summary: Lists workload clusters. + description: Lists workload clusters. + operationId: listClusters + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListClustersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListClustersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listClusterLifecycleEvents: + post: + summary: Lists Workload cluster lifecycle events. + description: Lists Workload cluster lifecycle events. + operationId: listClusterLifecycleEvents + x-mutating: false + x-paging-default-max-items: 100 + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListClusterLifecycleEventsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListClusterLifecycleEventsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createAWSCluster: + post: + summary: Creates an AWS workload cluster. + description: Creates an AWS workload cluster. + operationId: createAWSCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAWSClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAWSClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createAzureCluster: + post: + summary: Creates an Azure workload cluster. + description: Creates an Azure workload cluster. + operationId: createAzureCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAzureClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAzureClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createGCPCluster: + post: + summary: Creates a GCP workload cluster. + description: Creates a GCP workload cluster. + operationId: createGCPCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateGCPClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateGCPClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/deleteCluster: + post: + summary: Deletes a workload cluster. + description: Deletes a workload cluster. + operationId: deleteCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/describeCluster: + post: + summary: Describes a workload cluster. + description: Describes a workload cluster. + operationId: describeCluster + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/getClusterServiceStatus: + post: + summary: Get cluster service status. + description: Gets the status of the services in a cluster. + operationId: getClusterServiceStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetClusterServiceStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetClusterServiceStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/getClusterHostStatus: + post: + summary: Get cluster host status. + description: Gets the status of the hosts in a cluster. + operationId: getClusterHostStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetClusterHostStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetClusterHostStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/stopCluster: + post: + summary: Stops a workload cluster. + description: Stops a workload cluster. When a cluster is put in the stopped state, cluster VMs are given back to the cloud provider. To provision new VMs, start the cluster. + operationId: stopCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StopClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StopClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/startCluster: + post: + summary: Starts a stopped workload cluster. + description: Starts a stopped workload cluster. + operationId: startCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/retryCluster: + post: + summary: Retries creation of a failed workload cluster. + description: When stack provisioning or cluster creation fails, retryCluster allows you to resume the process from the last failed step. + operationId: retryCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RetryClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RetryClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/renewCertificate: + post: + summary: Renew certificate on datahub cluster by name or CRN + description: Deprecated, please use renew-public-certificate command instead. Renew certificate on datahub cluster by name or CRN + operationId: renewCertificate + x-mutating: true + x-deprecated: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RenewCertificateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RenewCertificateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/renewPublicCertificate: + post: + summary: Renews public certificate on a Datahub cluster by name or CRN. + description: Renews public certificate on a Datahub cluster by name or CRN. + operationId: renewPublicCertificate + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RenewPublicCertificateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RenewPublicCertificateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/repairCluster: + post: + summary: Repairs a cluster. + description: Repairs a cluster. + operationId: repairCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RepairClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RepairClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/syncCluster: + post: + summary: Synchronizes the state of a cluster with the cloud provider and Cloudera Manager. + description: Synchronizes the state of a cluster with the cloud provider and Cloudera Manager. + operationId: syncCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SyncClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SyncClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/scaleCluster: + post: + summary: Scales a cluster by adding or removing cluster nodes. + description: Scales a cluster by adding or removing cluster nodes. + operationId: scaleCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ScaleClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ScaleClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listRecipes: + post: + summary: Lists recipes. A recipe is a script that runs on all nodes of a specified instance group. + description: Lists recipes. A recipe is a script that runs on all nodes of a specified instance group. + operationId: listRecipes + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListRecipesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListRecipesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/deleteRecipes: + post: + summary: Deletes recipes. A recipe is a script that runs on all nodes of a specified instance group. + description: Deletes recipes. A recipe is a script that runs on all nodes of a specified instance group. + operationId: deleteRecipes + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteRecipesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteRecipesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createRecipe: + post: + summary: Creates recipe. A recipe is a script that runs on all nodes of a specified instance group. + description: Creates recipe. A recipe is a script that runs on all nodes of a specified instance group. + operationId: createRecipe + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateRecipeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateRecipeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/describeRecipe: + post: + summary: Describes recipe. A recipe is a script that runs on all nodes of a specified instance group. + description: Describes recipe. A recipe is a script that runs on all nodes of a specified instance group. + operationId: describeRecipe + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeRecipeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeRecipeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/replaceRecipes: + post: + summary: Replaces recipes for the given instance groups. + description: Replaces recipes for the given instance groups. + operationId: replaceRecipes + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ReplaceRecipesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ReplaceRecipesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listClusterDefinitions: + post: + summary: Lists cluster definitions. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + description: Lists cluster definitions. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + operationId: listClusterDefinitions + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListClusterDefinitionsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListClusterDefinitionsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/deleteClusterDefinitions: + post: + summary: Deletes cluster definitions. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + description: Deletes cluster definitions. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + operationId: deleteClusterDefinitions + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteClusterDefinitionsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteClusterDefinitionsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createClusterDefinition: + post: + summary: Creates a cluster definition. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + description: Creates a cluster definition. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + operationId: createClusterDefinition + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateClusterDefinitionRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateClusterDefinitionResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/describeClusterDefinition: + post: + summary: Describes a cluster definition. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + description: Describes a cluster definition. A cluster definition is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical cloud provider settings. + operationId: describeClusterDefinition + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeClusterDefinitionRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeClusterDefinitionResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listClusterTemplates: + post: + summary: Lists cluster templates. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + description: Lists cluster templates. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + operationId: listClusterTemplates + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListClusterTemplatesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListClusterTemplatesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/deleteClusterTemplates: + post: + summary: Deletes cluster templates. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + description: Deletes cluster templates. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + operationId: deleteClusterTemplates + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteClusterTemplatesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteClusterTemplatesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createClusterTemplate: + post: + summary: Creates a cluster template. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + description: Creates a cluster template. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + operationId: createClusterTemplate + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateClusterTemplateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateClusterTemplateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/describeClusterTemplate: + post: + summary: Describes a cluster template. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + description: Describes a cluster template. A cluster template is a reusable template in JSON format that can be used for creating multiple Data Hub clusters with identical Cloudera Runtime settings. + operationId: describeClusterTemplate + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeClusterTemplateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeClusterTemplateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createCustomConfigurations: + post: + summary: Creates custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + description: Creates custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + operationId: createCustomConfigurations + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateCustomConfigurationsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateCustomConfigurationsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/deleteCustomConfigurations: + post: + summary: Deletes custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + description: Deletes custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + operationId: deleteCustomConfigurations + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteCustomConfigurationsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteCustomConfigurationsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/describeCustomConfigurations: + post: + summary: Describes custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + description: Describes custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + operationId: describeCustomConfigurations + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeCustomConfigurationsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeCustomConfigurationsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listCustomConfigurations: + post: + summary: Lists custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + description: Lists custom configurations. Custom Configurations are sets of properties or name-value pairs that belong to any of the services present in cluster templates. These can be used to override and/or append properties to the corresponding cluster template while launching DataHub clusters. + operationId: listCustomConfigurations + x-mutating: false + x-paging-default-max-items: 100 + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListCustomConfigurationsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListCustomConfigurationsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/createAutoScaleRules: + post: + summary: Create Auto Scaling rules for a DataHub cluster + description: Create Auto Scaling rules for a DataHub cluster. + operationId: createAutoScaleRules + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAutoScaleRulesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAutoScaleRulesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/updateAutoScaleRules: + post: + summary: Modify AutoScaling for a DataHub cluster + description: Modify AutoScaling for a DataHub cluster + operationId: updateAutoScaleRules + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateAutoScaleRulesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateAutoScaleRulesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/describeAutoScaleRules: + post: + summary: Describe the AutoScaling policies for a DataHub cluster + description: Describe the AutoScaling policies for a DataHub cluster + operationId: describeAutoScaleRules + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeAutoScaleRulesRequest' + responses: + 200: + description: The AutoScaling policy for the request cluster. + schema: + $ref: '#/definitions/DescribeAutoScaleRulesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/deleteAutoScaleRules: + post: + summary: Delete AutoScaling policies for a DataHub cluster + description: Delete AutoScaling policies for a DataHub cluster + operationId: deleteAutoScaleRules + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteAutoScaleRulesRequest' + responses: + 200: + description: The AutoScale policy before deletion. + schema: + $ref: '#/definitions/DeleteAutoScaleRulesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listAutoScaleHistory: + post: + summary: List AutoScale history activity for a DataHub cluster. + description: List AutoScale history activity for a DataHub cluster. + operationId: listAutoScaleHistory + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListAutoScaleHistoryRequest' + responses: + 200: + description: AutoScale activity for a DataHub cluster. + schema: + $ref: '#/definitions/ListAutoScaleHistoryResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/getDatahubLogDescriptors: + post: + summary: Gather log descriptors that are used for diagnostics collection. + description: Gather log descriptors that are used for diagnostics collection. + operationId: getDatahubLogDescriptors + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetDatahubLogDescriptorsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetDatahubLogDescriptorsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/collectDatahubDiagnostics: + post: + summary: Start DataHub diagnostics collection + description: Start DataHub diagnostics collection + operationId: collectDatahubDiagnostics + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CollectDatahubDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CollectDatahubDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/listDatahubDiagnostics: + post: + summary: List recent Datahub diagnostics collections + description: List recent Datahub diagnostics collection + operationId: listDatahubDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDatahubDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDatahubDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/cancelDatahubDiagnostics: + post: + summary: Cancel running Datahub diagnostics collections + description: Cancel running Datahub diagnostics collection + operationId: cancelDatahubDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CancelDatahubDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CancelDatahubDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/collectCmDiagnostics: + post: + summary: Start Datahub Cloudera Manager based diagnostics collection + description: Start Datahub Cloudera Manager based diagnostics collection + operationId: collectCmDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CollectCmDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CollectCmDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/getCmRoles: + post: + summary: Gather Cloudera Manager roles that can be used for filtering in CM based diagnostics collection. + description: Gather Cloudera Manager roles that can be used for filtering in CM based diagnostics collection. + operationId: getCmRoles + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetCmRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetCmRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/rotateAutoTlsCertificates: + post: + summary: Rotate autotls certificates on the datahub's hosts + description: Deprecated, please use rotate-private-certificates command instead. Rotate autotls certificates on the datahub's hosts + operationId: rotateAutoTlsCertificates + x-mutating: true + x-deprecated: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RotateAutoTlsCertificatesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RotateAutoTlsCertificatesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/rotatePrivateCertificates: + post: + summary: Rotates private certificates on the hosts of Datahub. + description: Rotates private certificates on the hosts of Datahub. + operationId: rotatePrivateCertificates + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RotatePrivateCertificatesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RotatePrivateCertificatesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/upgradeCluster: + post: + summary: Upgrades the OS or data platform on a datahub cluster. + description: Upgrades the OS or data platform on a datahub cluster. You have the option to either specify one of 'imageId', 'runtime' or 'lockComponents' or both 'imageId' and 'lockComponents' or none of the parameters. + operationId: upgradeCluster + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/startClusterVerticalScaling: + post: + summary: Initiates the vertical scaling on Data Hub cluster. + description: Initiates the vertical scaling on Data Hub cluster. + operationId: startClusterVerticalScaling + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartClusterVerticalScalingRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartClusterVerticalScalingResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/prepareClusterUpgrade: + post: + summary: Running upgrade related validations and prepares the required parcels for the upgrade. + description: In order to reduce the chance of upgrade failures, we're introducing a preparation phase for runtime upgrades. During this phase, we're running all validations and downloading the required parcels for the machines. You can track the progress of the parcel preparation on the Cloudera Manager UI or you can check on the Management Console as well. + operationId: prepareClusterUpgrade + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/PrepareClusterUpgradeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/PrepareClusterUpgradeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/startDatabaseUpgrade: + post: + summary: Upgrades the database of the Data Hub cluster. + description: This command initiates the upgrade of the database of the Data Hub cluster. + operationId: startDatabaseUpgrade + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartDatabaseUpgradeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartDatabaseUpgradeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/setCatalog: + post: + summary: Sets a catalog for a DataHub. + description: Sets a catalog for a DataHub. + operationId: setCatalog + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetCatalogRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetCatalogResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/syncComponentVersionsFromCm: + post: + summary: Syncs component versions from CM after a failed upgrade. + description: Syncs component versions from CM after a failed upgrade. + operationId: syncComponentVersionsFromCm + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SyncComponentVersionsFromCmRequest' + responses: + 200: + description: Expected response to a valid sync datahub CM component versions request. + schema: + $ref: '#/definitions/SyncComponentVersionsFromCmResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/startInstances: + post: + summary: Starts instances of a particular host group in the Data Hub cluster. + description: Starts instances of a particular host group in the Data Hub cluster. + operationId: startInstances + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartInstancesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartInstancesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/stopInstances: + post: + summary: Stops instances of particular host group in the Data Hub cluster. + description: Stops instances of a particular host group in the Data Hub cluster. + operationId: stopInstances + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StopInstancesRequest' + responses: + 200: + description: Expected response to a valid stop instances request. + schema: + $ref: '#/definitions/StopInstancesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/rotateSaltPassword: + post: + summary: Rotate SaltStack user password on Data Hub instances. + description: Rotate SaltStack user password on Data Hub instances. + operationId: rotateSaltPassword + x-mutating: true + x-entitlement: CDP_ROTATE_SALTUSER_PASSWORD + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RotateSaltPasswordRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RotateSaltPasswordResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datahub/updateOrchestratorState: + post: + summary: Run orchestrator engine state update on the Data Hub cluster. + description: Run orchestrator engine state update on the Data Hub cluster. + operationId: updateOrchestratorState + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateOrchestratorStateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateOrchestratorStateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' +definitions: + Error: + type: object + description: An object returned on an error. + properties: + code: + type: string + description: The error code. + message: + type: string + description: The error message. + ImageRequest: + type: object + description: The details of the image used for cluster instances. + required: + - id + - catalogName + properties: + id: + type: string + description: The ID of the image used for cluster instances. This is generated by the cloud provider to uniquely identify the image. + catalogName: + type: string + description: The image catalog name. + ImageDetails: + type: object + description: The details of the image used for cluster instances. + properties: + name: + type: string + description: The name of the image used for cluster instances. + id: + type: string + description: The ID of the image used for cluster instances. This is internally generated by the cloud provider to uniquely identify the image. + catalogUrl: + type: string + description: The image catalog URL. + catalogName: + type: string + description: The image catalog name. + Cluster: + type: object + description: Information about a cluster. + required: + - clusterName + - crn + properties: + clusterName: + type: string + description: The name of the cluster. + crn: + type: string + description: The CRN of the cluster. + creationDate: + type: string + format: date-time + description: The date when the cluster was created. + status: + type: string + description: The status of the stack. + clusterStatus: + type: string + description: The status of the cluster. + nodeCount: + type: integer + format: int32 + description: The cluster node count. + instanceGroups: + type: array + items: + $ref: '#/definitions/InstanceGroup' + description: The instance details. + workloadType: + type: string + description: The workload type for the cluster. + cloudPlatform: + type: string + description: The cloud platform. + imageDetails: + $ref: '#/definitions/ImageDetails' + description: The image details. + environmentCrn: + type: string + description: The CRN of the environment. + credentialCrn: + type: string + description: The CRN of the credential. + datalakeCrn: + type: string + description: The CRN of the attached datalake. + clusterTemplateCrn: + type: string + description: The CRN of the cluster template used for the cluster creation. + statusReason: + type: string + description: The status reason. + clouderaManager: + $ref: '#/definitions/ClouderaManagerDetails' + description: The Cloudera Manager details. + endpoints: + $ref: '#/definitions/Endpoints' + description: The exposed service api endpoints. + ClusterExtension: + type: object + description: Cluster extensions for Data Hub cluster. + x-no-compatibility-guarantee: true + properties: + customProperties: + type: string + description: The custom properties JSON, encoded in base64. + ClouderaManagerDetails: + type: object + description: Cloudera Manager details. + required: + - version + properties: + version: + type: string + description: Cloudera Manager version. + platformVersion: + type: string + description: CDP Platform version. + InstanceGroup: + type: object + description: The type of the instance group which also contains the actual instance(s) + required: + - name + - instances + properties: + name: + type: string + description: The name of the instance group where the given instance is located. + instances: + type: array + items: + $ref: '#/definitions/Instance' + description: List of instances in this instance group. + StartClusterVerticalScalingRequest: + type: object + description: The request object for Data Hub vertical scaling. + required: + - datahub + - group + - instanceTemplate + properties: + datahub: + type: string + description: The name or CRN of the Data Hub cluster. + group: + type: string + description: The target group that reqested for vertical scaling. + instanceTemplate: + description: Instance template that specifies the core information for the vertical scale. + $ref: '#/definitions/InstanceTemplate' + StartClusterVerticalScalingResponse: + type: object + description: The response object for Data Hub cluster vertical scaling. + properties: + result: + type: string + description: The result of the operation. + InstanceTemplate: + type: object + description: Instance template configuration(s). + properties: + instanceType: + type: string + description: The type of the instance. + Instance: + type: object + description: Object which holds some details of an instance for the given cluster. + required: + - id + - state + - instanceType + properties: + id: + type: string + description: The ID of the given instance. + state: + type: string + description: The health state of the instance. UNHEALTHY represents instances with unhealthy services, lost instances, or failed operations. + instanceType: + type: string + description: The type of the given instance (either GATEWAY, GATEWAY_PRIMARY, or CORE). + privateIp: + type: string + description: The private IP of the given instance. + publicIp: + type: string + description: The public IP of the given instance. + fqdn: + type: string + description: The FQDN of the instance. + status: + type: string + description: The status of the instance. This includes information like whether the instance is being provisioned, stopped, decommissioning failures etc. + Endpoints: + type: object + description: Object which holds the exposed endpoints for the given cluster. + required: + - endpoints + properties: + endpoints: + type: array + items: + $ref: '#/definitions/Endpoint' + description: The endpoints. + Endpoint: + type: object + description: Object which holds the exposed endpoint. + required: + - serviceName + - serviceUrl + - displayName + - knoxService + - mode + - open + properties: + serviceName: + type: string + description: The name of the exposed service + serviceUrl: + type: string + description: The server url for the given exposed service's API. + displayName: + type: string + description: The more consumable name of the exposed service. + knoxService: + type: string + description: The related knox entry. + mode: + type: string + description: The SSO mode of the given service. + open: + type: boolean + description: The access status of the given endpoint. Whether its open or not. + ClusterSummary: + type: object + description: Information about a cluster. + required: + - clusterName + - crn + properties: + clusterName: + type: string + description: The name of the cluster. + crn: + type: string + description: The CRN of the cluster. + status: + type: string + description: The status of the cluster. + workloadType: + type: string + description: The type of cluster. + environmentCrn: + type: string + description: The CRN of the environment. + cloudPlatform: + type: string + description: The name of the cloud platform. + nodeCount: + type: integer + format: int32 + description: The cluster node count. + creationDate: + type: string + format: date-time + description: The date when the cluster was created. + datalakeCrn: + type: string + description: The CRN of the attached datalake. + clusterTemplateCrn: + type: string + description: The CRN of the cluster template used for the cluster creation. + certificateExpirationState: + type: string + description: Indicates the certificate status on the cluster. + enum: + - VALID + - HOST_CERT_EXPIRING + Recipe: + type: object + description: Information about a recipe. + required: + - recipeName + - crn + properties: + recipeName: + type: string + description: The name of the recipe. + crn: + type: string + description: The CRN of the recipe. + recipeContent: + type: string + description: The content of the recipe. + type: + type: string + description: 'The type of recipe. Supported values are : PRE_CLOUDERA_MANAGER_START, PRE_TERMINATION, POST_CLOUDERA_MANAGER_START, POST_CLUSTER_INSTALL.' + creatorCrn: + type: string + description: The CRN of the creator of the recipe. + description: + type: string + description: The description of the recipe. + RecipeSummary: + type: object + description: Information about a recipe. + required: + - recipeName + - crn + properties: + recipeName: + type: string + description: The name of the recipe. + crn: + type: string + description: The CRN of the recipe. + type: + type: string + description: 'The type of recipe. Supported values are : PRE_CLOUDERA_MANAGER_START, PRE_TERMINATION, POST_CLOUDERA_MANAGER_START, POST_CLUSTER_INSTALL.' + description: + type: string + description: The description of the recipe. + ClusterDefinition: + type: object + description: Information about a cluster definition. + required: + - clusterDefinitionName + - crn + properties: + clusterDefinitionName: + type: string + description: The name of the cluster definition. + crn: + type: string + description: The CRN of the cluster definition. + type: + type: string + description: The type of cluster definition. + workloadTemplate: + type: string + description: The workload template. + cloudPlatform: + type: string + description: The cloud platform. + environmentCrn: + type: string + description: The CRN of the environment. + description: + type: string + description: The description of the cluster definition. + ClusterDefinitionSummary: + type: object + description: Information about a cluster definition. + required: + - clusterDefinitionName + - crn + properties: + clusterDefinitionName: + type: string + description: The name of the cluster definition. + crn: + type: string + description: The CRN of the cluster definition. + type: + type: string + description: The type of cluster definition. + nodeCount: + type: integer + format: int32 + description: The node count of the cluster. + cloudPlatform: + type: string + description: The cloud platform. + productVersion: + type: string + description: The product version. + environmentCrn: + type: string + description: The CRN of the environment. + description: + type: string + description: The description of the cluster definition. + ClusterTemplate: + type: object + description: Information about a cluster template. + required: + - clusterTemplateName + - crn + properties: + clusterTemplateName: + type: string + description: The name of the cluster template. + crn: + type: string + description: The CRN of the cluster template. + description: + type: string + description: The description of the cluster template. + instanceGroupCount: + type: integer + format: int32 + description: The instance group count of the cluster. + status: + type: string + description: The status of the cluster template. + tags: + type: array + description: Tags added to the cluster template. + items: + $ref: '#/definitions/DatahubResourceTag' + clusterTemplateContent: + type: string + description: The content of the cluster template. + ClusterTemplateSummary: + type: object + description: Information about a cluster template. + required: + - clusterTemplateName + - crn + properties: + clusterTemplateName: + type: string + description: The name of the cluster template. + crn: + type: string + description: The CRN of the cluster template. + description: + type: string + description: The description of the cluster template. + productVersion: + type: string + description: The product version. + instanceGroupCount: + type: integer + format: int32 + description: The instance group count of the cluster. + status: + type: string + description: The status of the cluster template. + tags: + type: array + description: Tags added to the cluster template. + items: + $ref: '#/definitions/DatahubResourceTag' + CustomConfigurations: + type: object + description: Information about custom configurations. + required: + - name + - crn + - configurations + properties: + name: + type: string + description: The name of the custom configurations. + crn: + type: string + description: The CRN of the custom configurations. + configurations: + type: array + description: The custom configuration properties. + items: + $ref: '#/definitions/CustomConfigurationProperty' + runtimeVersion: + type: string + description: The runtime version of the custom configurations. + accountId: + type: string + description: The account ID that was used for creating custom configurations. + CustomConfigurationProperty: + type: object + description: Information about Custom Configuration Property. + required: + - configName + - configValue + - serviceType + properties: + configName: + type: string + description: The name of the custom configuration property. + configValue: + type: string + description: The value of the custom configuration property. + serviceType: + type: string + description: The service under which the custom configuration property belongs. + roleType: + type: string + description: The role within the service type. + DeleteInstancesRequest: + type: object + description: Request object for deleting multiple instance from a cluster + required: + - clusterName + - instanceIds + properties: + clusterName: + type: string + description: The name or CRN of the cluster for which instances are to be deleted. + instanceIds: + description: The instanceIds to be deleted from the cluster. + type: array + items: + type: string + force: + type: boolean + description: Whether the termination would be forced or not. If it is true, the termination would not be stopped by other - usually blocking - circumstances. Defaults to false. + DeleteInstancesResponse: + type: object + description: Response object for instance deletion. + required: + - cluster + properties: + cluster: + $ref: '#/definitions/Cluster' + description: The cluster. + ListClusterLifecycleEventsRequest: + type: object + description: Request object for listing cluster events. + required: + - cluster + properties: + cluster: + type: string + description: The name or CRN of the cluster for which events are to be listed. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListClusterLifecycleEventsResponse: + type: object + description: Response object for fetching cluster events request. + required: + - clusterEvents + properties: + clusterEvents: + type: array + items: + $ref: '#/definitions/ClusterLifecycleEvents' + x-paging-result: true + description: Cluster events. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ClusterLifecycleEvents: + type: object + description: Related events for the stack. + properties: + eventType: + type: string + description: Type of the event. + eventTimestamp: + type: string + format: date-time + description: Timestamp of this event. + eventMessage: + type: string + description: Message from this event. + userId: + type: string + description: User ID. + notificationType: + type: string + description: Type of notification as identified in the UI. + cloudType: + type: string + description: Cloud provider type. + region: + type: string + description: Cloud provider region in which the cluster is deployed. + availabilityZone: + type: string + description: Cloud provider availability zone for the region in which the cluster is deployed. + blueprintId: + type: integer + format: int64 + description: Blueprint ID for the blueprint deployed on the cluster. + blueprintName: + type: string + description: Blueprint name for the blueprint deployed on the cluster. + clusterId: + type: integer + format: int64 + description: ID of the cluster. + clusterName: + type: string + description: Name of the cluster. + stackCrn: + type: string + description: The unique CRN of the resource. + stackName: + type: string + description: Name of the stack. + stackStatus: + description: Current status of the stack. + $ref: '#/definitions/StackStatus' + nodeCount: + type: integer + format: int32 + description: Current node count for the nodes in the cluster. + instanceGroup: + type: string + description: Name of the instance group. + clusterStatus: + description: Status of the cluster. + $ref: '#/definitions/StackStatus' + workspaceId: + type: integer + format: int64 + description: Workspace ID of the resource. + tenantName: + type: string + description: Name of the current tenant. + ldapDetails: + description: Details of the LDAP. + $ref: '#/definitions/ClusterLdapDetails' + rdsDetails: + description: Details of the RDS. + $ref: '#/definitions/ClusterRdsDetails' + StackStatus: + type: string + description: Status of the stack. + enum: + - REQUESTED + - CREATE_IN_PROGRESS + - AVAILABLE + - UPDATE_IN_PROGRESS + - UPDATE_REQUESTED + - UPDATE_FAILED + - BACKUP_IN_PROGRESS + - BACKUP_FAILED + - BACKUP_FINISHED + - RESTORE_IN_PROGRESS + - RESTORE_FAILED + - RESTORE_FINISHED + - RECOVERY_IN_PROGRESS + - RECOVERY_REQUESTED + - RECOVERY_FAILED + - CREATE_FAILED + - ENABLE_SECURITY_FAILED + - PRE_DELETE_IN_PROGRESS + - DELETE_IN_PROGRESS + - DELETE_FAILED + - DELETED_ON_PROVIDER_SIDE + - DELETE_COMPLETED + - STOPPED + - STOP_REQUESTED + - START_REQUESTED + - STOP_IN_PROGRESS + - START_IN_PROGRESS + - START_FAILED + - STOP_FAILED + - WAIT_FOR_SYNC + - MAINTENANCE_MODE_ENABLED + - AMBIGUOUS + - UNREACHABLE + - NODE_FAILURE + - EXTERNAL_DATABASE_CREATION_IN_PROGRESS + - EXTERNAL_DATABASE_CREATION_FAILED + - EXTERNAL_DATABASE_DELETION_IN_PROGRESS + - EXTERNAL_DATABASE_DELETION_FINISHED + - EXTERNAL_DATABASE_DELETION_FAILED + - EXTERNAL_DATABASE_START_IN_PROGRESS + - EXTERNAL_DATABASE_START_FINISHED + - EXTERNAL_DATABASE_START_FAILED + - EXTERNAL_DATABASE_STOP_IN_PROGRESS + - EXTERNAL_DATABASE_STOP_FINISHED + - EXTERNAL_DATABASE_STOP_FAILED + - LOAD_BALANCER_UPDATE_IN_PROGRESS + - LOAD_BALANCER_UPDATE_FINISHED + - LOAD_BALANCER_UPDATE_FAILED + ClusterLdapDetails: + type: object + description: Details of the LDAP attached to cluster. + properties: + id: + type: integer + format: int64 + description: ID of the LDAP. + name: + type: string + description: Name of the LDAP. + description: + type: string + description: Description of the LDAP. + serverHost: + type: string + description: LDAP server host. + serverPort: + type: integer + format: int32 + description: LDAP server port. + protocol: + type: string + description: LDAP protocol. + userSearchBase: + type: string + description: User search base. + userDnPattern: + type: string + description: UserDN pattern. + groupSearchBase: + type: string + description: Group search base. + userNameAttribute: + type: string + description: User name attribute. + domain: + type: string + description: LDAP domain. + directoryType: + type: string + description: Directory type. + userObjectClass: + type: string + description: User object class. + groupObjectClass: + type: string + description: Group object class. + groupNameAttribute: + type: string + description: Group name attribute. + groupMemberAttribute: + type: string + description: Group member attribute. + adminGroup: + type: string + description: Admin group. + certificate: + type: string + description: Certificate. + workspaceId: + type: integer + format: int64 + description: Workspace ID. + userId: + type: string + description: User ID. + userName: + type: string + description: User name. + tenantName: + type: string + description: Tenant name. + ClusterRdsDetails: + description: Details of the RDS attached to cluster. + type: object + properties: + id: + type: integer + format: int64 + description: ID of RDS. + name: + type: string + description: Name of RDS. + description: + type: string + description: Description of RDS. + connectionURL: + type: string + description: Connection URL of RDS. + sslMode: + type: string + description: SSL mode. + databaseEngine: + type: string + description: Database engine. + connectionDriver: + type: string + description: Connection driver. + creationDate: + type: string + format: date-time + description: RDS creation date. + stackVersion: + type: string + description: Stack version. + status: + type: string + description: Status of RDS. + type: + type: string + description: Type of RDS. + connectorJarUrl: + type: string + description: Connector Jar URL. + workspaceId: + type: integer + format: int64 + description: Workspace ID. + userId: + type: string + description: User ID. + userName: + type: string + description: User name. + tenantName: + type: string + description: RDS tenant name. + external: + type: boolean + description: Set to true if RDS is external. + ListClustersRequest: + type: object + description: Request object for list clusters request. + properties: + environmentName: + type: string + description: The name or CRN of the environment for which the clusters will be listed. + ListClustersResponse: + type: object + description: Response object for list clusters request. + required: + - clusters + properties: + clusters: + type: array + items: + $ref: '#/definitions/ClusterSummary' + description: The clusters. + AttachedVolumeRequest: + type: object + description: Configurations for additional attached volumes. + required: + - volumeSize + - volumeCount + - volumeType + properties: + volumeSize: + type: integer + format: int32 + description: The attached volume size. + volumeCount: + type: integer + format: int32 + description: The attached volume count. + volumeType: + type: string + description: The attached volume type. + VolumeEncryptionRequest: + type: object + description: Configurations for volume encryption. + properties: + enableEncryption: + x-nullable: true + type: boolean + description: Enable encyrption for all volumes in the instance group. Default is false. + encryptionKey: + type: string + description: The ARN of the encryption key to use. If nothing is specified, the default key will be used. + InstanceGroupRequest: + type: object + description: Configurations for instance group + required: + - nodeCount + - instanceGroupName + - instanceGroupType + - instanceType + - attachedVolumeConfiguration + properties: + nodeCount: + type: integer + format: int32 + description: Number of instances in the instance group + instanceGroupName: + type: string + description: The instance group name. + instanceGroupType: + type: string + description: The instance group type. + instanceType: + type: string + description: The cloud provider specific instance type to be used. + attachedVolumeConfiguration: + type: array + items: + $ref: '#/definitions/AttachedVolumeRequest' + description: The attached volume configuration. This does not include root volume. + rootVolumeSize: + type: integer + format: int32 + description: The root volume size. + recipeNames: + type: array + items: + type: string + description: The names or CRNs of the recipes that would be applied to the instance group. + recoveryMode: + type: string + description: Recovery mode for the instance group. + volumeEncryption: + $ref: '#/definitions/VolumeEncryptionRequest' + description: The volume encryption settings. This setting does not apply to Azure which always encrypts volumes. + AzureInstanceGroupRequest: + type: object + description: Configurations for instance group + required: + - nodeCount + - instanceGroupName + - instanceGroupType + - instanceType + - rootVolumeSize + - attachedVolumeConfiguration + properties: + nodeCount: + type: integer + format: int32 + description: Number of instances in the instance group + instanceGroupName: + type: string + description: The instance group name. + instanceGroupType: + type: string + description: The instance group type. + instanceType: + type: string + description: The cloud provider specific instance type to be used. + rootVolumeSize: + type: integer + format: int32 + description: The root volume size. + attachedVolumeConfiguration: + type: array + items: + $ref: '#/definitions/AttachedVolumeRequest' + description: The attached volume configuration. This does not include root volume. + recipeNames: + type: array + items: + type: string + description: The names or CRNs of the recipes that would be applied to the instance group. + recoveryMode: + type: string + description: Recovery mode for the instance group. + GCPInstanceGroupRequest: + type: object + description: Configurations for instance group + required: + - nodeCount + - instanceGroupName + - instanceGroupType + - instanceType + - rootVolumeSize + - attachedVolumeConfiguration + properties: + nodeCount: + type: integer + format: int32 + description: Number of instances in the instance group + instanceGroupName: + type: string + description: The instance group name. + instanceGroupType: + type: string + description: The instance group type. + instanceType: + type: string + description: The cloud provider specific instance type to be used. + rootVolumeSize: + type: integer + format: int32 + description: The root volume size. + attachedVolumeConfiguration: + type: array + items: + $ref: '#/definitions/AttachedVolumeRequest' + description: The attached volume configuration. This does not include root volume. + recipeNames: + type: array + items: + type: string + description: The names or CRNs of the recipes that would be applied to the instance group. + recoveryMode: + type: string + description: Recovery mode for the instance group. + DatahubDatabaseType: + type: string + description: 'Database type for datahub. Currently supported values: NONE, NON_HA, HA' + enum: + - HA + - NON_HA + - NONE + DatahubLoadBalancerSkuType: + type: string + description: Represents the Azure load balancer SKU type. The current default is BASIC. To disable the load balancer, use type NONE. + enum: + - BASIC + - STANDARD + - NONE + CreateAWSClusterRequest: + type: object + description: Request object for create AWS cluster request. + properties: + clusterName: + type: string + description: The name of the cluster. This name must be unique, must have between 5 and 40 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 40 + clusterDefinitionName: + type: string + x-deprecated: true + description: Deprecated, the name or CRN of the cluster definition to use for cluster creation. + clusterDefinition: + type: string + description: The name or CRN of the cluster definition to use for cluster creation. + environmentName: + type: string + x-deprecated: true + description: Deprecated, name or CRN of the environment to use when creating the cluster. The environment must be an AWS environment. + environment: + type: string + description: Name or CRN of the environment to use when creating the cluster. The environment must be an AWS environment. + clusterTemplateName: + type: string + x-deprecated: true + description: Deprecated, name or CRN of the cluster template to use for cluster creation. + clusterTemplate: + type: string + description: Name or CRN of the cluster template to use for cluster creation. + customConfigurationsName: + type: string + description: The name of the custom configurations to use for cluster creation. + instanceGroups: + type: array + items: + $ref: '#/definitions/InstanceGroupRequest' + description: Instance group details. + subnetId: + type: string + description: The subnet ID. + image: + $ref: '#/definitions/ImageRequest' + description: The image to be used for cluster creation. + tags: + type: array + description: Tags to be added to Datahub related resources. + items: + $ref: '#/definitions/DatahubResourceTagRequest' + requestTemplate: + type: string + description: JSON template to use for cluster creation. This is different from cluster template and would be removed in the future. + datahubDatabase: + $ref: '#/definitions/DatahubDatabaseType' + description: 'Database type for datahub. Currently supported values: NONE, NON_HA, HA' + subnetIds: + type: array + items: + type: string + description: List of subnet IDs in case of multi availability zone setup. + multiAz: + type: boolean + description: Flag that toggles the multi availability zone for the given datahub cluster when you are not sure what subnet IDs can be used. This way the subnet IDs will be used what the environment suggests. + clusterExtension: + $ref: '#/definitions/ClusterExtension' + description: Cluster extensions for the given Data Hub cluster. + x-no-compatibility-guarantee: true + enableLoadBalancer: + type: boolean + description: Flag that decides whether to provision a load-balancer to front various service endpoints for the given datahub. This will typically be used for HA cluster shapes. + javaVersion: + type: integer + format: int32 + description: Configure the major version of Java on the cluster. + CreateAWSClusterResponse: + type: object + description: Response object for create AWS cluster request. + required: + - cluster + properties: + cluster: + $ref: '#/definitions/Cluster' + description: The cluster. + CreateAzureClusterRequest: + type: object + description: Request object for create Azure cluster request. + properties: + clusterName: + type: string + description: The name of the cluster. This name must be unique, must have between 5 and 40 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 40 + clusterDefinitionName: + type: string + description: The name or CRN of the cluster definition to use for cluster creation. + environmentName: + type: string + description: Name or CRN of the environment to use when creating the cluster. The environment must be an Azure environment. + clusterTemplateName: + type: string + description: Name or CRN of the cluster template to use for cluster creation. + customConfigurationsName: + type: string + description: The name of the custom configurations to use for cluster creation. + instanceGroups: + type: array + items: + $ref: '#/definitions/AzureInstanceGroupRequest' + description: Instance group details. + subnetId: + type: string + description: The subnet ID. + image: + $ref: '#/definitions/ImageRequest' + description: The image to be used for cluster creation. + tags: + type: array + description: Tags to be added to Datahub related resources. + items: + $ref: '#/definitions/DatahubResourceTagRequest' + requestTemplate: + type: string + description: JSON template to use for cluster creation. This is different from cluster template and would be removed in the future. + datahubDatabase: + $ref: '#/definitions/DatahubDatabaseType' + description: 'Database type for datahub. Currently supported values: NONE, NON_HA, HA' + loadBalancerSku: + description: The SKU for the datahub load balancer. Allowed values are "BASIC", "STANDARD", or "NONE". + $ref: '#/definitions/DatahubLoadBalancerSkuType' + clusterExtension: + $ref: '#/definitions/ClusterExtension' + description: Cluster extensions for the given Data Hub cluster. + x-no-compatibility-guarantee: true + enableLoadBalancer: + type: boolean + description: Flag that decides whether to provision a load-balancer to front various service endpoints for the given datahub. This will typically be used for HA cluster shapes. + javaVersion: + type: integer + format: int32 + description: Configure the major version of Java on the cluster. + CreateAzureClusterResponse: + type: object + description: Response object for create Azure cluster request. + required: + - cluster + properties: + cluster: + $ref: '#/definitions/Cluster' + description: The cluster. + CreateGCPClusterRequest: + type: object + description: Request object for create GCP cluster request. + properties: + clusterName: + type: string + description: The name of the cluster. This name must be unique, must have between 5 and 40 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 40 + clusterDefinitionName: + type: string + description: The name or CRN of the cluster definition to use for cluster creation. + environmentName: + type: string + description: Name or CRN of the environment to use when creating the cluster. The environment must be a GCP environment. + clusterTemplateName: + type: string + description: Name or CRN of the cluster template to use for cluster creation. + customConfigurationsName: + type: string + description: The name of the custom configurations to use for cluster creation. + instanceGroups: + type: array + items: + $ref: '#/definitions/GCPInstanceGroupRequest' + description: Instance group details. + subnetName: + type: string + description: The subnet name. + image: + $ref: '#/definitions/ImageRequest' + description: The image to be used for cluster creation. + tags: + type: array + description: Tags that can be attached to GCP Data Hub resources. Please refer to Google documentation for the rules https://cloud.google.com/compute/docs/labeling-resources#label_format. + items: + $ref: '#/definitions/GCPDatahubResourceTagRequest' + requestTemplate: + type: string + description: JSON template to use for cluster creation. This is different from cluster template and would be removed in the future. + datahubDatabase: + $ref: '#/definitions/DatahubDatabaseType' + description: 'Database type for datahub. Currently supported values: NONE, NON_HA, HA' + clusterExtension: + $ref: '#/definitions/ClusterExtension' + description: Cluster extensions for the given Data Hub cluster. + x-no-compatibility-guarantee: true + javaVersion: + type: integer + format: int32 + description: Configure the major version of Java on the cluster. + CreateGCPClusterResponse: + type: object + description: Response object for create GCP cluster request. + required: + - cluster + properties: + cluster: + $ref: '#/definitions/Cluster' + description: The cluster. + DeleteClusterRequest: + type: object + description: Request object for delete cluster request. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster to be deleted. + force: + type: boolean + description: Whether the cluster should be force deleted. This option can be used when cluster deletion fails. This removes the entry from Cloudera Datahub service. Any lingering resources have to be deleted from the cloud provider manually. The default is false. + DeleteClusterResponse: + type: object + description: Response object for delete cluster request. + DescribeClusterRequest: + type: object + description: Request object for describe cluster request. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster. + DescribeClusterResponse: + type: object + description: Response object for describe cluster request. + required: + - cluster + properties: + cluster: + $ref: '#/definitions/Cluster' + description: The cluster. + GetClusterServiceStatusRequest: + type: object + description: Request object to get service status. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster. + GetClusterServiceStatusResponse: + type: object + description: Response object to get service status. + required: + - services + properties: + services: + type: array + items: + $ref: '#/definitions/ServiceStatus' + description: The cluster services health. + ServiceStatus: + type: object + description: Information about a cluster service. + properties: + type: + type: string + description: The service type. + state: + type: string + description: The service state. + healthSummary: + type: string + description: The service health summary. + healthChecks: + type: array + items: + $ref: '#/definitions/HealthCheck' + description: The service health checks. + HealthCheck: + type: object + description: The result of a health check. + properties: + name: + type: string + description: The name of service health check. + summary: + type: string + description: The service health check summary. + GetClusterHostStatusRequest: + type: object + description: Request object to get host status. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster. + GetClusterHostStatusResponse: + type: object + description: Response object for getting host status. + required: + - hosts + properties: + hosts: + type: array + items: + $ref: '#/definitions/HostStatus' + description: The cluster hosts status. + HostStatus: + type: object + description: Information about cluster host status. + properties: + hostid: + type: string + description: Unique identifier of the cluster host given by Cloudera Manager. + hostname: + type: string + description: The cluster hostname. + healthSummary: + type: string + description: The host health summary. + RepairInstancesRequest: + type: object + description: Details for repair instances. + properties: + instanceIds: + type: array + items: + type: string + description: List of instance ids. + deleteVolumes: + type: boolean + description: The existing disk volumes on the instances will be re-created if the deleteVolumes is true. Otherwise, the volumes will be reattached to the new instances. + StartClusterRequest: + type: object + description: Request object for start cluster request. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster to be started. + StartClusterResponse: + type: object + description: Response object for start cluster request. + StopClusterRequest: + type: object + description: Request object for stop cluster request. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster to be stopped. + StopClusterResponse: + type: object + description: Response object for stop cluster request. + RetryClusterRequest: + type: object + description: Request object for retry cluster request. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster for which the operations need to be retried. + RetryClusterResponse: + type: object + description: Response object for retry cluster request. + RenewCertificateRequest: + type: object + description: Request object for renew datahub certificate request, deprecated. + x-deprecated: true + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster. + RepairClusterRequest: + type: object + description: Request object for repair cluster request. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster to be repaired. + instanceGroupNames: + type: array + items: + type: string + description: List of instance groups where the failed instances will be repaired. + instances: + $ref: '#/definitions/RepairInstancesRequest' + description: List of instances. + removeOnly: + type: boolean + description: If true, the failed instances will only be removed, otherwise the failed instances will be removed and new instances will be started. + RepairClusterResponse: + type: object + description: Response object for repair cluster request. + SyncClusterRequest: + type: object + description: Request object for sync cluster request. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster to be synced. + SyncClusterResponse: + type: object + description: Response object for sync cluster request. + ScaleClusterRequest: + type: object + description: Request object for scale cluster request. + required: + - clusterName + - instanceGroupName + - instanceGroupDesiredCount + properties: + clusterName: + type: string + description: The name or CRN of the cluster to be scaled. + instanceGroupName: + type: string + description: The name of the instance group which needs to be scaled. + instanceGroupDesiredCount: + type: integer + format: int32 + description: The desired number of instances in the instance group. + ScaleClusterResponse: + type: object + description: Response object for scale cluster request. + CreateRecipeRequest: + type: object + description: Request object for create recipe request. + required: + - recipeName + - recipeContent + - type + properties: + recipeName: + type: string + description: The name of the recipe. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 1000 + recipeContent: + type: string + description: The content of the recipe. + type: + type: string + description: 'The type of recipe. Supported values are : PRE_CLOUDERA_MANAGER_START, PRE_TERMINATION, POST_CLOUDERA_MANAGER_START, POST_CLUSTER_INSTALL.' + description: + type: string + description: The description of the recipe. The description can have a maximum of 1000 characters. + maxLength: 1000 + CreateRecipeResponse: + type: object + description: Response object for create recipe request. + required: + - recipe + properties: + recipe: + $ref: '#/definitions/Recipe' + description: The recipe. + DeleteRecipesRequest: + type: object + description: Request object for delete recipe request. + required: + - recipeNames + properties: + recipeNames: + type: array + items: + type: string + description: The names or CRNs of the recipes to be deleted. + DeleteRecipesResponse: + type: object + description: Response object for delete recipe request. + required: + - recipes + properties: + recipes: + type: array + items: + $ref: '#/definitions/Recipe' + description: The recipes. + DescribeRecipeRequest: + type: object + description: Request object for describe recipe request. + required: + - recipeName + properties: + recipeName: + type: string + description: The name or CRN of the recipe. + DescribeRecipeResponse: + type: object + description: Response object for describe recipe request. + required: + - recipe + properties: + recipe: + $ref: '#/definitions/Recipe' + description: The recipe. + ListRecipesRequest: + type: object + description: Request object for list recipes request. + ListRecipesResponse: + type: object + description: Response object for list recipes request. + required: + - recipes + properties: + recipes: + type: array + items: + $ref: '#/definitions/RecipeSummary' + description: The recipes. + ReplaceRecipesRequest: + type: object + description: The request for replacing recipes. + required: + - datahub + - instanceGroupRecipes + properties: + datahub: + type: string + description: The name or CRN of the datahub. + instanceGroupRecipes: + type: array + items: + $ref: '#/definitions/InstanceGroupRecipeRequest' + description: The list of instance group and recipe name pairs. + ReplaceRecipesResponse: + type: object + description: The response for replacing recipes. + properties: + attachedRecipes: + type: array + description: The list of recipes, which will be attached to the cluster. + items: + $ref: '#/definitions/InstanceGroupRecipeResponse' + detachedRecipes: + type: array + description: The list of recipes, which will be detached from the cluster. + items: + $ref: '#/definitions/InstanceGroupRecipeResponse' + InstanceGroupRecipeRequest: + type: object + description: Represents an instance group - recipe pair (by names) request. + required: + - instanceGroupName + properties: + instanceGroupName: + type: string + description: A valid instance/host group name. This name must be unique. + recipeNames: + type: array + uniqueItems: true + items: + type: string + description: Names of the recipes (empty is valid). + InstanceGroupRecipeResponse: + type: object + description: Represents an instance group - recipe pair (by names) response. + required: + - instanceGroupName + properties: + instanceGroupName: + type: string + description: A valid instance/host group name. This name must be unique. + recipeNames: + type: array + uniqueItems: true + items: + type: string + description: Names of the recipes (empty is valid). + CreateClusterDefinitionRequest: + type: object + description: Request object for create cluster definition request. + required: + - clusterDefinitionName + - workloadTemplate + properties: + clusterDefinitionName: + type: string + description: The name of the cluster definition. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 1000 + workloadTemplate: + type: string + description: The cluster creation JSON. This must contain the name of a running environment. + description: + type: string + description: The description of the cluster definition. The description can have a maximum of 1000 characters. + maxLength: 1000 + CreateClusterDefinitionResponse: + type: object + description: Response object for create cluster definition request. + required: + - clusterDefinition + properties: + clusterDefinition: + $ref: '#/definitions/ClusterDefinition' + description: The clusterDefinition. + DeleteClusterDefinitionsRequest: + type: object + description: Request object for delete cluster definition request. + required: + - clusterDefinitionNames + properties: + clusterDefinitionNames: + type: array + items: + type: string + description: The name or CRN of the cluster definitions to be deleted. + DeleteClusterDefinitionsResponse: + type: object + description: Response object for delete cluster definition request. + required: + - clusterDefinitions + properties: + clusterDefinitions: + type: array + items: + $ref: '#/definitions/ClusterDefinition' + description: The clusterDefinitions. + DescribeClusterDefinitionRequest: + type: object + description: Request object for describe cluster definition request. + required: + - clusterDefinitionName + properties: + clusterDefinitionName: + type: string + description: The name or CRN of the cluster definition. + DescribeClusterDefinitionResponse: + type: object + description: Response object for describe cluster definition response. + required: + - clusterDefinition + properties: + clusterDefinition: + $ref: '#/definitions/ClusterDefinition' + description: The clusterDefinition. + ListClusterDefinitionsRequest: + type: object + description: Request object for list cluster definitions request. + ListClusterDefinitionsResponse: + type: object + description: Response object for list cluster definition response. + required: + - clusterDefinitions + properties: + clusterDefinitions: + type: array + items: + $ref: '#/definitions/ClusterDefinitionSummary' + description: The clusterDefinitions. + CreateClusterTemplateRequest: + type: object + description: Request object for create cluster template request. + required: + - clusterTemplateName + - clusterTemplateContent + properties: + clusterTemplateName: + type: string + description: The name of the cluster template. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 1000 + clusterTemplateContent: + type: string + description: The cluster template content. + description: + type: string + description: The description of the cluster template. The description can have a maximum of 1000 characters. + maxLength: 1000 + tags: + type: array + description: Tags to be added to the cluster template. + items: + $ref: '#/definitions/DatahubResourceTagRequest' + CreateClusterTemplateResponse: + type: object + description: Response object for create cluster template request. + required: + - clusterTemplate + properties: + clusterTemplate: + $ref: '#/definitions/ClusterTemplate' + description: The cluster template. + DeleteClusterTemplatesRequest: + type: object + description: Request object for delete cluster templates request. + required: + - clusterTemplateNames + properties: + clusterTemplateNames: + type: array + items: + type: string + description: The names or CRNs of the cluster templates to be deleted. + DeleteClusterTemplatesResponse: + type: object + description: Response object for delete cluster templates request. + required: + - clusterTemplates + properties: + clusterTemplates: + type: array + items: + $ref: '#/definitions/ClusterTemplate' + description: The cluster templates. + DescribeClusterTemplateRequest: + type: object + description: Request object for describe cluster template request. + required: + - clusterTemplateName + properties: + clusterTemplateName: + type: string + description: The name or CRN of the cluster template. + DescribeClusterTemplateResponse: + type: object + description: Response object for describe cluster template request. + required: + - clusterTemplate + properties: + clusterTemplate: + $ref: '#/definitions/ClusterTemplate' + description: The cluster template. + ListClusterTemplatesRequest: + type: object + description: Request object for list cluster templates request. + ListClusterTemplatesResponse: + type: object + description: Response object for list cluster templates request. + required: + - clusterTemplates + properties: + clusterTemplates: + type: array + items: + $ref: '#/definitions/ClusterTemplateSummary' + description: The cluster templates. + CreateCustomConfigurationsRequest: + type: object + description: The request object for creating custom configurations request. + required: + - customConfigurationsName + - configurations + properties: + customConfigurationsName: + type: string + description: The name of the custom configurations. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers, and hyphens. Names are case-sensitive. + configurations: + type: array + description: The configuration properties of custom configurations. + items: + $ref: '#/definitions/CustomConfigurationPropertyRequest' + runtimeVersion: + type: string + description: The runtime version of custom configurations. + CreateCustomConfigurationsResponse: + type: object + description: The response object for create custom configurations request. + required: + - customConfigurations + properties: + customConfigurations: + $ref: '#/definitions/CustomConfigurations' + description: The custom configurations. + CustomConfigurationPropertyRequest: + type: object + description: The request object for the custom configuration property request. + required: + - configName + - configValue + - serviceType + properties: + configName: + type: string + description: The name of the custom configuration property. + configValue: + type: string + description: The value of the custom configuration property. + serviceType: + type: string + description: The service under which the custom configuration property belongs. + roleType: + type: string + description: The role within the service type. + DeleteCustomConfigurationsRequest: + type: object + description: The request object for the delete custom configurations request. + required: + - customConfigurations + properties: + customConfigurations: + type: array + description: The names or CRNs of the custom configurations to be deleted. + items: + type: string + DeleteCustomConfigurationsResponse: + type: object + description: The response object for the delete custom configurations request. + required: + - customConfigurations + properties: + customConfigurations: + type: array + description: The deleted custom configurations. + items: + $ref: '#/definitions/CustomConfigurations' + DescribeCustomConfigurationsRequest: + type: object + description: The request object for the describe custom configurations request. + required: + - customConfigurations + properties: + customConfigurations: + type: string + description: The name or CRN of the custom configurations. + DescribeCustomConfigurationsResponse: + type: object + description: The response object for the describe custom configurations request. + required: + - customConfigurations + properties: + customConfigurations: + $ref: '#/definitions/CustomConfigurations' + description: The custom configurations. + ListCustomConfigurationsRequest: + type: object + description: The request object for the list custom configurations request. + properties: + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListCustomConfigurationsResponse: + type: object + description: The response object for the list custom configurations request. + required: + - customConfigurations + properties: + customConfigurations: + type: array + description: The list of custom configurations. + items: + $ref: '#/definitions/CustomConfigurations' + x-paging-result: true + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + DatahubResourceTagRequest: + type: object + description: Tag for a datahub resource. + required: + - key + - value + properties: + key: + type: string + description: The key of tag. + value: + type: string + description: The value of the tag. + GCPDatahubResourceTagRequest: + type: object + description: A label that can be attached to GCP Data Hub resources. Please refer to Google documentation for the rules https://cloud.google.com/compute/docs/labeling-resources#label_format. + required: + - key + - value + properties: + key: + type: string + description: The key of tag. + value: + type: string + description: The value of the tag. + DatahubResourceTag: + type: object + description: Tag for a datahub resource. + required: + - key + - value + properties: + key: + type: string + description: The key of tag. + value: + type: string + description: The value of the tag. + AutoScaleRulesResponse: + type: object + description: Autoscale configuration + required: + - clusterName + - enabled + - autoScalePolicies + properties: + clusterName: + type: string + minLength: 5 + maxLength: 500 + description: The name or CRN of the cluster. + enabled: + type: boolean + description: Whether autoscaling is enabled or not for the cluster + autoScalePolicies: + description: The actual scaling policy(ies) for the cluster + type: array + items: + $ref: '#/definitions/AutoScalePolicyResponse' + useStopStartMechanism: + type: boolean + description: Whether StopStart scaling mechanism is enabled for the cluster. + CreateAutoScaleRulesRequest: + type: object + description: Autoscale configuration request + required: + - clusterName + - autoScalePolicies + properties: + clusterName: + type: string + minLength: 5 + maxLength: 500 + description: The name or CRN of the cluster. + autoScalePolicies: + description: The actual scaling policies for the cluster + type: array + items: + $ref: '#/definitions/AutoScalePolicyRequest' + enabled: + type: boolean + description: true (default) to enable Autoscaling, false to disable AutoScaling. + useStopStartMechanism: + type: boolean + description: true to enable StopStart scaling mechanism, false to use regular AutoScaling (if enabled). + CreateAutoScaleRulesResponse: + type: object + description: The AutoScale rules for the cluster. + properties: + autoScaleRules: + $ref: '#/definitions/AutoScaleRulesResponse' + description: The autoscale rules. + UpdateAutoScaleRulesRequest: + type: object + description: Autoscale Modification request + required: + - clusterName + properties: + clusterName: + type: string + minLength: 5 + maxLength: 500 + description: The name or CRN of the cluster. + enabled: + type: boolean + description: true to enable Autoscaling, false to disable AutoScaling. If not specified, the existing value is used. + autoScalePolicies: + description: The actual scaling policies for the cluster + type: array + items: + $ref: '#/definitions/AutoScalePolicyRequest' + useStopStartMechanism: + type: boolean + description: true to enable StopStart scaling mechanism, false to use regular AutoScaling (if enabled). If not specified, the existing value is used. + UpdateAutoScaleRulesResponse: + type: object + description: The AutoScale rules for the cluster. + properties: + autoScaleRules: + $ref: '#/definitions/AutoScaleRulesResponse' + description: The autoscale rules. + DescribeAutoScaleRulesRequest: + type: object + description: Request object to describe the AutoScale rules for a DataHub cluster. + required: + - clusterName + properties: + clusterName: + type: string + minLength: 5 + maxLength: 500 + description: The name or CRN of the cluster. + DescribeAutoScaleRulesResponse: + type: object + description: The response object which describes the AutoScale rules for a DataHub cluster. + properties: + autoScaleRules: + $ref: '#/definitions/AutoScaleRulesResponse' + description: The autoscale rules. + DeleteAutoScaleRulesRequest: + type: object + description: Delete request. + required: + - clusterName + properties: + clusterName: + type: string + minLength: 5 + maxLength: 500 + description: The name or CRN of the cluster. + DeleteAutoScaleRulesResponse: + type: object + description: Response object for DeleteAutoScalesRulesRequest + AutoScalePolicyRequest: + type: object + description: An individual AutoScale Policy + required: + - hostGroups + properties: + hostGroups: + description: A single hostgroup, or a comma separated list of hostGroups to which the rules apply + type: string + minLength: 1 + maxLength: 200 + scheduleBasedPolicy: + description: Scheduled based policy + $ref: '#/definitions/AutoScaleScheduleRequest' + loadBasedPolicy: + description: Load based policy + $ref: '#/definitions/AutoScaleLoadRequest' + AutoScalePolicyResponse: + type: object + description: An individual AutoScale Policy + required: + - hostGroups + properties: + hostGroups: + description: A single hostgroup, or a comma separated list of hostGroups to which the rules apply + type: string + scheduleBasedPolicy: + description: Scheduled based policy + $ref: '#/definitions/AutoScaleScheduleResponse' + loadBasedPolicy: + description: Load based policy + $ref: '#/definitions/AutoScaleLoadResponse' + AutoScaleScheduleRequest: + type: object + description: Schedule for AutoScaling + properties: + schedules: + description: List of individual schedules + type: array + items: + $ref: '#/definitions/IndividualScheduleRequest' + AutoScaleScheduleResponse: + type: object + description: Schedule for AutoScaling + properties: + schedules: + description: List of individual schedules + type: array + items: + $ref: '#/definitions/IndividualScheduleResponse' + IndividualScheduleRequest: + type: object + description: An individual schedule based policy + required: + - configuration + properties: + configuration: + type: object + description: The schedule configuration + required: + - trigger + - action + properties: + trigger: + type: object + description: The trigger for this rule + required: + - cronExpression + - timeZone + properties: + cronExpression: + type: string + minLength: 1 + maxLength: 100 + description: The cron expression for this schedule + timeZone: + type: string + minLength: 1 + maxLength: 50 + description: The time zone for the cron expression + action: + type: object + description: The scaling action to take when triggered + required: + - resourceAdjustmentValue + properties: + resourceAdjustmentType: + type: string + enum: + - ABSOLUTE_COUNT + description: The type of resource adjustment. Only ABSOLUTE_COUNT supported at the moment. + resourceAdjustmentValue: + type: integer + minimum: 0 + format: int32 + description: The target value for the resource based on the AdjustmentType + identifier: + type: string + minLength: 5 + maxLength: 200 + description: An optional identifier for the specific schedule. Generally useful for debugging. Will be auto-generated if none provided. + description: + type: string + minLength: 0 + maxLength: 1000 + description: An optional description for the specific schedule. + IndividualScheduleResponse: + type: object + description: An individual schedule based policy + required: + - configuration + - identifier + properties: + configuration: + type: object + description: The schedule configuration. + required: + - trigger + - action + properties: + trigger: + type: object + description: The trigger for this rule. + required: + - cronExpression + - timeZone + properties: + cronExpression: + type: string + minLength: 1 + maxLength: 100 + description: The cron expression for this schedule + timeZone: + type: string + minLength: 1 + maxLength: 50 + description: The time zone for the cron expression + action: + type: object + description: The scaling action to take when triggered. + required: + - resourceAdjustmentValue + properties: + resourceAdjustmentType: + type: string + enum: + - ABSOLUTE_COUNT + description: The type of resource adjustment. Only ABSOLUTE_COUNT supported at the moment. + resourceAdjustmentValue: + type: integer + format: int32 + description: The target value for the resource based on the AdjustmentType + identifier: + type: string + description: An identifier fot the specific schedule. Generally usefulf for debugging. + description: + type: string + description: Description for the specified schedule. + AutoScaleLoadRequest: + type: object + description: Configuration for Load Based Scaling + required: + - configuration + properties: + configuration: + description: Configuration for Load Based Scaling + $ref: '#/definitions/AutoScaleLoadRequestConfiguration' + identifier: + type: string + minLength: 5 + maxLength: 200 + description: An optional identifier for the rule. Generally useful for debugging. Will be auto-generated if none is provided. + description: + type: string + minLength: 0 + maxLength: 1000 + description: An optional description for the specific schedule. + AutoScaleLoadResponse: + type: object + description: Configuration for Load Based Scaling + required: + - configuration + - identifier + properties: + configuration: + description: Configuration for Load Based Scaling + $ref: '#/definitions/AutoScaleLoadResponseConfiguration' + identifier: + type: string + description: An identifer for this rule. Useful for debugging and logging. + description: + type: string + description: Description for the specified schedule. + AutoScaleLoadRequestConfiguration: + type: object + description: Configuration for load based scaling + required: + - minResourceValue + - maxResourceValue + properties: + minResourceValue: + type: integer + format: int32 + minimum: 0 + description: The lower bound for the resource + maxResourceValue: + type: integer + format: int32 + minimum: 0 + description: The upper bound for the resource + coolDownMinutes: + type: integer + description: Minimum time, in minutes, between autoscale activity + format: int32 + scaleUpCoolDownMinutes: + type: integer + format: int32 + description: Minimum time (in minutes) for scale up, after last autoscaling action. Use this to override coolDownMinutes. + scaleDownCoolDownMinutes: + type: integer + format: int32 + description: Minimum time (in minutes) for scale down, after last autoscaling action. Use this to override coolDownMinutes. + maxScaleUpStepSize: + type: integer + format: int32 + description: The maximum scale up step size. + maxScaleDownStepSize: + type: integer + format: int32 + description: The maximum scale down step size. + AutoScaleLoadResponseConfiguration: + type: object + description: Configuration for load based scaling + required: + - minResourceValue + - maxResourceValue + properties: + minResourceValue: + type: integer + format: int32 + description: The lower bound for the resource + maxResourceValue: + type: integer + format: int32 + description: The upper bound for the resource + coolDownMinutes: + type: integer + description: Minimum time, in minutes, between autoscale activity + format: int32 + scaleUpCoolDownMinutes: + type: integer + format: int32 + description: Minimum time (in minutes) for scale up, after last autoscaling action. Use this to override coolDownMinutes. + scaleDownCoolDownMinutes: + type: integer + format: int32 + description: Minimum time (in minutes) for scale down, after last autoscaling action. Use this to override coolDownMinutes. + maxScaleUpStepSize: + type: integer + format: int32 + description: The maximum scale up step size. + maxScaleDownStepSize: + type: integer + format: int32 + description: The maximum scale down step size. + ListAutoScaleHistoryRequest: + type: object + description: Request object to retrieve the AutoScale history for a DataHub cluster. + required: + - clusterName + properties: + clusterName: + type: string + minLength: 5 + maxLength: 500 + description: The name or CRN of the cluster. + count: + type: integer + format: int32 + minimum: 0 + maximum: 1000 + description: The maximum number of history entries to retrieve (Default 200). + ListAutoScaleHistoryResponse: + type: object + description: The response object which describes the AutoScale rules for a DataHub cluster. + properties: + historyEvents: + description: List of history events for the cluster. + type: array + items: + $ref: '#/definitions/IndividualAutoScaleHistoryResponse' + IndividualAutoScaleHistoryResponse: + type: object + description: An object representing a single AutoScale history event for a DataHub cluster. + properties: + eventTime: + type: string + format: date-time + description: The time at which the event occurred. + eventMessage: + type: string + description: The AutoScale related operation that was performed. + DatahubVmLogRequest: + type: object + description: Log descriptor, contains a path and label pair. Used for diagnostics collections. + required: + - path + - label + properties: + path: + type: string + description: Path of the log file(s) that needs to be collected. (Can be glob wildcard) + label: + type: string + description: Label that will be used to identify a log descriptor. (will be used as a folder inside logs folder) + DatahubVmLogResponse: + type: object + description: Log descriptor, contains a path and label pair. Used for diagnostics collections. + properties: + path: + type: string + description: Path of the log file(s) that needs to be collected. (Can be glob wildcard) + label: + type: string + description: Label that will be used to identify a log descriptor. (will be used as a folder inside logs folder) + CollectDatahubDiagnosticsRequest: + type: object + description: Request object for collecting DataHub diagnostics. + required: + - crn + - destination + - description + properties: + crn: + type: string + description: CRN of the DataHub cluster. + destination: + type: string + enum: + - SUPPORT + - CLOUD_STORAGE + - ENG + - LOCAL + description: Destination of the diagnostics collection (Support, Own cloud storage, Engineering or collect only on the nodes) + description: + type: string + description: Additional information / title for the diagnostics collection. + caseNumber: + type: string + description: Optional support case number in case of SUPPORT destination, otherwise only act as additional data. + labels: + type: array + description: Array of labels that can filter logs that are collected during diagnostics collection. + uniqueItems: true + items: + type: string + startDate: + type: string + format: date-time + description: Date timestamp - collect files only for diagnostics that has higher last modified timestamp value than this. + endDate: + type: string + format: date-time + description: Date timestamp - collect files only for diagnostics that has lower created timestamp value than this. + additionalLogs: + type: array + description: Array of log descriptors that should be additionally collected during diagnostics collection. + items: + $ref: '#/definitions/DatahubVmLogRequest' + hosts: + type: array + description: Array of host names (fqdn), collection will run only on the dedicated hosts. + uniqueItems: true + items: + type: string + hostGroups: + type: array + description: Array of host groups, collection will run only on the dedicated hosts that belongs to these host groups. + uniqueItems: true + items: + type: string + excludeHosts: + type: array + description: Array of host names (fqdn or IP address), collection will not run on the excluded hosts. + uniqueItems: true + items: + type: string + skipUnresponsiveHosts: + type: boolean + description: Skip unhealthy hosts from the diagnostics collection. + includeNginxReport: + type: boolean + description: Include Nginx report generated by GoAccess (if available). + includeSaltLogs: + type: boolean + description: Include salt minion/master/api system logs in the diagnostics collection. + includeSarOutput: + type: boolean + description: Include SAR (System Activity Report) generated outputs in the diagnostics collection (if available). + updatePackage: + type: boolean + default: false + description: If enabled, required package (cdp-telemetry) will be upgraded or installed on the nodes. (useful if package is not installed or needs to be upgraded) Network is required for this operation. + storageValidation: + type: boolean + default: false + description: Enable/disable node level storage validation (can be disabled for example, if you have too many hosts and do not want to do too much parallel writes to s3/abfs) + CollectDatahubDiagnosticsResponse: + type: object + description: Response object for collecting DataHub diagnostics. + ListDatahubDiagnosticsRequest: + type: object + description: Request object for listing recent Datahub diagnostics collections. + required: + - crn + properties: + crn: + type: string + description: CRN of the DataHub cluster. + ListDatahubDiagnosticsResponse: + type: object + description: Response object for listing recent Datahub diagnostics collections. + properties: + collections: + type: array + description: description. + items: + $ref: '#/definitions/DatahubDiagnosticsCollectionResponse' + DatahubDiagnosticsCollectionResponse: + type: object + description: Response object for diagnostic collection flow details. + properties: + status: + type: string + description: Status of the diagnostics collection flow. + enum: + - RUNNING + - FAILED + - FINISHED + - CANCELLED + flowId: + type: string + description: Flow ID of the diagnostics collection flow. + flowState: + type: string + description: Current state of the diagnostics collection flow. + created: + type: string + format: date-time + description: Creation date of the diagnostics collection flow. + progressPercentage: + type: integer + description: Progress percentage of the diagnostics collection flow (maximum value if finished). + format: int32 + collectionDetails: + $ref: '#/definitions/DatahubDiagnosticsCollectionDetailsResponse' + description: Additional details about the diagnostics collection. + DatahubDiagnosticsCollectionDetailsResponse: + type: object + description: Response object for diagnostic collection details. + properties: + case: + type: string + description: Case number for the diagnostics collection. + output: + type: string + description: Output destination of the diagnostics collection. + destination: + type: string + description: Destination type of the diagnostics collection. + description: + type: string + description: Description of the diagnostics collection. + accountId: + type: string + description: Account Id that was used for the diagnostics collection. + resourceCrn: + type: string + description: Crn of the cluster. + clusterVersion: + type: string + description: Version of the cluster that was used for the diagnostics collection. + CancelDatahubDiagnosticsRequest: + type: object + description: Request object for cancel running Datahub diagnostics collections. + required: + - crn + properties: + crn: + type: string + description: CRN of the DataHub cluster. + CancelDatahubDiagnosticsResponse: + type: object + description: Response object for cancel running Datahub diagnostics collections. + GetDatahubLogDescriptorsRequest: + type: object + description: Request object for obtaining log descriptors. (that are used for diagnostics collection) + CollectCmDiagnosticsRequest: + type: object + description: Request object for collecting Datahub diagnostics. + required: + - crn + - destination + properties: + crn: + type: string + description: CRN of the Datahub cluster. + destination: + type: string + enum: + - SUPPORT + - CLOUD_STORAGE + - LOCAL + description: Destination of the diagnostics collection (Support, Own cloud storage, Engineering or collect only on the nodes) + description: + type: string + description: Additional information / title for the diagnostics collection. + caseNumber: + type: string + description: Optional support case number in case of SUPPORT destination, otherwise only act as additional data. + roles: + type: array + description: Array of roles for which to get logs and metrics. If set, this restricts the roles for log and metrics collection. + uniqueItems: true + items: + type: string + startDate: + type: string + format: date-time + description: Restrict collected logs and metrics (from the provided date timestamp). + endDate: + type: string + format: date-time + description: Restrict collected logs and metrics (until the provided date timestamp). + updatePackage: + type: boolean + default: false + description: If enabled, required package (cdp-telemetry) will be upgraded or installed on the nodes. (useful if package is not installed or needs to be upgraded) Network is required for this operation. + storageValidation: + type: boolean + default: false + description: Enable/disable node level storage validation (can be disabled for example, if you have too many hosts and do not want to do too much parallel writes to s3/abfs) + monitorMetricsCollection: + type: boolean + default: false + description: Flag to enable collection of metrics for chart display in CM based diagnostics collection. + bundleSizeLimit: + type: integer + format: int32 + description: Diagnostics bundle size limit in MB. + CollectCmDiagnosticsResponse: + type: object + description: Response object for collecting Datahub diagnostics. + GetCmRolesRequest: + type: object + description: Request object for obtaining Cloudera Manger roles. (that can be used for filtering in CM based diagnostics collection) + required: + - crn + properties: + crn: + type: string + description: CRN of the Datahub cluster. + GetCmRolesResponse: + type: object + description: Response object for obtaining Cloudera Manger roles. (that can be used for filtering in CM based diagnostics collection) + properties: + roles: + type: array + description: Array of CM roles. (useful for CM based diagnostics collection filtering) + items: + type: string + GetDatahubLogDescriptorsResponse: + type: object + description: Response object for obtaining log descriptors. (useful for diagnostics collection filtering) + properties: + logs: + type: array + description: Array of log descriptors. (useful for diagnostics collection filtering) + items: + $ref: '#/definitions/DatahubVmLogResponse' + RotateAutoTlsCertificatesRequest: + type: object + description: Request object to rotate autotls certificates on datahub's hosts, deprecated. + x-deprecated: true + required: + - datahubName + properties: + datahubName: + type: string + description: The name or CRN of the datahub. + RotateAutoTlsCertificatesResponse: + type: object + description: Response object to rotate autotls certificates on datahub's hosts, deprecated. + x-deprecated: true + RenewCertificateResponse: + type: object + description: Response object for renew certificate request, deprecated. + x-deprecated: true + ImageComponentVersions: + type: object + description: Versions of the image components. + properties: + cm: + type: string + description: Version of CM. + cdp: + type: string + description: CDP version. + os: + type: string + description: OS name. + osPatchLevel: + type: string + description: OS patch level. + ImageInfo: + type: object + description: Basic information about an image. + properties: + imageName: + type: string + description: The name of the image. + imageId: + type: string + description: The id of the image. + imageCatalogName: + type: string + description: Name of the image catalog, the image is from. + created: + type: integer + format: int64 + description: Image creation timestamp. + componentVersions: + $ref: '#/definitions/ImageComponentVersions' + description: Version of the image components. + UpgradeClusterRequest: + type: object + description: Request object to upgrade datahub. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the datahub. + imageId: + type: string + description: The id of an image to upgrade to. + runtime: + type: string + description: The runtime version to upgrade to. + lockComponents: + type: boolean + description: Perform an os upgrade only. + dryRun: + type: boolean + description: Checks the eligibility of an image to upgrade but do not perform the upgrade. + showAvailableImages: + type: boolean + description: Returns the list of images that are eligible for the upgrade. + showLatestAvailableImagePerRuntime: + type: boolean + description: Returns the latest image that is eligible for the upgrade for each runtime version with at least one available upgrade candidate. + UpgradeClusterResponse: + type: object + description: Response object for upgrade datahub request. + properties: + current: + $ref: '#/definitions/ImageInfo' + description: Information about the current image. + upgradeCandidates: + type: array + description: List of images and components to upgrade to. + items: + $ref: '#/definitions/ImageInfo' + description: Information about an image. + reason: + type: string + description: The reason why upgrade is not possible. + PrepareClusterUpgradeRequest: + type: object + description: Request object to Data Hub upgrade preparation. This command indicates the upgrade preparation for a specific image or a selected runtime version. Important to note that the imageId or the runtime parameter must be present in the request. + required: + - cluster + properties: + cluster: + type: string + description: The name or CRN of the Data Hub. + imageId: + type: string + description: The ID of an image to upgrade to. + runtime: + type: string + description: The runtime version to upgrade to. + PrepareClusterUpgradeResponse: + type: object + description: Response object for upgrade Data Hub request. + properties: + current: + $ref: '#/definitions/ImageInfo' + description: Information about the current image. + upgradeCandidates: + type: array + description: List of images and components to upgrade to. + items: + $ref: '#/definitions/ImageInfo' + description: Information about an image. + reason: + type: string + description: The reason why upgrade is not possible. + StartDatabaseUpgradeRequest: + type: object + description: Request object for Data Hub database upgrade. + required: + - cluster + properties: + cluster: + type: string + description: The name or CRN of the Data Hub. + targetVersion: + type: string + description: The database engine major version to upgrade to. + enum: + - VERSION_11 + StartDatabaseUpgradeResponse: + type: object + description: Response object to Data Hub database upgrade. + properties: + targetVersion: + type: string + description: The database engine major version to upgrade to. + enum: + - VERSION_11 + SetCatalogRequest: + type: object + description: The request object to set catalog for a DataHub. + required: + - cluster + - catalogName + properties: + cluster: + type: string + description: The name or CRN of the affected DataHub cluster. + catalogName: + type: string + description: The name of the catalog to be used. + SetCatalogResponse: + type: object + description: The response object to set catalog for a DataHub request. + SyncComponentVersionsFromCmRequest: + type: object + description: Datahub sync CM component versions request. + required: + - datahubName + properties: + datahubName: + type: string + description: The name or CRN of the datahub. + SyncComponentVersionsFromCmResponse: + type: object + description: Datahub sync CM component versions response. + RotatePrivateCertificatesRequest: + type: object + description: Request object to rotate private certificates on the hosts of Datahub. + required: + - datahub + properties: + datahub: + type: string + description: The name or CRN of the datahub. + RotatePrivateCertificatesResponse: + type: object + description: Response object to rotate private certificates on the hosts of Datahub. + RenewPublicCertificateRequest: + type: object + description: Request object for renewing the Datahub public certificate. + required: + - datahub + properties: + datahub: + type: string + description: The name or CRN of the datahub. + RenewPublicCertificateResponse: + type: object + description: Response object for renew public certificate request. + StartInstancesRequest: + type: object + description: Request object to start instances of a host group on a Data Hub. + required: + - cluster + - hostGroup + properties: + cluster: + type: string + description: The name or CRN of the cluster whose instances are to be started. + hostGroup: + type: string + description: The name of the instance group whose instances are to be started. + instanceCount: + type: integer + description: The number of instances to start. + format: int32 + StartInstancesResponse: + type: object + description: Response object to start instances of a host group on Data Hub. + StopInstancesRequest: + type: object + description: Request object to stop instances of a host group on a Data Hub. + required: + - cluster + - instanceIds + properties: + cluster: + type: string + description: The name or CRN of the cluster whose instances are to be stopped. + instanceIds: + type: array + items: + type: string + description: The list of instance IDs. + forced: + type: boolean + description: Whether the stop instances operation should be forced or not. Defaults to false. + StopInstancesResponse: + type: object + description: Response object to a stop instances of a host group on a Data Hub. + RotateSaltPasswordRequest: + type: object + description: Request object for rotating SaltStack user password on Data Hub instances. + required: + - cluster + properties: + cluster: + type: string + description: The name or CRN of the cluster. + RotateSaltPasswordResponse: + type: object + description: Response object for rotating SaltStack user password on Data Hub instances. + UpdateOrchestratorStateRequest: + type: object + description: Request object for running orchestrator engine state update on the Data Hub cluster. + required: + - clusterCrn + properties: + clusterCrn: + type: string + description: The CRN of the Data Hub cluster. + UpdateOrchestratorStateResponse: + type: object + description: Response object for running orchestrator engine state update on the Data Hub cluster. diff --git a/cdp-sdk-go/resources/swagger/datalake.yaml b/cdp-sdk-go/resources/swagger/datalake.yaml new file mode 100644 index 00000000..9d10f8eb --- /dev/null +++ b/cdp-sdk-go/resources/swagger/datalake.yaml @@ -0,0 +1,2907 @@ +swagger: '2.0' +x-endpoint-name: datalake +x-interface-model: cdp +x-products: CDP +x-form-factors: public +x-cdp-releases: PUBLIC +x-audit: true +info: + version: 0.9.87 (BETA) + title: Cloudera Datalake Service + license: + name: Apache 2.0 + description: Cloudera data lake is a service for launching and managing data lake clusters powered by Cloudera Runtime. + termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html +schemes: + - https +consumes: + - application/json +produces: + - application/json +paths: + /api/v1/datalake/listRuntimes: + post: + summary: Lists the datalake versions. + description: Lists the available datalake runtime versions. + operationId: listRuntimes + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListRuntimesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListRuntimesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/createAWSDatalake: + post: + summary: Creates an AWS datalake. + description: Creates an AWS datalake. + operationId: createAWSDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAWSDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAWSDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/createAzureDatalake: + post: + summary: Creates an Azure datalake. + description: Creates an Azure datalake. + operationId: createAzureDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAzureDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAzureDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/createGCPDatalake: + post: + summary: Creates an GCP Data Lake. + description: Creates an GCP Data Lake. + operationId: createGCPDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateGCPDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateGCPDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/listDatalakes: + post: + summary: Lists datalakes. + description: Lists datalakes. + operationId: listDatalakes + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDatalakesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDatalakesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/deleteDatalake: + post: + summary: Deletes a datalake. + description: Deletes a datalake. + operationId: deleteDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/retryDatalake: + post: + summary: Retry last failed operation on a datalake. + description: Retry last failed operation on a datalake. + operationId: retryDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RetryDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RetryDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/startDatalakeVerticalScaling: + post: + summary: Initiates the vertical scaling on Data Lake. + description: Initiates the vertical scaling on Data Lake. + operationId: startDatalakeVerticalScaling + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartDatalakeVerticalScalingRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartDatalakeVerticalScalingResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/describeDatalake: + post: + summary: Describes a datalake. + description: Describes a datalake. + operationId: describeDatalake + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/renewCertificate: + post: + summary: Renew certificate on Datalake cluster by name or CRN + description: Deprecated, please use renew-public-certificate command instead. Renew certificate on Datalake cluster by name or CRN. + operationId: renewCertificate + x-deprecated: true + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RenewCertificateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RenewCertificateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/renewPublicCertificate: + post: + summary: Renews public certificate on Datalake cluster by name or CRN. + description: Renews public certificate on Datalake cluster by name or CRN. + operationId: renewPublicCertificate + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RenewPublicCertificateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RenewPublicCertificateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/repairDatalake: + post: + summary: Repairs a datalake. + description: Repairs a datalake. + operationId: repairDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RepairDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RepairDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/getClusterServiceStatus: + post: + summary: Get cluster service status. + description: Gets the status of the services in a cluster. + operationId: getClusterServiceStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetClusterServiceStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetClusterServiceStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/getClusterHostStatus: + post: + summary: Get cluster host status. + description: Gets the status of the hosts in a cluster. + operationId: getClusterHostStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetClusterHostStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetClusterHostStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/upgradeDatalake: + post: + summary: OS or data platform upgrade for the SDX cluster. + description: OS or data platform upgrade for the SDX cluster. You have the option to either specify one of 'imageId', 'runtime' or 'lockComponents' or both 'imageId' and 'lockComponents' or none of the parameters. + operationId: upgradeDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/prepareDatalakeUpgrade: + post: + summary: Prepares the Data Lake cluster for upgrade. + description: In order to reduce the chance of upgrade failures, we're introducing a preparation phase for runtime upgrades. During this phase, we're running all validations and downloading the required parcels for the machines. You can track the progress of the parcel preparation on the Cloudera Manager UI or you can check on the Management Console as well. + operationId: prepareDatalakeUpgrade + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/PrepareDatalakeUpgradeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/PrepareDatalakeUpgradeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/startDatabaseUpgrade: + post: + summary: Upgrades the database of the Data Lake cluster. + description: This command initiates the upgrade of the database of the Data Lake cluster. + operationId: startDatabaseUpgrade + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartDatabaseUpgradeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartDatabaseUpgradeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/startDatalake: + post: + summary: Start Datalake + description: Deprecated, please use 'cdp environments start-environment' instead. + operationId: startDatalake + x-mutating: true + x-deprecated: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/stopDatalake: + post: + summary: Stop Datalake + description: Deprecated, please use 'cdp environments stop-environment' instead. + operationId: stopDatalake + x-mutating: true + x-deprecated: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StopDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StopDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/backupDatalake: + post: + summary: Create backup of datalake. + description: Takes a backup of all the data in the datalake. + operationId: backupDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/BackupDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/BackupDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/backupDatalakeStatus: + post: + summary: Check the status of a datalake backup operation performed. + description: Identifies the backup operation based on the inputs provided and gets the status. BackupName and BackupId are mutually exclusive. Only one of them can be provided. + operationId: backupDatalakeStatus + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/BackupDatalakeStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/BackupDatalakeStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/restoreDatalake: + post: + summary: Restore the datalake from backup taken. + description: Restore the datalake from a backup that was taken. Backup to be used for restore is identified based on the information provided in the restore request. BackupId and BackupName are mutually exclusive. Only one of them can be provided. If both are provided, BackupId takes precedence. + operationId: restoreDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RestoreDatalakeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RestoreDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/restoreDatalakeStatus: + post: + summary: Check the status of datalake restore operation. + description: Identifies the restore operation based on the inputs provided and gets the status. RestoreId and BackupName are mutually exclusive. Only one of them can be provided. + operationId: restoreDatalakeStatus + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RestoreDatalakeStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RestoreDatalakeStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/listDatalakeBackups: + post: + summary: List all the backup operations that were performed on the datalake. + description: List all the backup operations that were performed on the datalake. + operationId: listDatalakeBackups + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDatalakeBackupsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDatalakeBackupsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/cancelBackup: + post: + summary: Cancels the specified ongoing backup operation. + description: Cancels a currently running backup operation. The operation must be in a STARTED or IN_PROGRESS state. Pending sub-operations will be ignored and marked as cancelled. The operation does not wait for the currently running sub-operation(s) to complete. + operationId: cancelBackup + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CancelBackupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CancelBackupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/replaceRecipes: + post: + summary: Replaces recipes for the given instance groups. + description: Replaces recipes for the given instance groups. + operationId: replaceRecipes + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ReplaceRecipesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ReplaceRecipesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/getDatalakeLogDescriptors: + post: + summary: Gather log descriptors that are used for diagnostics collection. + description: Gather log descriptors that are used for diagnostics collection. + operationId: getDatalakeLogDescriptors + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetDatalakeLogDescriptorsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetDatalakeLogDescriptorsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/collectDatalakeDiagnostics: + post: + summary: Start DataLake diagnostics collection + description: Start Datalake diagnostics collection + operationId: collectDatalakeDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CollectDatalakeDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CollectDatalakeDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/listDatalakeDiagnostics: + post: + summary: List recent Datalake diagnostics collections + description: List recent Datalake diagnostics collection + operationId: listDatalakeDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDatalakeDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDatalakeDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/cancelDatalakeDiagnostics: + post: + summary: Cancel running Datalake diagnostics collections + description: Cancel running Datalake diagnostics collection + operationId: cancelDatalakeDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CancelDatalakeDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CancelDatalakeDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/collectCmDiagnostics: + post: + summary: Start DataLake Cloudera Manager based diagnostics collection + description: Start Datalake Cloudera Manager based diagnostics collection + operationId: collectCmDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CollectCmDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CollectCmDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/getCmRoles: + post: + summary: Gather Cloudera Manager roles that can be used for filtering in CM based diagnostics collection. + description: Gather Cloudera Manager roles that can be used for filtering in CM based diagnostics collection. + operationId: getCmRoles + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetCmRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetCmRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/rotateAutoTlsCertificates: + post: + summary: Rotate autotls certificates on the datalake's hosts + description: Deprecated, please use rotate-private-certificates command instead. Rotate autotls certificates on the datalake's hosts + operationId: rotateAutoTlsCertificates + x-mutating: true + x-deprecated: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RotateAutoTlsCertificatesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RotateAutoTlsCertificatesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/rotatePrivateCertificates: + post: + summary: Rotates private certificates on the datalake's hosts. + description: Rotates private certificates on the datalake's hosts. + operationId: rotatePrivateCertificates + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RotatePrivateCertificatesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RotatePrivateCertificatesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/resizeDatalake: + post: + summary: Resizes the given datalake to the given target size. Currently, the only valid use of this is for resizing a light duty datalake to a medium duty datalake. + description: Resizes the datalake to the given size. + operationId: resizeDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ResizeDatalakeRequest' + responses: + 200: + description: Expected response to a valid resize datalake request. + schema: + $ref: '#/definitions/ResizeDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/recoverDatalake: + post: + summary: Recover data lake to the original version after a failed upgrade. + description: Recover data lake to the original version after a failed upgrade. + operationId: recoverDatalake + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RecoverDatalakeRequest' + responses: + 200: + description: Expected response to a valid recover data lake request. + schema: + $ref: '#/definitions/RecoverDatalakeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/setCatalog: + post: + summary: Sets a catalog for a DataLake. + description: Sets a catalog for a DataLake. + operationId: setCatalog + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetCatalogRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetCatalogResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/syncComponentVersionsFromCm: + post: + summary: Syncs component versions from CM after a failed upgrade. + description: Syncs component versions from CM after a failed upgrade. + x-no-compatibility-guarantee: true + operationId: syncComponentVersionsFromCm + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SyncComponentVersionsFromCmRequest' + responses: + 200: + description: Expected response to a valid sync datahub CM component versions request. + schema: + $ref: '#/definitions/SyncComponentVersionsFromCmResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/enableRangerRaz: + post: + summary: Sets the Ranger Raz enabled flag to true if Raz is manually installed on the datalake. + description: Sets the Ranger Raz enabled flag to true if Raz is manually installed on the datalake. + operationId: enableRangerRaz + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/EnableRangerRazRequest' + responses: + 200: + description: Expected response to a valid enable Ranger Raz request. + schema: + $ref: '#/definitions/EnableRangerRazResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/rotateSaltPassword: + post: + summary: Rotate SaltStack user password on DataLake instances. + description: Rotate SaltStack user password on DataLake instances. + operationId: rotateSaltPassword + x-mutating: true + x-entitlement: CDP_ROTATE_SALTUSER_PASSWORD + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RotateSaltPasswordRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RotateSaltPasswordResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/datalake/updateOrchestratorState: + post: + summary: Run orchestrator engine state update on the Data Lake cluster. + description: Run orchestrator engine state update on the Data Lake cluster. + operationId: updateOrchestratorState + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateOrchestratorStateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateOrchestratorStateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' +definitions: + Error: + type: object + description: An object returned on an error. + properties: + code: + type: string + description: The error code. + message: + type: string + description: The error message. + ClouderaManagerDetails: + type: object + description: Cloudera Manager details. + required: + - version + - clouderaManagerRepositoryURL + properties: + version: + type: string + description: Cloudera Manager version. + clouderaManagerRepositoryURL: + type: string + description: Cloudera Manager repository URL. + clouderaManagerServerURL: + type: string + description: Cloudera Manager server URL. + ProductVersion: + type: object + description: Product version. + required: + - name + - version + properties: + name: + type: string + description: The name of the product. + version: + type: string + description: The version of the product. + AWSConfiguration: + type: object + description: AWS configuration. + properties: + instanceProfile: + type: string + description: The instance profile used for the ID Broker instance. + AzureConfiguration: + type: object + description: Azure configuration. + properties: + managedIdentity: + type: string + description: The managed identity used for the ID Broker instance. + GCPConfiguration: + type: object + description: GCP configuration. + properties: + serviceAccountEmail: + type: string + description: The email id of the service account used for the ID Broker instance. + StartDatalakeVerticalScalingRequest: + type: object + description: The request object for Data Lake vertical scaling. + required: + - datalake + - group + - instanceTemplate + properties: + datalake: + type: string + description: The name or CRN of the Data Lake. + group: + type: string + description: The target group that requested vertical scaling. + instanceTemplate: + description: Instance template that specifies the core information for the vertical scale. + $ref: '#/definitions/InstanceTemplate' + StartDatalakeVerticalScalingResponse: + type: object + description: The response object for Data Lake vertical scaling. + properties: + result: + type: string + description: The result of the operation. + InstanceTemplate: + type: object + description: Instance template that specifies the core information for the vertical scale. + properties: + instanceType: + type: string + description: The type of the instance. + DatalakeDetails: + type: object + description: Details about a datalake + required: + - datalakeName + - crn + properties: + crn: + type: string + description: The CRN of the datalake. + datalakeName: + type: string + description: The name of the datalake. + status: + type: string + description: The status of the datalake. + shape: + $ref: '#/definitions/DatalakeScaleType' + description: The shape of the datalake (either LIGHT_DUTY or MEDIUM_DUTY_HA). + environmentCrn: + type: string + description: The CRN of the environment. + credentialCrn: + type: string + description: The CRN of credentials. + cloudPlatform: + type: string + description: The cloud platform. + instanceGroups: + type: array + items: + $ref: '#/definitions/InstanceGroup' + description: The instance details. + creationDate: + type: string + format: date-time + description: The date when the datalake was created. + clouderaManager: + $ref: '#/definitions/ClouderaManagerDetails' + description: The Cloudera Manager details. + productVersions: + type: array + items: + $ref: '#/definitions/ProductVersion' + description: The product versions. + region: + type: string + description: The region of the datalake. + statusReason: + type: string + description: The reason for the status of the datalake. + awsConfiguration: + $ref: '#/definitions/AWSConfiguration' + description: The AWS configuration. + azureConfiguration: + $ref: '#/definitions/AzureConfiguration' + description: The Azure configuration. + gcpConfiguration: + $ref: '#/definitions/GCPConfiguration' + description: The GCP configuration. + endpoints: + $ref: '#/definitions/Endpoints' + description: The exposed service api endpoints. + cloudStorageBaseLocation: + type: string + description: The base location for the cloud storage used for the datalake. + enableRangerRaz: + type: boolean + description: Whether Ranger RAZ is enabled for the datalake. + InstanceGroup: + type: object + description: The type of the instance group which also contains the actual instance(s) + required: + - name + - instances + properties: + name: + type: string + description: The name of the instance group. + instances: + type: array + items: + $ref: '#/definitions/Instance' + description: List of instances in this instance group. + Instance: + type: object + description: Object which holds some details of an instance for the given cluster. + required: + - id + - state + properties: + id: + type: string + description: The ID of the given instance. + state: + type: string + description: The actual state of the instance. + discoveryFQDN: + type: string + description: The FQDN of the instance. + instanceStatus: + $ref: '#/definitions/DatalakeInstanceStatus' + description: The status of the instance. + statusReason: + type: string + description: The reason for the current status of this instance. + privateIp: + type: string + description: The private IP of the given instance. + publicIp: + type: string + description: The public IP of the given instance. + sshPort: + type: integer + format: int32 + description: The SSH port for the instance. + instanceGroup: + type: string + description: The name of the instance group this instance belongs to. + instanceTypeVal: + $ref: '#/definitions/DatalakeInstanceType' + description: The instance type. + DatalakeInstanceStatus: + type: string + description: The status of the instance. + enum: + - REQUESTED + - FAILED + - CREATED + - ORCHESTRATION_FAILED + - SERVICES_RUNNING + - SERVICES_HEALTHY + - SERVICES_UNHEALTHY + - WAITING_FOR_REPAIR + - STOPPED + - DELETED_ON_PROVIDER_SIDE + - DELETED_BY_PROVIDER + - DELETE_REQUESTED + - DECOMMISSIONED + - DECOMMISION_FAILED + - TERMINATED + DatalakeInstanceType: + type: string + description: The type of the instance. + enum: + - GATEWAY + - GATEWAY_PRIMARY + - CORE + Endpoints: + type: object + description: Object which holds the exposed endpoints for the given cluster. + required: + - endpoints + properties: + endpoints: + type: array + items: + $ref: '#/definitions/Endpoint' + description: The exposed API endpoints. + Endpoint: + type: object + description: Object which holds the exposed endpoint. + required: + - serviceName + - serviceUrl + - displayName + - knoxService + - mode + - open + properties: + serviceName: + type: string + description: The name of the exposed service + serviceUrl: + type: string + description: The server url for the given exposed service's API. + displayName: + type: string + description: The more consumable name of the exposed service. + knoxService: + type: string + description: The related knox entry. + mode: + type: string + description: The SSO mode of the given service. + open: + type: boolean + description: The access status of the given endpoint. Whether its open or not. + Datalake: + type: object + description: Information about a datalake. + required: + - datalakeName + - crn + properties: + datalakeName: + type: string + description: The name of the datalake. + crn: + type: string + description: The CRN of the datalake. + status: + type: string + description: The status of the datalake. + environmentCrn: + type: string + description: The CRN of the environment. + creationDate: + type: string + format: date-time + description: The date when the datalake was created. + statusReason: + type: string + description: The reason for the status of the datalake. + enableRangerRaz: + type: boolean + description: Whether Ranger RAZ is enabled for the datalake. + certificateExpirationState: + type: string + description: Indicates the certificate status on the cluster. + enum: + - VALID + - HOST_CERT_EXPIRING + multiAz: + type: boolean + description: Flag which marks that the datalake is deployed in a multi-availability zone way or not. + DatalakeResourceTagRequest: + type: object + description: Tag for a datalake resource. + required: + - key + - value + properties: + key: + type: string + description: The key of tag. + value: + type: string + description: The value of the tag. + DatalakeResourceGCPTagRequest: + type: object + description: A label that can be attached to GCP Data Lake resources. Please refer to Google documentation for the rules https://cloud.google.com/compute/docs/labeling-resources#label_format. + required: + - key + - value + properties: + key: + type: string + description: The key of tag. + value: + type: string + description: The value of the tag. + ListRuntimesRequest: + type: object + description: Request object for list datalake runtime versions. + ListRuntimesResponse: + type: object + description: Response object for list datalake runtime versions. + required: + - versions + properties: + versions: + type: array + items: + $ref: '#/definitions/Runtime' + description: The list of datalake runtime versions. + Runtime: + type: object + description: An advertised datalake runtime version. + required: + - runtimeVersion + - defaultRuntimeVersion + properties: + runtimeVersion: + type: string + description: The actual version number. + defaultRuntimeVersion: + type: boolean + description: Whether it is a default runtime version or not. + AWSConfigurationRequest: + type: object + description: Request object for AWS configuration. + required: + - instanceProfile + - storageBucketLocation + properties: + instanceProfile: + type: string + description: The ARN of an IAM instance profile. + storageBucketLocation: + type: string + description: The location of the S3 bucket to be used as storage. The location has to start with s3a:// followed by the bucket name. + AzureConfigurationRequest: + type: object + description: Request object for Azure configuration. + required: + - managedIdentity + - storageLocation + properties: + managedIdentity: + type: string + description: The managed identity to use. The assumer should have Virtual Machine Contributor and Managed Identity Operator roles on subscription level. + storageLocation: + type: string + description: The storage location to use. The location has to be in the following format abfs://filesystem@storage-account-name.dfs.core.windows.net. The filesystem must already exist and the storage account must be StorageV2. + GCPConfigurationRequest: + type: object + description: Request object for GCP configuration. + required: + - serviceAccountEmail + - storageLocation + properties: + serviceAccountEmail: + type: string + description: Email id of the service account to be associated with the datalake IdBroker instance. This service account should have "token.creator" role for one or more storage accounts that has access to storage. + storageLocation: + type: string + description: The location of the GCS bucket to be used as storage. The location has to start with gs:// followed by the bucket name. + CreateAWSDatalakeRequest: + type: object + description: Request object for create AWS datalake request. + required: + - datalakeName + - environmentName + - cloudProviderConfiguration + properties: + datalakeName: + type: string + description: The datalake name. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 100 + environmentName: + type: string + description: The environment name or CRN. + cloudProviderConfiguration: + $ref: '#/definitions/AWSConfigurationRequest' + description: AWS configuration. + scale: + description: The scale of the datalake. Allowed values are "LIGHT_DUTY" or "MEDIUM_DUTY_HA". Defaults to "LIGHT_DUTY" if not set. + $ref: '#/definitions/DatalakeScaleType' + x-no-compatibility-guarantee: true + tags: + type: array + description: Tags to be added to Data Lake related resources. + items: + $ref: '#/definitions/DatalakeResourceTagRequest' + runtime: + type: string + description: Cloudera Runtime version. + image: + $ref: '#/definitions/ImageRequest' + description: The image to use for the datalake. This must not be set if the runtime parameter is provided. + enableRangerRaz: + type: boolean + description: Whether to enable Ranger RAZ for the datalake. Defaults to not being enabled. + multiAz: + type: boolean + description: Controls if the datalake is deployed in a multi-availability zone way. + recipes: + type: array + items: + $ref: '#/definitions/InstanceGroupRecipeRequest' + description: Additional recipes that will be attached on the datalake instances (by instance groups, most common ones are like 'master' or 'idbroker'). + customInstanceGroups: + type: array + items: + $ref: '#/definitions/SdxInstanceGroupRequest' + description: Configure custom properties on an instance group level. + javaVersion: + type: integer + format: int32 + description: Configure the major version of Java on the cluster. + CreateAWSDatalakeResponse: + type: object + description: Response object for create AWS datalake request. + required: + - datalake + properties: + datalake: + $ref: '#/definitions/Datalake' + description: The datalake. + CreateAzureDatalakeRequest: + type: object + description: Request object for create Azure datalake request. + required: + - datalakeName + - environmentName + - cloudProviderConfiguration + properties: + datalakeName: + type: string + description: The datalake name. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 100 + environmentName: + type: string + description: The environment name or CRN. + cloudProviderConfiguration: + $ref: '#/definitions/AzureConfigurationRequest' + description: Azure configuration. + scale: + description: The scale of the datalake. Allowed values are "LIGHT_DUTY" or "MEDIUM_DUTY_HA". Defaults to "LIGHT_DUTY" if not set. + $ref: '#/definitions/DatalakeScaleType' + x-no-compatibility-guarantee: true + tags: + type: array + description: Tags to be added to Data Lake related resources. + items: + $ref: '#/definitions/DatalakeResourceTagRequest' + runtime: + type: string + description: Cloudera Runtime version. + image: + $ref: '#/definitions/ImageRequest' + description: The image to use for the datalake. This must not be set if the runtime parameter is provided. + loadBalancerSku: + description: The SKU for the datalake load balancer. Allowed values are "BASIC", "STANDARD", or "NONE". + $ref: '#/definitions/DatalakeLoadBalancerSkuType' + enableRangerRaz: + type: boolean + description: Whether to enable Ranger RAZ for the datalake. Defaults to not being enabled. + recipes: + type: array + items: + $ref: '#/definitions/InstanceGroupRecipeRequest' + description: Additional recipes that will be attached on the datalake instances (by instance groups, most common ones are like 'master' or 'idbroker'). + customInstanceGroups: + type: array + items: + $ref: '#/definitions/SdxInstanceGroupRequest' + description: Configure custom properties on an instance group level. + javaVersion: + type: integer + format: int32 + description: Configure the major version of Java on the cluster. + CreateAzureDatalakeResponse: + type: object + description: Response object for create Azure datalake request. + required: + - datalake + properties: + datalake: + $ref: '#/definitions/Datalake' + description: The datalake. + CreateGCPDatalakeRequest: + type: object + description: Request object for create GCP Data Lake request. + required: + - datalakeName + - environmentName + - cloudProviderConfiguration + properties: + datalakeName: + type: string + description: The datalake name. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive. + minLength: 5 + maxLength: 100 + environmentName: + type: string + description: The environment name or CRN. + cloudProviderConfiguration: + $ref: '#/definitions/GCPConfigurationRequest' + description: GCP configuration. + tags: + type: array + description: Tags that can be attached to GCP Data Lake resources. Please refer to Google documentation for the rules https://cloud.google.com/compute/docs/labeling-resources#label_format. + items: + $ref: '#/definitions/DatalakeResourceGCPTagRequest' + scale: + description: The scale of the datalake. Allowed values are "LIGHT_DUTY" or "MEDIUM_DUTY_HA". Defaults to "LIGHT_DUTY" if not set. + $ref: '#/definitions/DatalakeScaleType' + x-no-compatibility-guarantee: true + runtime: + type: string + description: Cloudera Runtime version. + image: + $ref: '#/definitions/ImageRequest' + description: The image to use for the datalake. This must not be set if the runtime parameter is provided. + enableRangerRaz: + type: boolean + description: Whether to enable Ranger RAZ for the datalake. Defaults to not being enabled. + recipes: + type: array + items: + $ref: '#/definitions/InstanceGroupRecipeRequest' + description: Additional recipes that will be attached on the datalake instances (by instance groups, most common ones are like 'master' or 'idbroker'). + customInstanceGroups: + type: array + items: + $ref: '#/definitions/SdxInstanceGroupRequest' + description: Configure custom properties on an instance group level. + javaVersion: + type: integer + format: int32 + description: Configure the major version of Java on the cluster. + CreateGCPDatalakeResponse: + type: object + description: Response object for create GCP Data Lake request. + required: + - datalake + properties: + datalake: + $ref: '#/definitions/Datalake' + description: The datalake. + DatalakeScaleType: + type: string + description: Represents the available datalake scales. Defaults to LIGHT_DUTY if not set. + enum: + - LIGHT_DUTY + - MEDIUM_DUTY_HA + DatalakeLoadBalancerSkuType: + type: string + description: Represents the Azure load balancer SKU type. The current default is BASIC. To disable the load balancer, use type NONE. + enum: + - BASIC + - STANDARD + - NONE + ListDatalakesRequest: + type: object + description: Request object for list datalakes request. + properties: + environmentName: + type: string + description: The name or CRN of the environment for which the datalakes will be listed. + datalakeName: + type: string + description: The name or CRN of the datalake for which details are requested. + ListDatalakesResponse: + type: object + description: Response object for list datalakes request. + required: + - datalakes + properties: + datalakes: + type: array + items: + $ref: '#/definitions/Datalake' + description: The datalakes. + DeleteDatalakeRequest: + type: object + description: Request object for delete datalake request. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake to be deleted. + force: + type: boolean + description: Whether the datalake should be force deleted. This option can be used when cluster deletion fails. This removes the entry from Cloudera Datalake service. Any lingering resources have to be deleted from the cloud provider manually. The default is false. + DeleteDatalakeResponse: + type: object + description: Response object for delete datalake request. + RetryDatalakeResponse: + type: object + description: Response object for retry datalake request. + RetryDatalakeRequest: + type: object + description: Request object for retry datalake request. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake to be retry on. + DescribeDatalakeRequest: + type: object + description: Request object for describe datalake request. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + DescribeDatalakeResponse: + type: object + description: Response object for describe datalake request. + required: + - datalake + properties: + datalake: + $ref: '#/definitions/DatalakeDetails' + description: The datalake. + RenewCertificateRequest: + type: object + description: Request object for renew datalake certificate request, deprecated. + x-deprecated: true + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + RepairDatalakeRequest: + type: object + description: Request object for repair datalake request. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + instanceGroupNames: + type: array + items: + type: string + description: List of instance groups where the failed instances will be repaired. + instanceGroupName: + type: string + description: The instance group where the failed instances will be repaired. + instances: + $ref: '#/definitions/RepairInstancesRequest' + description: List of instances. + RepairDatalakeResponse: + type: object + description: Response object for repair datalake request. + RepairInstancesRequest: + type: object + description: Details for repair instances. + properties: + instanceIds: + type: array + items: + type: string + description: List of instance ids. + GetClusterServiceStatusRequest: + type: object + description: Request object to get service status. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster. + GetClusterServiceStatusResponse: + type: object + description: Response object to get service status. + required: + - services + properties: + services: + type: array + items: + $ref: '#/definitions/ServiceStatus' + description: The cluster services health. + ServiceStatus: + type: object + description: Information about a cluster service. + properties: + type: + type: string + description: The service type. + state: + type: string + description: The service state. + healthSummary: + type: string + description: The service health summary. + healthChecks: + type: array + items: + $ref: '#/definitions/HealthCheck' + description: The service health checks. + HealthCheck: + type: object + description: The result of a health check. + properties: + name: + type: string + description: The name of service health check. + summary: + type: string + description: The service health check summary. + GetClusterHostStatusRequest: + type: object + description: Request object to get host status. + required: + - clusterName + properties: + clusterName: + type: string + description: The name or CRN of the cluster. + GetClusterHostStatusResponse: + type: object + description: Response object for getting host status. + required: + - hosts + properties: + hosts: + type: array + items: + $ref: '#/definitions/HostStatus' + description: The cluster hosts status. + HostStatus: + type: object + description: Information about cluster host status. + properties: + hostid: + type: string + description: Unique identifier of the cluster host given by Cloudera Manager. + hostname: + type: string + description: The cluster hostname. + healthSummary: + type: string + description: The host health summary. + StartDatalakeRequest: + type: object + description: Request object to start a datalake, deprecated. + x-deprecated: true + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + StartDatalakeResponse: + type: object + description: Response object of starting a datalake, deprecated. + x-deprecated: true + StopDatalakeRequest: + type: object + description: Request object to stop a datalake, deprecated. + x-deprecated: true + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalakeName. + StopDatalakeResponse: + type: object + description: Response object of stopping a datalake, deprecated. + x-deprecated: true + BackupDatalakeRequest: + type: object + description: Request object to perform a backup of datalake. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name of the datalake. + backupLocation: + type: string + description: Location where the back-up has to be stored. For example s3a://Location/of/the/backup. + backupName: + type: string + description: The name of the backup. + closeDbConnections: + type: boolean + default: true + description: Close the database connections while performing backup. Default is true. + skipRangerHmsMetadata: + type: boolean + description: Skips the backup of the databases backing HMS/Ranger services. If this option is not provided, the HMS/Ranger services are backed up by default. + skipAtlasMetadata: + type: boolean + description: Skips the backup of the Atlas metadata. If this option is not provided, the Atlas metadata is backed up by default. + skipRangerAudits: + type: boolean + description: Skips the backup of the Ranger audits. If this option is not provided, Ranger audits are backed up by default. + skipAtlasIndexes: + type: boolean + description: Skips the backup of the Atlas indexes. If this option or --skipAtlasMetadata is not provided, Atlas indexes are backed up by default. Redundant if --skipAtlasMetadata is included. + skipValidation: + type: boolean + description: Skips the validation steps that run prior to the backup. If this option is not provided, the validations are performed by default. + validationOnly: + type: boolean + description: Runs only the validation steps and then returns. If this option is not provided, the backup is performed as normal by default. + BackupDatalakeResponse: + type: object + description: Response object to a request made for backup of datalake. + required: + - accountId + - backupId + - userCrn + - internalState + - status + - startTime + - endTime + - backupLocation + - operationStates + properties: + accountId: + type: string + description: Account where the datalake exists. + backupId: + type: string + description: Unique identifier for the backup requested. + userCrn: + type: string + description: Crn of the user who triggered this operation. + internalState: + type: string + description: Provides the details of the internal state where the backup operation stands. + status: + type: string + description: Provide the current status. + startTime: + type: string + description: Time when the backup operation started. + endTime: + type: string + description: Time when the backup operation ended. + backupLocation: + type: string + description: Location of the backup to be used to perform restore. + operationStates: + $ref: '#/definitions/InternalBackupRestoreState' + description: Provides the details of the internal state of each operation. + runtimeVersion: + type: string + description: The runtime version of the datalake when the backup was taken. + backupName: + type: string + description: Name of the backup. + failureReason: + type: string + description: Reason for the failure. + BackupDatalakeStatusRequest: + type: object + description: Request object to get the status of datalake backup. Returns the status of the latest backup that matches the provided input. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name of the datalake. When backupName and backupId are not provided, status request will get the status of the latest backup operation performed on the given datalake. + backupName: + type: string + description: The name of the backup. When provided, the status request will get the status of the latest backup performed with the given backup name on the given datalake. + backupId: + type: string + description: Unique identifier of the backup performed. When provided, the status request will get the status entry that has the backupid provided. + BackupDatalakeStatusResponse: + type: object + description: Response object to get the status of datalake backup status request. + required: + - accountId + - backupId + - userCrn + - internalState + - status + - startTime + - endTime + - backupLocation + - operationStates + properties: + accountId: + type: string + description: Account where the datalake exists. + backupId: + type: string + description: Unique identifier for the backup requested. + userCrn: + type: string + description: Crn of the user who triggered this operation. + internalState: + type: string + description: Provides the details of the internal state where the backup operation stands. + status: + type: string + description: Provide the current status. + startTime: + type: string + description: Time when the backup operation started. + endTime: + type: string + description: Time when the backup operation ended. + backupLocation: + type: string + description: Location of the backup to be used to perform restore. + operationStates: + $ref: '#/definitions/InternalBackupRestoreState' + description: Provides the details of the internal state of each operation. + runtimeVersion: + type: string + description: The runtime version of the datalake when the backup was taken. + backupName: + type: string + description: Name of the backup. + failureReason: + type: string + description: Reason for the failure. + RestoreDatalakeRequest: + type: object + description: Request to restore datalake from backup. Restore does not restore the database by default. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name of the datalake to be restored. When backupId is not provided, the most recent successful backup on datalake with the provided name would be used. + backupId: + type: string + description: The ID of the backup to be used to perform a restore. The ID could refer to backup of any datalake in the same account. This is the only way to restore from a backup that was taken on a datalake with a different name. This field is required if the --backup-location-override field is used. + backupName: + type: string + description: The name of the backup. When provided, the restore will be performed using the latest successful backup whose name matches the parameter, and that was taken from the datalake that is being restored. + includeDatabase: + type: boolean + description: DEPRECATED - The database is included in the restore by default. To skip it, use the --skip-ranger-hms-metadata flag. + skipRangerHmsMetadata: + type: boolean + description: Skips the restore of the databases backing HMS/Ranger services. If this option is not provided, then by default the Atlas lineage will be restored if the backup used includes the Atlas lineage information. + skipAtlasMetadata: + type: boolean + description: Skips the restore of the Atlas metadata. If this option is not provided, then by default the Atlas metadata will be restored if the backup used includes the Atlas metadata. + skipRangerAudits: + type: boolean + description: Skips the restore of the Ranger audits. If this option is not provided, then by default the Ranger audits will be restored if the backup used includes the Ranger audits. + skipAtlasIndexes: + type: boolean + description: Skips the restore of the Atlas indexes. If this option or --skipAtlasMetadata is not provided, then by default the Atlas indexes will be restored if the backup used includes the Atlas indexes. Redundant if --skipAtlasMetadata is included. + backupLocationOverride: + type: string + description: Backup location. When provided, will be used to lookup the backup. If provided, the --backup-id parameter is required. + skipValidation: + type: boolean + description: Skips the validation steps that run prior to the restore. If this option is not provided, the validations are performed by default. + validationOnly: + type: boolean + description: Runs only the validation steps and then returns. If this option is not provided, the restore is performed as normal by default. + RestoreDatalakeResponse: + type: object + description: Response object to a request to perform restore of datalake. + required: + - accountId + - restoreId + - backupId + - userCrn + - internalState + - status + - startTime + - endTime + - backupLocation + - operationStates + properties: + accountId: + type: string + description: Account where the datalake exists. + restoreId: + type: string + description: Unique identifier of the restore operation performed. + backupId: + type: string + description: Unique identifier of the backup used to perform restore. + userCrn: + type: string + description: Crn of the user who triggered this operation. + internalState: + type: string + description: Provides the details of the internal state where the restore operation stands. + status: + type: string + description: Provide the current status. + startTime: + type: string + description: Time when the backup operation started. + endTime: + type: string + description: Time when the backup operation ended. + backupLocation: + type: string + description: Location of the backup to be used to perform restore. + operationStates: + $ref: '#/definitions/InternalBackupRestoreState' + description: Provides the details of the internal state of each operation. + backupName: + type: string + description: Name of the backup. + failureReason: + type: string + description: Reason for the failure. + runtimeVersion: + type: string + description: The runtime version of the datalake when the restore was initiated. + RestoreDatalakeStatusRequest: + type: object + description: Request object to get the status of a restore operation. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name of the Data Lake for which the most recent restore status will be retrieved. + restoreId: + type: string + description: Unique identifier of the restore operation performed. + RestoreDatalakeStatusResponse: + type: object + description: Response object with information on last restore operation on a datalake. + required: + - accountId + - restoreId + - backupId + - userCrn + - internalState + - status + - startTime + - endTime + - backupLocation + - operationStates + properties: + accountId: + type: string + description: Account where the datalake exists. + restoreId: + type: string + description: Unique identifier of the restore operation performed. + backupId: + type: string + description: Unique identifier of the backup used to perform restore. + userCrn: + type: string + description: Crn of the user who triggered this operation. + internalState: + type: string + description: Provides the details of the internal state where the restore operation stands. + status: + type: string + description: Provide the current status. + startTime: + type: string + description: Time when the backup operation started. + endTime: + type: string + description: Time when the backup operation ended. + backupLocation: + type: string + description: Location of the backup to be used to perform restore. + operationStates: + $ref: '#/definitions/InternalBackupRestoreState' + description: Provides the details of the internal state of each operation. + backupName: + type: string + description: Name of the backup. + failureReason: + type: string + description: Reason for the failure. + runtimeVersion: + type: string + description: The runtime version of the datalake when the restore was initiated. + ListDatalakeBackupsRequest: + type: object + description: Request object to get the list of backup operations performed on a datalake. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name of the datalake. + ListDatalakeBackupsResponse: + type: object + description: Response object with the list of backup operations performed on a datalake. + properties: + backups: + type: array + description: Backup object with details of backup performed. + items: + $ref: '#/definitions/DatalakeBackup' + CancelBackupRequest: + type: object + description: The request to cancel a backup operation. + required: + - backupId + properties: + backupId: + type: string + description: Backup-id that identifies the backup to be cancelled. + force: + type: boolean + default: false + description: Will mark all unfinished operations as cancelled without waiting for their result and mark backup operation as finished (cancelled, successful or failed) immediately. + CancelBackupResponse: + type: object + description: Response to the cancel backup request. + required: + - result + properties: + result: + type: string + description: Result of the cancel backup request. It can contain a description of the current process state or guidelines to a customer on the next steps. + DatalakeBackup: + type: object + description: Backup object with details of backup performed. + required: + - backupName + - accountId + - userCrn + - backupId + - internalState + - status + - startTime + - endTime + - backupLocation + - failureReason + properties: + backupName: + type: string + description: Name of the backup. + accountId: + type: string + description: Account where the datalake exists. + userCrn: + type: string + description: Crn of the user who triggered this operation. + backupId: + type: string + description: Request to perform a from a specific status for a specific backup. Else, status of the last backup performed will be returned. + internalState: + type: string + description: Provides the details of the internal state where the backup operation stands. + status: + type: string + description: Provide the current status. + startTime: + type: string + description: Time when the backup operation started. + endTime: + type: string + description: Time when the backup operation ended. + backupLocation: + type: string + description: Location of the backup to be used to perform restore. + failureReason: + type: string + description: Reason for the failure. + InternalBackupRestoreState: + type: object + description: Object representing the state of each service running a backup. + required: + - adminOperations + - hbase + - solr + - database + properties: + adminOperations: + $ref: '#/definitions/AdminOperationsBackupRestoreState' + description: Admin operations executed via Cloudera Manager for starting and stopping services. + hbase: + $ref: '#/definitions/HbaseBackupRestoreState' + description: Hbase operations to backup or restore Atlas metadata tables. + solr: + $ref: '#/definitions/SolrBackupRestoreState' + description: Solr operations to backup up the edge, fulltext, ranger_audit, and vertex tables, or to delete/restore those tables. + database: + $ref: '#/definitions/DatabaseBackupRestoreState' + description: Postgres operations to backup or restore the data lake metadata. + AdminOperationsBackupRestoreState: + type: object + description: The state of Cloudera Manager admin operations. + required: + - stopServices + - startServices + - precheckStoragePermission + - rangerAuditCollectionValidation + properties: + stopServices: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the stop services operation that is triggered before the backup/restore is started. + startServices: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the start services operation this is triggered after the backup/restore is complete. + precheckStoragePermission: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: Validate storage permissions before running a backup/restore. + rangerAuditCollectionValidation: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: Run the ranger audit collection validation in the backup precheck. + HbaseBackupRestoreState: + type: object + description: The state of each HBase backup/restore operation. + required: + - atlasEntityAuditEventTable + - atlasJanusTable + properties: + atlasEntityAuditEventTable: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the ATLAS_ENTITY_AUDIT_EVENTS_TABLE backup/restore. + atlasJanusTable: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the ATLAS_JANUS_TABLE backup/restore. + SolrBackupRestoreState: + type: object + description: The state of each Solr backup/restore operation. + required: + - edgeIndexCollection + - fulltextIndexCollection + - rangerAuditsCollection + - vertexIndexCollection + properties: + edgeIndexCollection: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the EDGE_INDEX_COLLECTION backup/restore. + fulltextIndexCollection: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the FULLTEXT_INDEX_COLLECTION backup/restore. + rangerAuditsCollection: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the RANGER_AUDITS_COLLECTION backup/restore. + vertexIndexCollection: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the VERTEX_INDEX_COLLECTION backup/restore. + edgeIndexCollectionDelete: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the EDGE_INDEX_COLLECTION deletion, which is done before a restore. + fulltextIndexCollectionDelete: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the FULLTEXT_INDEX_COLLECTION deletion, which is done before a restore. + rangerAuditsCollectionDelete: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the RANGER_AUDITS_COLLECTION deletion, which is done before a restore. + vertexIndexCollectionDelete: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the VERTEX_INDEX_COLLECTION deletion, which is done before a restore. + DatabaseBackupRestoreState: + type: object + description: The state of the database backup/restore operation. + required: + - database + properties: + database: + $ref: '#/definitions/BackupRestoreOperationStatus' + description: The status of the database backup/restore. + BackupRestoreOperationStatus: + type: object + description: Contains the status and failure reason of an operation. + required: + - status + properties: + status: + type: string + description: The status of the backup or restore operation. + failureReason: + type: string + description: The failure reason if the operation was not successful. + durationInMinutes: + type: string + description: The duration of each operation, in minutes. + ImageComponentVersions: + type: object + description: Versions of the image components + properties: + cm: + type: string + description: Version of CM + cmGBN: + type: string + description: GBN of CM + cdp: + type: string + description: CDP version + cdpGBN: + type: string + description: CDP GBN + os: + type: string + description: OS name + osPatchLevel: + type: string + description: OS patch level + ImageInfo: + type: object + description: Basic information about an image. + properties: + imageName: + type: string + description: The name of the image. + imageId: + type: string + description: The id of the image. + imageCatalogName: + type: string + description: Name of the image catalog, the image is from. + created: + type: integer + format: int64 + description: Image creation timestamp + componentVersions: + $ref: '#/definitions/ImageComponentVersions' + description: Version of the image components + UpgradeDatalakeRequest: + type: object + description: Request object to upgrade datalake. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + imageId: + type: string + description: The id of an image to upgrade to + runtime: + type: string + description: The runtime version to upgrade to + lockComponents: + type: boolean + description: Perform an os upgrade only + dryRun: + type: boolean + description: Checks the eligibility of an image to upgrade + showAvailableImages: + type: boolean + description: Returns the list of images that are eligible for the upgrade + showLatestAvailableImagePerRuntime: + type: boolean + description: Returns the latest image that is eligible for the upgrade for each runtime version with at least one available upgrade candidate + skipBackup: + type: boolean + description: If provided, will skip the backup flow for the upgrade process. + skipRangerHmsMetadata: + type: boolean + description: Skips the backup of the databases backing HMS/Ranger services. Redundant if --skip-backup is included. If this option is not provided, the HMS/Ranger services are backed up by default. + skipAtlasMetadata: + type: boolean + description: Skips the backup of the Atlas metadata. Redundant if --skip-backup is included. If this option is not provided, the Atlas metadata is backed up by default. + skipRangerAudits: + type: boolean + description: Skips the backup of the Ranger audits. Redundant if --skip-backup is included. If this option is not provided, Ranger audits are backed up by default. + skipDatahubValidation: + type: boolean + description: With this option, the Data Lake upgrade can be performed with running Data Hub clusters. This option may cause problems on the running Data Hub clusters during the Data Lake upgrade. + rollingUpgradeEnabled: + type: boolean + description: Enables the ability to perform rolling runtime upgrade. + UpgradeDatalakeResponse: + type: object + description: Response object for upgrade datalake request. + properties: + current: + $ref: '#/definitions/ImageInfo' + description: Information about the current image + upgradeCandidates: + type: array + description: List of images and components to upgrade to + items: + $ref: '#/definitions/ImageInfo' + description: Information about an image + reason: + type: string + description: The reason why upgrade is not possible + PrepareDatalakeUpgradeRequest: + type: object + description: Request object to prepare Data Lake upgrade. This command indicates the upgrade preparation for a specific image or a selected runtime version. Important to note that the imageId or the runtime parameter must be present in the request. + required: + - datalake + properties: + datalake: + type: string + description: The name or CRN of the Data Lake cluster. + imageId: + type: string + description: The ID of an image to upgrade to + runtime: + type: string + description: The runtime version to upgrade to + PrepareDatalakeUpgradeResponse: + type: object + description: Response object for prepare Data Lake upgrade request. + properties: + current: + $ref: '#/definitions/ImageInfo' + description: Information about the current image + upgradeCandidates: + type: array + description: List of images and components to upgrade to + items: + $ref: '#/definitions/ImageInfo' + description: Information about an image + reason: + type: string + description: The reason why upgrade is not possible + StartDatabaseUpgradeRequest: + type: object + description: Request object for Data Lake database upgrade. + required: + - datalake + properties: + datalake: + type: string + description: The name or CRN of the Data Lake. + targetVersion: + type: string + description: The database engine major version to upgrade to. + enum: + - VERSION_11 + StartDatabaseUpgradeResponse: + type: object + description: Response object to Data Lake database upgrade. + properties: + targetVersion: + type: string + description: The database engine major version to upgrade to. + enum: + - VERSION_11 + DatalakeVmLogRequest: + type: object + description: Log descriptor, contains a path and label pair. Used for diagnostics collections. + required: + - path + - label + properties: + path: + type: string + description: Path of the log file(s) that needs to be collected. (Can be glob wildcard) + label: + type: string + description: Label that will be used to identify a log descriptor. (will be used as a folder inside logs folder) + DatalakeVmLogResponse: + type: object + description: Log descriptor, contains a path and label pair. Used for diagnostics collections. + properties: + path: + type: string + description: Path of the log file(s) that needs to be collected. (Can be glob wildcard) + label: + type: string + description: Label that will be used to identify a log descriptor. (will be used as a folder inside logs folder) + CollectDatalakeDiagnosticsRequest: + type: object + description: Request object for collecting DataLake diagnostics. + required: + - crn + - destination + - description + properties: + crn: + type: string + description: CRN of the Datalake cluster. + destination: + type: string + enum: + - SUPPORT + - CLOUD_STORAGE + - ENG + - LOCAL + description: Destination of the diagnostics collection (Support, Own cloud storage, Engineering or collect only on the nodes) + description: + type: string + description: Additional information / title for the diagnostics collection. + caseNumber: + type: string + description: Optional support case number in case of SUPPORT destination, otherwise only act as additional data. + labels: + type: array + description: Array of labels that can filter logs that are collected during diagnostics collection. + uniqueItems: true + items: + type: string + startDate: + type: string + format: date-time + description: Date timestamp - collect files only for diagnostics that has higher last modified timestamp value than this. + endDate: + type: string + format: date-time + description: Date timestamp - collect files only for diagnostics that has lower created timestamp value than this. + additionalLogs: + type: array + description: Array of log descriptors that should be additionally collected during diagnostics collection. + items: + $ref: '#/definitions/DatalakeVmLogRequest' + hosts: + type: array + description: Array of host names (fqdn), collection will run only on the dedicated hosts. + uniqueItems: true + items: + type: string + hostGroups: + type: array + description: Array of host groups, collection will run only on the dedicated hosts that belongs to these host groups. + uniqueItems: true + items: + type: string + excludeHosts: + type: array + description: Array of host names (fqdn or IP address), collection will not run on the excluded hosts. + uniqueItems: true + items: + type: string + skipUnresponsiveHosts: + type: boolean + description: Skip unhealthy hosts from the diagnostics collection. + includeNginxReport: + type: boolean + description: Include Nginx report generated by GoAccess (if available). + includeSaltLogs: + type: boolean + description: Include salt minion/master/api system logs in the diagnostics collection. + includeSarOutput: + type: boolean + description: Include SAR (System Activity Report) generated outputs in the diagnostics collection (if available). + updatePackage: + type: boolean + default: false + description: If enabled, required package (cdp-telemetry) will be upgraded or installed on the nodes. (useful if package is not installed or needs to be upgraded) Network is required for this operation. + storageValidation: + type: boolean + default: false + description: Enable/disable node level storage validation (can be disabled for example, if you have too many hosts and do not want to do too much parallel writes to s3/abfs) + CollectDatalakeDiagnosticsResponse: + type: object + description: Response object for collecting DataLake diagnostics. + ListDatalakeDiagnosticsRequest: + type: object + description: Request object for listing recent Datalake diagnostics collections. + required: + - crn + properties: + crn: + type: string + description: CRN of the Datalake cluster. + ListDatalakeDiagnosticsResponse: + type: object + description: Response object for listing recent Datalake diagnostics collections. + properties: + collections: + type: array + description: description. + items: + $ref: '#/definitions/DatalakeDiagnosticsCollectionResponse' + DatalakeDiagnosticsCollectionResponse: + type: object + description: Response object for diagnostic collection flow details. + properties: + status: + type: string + description: Status of the diagnostics collection flow. + enum: + - RUNNING + - FAILED + - FINISHED + - CANCELLED + flowId: + type: string + description: Flow ID of the diagnostics collection flow. + flowState: + type: string + description: Current state of the diagnostics collection flow. + created: + type: string + format: date-time + description: Creation date of the diagnostics collection flow. + progressPercentage: + type: integer + description: Progress percentage of the diagnostics collection flow (maximum value if finished). + format: int32 + collectionDetails: + $ref: '#/definitions/DatalakeDiagnosticsCollectionDetailsResponse' + description: Additional details about the diagnostics collection. + DatalakeDiagnosticsCollectionDetailsResponse: + type: object + description: Response object for diagnostic collection collection details. + properties: + case: + type: string + description: Case number for the diagnostics collection. + output: + type: string + description: Output destination of the diagnostics collection. + destination: + type: string + description: Destination type of the diagnostics collection. + description: + type: string + description: Description of the diagnostics collection. + accountId: + type: string + description: Account Id that was used for the diagnostics collection. + resourceCrn: + type: string + description: Crn of the cluster. + clusterVersion: + type: string + description: Version of the cluster that was used for the diagnostics collection. + CancelDatalakeDiagnosticsRequest: + type: object + description: Request object for cancel running Datalake diagnostics collections. + required: + - crn + properties: + crn: + type: string + description: CRN of the Datalake cluster. + CancelDatalakeDiagnosticsResponse: + type: object + description: Response object for cancel running Datalake diagnostics collections. + CollectCmDiagnosticsRequest: + type: object + description: Request object for collecting DataLake diagnostics. + required: + - crn + - destination + properties: + crn: + type: string + description: CRN of the Datalake cluster. + destination: + type: string + enum: + - SUPPORT + - CLOUD_STORAGE + - LOCAL + description: Destination of the diagnostics collection (Support, Own cloud storage, Engineering or collect only on the nodes) + description: + type: string + description: Additional information / title for the diagnostics collection. + caseNumber: + type: string + description: Optional support case number in case of SUPPORT destination, otherwise only act as additional data. + roles: + type: array + description: Array of roles for which to get logs and metrics. If set, this restricts the roles for log and metrics collection. + uniqueItems: true + items: + type: string + startDate: + type: string + format: date-time + description: Restrict collected logs and metrics (from the provided date timestamp). + endDate: + type: string + format: date-time + description: Restrict collected logs and metrics (until the provided date timestamp). + updatePackage: + type: boolean + default: false + description: If enabled, required package (cdp-telemetry) will be upgraded or installed on the nodes. (useful if package is not installed or needs to be upgraded) Network is required for this operation. + storageValidation: + type: boolean + default: false + description: Enable/disable node level storage validation (can be disabled for example, if you have too many hosts and do not want to do too much parallel writes to s3/abfs) + monitorMetricsCollection: + type: boolean + default: false + description: Flag to enable collection of metrics for chart display in CM based diagnostics collection. + bundleSizeLimit: + type: integer + format: int32 + description: Diagnostics bundle size limit in MB. + CollectCmDiagnosticsResponse: + type: object + description: Response object for collecting DataLake diagnostics. + GetCmRolesRequest: + type: object + description: Request object for obtaining Cloudera Manger roles. (that can be used for filtering in CM based diagnostics collection) + required: + - crn + properties: + crn: + type: string + description: CRN of the Datalake cluster. + GetCmRolesResponse: + type: object + description: Response object for obtaining Cloudera Manger roles. (that can be used for filtering in CM based diagnostics collection) + properties: + roles: + type: array + description: Array of CM roles. (useful for CM based diagnostics collection filtering) + items: + type: string + GetDatalakeLogDescriptorsRequest: + type: object + description: Request object for obtaining log descriptors. (that are used for diagnostics collection) + GetDatalakeLogDescriptorsResponse: + type: object + description: Response object for obtaining log descriptors. (useful for diagnostics collection filtering) + properties: + logs: + type: array + description: Array of log descriptors. (useful for diagnostics collection filtering) + items: + $ref: '#/definitions/DatalakeVmLogResponse' + RotateAutoTlsCertificatesRequest: + type: object + description: Request object to rotate autotls certificates on datalake's hosts, deprecated. + x-deprecated: true + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + RotateAutoTlsCertificatesResponse: + type: object + description: Response object to rotate autotls certificates on datalake's hosts, deprecated. + x-deprecated: true + RenewCertificateResponse: + type: object + description: Response object for renew certificate request, deprecated. + x-deprecated: true + ImageRequest: + description: The image request for the datalake. This must not be set if the runtime parameter is provided. The image ID parameter is required if this is present, but the image catalog name is optional, defaulting to 'cdp-default' if not present. + type: object + required: + - id + properties: + id: + type: string + description: The image ID from the catalog. The corresponding image will be used for the created cluster machines. + catalogName: + type: string + description: The name of the custom image catalog to use. + default: cdp-default + ResizeDatalakeRequest: + type: object + description: Datalake resize request. + required: + - datalakeName + - targetSize + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + targetSize: + type: string + description: The target size for the datalake. + enum: + - MEDIUM_DUTY_HA + ResizeDatalakeResponse: + type: object + description: Datalake resize response. + properties: + datalakeName: + type: string + description: The name of the datalake. This will remain the same for the datalake created by the resize process. + datalakeCrn: + type: string + description: The CRN of the datalake. This will remain the same for the datalake created by the resize process. + environmentCrn: + type: string + description: The CRN of the environment the datalake is attached to. This will remain the same for the datalake created by the resize process. + runtime: + type: string + description: The runtime of the datalake. This will remain the same for the datalake created by the resize process. + status: + type: string + description: The current status of the datalake. + statusReason: + type: string + description: The reason for the current status of the datalake. + cloudbreakVersion: + type: string + description: The Cloudbreak version used to create the data lake. + ReplaceRecipesRequest: + type: object + description: The request for replacing recipes. + required: + - datalake + - instanceGroupRecipes + properties: + datalake: + type: string + description: The name or CRN of the datalake. + instanceGroupRecipes: + type: array + items: + $ref: '#/definitions/InstanceGroupRecipeRequest' + description: The list of instance group and recipe name pairs. + ReplaceRecipesResponse: + type: object + description: The response for replacing recipes. + properties: + attachedRecipes: + type: array + description: The list of recipes, which will be attached to the cluster. + items: + $ref: '#/definitions/InstanceGroupRecipeResponse' + detachedRecipes: + type: array + description: The list of recipes, which will be detached from the cluster. + items: + $ref: '#/definitions/InstanceGroupRecipeResponse' + InstanceGroupRecipeRequest: + type: object + description: Represents an instance group - recipe pair (by names) request. + required: + - instanceGroupName + properties: + instanceGroupName: + type: string + description: A valid instance/host group name. This name must be unique. + recipeNames: + type: array + uniqueItems: true + items: + type: string + description: Names of the recipes (empty is valid). + InstanceGroupRecipeResponse: + type: object + description: Represents an instance group - recipe pair (by names) response. + required: + - instanceGroupName + properties: + instanceGroupName: + type: string + description: A valid instance/host group name. This name must be unique. + recipeNames: + type: array + uniqueItems: true + items: + type: string + description: Names of the recipes (empty is valid). + RecoverDatalakeRequest: + type: object + description: Datalake recover request. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + recoveryType: + type: string + description: The type of the recovery. The default value is RECOVER_WITHOUT_DATA. The recovery always runs with RECOVER_WITH_DATA if the on resize failure. + enum: + - RECOVER_WITH_DATA + - RECOVER_WITHOUT_DATA + RecoverDatalakeResponse: + type: object + description: Datalake recover response. + SetCatalogRequest: + type: object + description: The request object to set catalog for a DataLake. + required: + - datalake + - catalogName + properties: + datalake: + type: string + description: The name or CRN of the affected DataLake. + catalogName: + type: string + description: The name of the catalog to be used. + SetCatalogResponse: + type: object + description: The response object to set catalog for a DataLake request. + SyncComponentVersionsFromCmRequest: + x-no-compatibility-guarantee: true + type: object + description: Datalake sync CM component versions request. + required: + - datalakeName + properties: + datalakeName: + type: string + description: The name or CRN of the datalake. + SyncComponentVersionsFromCmResponse: + x-no-compatibility-guarantee: true + type: object + description: Datalake sync CM component versions response. + EnableRangerRazRequest: + type: object + description: The enable Ranger Raz request. + required: + - datalake + properties: + datalake: + type: string + description: The name or CRN of the datalake. + EnableRangerRazResponse: + type: object + description: The enable Ranger Raz response. + RotatePrivateCertificatesRequest: + type: object + description: Request object to rotate private certificates on datalake's hosts. + required: + - datalake + properties: + datalake: + type: string + description: The name or CRN of the datalake. + RotatePrivateCertificatesResponse: + type: object + description: Response object to rotate private certificates on datalake's hosts. + RenewPublicCertificateRequest: + type: object + description: Request object to renew the public certificate for Datalake. + required: + - datalake + properties: + datalake: + type: string + description: The name or CRN of the datalake. + RenewPublicCertificateResponse: + type: object + description: Response object for renew public certificate request. + SdxInstanceGroupRequest: + description: Request object for host group level custom configurations. + type: object + required: + - name + properties: + name: + type: string + description: Name of the instance group. + instanceType: + type: string + description: Cloud provider instance type to create instances with. + RotateSaltPasswordRequest: + type: object + description: Request object for rotating SaltStack user password on DataLake instances. + required: + - datalake + properties: + datalake: + type: string + description: The name or CRN of the datalake. + RotateSaltPasswordResponse: + type: object + description: Response object for rotating SaltStack user password on DataLake instances. + UpdateOrchestratorStateRequest: + type: object + description: Request object for running orchestrator engine state update on the Data Lake cluster. + required: + - clusterCrn + properties: + clusterCrn: + type: string + description: The CRN of the Data Lake cluster. + UpdateOrchestratorStateResponse: + type: object + description: Response object for running orchestrator engine state update on the Data Lake cluster. diff --git a/cdp-sdk-go/resources/swagger/dw.yaml b/cdp-sdk-go/resources/swagger/dw.yaml new file mode 100644 index 00000000..227b9db5 --- /dev/null +++ b/cdp-sdk-go/resources/swagger/dw.yaml @@ -0,0 +1,5341 @@ +swagger: '2.0' +x-endpoint-name: dw +x-products: CDP +x-form-factors: public,private +x-cdp-releases: PUBLIC +info: + version: 0.9.87 (BETA) + title: Cloudera Data Warehouse [EXPERIMENTAL] + license: + name: Apache 2.0 + description: Install and manage Cloudera Data Warehouse clusters. + termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html +schemes: + - https +consumes: + - application/json +produces: + - application/json +paths: + /api/v1/dw/listClusters: + post: + x-no-compatibility-guarantee: true + summary: List Cloudera Data Warehouse clusters. + description: List Cloudera Data Warehouse clusters. + operationId: listClusters + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListClustersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListClustersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/describeCluster: + post: + x-no-compatibility-guarantee: true + summary: Describe a Cloudera Data Warehouse cluster. + description: Describe a Cloudera Data Warehouse cluster. + operationId: describeCluster + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/createClusterDiagnosticDataJob: + post: + x-mutating: true + x-form-factors: public + summary: Create a diagnostic job for the given cluster. + description: Creates a diagnostic job for the given cluster. The diagnostic data job is useful for troubleshooting purposes. The job collects logs and metrics (see --download-options to see available options) which are going to be bundled into a single file and will be available at the desired location (see --destination). General metadata about the diagnostics will also be included as the bundle-info.json file. + operationId: createClusterDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateClusterDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateClusterDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listClusterDiagnosticDataJobs: + post: + x-mutating: false + x-paging-default-max-items: 100 + x-form-factors: public + summary: Get a list of diagnostic jobs for the given cluster. + description: Lists diagnostic jobs for the given cluster. The output includes a list of jobs along with their current status and metadata related to each job. + operationId: listClusterDiagnosticDataJobs + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListClusterDiagnosticDataJobsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListClusterDiagnosticDataJobsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeClusterDiagnosticDataJob: + post: + x-mutating: false + x-form-factors: public + summary: Describes a diagnostic job for the given Cluster. + description: Describes a diagnostic job for the given Cluster. The output includes a list of jobs along with their current status and some metadata related to each job. + operationId: describeClusterDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeClusterDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeClusterDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/deleteClusterDiagnosticDataJob: + post: + x-mutating: true + x-form-factors: public + summary: Deletes a diagnostic job for the given cluster. + description: Deletes a diagnostic job for the given cluster. The job can be deleted even when its status is "Running". + operationId: deleteClusterDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteClusterDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteClusterDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeKubeconfig: + post: + x-form-factors: public + summary: Get Kubeconfig for a Cloudera Data Warehouse cluster. + description: Get Kubeconfig for a Cloudera Data Warehouse cluster. + operationId: describeKubeconfig + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeKubeconfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeKubeconfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/describeAllowedInstanceTypes: + post: + x-mutating: false + x-form-factors: public + summary: Get allowed compute instance types for both AWS and Azure cluster types and their default values. + description: Get allowed compute instance types for both AWS and Azure cluster types and their default values. + operationId: describeAllowedInstanceTypes + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeAllowedInstanceTypesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeAllowedInstanceTypesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeServerSetting: + post: + x-form-factors: private + summary: Get the DWX server settings. + description: Get the DWX server settings. This method can be used from DWX Private Cloud version 1.4.1. + operationId: describeServerSetting + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeServerSettingRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeServerSettingResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/updateServerSetting: + post: + x-form-factors: private + summary: Update the DWX server settings. + description: 'Update the DWX server settings. The input list of server settings will be updated accordingly (turns on if enabled: true is set, turns off if enabled: false is set). Some settings need further actions to be taken (e.g. recreating a Virtual Warehouse), this is indicated in the server setting list returned by the describeServerSetting functionality. This method can be used from DWX Private Cloud version 1.4.1.' + operationId: updateServerSetting + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateServerSettingRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateServerSettingResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/updateSshKey: + post: + x-form-factors: public + summary: Update the SSH Key for a Cloudera Data Warehouse cluster + description: Update the SSH Key for a Cloudera Data Warehouse cluster + operationId: updateSshKey + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateSshKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateSshKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/renewCertificates: + post: + summary: Renew certificates for a Cloudera Data Warehouse Azure cluster. + description: Renew certificate for a Cloudera Data Warehouse Azure cluster. + operationId: renewCertificates + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RenewCertificatesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RenewCertificatesResponse' + 405: + description: Operation not allowed on non-Azure clusters. + schema: + $ref: '#/definitions/Error' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/createCluster: + post: + x-no-compatibility-guarantee: true + summary: Create a Cloudera Data Warehouse cluster. + description: Create a Cloudera Data Warehouse cluster. + operationId: createCluster + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/deleteCluster: + post: + x-no-compatibility-guarantee: true + summary: Delete a Cloudera Data Warehouse cluster. + description: Delete a Cloudera Data Warehouse cluster. + operationId: deleteCluster + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/updateCluster: + post: + x-mutating: true + summary: Updates the Cloudera Data Warehouse cluster. + description: Update the Cloudera Data Warehouse cluster. + operationId: updateCluster + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/upgradeCluster: + post: + x-mutating: true + summary: Upgrade the Cloudera Data Warehouse cluster. + description: Upgrade the Cloudera Data Warehouse cluster to the latest supported version. Expect downtime during the upgrade and refrain issuing queries. You can check the current status of the cluster with the describe-cluster command. + operationId: upgradeCluster + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/backupCluster: + post: + x-mutating: true + x-no-compatibility-guarantee: true + summary: Creates a backup from the cluster configuration and settings. + description: Creates a backup from the configuration and settings, including all the connected DbCatalogs, Virtual Warehouses and Data Visualisation Apps. The returned data may be used to restore all the entities by using the "restore-cluster" command. + operationId: backupCluster + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/BackupClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/BackupClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/restoreCluster: + post: + x-mutating: true + x-no-compatibility-guarantee: true + summary: Restores the cluster from a backup data made by "backup-cluster" command. + description: Restores the cluster from a backup data made by "backup-cluster" command. The operation restores the default DbCatalog configuration, the Virtual Warehouses and the Data Visualisation Apps. + operationId: restoreCluster + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RestoreClusterRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RestoreClusterResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/createDataVisualization: + post: + summary: Creates a Cloudera Data Visualization. + description: Creates a Cloudera Data Visualization. + operationId: createDataVisualization + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateDataVisualizationRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateDataVisualizationResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/listDataVisualizations: + post: + summary: Lists Cloudera Data Visualization in the provided CDW cluster. + description: Lists Cloudera Data Visualization in the provided CDW cluster. + operationId: listDataVisualizations + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDataVisualizationsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDataVisualizationsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/deleteDataVisualization: + post: + summary: Asynchronous operation that deletes a Cloudera Data Visualization. When the DV is in deleting state, we can still use describe-data-visualization to check the status. Once it is deleted, the describe-data-visualization would return a not found error. + description: Asynchronous operation that deletes a Cloudera Data Visualization. When the DV is in deleting state, we can still use describe-data-visualization to check the status. Once it is deleted, the describe-data-visualization would return a not found error. + operationId: deleteDataVisualization + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteDataVisualizationRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteDataVisualizationResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/describeDataVisualization: + post: + summary: Describes a Cloudera Data Visualization. + description: Describes a Cloudera Data Visualization. + operationId: describeDataVisualization + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeDataVisualizationRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeDataVisualizationResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/updateDataVisualization: + post: + x-mutating: true + summary: Asynchronous operation that updates the configuration of a Cloudera Data Visualization. The describe-data-visualization can be used at any time to get the latest status of a Data Visualization. + description: Asynchronous operation that updates the configuration of a Cloudera Data Visualization. The describe-data-visualization can be used at any time to get the latest status of a Data Visualization. + operationId: updateDataVisualization + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateDataVisualizationRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateDataVisualizationResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/getDataVisualizationUpgradeVersion: + post: + summary: Gets latest version and latest compatible version for Cloudera Data Visualization. + description: Gets latest version and latest compatible version for Cloudera Data Visualization. + operationId: getDataVisualizationUpgradeVersion + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetDataVisualizationUpgradeVersionRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetDataVisualizationUpgradeVersionResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/upgradeDataVisualization: + post: + summary: Asynchronous operation that upgrades a Cloudera Data Visualization to a compatible version. The describe-data-visualization can be used at any time to get the latest status of a Data Visualization. + description: Asynchronous operation that upgrades a Cloudera Data Visualization to a compatible version. The describe-data-visualization can be used at any time to get the latest status of a Data Visualization. + operationId: upgradeDataVisualization + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeDataVisualizationRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeDataVisualizationResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/createDbc: + post: + x-no-compatibility-guarantee: true + summary: Create a Database Catalog. + description: Create a Database Catalog. + operationId: createDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/listDbcs: + post: + x-no-compatibility-guarantee: true + summary: List Database Catalogs. + description: List Database Catalogs. + operationId: listDbcs + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDbcsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDbcsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/describeDbc: + post: + x-no-compatibility-guarantee: true + summary: Describe a Database Catalog. + description: Describe a Database Catalog. + operationId: describeDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/deleteDbc: + post: + x-no-compatibility-guarantee: true + summary: Delete a Database Catalog. + description: Delete a Database Catalog. + operationId: deleteDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/rebuildDbc: + post: + x-no-compatibility-guarantee: true + summary: Rebuild a Database Catalog. + description: Rebuild a Database Catalog. Please use this feature for Database Catalogs which are in inconsistent or erroneous state. Running/Stopped Database Catalogs are safe to rebuild as well. This is a Beta feature. If a rebuild has been initiated, try to avoid rebuilding it again until it is completed or in erroneous state. + operationId: rebuildDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RebuildDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RebuildDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/suspendDbc: + post: + x-mutating: true + summary: Suspends a running Database Catalog. + description: Suspends a running Database Catalog. Has no effect if the DBC is already suspended. + operationId: suspendDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SuspendDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SuspendDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/restartDbc: + post: + x-mutating: true + summary: Restart a Database Catalog. + description: Restart a Database Catalog. + operationId: restartDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RestartDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RestartDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeDbcConfig: + post: + x-mutating: false + summary: Describes the Database Catalog current configuration. + description: Describes the Database Catalog current configuration. + operationId: describeDbcConfig + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeDbcConfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeDbcConfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/updateDbcConfig: + post: + x-mutating: true + summary: Update a Database Catalog configuration. + description: Update a Database Catalog configuration. + operationId: updateDbcConfig + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateDbcConfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateDbcConfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/createDbcDiagnosticDataJob: + post: + x-mutating: true + x-form-factors: public + summary: Create a diagnostic job for the given database catalog. + description: Creates a diagnostic job for the given database catalog. The diagnostic data job is useful for troubleshooting purposes. The job collects logs and metrics (see --download-options to see available options) which are going to be bundled into a single file and will be available at the desired location (see --destination). General metadata about the diagnostics will also be included as the bundle-info.json file. + operationId: createDbcDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateDbcDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateDbcDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listDbcDiagnosticDataJobs: + post: + x-mutating: false + x-paging-default-max-items: 100 + x-form-factors: public + summary: Get a list of diagnostic jobs for the given Database Catalog. + description: Lists diagnostic jobs for the given Database Catalog. The output includes a list of jobs along with their current status and metadata related to each job. + operationId: listDbcDiagnosticDataJobs + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDbcDiagnosticDataJobsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDbcDiagnosticDataJobsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeDbcDiagnosticDataJob: + post: + x-mutating: false + x-form-factors: public + summary: Describes a diagnostic job for the given Database Catalog. + description: Describes a diagnostic job for the given Database Catalog. The output includes a list of jobs along with their current status and some metadata related to each job. + operationId: describeDbcDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeDbcDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeDbcDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/deleteDbcDiagnosticDataJob: + post: + x-mutating: true + x-form-factors: public + summary: Deletes a diagnostic job for the given Database Catalog. + description: Deletes a diagnostic job for the given Database Catalog. The job can be deleted even when its status is "Running". + operationId: deleteDbcDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteDbcDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteDbcDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listDbcEvents: + post: + x-mutating: false + summary: Get the list of events for the given Database Catalog. + description: Get the list of events for the given Database Catalog. + operationId: listDbcEvents + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDbcEventsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDbcEventsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/createVw: + post: + x-no-compatibility-guarantee: true + summary: Create a Virtual Warehouse. + description: Create a Virtual Warehouse. + operationId: createVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/dw/listVws: + post: + x-no-compatibility-guarantee: true + summary: List Virtual Warehouses. + description: List Virtual Warehouses. + operationId: listVws + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListVwsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListVwsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/describeVw: + post: + x-no-compatibility-guarantee: true + summary: Describe a Virtual Warehouse. + description: Describe a Virtual Warehouse. + operationId: describeVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/dw/updateVwConfig: + post: + x-mutating: true + summary: Update a Virtual Warehouse configuration. + description: Update a Virtual Warehouse configuration. + operationId: updateVwConfig + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateVwConfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateVwConfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/deleteVw: + post: + x-no-compatibility-guarantee: true + x-mutating: true + summary: Delete a Virtual Warehouse. + description: Delete a Virtual Warehouse. + operationId: deleteVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/restartVw: + post: + x-mutating: true + summary: Restart a Virtual Warehouse. + description: Restart a Virtual Warehouse. + operationId: restartVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RestartVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RestartVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/rebuildVw: + post: + x-no-compatibility-guarantee: true + x-mutating: true + summary: Rebuild a Virtual Warehouse. + description: Rebuild a Virtual Warehouse. Please use this feature for Virtual Warehouses which are in inconsistent or erroneous state. Running/Stopped Virtual Warehouses are safe to rebuild as well. This is a Beta feature. If a rebuild has been initiated, try to avoid rebuilding it again until it is completed or in erroneous state. + operationId: rebuildVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RebuildVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RebuildVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/startVw: + post: + x-mutating: true + summary: Starts a suspended Virtual Warehouse. + description: Starts a suspended Virtual Warehouse. Has no effect if the VW is already started. + operationId: startVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/suspendVw: + post: + x-mutating: true + summary: Suspends a running Virtual Warehouse. + description: Suspends a running Virtual Warehouse. Has no effect if the VW is already suspended. + operationId: suspendVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SuspendVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SuspendVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/createVwDiagnosticDataJob: + post: + x-mutating: true + x-form-factors: public + summary: Create a diagnostic job for the given Virtual Warehouse. + description: Creates a job for the given Virtual Warehouse. The diagnostic data job is useful for troubleshooting purposes. The job collects logs and metrics (see --hive-download-options, --impala-download-options to see available options) which are going to be bundled into a single file and will be available at the desired location (see --destination). General metadata about the diagnostics will also be included as the bundle-info.json file. + operationId: createVwDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateVwDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateVwDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listVwDiagnosticDataJobs: + post: + x-mutating: false + x-paging-default-max-items: 100 + x-form-factors: public + summary: Get a list of diagnostic jobs for the given Virtual Warehouse. + description: Lists diagnostic jobs for the given Virtual Warehouse. The output includes a list of jobs along with their current status and metadata related to each job. + operationId: listVwDiagnosticDataJobs + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListVwDiagnosticDataJobsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListVwDiagnosticDataJobsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeVwDiagnosticDataJob: + post: + x-mutating: false + x-form-factors: public + summary: Describe a diagnostic jobs for the given Virtual Warehouse. + description: Describes a diagnostic job for the given Virtual Warehouse. The output includes a list of jobs along with their current status and metadata related to each job. + operationId: describeVwDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeVwDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeVwDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/deleteVwDiagnosticDataJob: + post: + x-mutating: true + x-form-factors: public + summary: Delete a diagnostic job for the given Virtual Warehouse. + description: Delete a diagnostic job for the given Virtual Warehouse. The job can be deleted even when its status is "Running". + operationId: deleteVwDiagnosticDataJob + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteVwDiagnosticDataJobRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteVwDiagnosticDataJobResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listVwEvents: + post: + x-mutating: false + summary: Get the list of events for the given Virtual Warehouse. + description: Get the list of events for the given Virtual Warehouse. + operationId: listVwEvents + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListVwEventsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListVwEventsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listLatestVersions: + post: + x-no-compatibility-guarantee: true + x-mutating: false + summary: Lists the latest version of the product (if available) for all catalogs in the environment. + description: Lists the latest version of the product (if available) for all catalogs in the environment. + operationId: listLatestVersions + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListLatestVersionsRequest' + responses: + 200: + description: successful operation + schema: + $ref: '#/definitions/ListLatestVersionsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeVwConfig: + post: + x-mutating: false + summary: Describes the current configuration of a Hive or Impala Virtual Warehouse. + description: Describes the current configuration of a Hive or Impala Virtual Warehouse. + operationId: describeVwConfig + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeVwConfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeVwConfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeConfig: + post: + x-no-compatibility-guarantee: true + x-mutating: false + summary: Describe a service configuration. + description: Describe a service configuration. + operationId: describeConfig + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeConfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeConfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeConfigDiff: + post: + x-no-compatibility-guarantee: true + x-mutating: false + summary: Get differences between two service configurations. + description: Get differences between two service configurations. + operationId: describeConfigDiff + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeConfigDiffRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeConfigDiffResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listDbcConfigs: + post: + x-no-compatibility-guarantee: true + x-mutating: false + summary: Get the configuration history of a Database Catalog. + description: Get the configuration history of a Database Catalog. + operationId: listDbcConfigs + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListDbcConfigsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListDbcConfigsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listVwConfigs: + post: + x-no-compatibility-guarantee: true + x-mutating: false + summary: Get the configuration history of a Virtual Warehouse. + description: Get the configuration history of a Virtual Warehouse. + operationId: listVwConfigs + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListVwConfigsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListVwConfigsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/updateVw: + post: + x-no-compatibility-guarantee: true + x-mutating: true + summary: Update the configuration of a Virtual Warehouse. + description: Update the configuration of a Virtual Warehouse. + operationId: updateVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/updateDbc: + post: + x-no-compatibility-guarantee: true + x-mutating: true + summary: Update the configuration of a Database Catalog. + description: Update the configuration of a Database Catalog. + operationId: updateDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/addUser: + post: + x-mutating: true + summary: Adds the given user to the cluster. + description: Adds the given user to the cluster. Please note that the user must pre-exist. + operationId: addUser + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AddUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AddUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/deleteUser: + post: + x-mutating: true + summary: Deletes the given user from the cluster. + description: Deletes the given user from the cluster. Please note that the user itself won't be deleted, only removed from the cluster. + operationId: deleteUser + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listUsers: + post: + x-mutating: false + summary: Lists the users who have access to the cluster. + description: Lists the users who have access to the cluster. + operationId: listUsers + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListUsersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListUsersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/upgradeDbc: + post: + x-mutating: true + summary: Upgrades the Database Catalog to a compatible version. + description: Upgrades the Database Catalog to a compatible version. + operationId: upgradeDbc + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeDbcRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeDbcResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/upgradeVw: + post: + x-mutating: true + summary: Upgrades the Virtual Warehouse to a compatible version. + description: Upgrades the Virtual Warehouse to a compatible version. + operationId: upgradeVw + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeVwRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeVwResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/getUpgradeVwVersions: + post: + x-mutating: false + summary: Gets the latest version and latest compatible version for Virtual Warehouse. + description: Gets the latest version and latest compatible version for Virtual Warehouse. + operationId: getUpgradeVwVersions + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetUpgradeVwVersionsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetUpgradeVwVersionsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/getUpgradeDbcVersions: + post: + x-mutating: false + summary: Gets the latest version and latest compatible version for Database Catalog. + description: Gets the latest version and latest compatible version for Database Catalog. + operationId: getUpgradeDbcVersions + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetUpgradeDbcVersionsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetUpgradeDbcVersionsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/healthCheck: + post: + x-mutating: false + summary: Check the health of the API. + description: Check the health of the API. + operationId: healthCheck + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/HealthCheckRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/HealthCheckResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/createBackup: + post: + summary: Creates a backup for the data warehouse. + description: Creates an on-demand backup for the data warehouse including Kubernetes objects, persistent volumes, etc. Backup requests are processed asynchronously and instantaneously. + operationId: createBackup + x-right: dw/createBackup + x-mutating: true + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateBackupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateBackupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/deleteBackup: + post: + summary: Deletes a data warehouse backup. + description: Deletes an existing data warehouse backup. The call returns immediately. + operationId: deleteBackup + x-right: dw/deleteBackup + x-mutating: true + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteBackupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteBackupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeBackup: + post: + summary: Describes the backup. + description: Returns the description of an existing data warehouse backup. + operationId: describeBackup + x-right: dw/describeBackup + x-mutating: false + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeBackupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeBackupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/restoreBackup: + post: + summary: Restores backup. + description: Restores the state of the data warehouse from an existing backup. + operationId: restoreBackup + x-right: dw/restoreBackup + x-mutating: true + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RestoreBackupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RestoreBackupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/describeRestore: + post: + summary: Describes the restore. + description: Returns the description of a data warehouse restore operation. + operationId: describeRestore + x-right: dw/describeRestore + x-mutating: false + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeRestoreRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeRestoreResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listBackupEntities: + post: + summary: Lists potential backup entities associated with the data warehouse. + description: Lists potential backup entities associated with the data warehouse. + operationId: listBackupEntities + x-right: dw/listBackupEntities + x-mutating: false + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListBackupEntitiesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListBackupEntitiesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listBackups: + post: + summary: Lists backups. + description: Lists backups associated with the data warehouse. + operationId: listBackups + x-right: dw/listBackups + x-mutating: false + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListBackupsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListBackupsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/listRestores: + post: + summary: Lists restores. + description: Lists restores associated with the data warehouse. + operationId: listRestores + x-right: dw/listRestores + x-mutating: false + x-form-factors: private + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListRestoresRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListRestoresResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/dw/getLogs: + post: + summary: Gets job logs. + description: Given the CRN, returns the corresponding job logs. + operationId: getLogs + x-right: dw/getLogs + x-mutating: false + x-form-factors: private + x-no-compatibility-guarantee: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetLogsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetLogsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' +definitions: + Error: + type: object + description: An object returned on an error. + properties: + code: + type: string + description: The error code. + message: + type: string + description: The error message. + DescribeClusterRequest: + type: object + description: Request object for the describeCluster method. Use only one of environmentName, clusterCrn and clusterId. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster to describe. + DescribeClusterResponse: + type: object + description: Response object for the describeCluster method. + properties: + cluster: + description: The cluster. + $ref: '#/definitions/ClusterSummaryResponse' + DescribeKubeconfigRequest: + type: object + description: Request object for the describeKubeconfig method. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster to describe. + DescribeKubeconfigResponse: + type: object + description: Response object for the describeKubeconfig method. + properties: + kubeconfig: + type: string + description: The kubeconfig. + DescribeAllowedInstanceTypesRequest: + type: object + description: Request object for the describeAllowedInstanceTypes method. + DescribeAllowedInstanceTypesResponse: + type: object + properties: + aws: + description: Instance type settings that are being used during cluster creation command on the AWS platform + $ref: '#/definitions/AllowedInstanceTypes' + azure: + description: Instance type settings that are being used during cluster creation command on the Azure platform + $ref: '#/definitions/AllowedInstanceTypes' + description: Response object for the describeAllowedInstanceTypes method. + AllowedInstanceTypes: + type: object + description: Allowed compute instance type values and default compute instance type value. + properties: + default: + type: array + description: Default value for the compute instance type usage. + items: + type: string + allowed: + type: array + description: Allowed values for the instance type. + items: + type: string + DescribeServerSettingRequest: + type: object + description: Request object for the describeServerSetting method. + x-form-factors: private + DescribeServerSettingResponse: + type: object + description: Response object for the describeServerSetting method. + x-form-factors: private + properties: + settings: + type: array + items: + $ref: '#/definitions/DescribeServerSettingItem' + description: The list of the server settings. + DescribeServerSettingItem: + type: object + description: A DWX server setting. + x-form-factors: private + properties: + configurationName: + type: string + description: The name of the setting in human readable format. + configurationKey: + type: string + description: The identifier of the setting. + enabled: + type: boolean + description: The state of the setting. + description: + type: string + description: The description of the setting. + requiresUpdate: + type: array + items: + $ref: '#/definitions/DescribeServerSettingItemRequiresUpdate' + description: Indicates update requirements for the change to take effect. + DescribeServerSettingItemRequiresUpdate: + type: string + description: Indicates an update requirement for the change to take effect. `ENVIRONMENT` - Means that the environments need to be updated/recreated for the setting change to take effect. `DBC` - Means that the Database Catalogs need an update/recreation. `VW` - Means that the Virtual Warehouses need the update/recreation. `VIZ` - Means that the Dataviz need the update/recreation. + x-form-factors: private + enum: + - ENVIRONMENT + - DBC + - VW + - VIZ + UpdateServerSettingRequest: + type: object + description: Request object for the updateServerSetting method. + x-form-factors: private + properties: + settings: + type: array + items: + $ref: '#/definitions/UpdateServerSettingItem' + description: The list of the server setting updates. + UpdateServerSettingResponse: + type: object + description: Response object for the updateServerSetting method. + x-form-factors: private + properties: + status: + type: string + description: Update status. + UpdateServerSettingItem: + type: object + description: A DWX server setting update. + x-form-factors: private + properties: + configurationKey: + type: string + description: The identifier of the setting. + enabled: + type: boolean + description: The state of the setting. + UpdateSshKeyRequest: + type: object + description: Request object for the updateSshKey method. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster to update the SSH Key. + UpdateSshKeyResponse: + type: object + description: Response object for the updateSshKey method. + properties: + status: + type: string + description: The status of the cluster. + message: + type: string + description: A message describing the outcome of the SSH Key update process. + RenewCertificatesRequest: + type: object + description: Request object for the renewCertificates method. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the Azure cluster to renew certificates for. + RenewCertificatesResponse: + type: object + description: Response object for the renewCertificates method. + CreateClusterRequest: + type: object + description: Request object for the createCluster method. + required: + - environmentCrn + properties: + environmentCrn: + type: string + description: The CRN of the environment for the cluster to create. + useOverlayNetwork: + type: boolean + description: Using an overlay network will save IP addresses in the VPC by using a private IP address range for Pods in the cluster. + databaseBackupRetentionPeriod: + type: integer + format: int32 + default: 30 + description: PostgreSQL server backup retention days. + whitelistIpCIDRs: + x-form-factors: public,private + type: string + description: This field is still available for Private Cloud deployments, however it'll be removed for Public Cloud in the next DWX release. Please use the use 'whitelistK8sClusterAccessIpCIDRs' in combination of 'whitelistWorkloadAccessIpCIDRs' on Public Cloud. Comma separated list of IP address CIDRs to whitelist. + whitelistK8sClusterAccessIpCIDRs: + type: array + items: + type: string + description: List of IP address CIDRs to whitelist for kubernetes cluster access. + whitelistWorkloadAccessIpCIDRs: + type: array + items: + type: string + description: List of IP address CIDRs to whitelist for workload access. + usePrivateLoadBalancer: + type: boolean + description: Set up load balancer with private IP address. In AWS it is created in private subnets. In Azure an internal load balancer gets created. Make sure there is connectivity between your client network and the network (VPC/VNet) where CDW environment is deployed. + enableStorageRoles: + type: boolean + description: Enable Storage Roles + default: false + x-form-factors: public + x-entitlement: CDW_STORAGE_ROLES + customRegistryOptions: + description: Options for custom ACR/ECR/Docker registries. + $ref: '#/definitions/CustomRegistryOptions' + awsOptions: + description: Options for activating an AWS environment. + $ref: '#/definitions/AwsActivationOptions' + x-form-factors: public + azureOptions: + description: Options for activating an Azure environment. + $ref: '#/definitions/AzureActivationOptions' + x-form-factors: public + privateCloudOptions: + description: Options for activating a Private Cloud environment. + $ref: '#/definitions/PrivateCloudActivationOptions' + x-form-factors: private + customSubdomain: + type: string + description: Custom environment subdomain. Overrides the environment subdomain using a customized domain either in the old subdomain format like ENV_ID.dw or the new format like dw-ENV_NAME. + BackupClusterRequest: + type: object + description: Request object for the backupCluster method. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster. + BackupClusterResponse: + type: object + description: Response object for the backupCluster method. + properties: + clusterId: + type: string + description: The ID of the cluster. + timestamp: + type: string + format: date-time + description: The date of the creation. + data: + x-sensitive: true + type: string + description: The backup data. + md5: + x-sensitive: true + type: string + description: The md5 hash of the encoded data. + RestoreClusterRequest: + type: object + description: Request object for the restoreCluster method. + required: + - clusterId + - data + properties: + clusterId: + type: string + description: The ID of the cluster. + data: + type: string + description: Dump of configuration received by calling "dump-cluster" command. + RestoreClusterResponse: + type: object + description: Response object for the restoreCluster method. + properties: + clusterId: + type: string + description: The the ID of the cluster. + operationId: + type: string + description: The the ID of the restore operation. + dbcRestorePlans: + type: array + description: Information about the restore-plan of the DbCatalogs. + items: + $ref: '#/definitions/RestoreClusterEntityPlan' + hiveRestorePlans: + type: array + description: Information about the restore-plan of the Hive Virtual Warehouses. + items: + $ref: '#/definitions/RestoreClusterEntityPlan' + impalaRestorePlans: + type: array + description: Information about the restore-plan of the Impala Virtual Warehouses. + items: + $ref: '#/definitions/RestoreClusterEntityPlan' + vizRestorePlans: + type: array + description: Information about the restore-plan of the Data Visualization Apps. + items: + $ref: '#/definitions/RestoreClusterEntityPlan' + RestoreClusterEntityPlan: + type: object + description: Entity status after the restore operation. + properties: + ref: + type: string + description: The reference of the entity in the backup data. + id: + type: string + description: The ID of the entity. + action: + type: string + description: 'The action associated with the plan. Possible actions: Create, Update, Skip' + message: + type: string + description: The description of the plan. + CustomRegistryOptions: + type: object + description: Options for custom ACR, ECR, or Docker registry. + properties: + registryType: + enum: + - ACR + - ECR + - Docker + type: string + description: Custom registry type. + repositoryUrl: + type: string + description: URL of the custom image repository. + x-no-paramfile: true + userName: + type: string + description: Username for custom registry access (required only for Docker type). + password: + type: string + description: Password for custom registry access (required only for Docker type). + disableImageVerification: + type: boolean + description: Disable image verification. + AwsActivationOptions: + type: object + description: Options for activating an AWS environment. + properties: + privateSubnetIds: + type: array + description: IDs of private AWS subnets where the cluster should be deployed. + items: + type: string + publicSubnetIds: + type: array + description: IDs of public AWS subnets where the cluster should be deployed. + items: + type: string + workerSubnetIds: + type: array + description: IDs of AWS subnets where the cluster worker nodes should be deployed. + items: + type: string + lbSubnetIds: + type: array + description: IDs of AWS subnets where the cluster load balancer should be deployed. + items: + type: string + customAmiId: + type: string + description: Custom AMI ID. + nodeRoleCDWManagedPolicyArn: + type: string + description: Managed Policy Arn to be attached to the Node Instance Role. + enableSpotInstances: + type: boolean + description: Whether to enable Spot instances for Virtual warehouses. It cannot be updated later. If the aws-options is not provided it defaults to false. + default: false + reducedPermissionMode: + type: boolean + description: Use this option to activate the environment with fewer than half of the standard required IAM permissions on your AWS cross-account IAM role. + computeInstanceTypes: + type: array + items: + type: string + description: AWS compute instance types that the environment is restricted to use. This affects the creation of virtual warehouses where this restriction will apply. Select an instance type that meets your computing, memory, networking, or storage needs. As of now, only a single instance type can be listed. Use describe-allowed-instance-types to see currently possible values. + additionalInstanceTypes: + type: array + items: + type: string + description: Additional (fallback) instance types listed in their priority order. They will be used instead of the primary compute instance type in case it is unavailable. You cannot include any instance type that was already indicated in computeInstanceTypes. Use describe-allowed-instance-types to see currently supported values and also the default value when nothing is provided for the computeInstanceTypes. + AzureActivationOptions: + type: object + description: Options for activating an Azure environment. + properties: + userAssignedManagedIdentity: + type: string + description: Resource ID of the managed identity used by AKS. It is a mandatory parameter for Azure cluster creation. + subnetId: + type: string + description: ID of Azure subnet where the cluster should be deployed. + enableAZ: + type: boolean + description: Enables Azure Availability Zones for the cluster deployment. + enableSpotInstances: + type: boolean + description: Whether to enable spot instances for Virtual warehouses. It cannot be updated later. If the AzureActivationOptions is not provided it defaults to false. + default: false + computeInstanceTypes: + type: array + items: + type: string + description: Azure compute instance types that the environment is restricted to use. This affects the creation of virtual warehouses where this restriction will apply. Select an instance type that meets your computing, memory, networking, or storage needs. As of now, only a single instance type can be listed. Use describe-allowed-instance-types to see currently possible values and the default value used for the case it is not provided. + logAnalyticsWorkspaceId: + type: string + description: Enable monitoring of Azure Kubernetes Service (AKS) cluster. Workspace ID for Azure log analytics. + outboundType: + type: string + description: Network outbound type. This setting controls the egress traffic for cluster nodes in Azure Kubernetes Service. Please refer to the following AKS documentation on the Azure portal. https://learn.microsoft.com/en-us/azure/aks/egress-outboundtype, https://learn.microsoft.com/en-us/azure/aks/nat-gateway + enum: + - LoadBalancer + - UserAssignedNATGateway + - UserDefinedRouting + enablePrivateSQL: + type: boolean + description: Enables private SQL for the cluster deployment. + default: false + privateDNSZoneAKS: + type: string + description: Private DNS zone AKS resource ID. + enablePrivateAks: + type: boolean + description: Enable Azure Private AKS mode. + default: false + enableUptimeSLA: + x-deprecated: true + type: boolean + description: Enable uptime SLA for Kubernetes API server. This option is deprecated and will be removed upon the next release of the DWX Public Cloud. The uptime SLA for the Kubernetes API server will be always enabled. + default: false + PrivateCloudActivationOptions: + type: object + description: Options for activating a Private Cloud environment. + required: + - delegationUsername + - delegationPassword + properties: + delegationUsername: + type: string + description: Name of delegation user. This user is used between Hue - Impala to create a session, as Hue should not pass the user credentials, instead Hue authenticates with the delegation user, then this user will impersonate the logged in user. This means that the Delegation User and Password should be able to authenticate through LDAP. + delegationPassword: + type: string + description: Password of delegation user. + securityContextConstraintName: + type: string + description: The name of the Hive Security Context Constraint. + storageClass: + type: string + description: The storage class for the Local Storage Operator. + dbDas: + type: string + description: The name of the DAS database. Not required for embedded databases + dbHue: + type: string + description: The name of the HUE database. Not required for embedded databases. + CreateClusterResponse: + type: object + description: Response object for the createCluster method. + properties: + clusterId: + type: string + description: ID of new cluster. + DeleteClusterRequest: + type: object + description: Request object for the deleteCluster method. + properties: + clusterId: + type: string + description: The ID of the cluster to delete. + force: + type: boolean + default: false + description: 'Force delete means CDW will delete the cluster even if there are attached DB Catalogs and Virtual Warehouses. All managed data will be lost and will not be recoverable. Force delete attempts all steps of the deletion even if previous steps have failed. NOTICE: Be aware that a Force delete may not remove all resources due to cloud provider constraints. Should this happen, it is responsibility of the user to ensure the impacted resources are deleted on the cloud provider.' + required: + - clusterId + DeleteClusterResponse: + type: object + description: Response object for the deleteCluster method. + UpgradeClusterRequest: + type: object + description: Request object for the upgradeCluster method. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster to upgrade. + UpgradeClusterResponse: + type: object + description: Response object for the upgradeCluster method. + properties: + status: + type: string + description: 'The upgrade status. Possible values are: Upgrading, Error, Failed.' + message: + type: string + description: Detailed explanation of the status. + timedOut: + type: boolean + description: True if the upgrade timed out, false or omitted otherwise. + serviceUnhealthy: + type: boolean + description: True, if the service is in unhealthy state, false or omitted otherwise. + UpdateClusterRequest: + type: object + description: Request object for the updateCluster method. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster to update. + description: + type: string + description: Cluster description. + whitelistIpCIDRs: + x-form-factors: public,private + type: array + items: + type: string + description: 'List of IP address CIDRs to whitelist. NOTE: CDW is in process of rolling out a new feature to whitelist IP CIDR separately for Kubernetes Clusters and Loadbalancers on CDP Public Cloud. For an existing cluster, if different IP CIDR has been already applied to LoadBalancer and the Kubernetes cluster through the DWX UI, then updating the IP CIDR of such cluster is not supported from CLI. In the upcoming release, the CLI will support this feature. Please make use of UI for the same.' + whitelistK8sClusterAccessIpCIDRs: + type: array + items: + type: string + description: List of IP address CIDRs to whitelist for kubernetes cluster access. + whitelistWorkloadAccessIpCIDRs: + type: array + items: + type: string + description: List of IP address CIDRs to whitelist for workload access. + awsUpdate: + type: object + description: Additional properties for AWS clusters. + properties: + externalBuckets: + type: object + description: External bucket definition. + additionalProperties: + description: External bucket access info. + $ref: '#/definitions/ExternalBucketAccessInfo' + azureUpdate: + type: object + description: Additional properties for Azure clusters. + properties: + renewCertificate: + type: boolean + default: false + description: Renew Azure cluster certificate. + observabilityConfig: + type: object + description: Update the cluster observability configurations. You can forward logs from environments activated in Cloudera Data Warehouse (CDW) to observability and monitoring systems such as Datadog, New Relic, or Splun. Please refer to the following Cloudera documentation for more info. https://docs.cloudera.com/data-warehouse/cloud/monitoring/topics/dw-observability-log-forwarding.html + properties: + logsForwardingConfig: + type: string + description: Create the log forwarding configuration in a valid fluentd format. Then that configuration is later inserted into a larger fluentd configuration. + proxyCABundle: + type: string + description: Set the proxy CA certificates (PEM Bundle). If you use a TLS-terminating proxy server to inspect outbound internet traffic, you need to provide the proxy server's CA certificates bundle in PEM bundle format when you configure log forwarding. + ExternalBucketAccessInfo: + type: object + description: External bucket definition. + properties: + accessMode: + type: string + description: Specifies whether the external bucket will be added in read-only or read-write mode. + enum: + - READ + - READWRITE + kmsCmkArn: + type: string + description: Enable server side encryption with the specified KMS CMK ARN. If the value is empty or unspecified, default server side encryption will be used when the access mode is read-write. Otherwise this value is ignored. + UpdateClusterResponse: + type: object + description: Response object for the updateCluster method. + ListClustersRequest: + type: object + description: Request object for the listClusters method. + properties: + environmentCrn: + type: string + description: Filter returned clusters for the belonging Environment CRN. + clusterId: + type: string + description: Filter returned clusters by cluster ID. + name: + type: string + description: Filter returned clusters by name. + status: + type: string + description: Filter returned clusters by cluster status. + enum: + - Creating + - Created + - Accepted + - Starting + - Running + - Stopping + - Stopped + - Updating + - PreUpdate + - PreUpgrade + - Restarting + - Deleting + - Upgrading + - Waiting + - Error + - Failed + cloudPlatform: + x-form-factors: public + type: string + description: Filter returned clusters by hosting platform. + enum: + - AWS + - AZURE + ListClustersResponse: + type: object + description: Response object for the listClusters method. + properties: + clusters: + type: array + items: + $ref: '#/definitions/ClusterSummaryResponse' + description: The list of clusters. + CreateDataVisualizationRequest: + type: object + description: Request object for the createDataVisualization call. + required: + - clusterId + - name + - config + properties: + clusterId: + type: string + description: ID of cluster where Cloudera Data Visualization should be created. + name: + type: string + description: Name of the Cloudera Data Visualization + config: + description: The LDAP admin and user group configuration for Cloudera Data Visualization. + $ref: '#/definitions/VizConfig' + imageVersion: + type: string + description: Version of the Cloudera Data Visualization. + x-form-factors: public + templateName: + type: string + description: The template size for the Cloudera Data Visualization. + CreateDataVisualizationResponse: + type: object + description: Response object for the createDataVisualization method. + properties: + dataVisualizationId: + type: string + description: ID of the new Cloudera Data Visualization. + ListDataVisualizationsRequest: + type: object + description: Request object for the listDataVisualizations method. + required: + - clusterId + properties: + clusterId: + type: string + description: ID of cluster to list Cloudera Data Visualizations. + ListDataVisualizationsResponse: + type: object + description: Response object for the listDataVisualizations method. + properties: + dataVisualizations: + type: array + items: + $ref: '#/definitions/DataVisualizationSummary' + description: The list of Cloudera Data Visualizations. + DeleteDataVisualizationRequest: + type: object + description: Request object for the deleteDataVisualization method. + required: + - clusterId + - dataVisualizationId + properties: + clusterId: + type: string + description: ID of the Cloudera Data Visualization's cluster. + dataVisualizationId: + type: string + description: ID of the Cloudera Data Visualization to delete from the cluster. + DeleteDataVisualizationResponse: + type: object + description: Response object for the deleteDataVisualization method. + properties: + status: + type: string + description: The status of asynchronous delete request for Cloudera Data Visualization. To find the latest status please use describe-data-visualization. Once the Data Visualization is deleted, the describe-data-visualization would return a not found error. + DescribeDataVisualizationRequest: + type: object + description: Request object for the describeDataVisualization method. + required: + - clusterId + - dataVisualizationId + properties: + clusterId: + type: string + description: ID of the Cloudera Data Visualization's cluster. + dataVisualizationId: + type: string + description: ID of the Cloudera Data Visualization + DescribeDataVisualizationResponse: + type: object + description: Response object for the describeDataVisualization method. + properties: + dataVisualization: + description: The Cloudera Data Visualization. + $ref: '#/definitions/DataVisualizationSummary' + UpdateDataVisualizationRequest: + type: object + description: Request object for the updateDataVisualization method. + required: + - clusterId + - dataVisualizationId + properties: + clusterId: + type: string + description: ID of the Cloudera Data Visualization's cluster. + dataVisualizationId: + type: string + description: ID of the Cloudera Data Visualization. + config: + description: The service configuration to update the DataVisualization with. This will be applied on top of the existing configuration so there's no need to list configurations that stay the same. + $ref: '#/definitions/VizConfig' + UpdateDataVisualizationResponse: + type: object + description: Response object for the updateDataVisualization method. + properties: + status: + type: string + description: The status of asynchronous update configuration request for Cloudera Data Visualization. To find the latest status please use describe-data-visualization. + CreateDbcRequest: + type: object + description: Request object for the createDbc method. + required: + - clusterId + - name + properties: + clusterId: + type: string + description: ID of cluster where Database Catalog should be created. + name: + type: string + description: Name of the Database Catalog. + loadDemoData: + type: boolean + description: Load demo data into the Database Catalog? + imageVersion: + type: string + description: Version of the Database Catalog. + default: '' + x-form-factors: public + isDefault: + type: boolean + description: Is this a Default Database Catalog? + default: false + tenantStorageRole: + type: string + description: Tenant Storage Role if the feature is enabled for the account. + default: '' + dbMetastore: + type: string + description: The name of the Metastore database. + default: '' + x-form-factors: private + dbDas: + type: string + description: The name of the DAS database. Not required for embedded databases. + default: '' + x-form-factors: private + dbHue: + type: string + description: The name of the HUE database. Not required for embedded databases. + default: '' + x-form-factors: private + CreateClusterDiagnosticDataJobRequest: + type: object + description: Request object for the createClusterDiagnosticDataJob method. + x-form-factors: public + required: + - clusterId + - destination + properties: + clusterId: + type: string + description: ID of the Cluster. + destination: + type: string + description: Destination of the diagnostics collection. + enum: + - UPLOAD_TO_CLOUDERA + - DOWNLOAD + startTime: + type: string + format: date-time + description: The resulting bundle will contain logs/metrics after the specified start time. If not indicated, then 30 minutes ago from now is taken as the start time. + endTime: + type: string + format: date-time + description: The resulting bundle will contain logs/metrics before the specified end time. If not indicated, then the current time is taken as the end time. + caseNumber: + type: string + description: Optional support case number in case of UPLOAD_TO_CLOUDERA destination, otherwise only act as additional data. + bundleMetadata: + type: object + additionalProperties: + type: string + description: Additional user-defined metadata information that is attached to the resulting bundle-info.json when posting the bundle. + force: + type: boolean + default: false + description: Forced recreation of the diagnostic job. + downloadOptions: + description: Cluster diagnostic options. If not provided, everything will be included in the Diagnostic Data. + $ref: '#/definitions/ClusterCreateDiagnosticDataDownloadOptions' + CreateClusterDiagnosticDataJobResponse: + type: object + description: Response object for the createClusterDiagnosticDataJob method. + x-form-factors: public + properties: + id: + type: string + description: Identifier for each bundle collection. + status: + type: string + description: Status of the diagnostics collection request. + url: + type: string + description: This URL points to a download location if the destination is DOWNLOAD. + labels: + type: object + description: Additional key-value pair attributes associated with the Diagnostic Data Job. + additionalProperties: + type: string + ListClusterDiagnosticDataJobsRequest: + type: object + description: Request object for the listClusterDiagnosticDataJobs method. + x-form-factors: public + required: + - clusterId + properties: + clusterId: + type: string + description: ID of the Cluster. + status: + description: Filter for job status, only those jobs will be returned which have the given status. + $ref: '#/definitions/DiagnosticDataJobStatus' + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + x-paging-input-token: true + ListClusterDiagnosticDataJobsResponse: + type: object + description: Response object for the listClusterDiagnosticDataJobs method. + x-form-factors: public + properties: + jobs: + type: array + description: The list of jobs belonging to the particular cluster. + items: + $ref: '#/definitions/ClusterDiagnosticDataJob' + x-paging-result: true + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If there are no additional results, the string is empty. + ClusterDiagnosticDataJob: + type: object + description: Represents a Diagnostic Data Job. + x-form-factors: public + properties: + jobId: + type: string + description: The unique identifier of the Diagnostic Data Job. + startTime: + type: string + format: date-time + description: The start time of the Diagnostic Data Job. + endTime: + type: string + format: date-time + description: The finish time of the Diagnostic Data Job. + url: + type: string + description: This URL points to a download location if the destination is DOWNLOAD. + status: + description: The job status. + $ref: '#/definitions/DiagnosticDataJobStatus' + labels: + type: object + description: Additional key-value pair attributes associated with the Diagnostic Data Job. + additionalProperties: + type: string + DescribeClusterDiagnosticDataJobRequest: + type: object + description: Request object for the describeClusterDiagnosticDataJob method. + x-form-factors: public + required: + - clusterId + - jobId + properties: + clusterId: + type: string + description: ID of the Cluster. + jobId: + type: string + description: ID of the diagnostic job. + DescribeClusterDiagnosticDataJobResponse: + type: object + description: Response object for the describeClusterDiagnosticDataJob method. + x-form-factors: public + properties: + job: + description: The job belonging to the particular Cluster. + $ref: '#/definitions/ClusterDiagnosticDataJob' + DeleteClusterDiagnosticDataJobRequest: + type: object + description: Request object for the deleteClusterDiagnosticDataJob method. + x-form-factors: public + required: + - clusterId + - jobId + properties: + clusterId: + type: string + description: ID of the Cluster. + jobId: + type: string + description: ID of the diagnostic job. + DeleteClusterDiagnosticDataJobResponse: + type: object + description: Response object for the deleteClusterDiagnosticDataJob method. + x-form-factors: public + CreateDbcDiagnosticDataJobRequest: + type: object + description: Request object for the createDbcDiagnosticDataJob method. + x-form-factors: public + required: + - clusterId + - dbcId + - destination + properties: + clusterId: + type: string + description: ID of cluster. + dbcId: + type: string + description: ID of the Database Catalog. + destination: + type: string + description: Destination of the diagnostics collection. + enum: + - UPLOAD_TO_CLOUDERA + - DOWNLOAD + startTime: + type: string + format: date-time + description: The resulting bundle will contain logs/metrics after the specified start time. If not indicated, then 30 minutes ago from now is taken as the start time. + endTime: + type: string + format: date-time + description: The resulting bundle will contain logs/metrics before the specified end time. If not indicated, then the current time is taken as the end time. + caseNumber: + type: string + description: Optional support case number in case of UPLOAD_TO_CLOUDERA destination, otherwise only act as additional data. + bundleMetadata: + type: object + additionalProperties: + type: string + description: Additional user-defined metadata information which is attached to resulting bundle-info.json when posting the bundle. + force: + type: boolean + default: false + description: Forced recreation of the diagnostic job. + downloadOptions: + description: Database Catalog diagnostic options. If not provided, everything will be included in the Diagnostic Data. + $ref: '#/definitions/DBCCreateDiagnosticDataDownloadOptions' + CreateDbcDiagnosticDataJobResponse: + type: object + description: Response object for the createDbcDiagnosticDataJob method. + x-form-factors: public + properties: + id: + type: string + description: Identifier for each bundle collection. + status: + type: string + description: Status of the diagnostics collection request. + url: + type: string + description: This URL points to a download location if the destination is DOWNLOAD. + labels: + type: object + description: Additional key-value pair attributes associated with the Diagnostic Data Job. + additionalProperties: + type: string + ListDbcDiagnosticDataJobsRequest: + type: object + description: Request object for the listDbcDiagnosticDataJobsRequest method. + x-form-factors: public + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of cluster. + dbcId: + type: string + description: ID of the Database Catalog. + status: + description: Filter for job type + $ref: '#/definitions/DiagnosticDataJobStatus' + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + x-paging-input-token: true + ListDbcDiagnosticDataJobsResponse: + type: object + description: Response object for the listDbcDiagnosticDataJobsRequest method. + x-form-factors: public + properties: + jobs: + type: array + description: The list of the jobs belonging to the particular Database Catalog + items: + $ref: '#/definitions/DbcDiagnosticDataJob' + x-paging-result: true + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If there are no additional results, the string is empty. + DescribeDbcDiagnosticDataJobRequest: + type: object + description: Request object for the describeDbcDiagnosticDataJobRequest method. + x-form-factors: public + required: + - clusterId + - dbcId + - jobId + properties: + clusterId: + type: string + description: ID of cluster. + dbcId: + type: string + description: ID of the Database Catalog. + jobId: + type: string + description: ID of the diagnostic job. + DescribeDbcDiagnosticDataJobResponse: + type: object + description: Response object for the describeDbcDiagnosticDataJobRequest method. + x-form-factors: public + properties: + job: + description: The job belonging to the particular Database Catalog + $ref: '#/definitions/DbcDiagnosticDataJob' + DeleteDbcDiagnosticDataJobRequest: + type: object + description: Request object for the deleteDbcDiagnosticDataJobRequest method. + x-form-factors: public + required: + - clusterId + - dbcId + - jobId + properties: + clusterId: + type: string + description: ID of cluster. + dbcId: + type: string + description: ID of the Database Catalog. + jobId: + type: string + description: ID of the diagnostic job. + DeleteDbcDiagnosticDataJobResponse: + type: object + description: Response object for the deleteDbcDiagnosticDataJobRequest method. + x-form-factors: public + DbcDiagnosticDataJob: + type: object + description: Represents a Diagnostic Data Job + x-form-factors: public + properties: + jobId: + type: string + description: The unique identifier of the Diagnostic Data Job. + startTime: + type: string + format: date-time + description: The start time of the Diagnostic Data Job. + endTime: + type: string + format: date-time + description: The finish time of the Diagnostic Data Job. + url: + type: string + description: This URL points to a download location if the destination is DOWNLOAD. + status: + description: The job status. + $ref: '#/definitions/DiagnosticDataJobStatus' + labels: + type: object + description: Additional key-value pair attributes associated with the Diagnostic Data Job. + additionalProperties: + type: string + DiagnosticDataJobStatus: + type: string + description: Represents the possible status values of a Diagnostic Data Job. + x-form-factors: public + enum: + - Starting + - Succeeded + - Failed + - Running + - Unknown + - Deleted + ListDbcEventsRequest: + type: object + description: Request object for the listDbcEvents method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of cluster. + dbcId: + type: string + description: ID of the Database Catalog. + limit: + type: integer + format: int32 + description: Limit the number of returned rows. If not specified all the events will be returned. Please note the DWX only stores the last 50 events. + ascending: + type: boolean + default: false + description: Provide the result in ascending order, default is descending. + ListDbcEventsResponse: + type: object + description: Response object for the listDbcEvents method. + properties: + events: + type: array + description: The list of the events belonging to the particular Database Catalog + items: + $ref: '#/definitions/EventResponse' + EventResponse: + type: object + description: Represents a Event + properties: + event: + type: string + description: The code name of the event + message: + type: string + description: Detailed message + timestamp: + type: string + format: date-time + description: The timestamp of the event + GetDataVisualizationUpgradeVersionRequest: + type: object + description: Request object for the getDataVisualizationUpgradeVersion method. + required: + - clusterId + - dataVisualizationId + properties: + clusterId: + type: string + description: ID of the Cloudera Data Visualization's cluster. + dataVisualizationId: + type: string + description: ID of the Cloudera Data Visualization. + GetDataVisualizationUpgradeVersionResponse: + type: object + description: Response object for the getDataVisualizationUpgradeVersion method. + properties: + upgradeVersions: + description: Details of upgrade versions. + $ref: '#/definitions/UpgradeVersions' + UpgradeVersions: + type: object + description: Details of upgrade versions. + properties: + latestVersion: + type: string + description: Latest available Data Visualization version. + UpgradeDataVisualizationRequest: + type: object + description: Request object for the upgradeDataVisualization method. + required: + - clusterId + - dataVisualizationId + - imageVersion + properties: + clusterId: + type: string + description: ID of the Cloudera Data Visualization's cluster. + dataVisualizationId: + type: string + description: ID of the Cloudera Data Visualization. + imageVersion: + type: string + description: Image version of the Cloudera Data Visualization to upgrade to. + UpgradeDataVisualizationResponse: + type: object + description: Response object for the upgradeDataVisualization method. + properties: + status: + type: string + description: The status of asynchronous upgrade request for Cloudera Data Visualization. To find the latest status please use describe-data-visualization. + CreateDbcResponse: + type: object + description: Response object for the createDbc method. + properties: + dbcId: + type: string + description: ID of the new Database Catalog. + ListDbcsRequest: + type: object + description: Request object for the listDbcs method. + required: + - clusterId + properties: + clusterId: + type: string + description: ID of cluster to list. + ListDbcsResponse: + type: object + description: Response object for the listDbcs method. + properties: + dbcs: + type: array + items: + $ref: '#/definitions/DbcSummary' + description: The list of Database Catalogs. + DescribeDbcRequest: + type: object + description: Request object for the describeDbc method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of the Database Catalog's cluster. + dbcId: + type: string + description: ID of the Database Catalog. + DescribeDbcResponse: + type: object + description: Response object for the describeDbc method. + properties: + dbc: + description: The Database Catalog. + $ref: '#/definitions/DbcSummary' + DeleteDbcRequest: + type: object + description: Request object for the deleteDbc method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of the Database Catalog's cluster. + dbcId: + type: string + description: ID of the Database Catalog to delete. + DeleteDbcResponse: + type: object + description: Response object for the deleteDbc method. + RebuildDbcRequest: + type: object + description: Request object for the rebuildDbc method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of the Database Catalog's cluster. + dbcId: + type: string + description: ID of the Database Catalog to rebuild. + keepImageVersion: + type: boolean + description: true - keep the current image version. false - set to latest image version when rebuilding the Database Catalog. If not provided, the latest image version will be set. + RebuildDbcResponse: + type: object + description: Response object for the rebuildDbc method. + SuspendDbcRequest: + type: object + description: The request object for the suspendDbc method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: The ID of the Database Catalog's cluster. + dbcId: + type: string + description: The ID of the Database Catalog to suspend. + SuspendDbcResponse: + type: object + description: The response object for the suspendDbc method. + RestartDbcRequest: + type: object + description: Request object for the restartDbc method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of the Database Catalog's cluster. + dbcId: + type: string + description: The id of the Database Catalog to restart. + RestartDbcResponse: + type: object + description: Response object for the restartDbc method. + VwType: + type: string + enum: + - hive + - impala + description: 'Type of Virtual Warehouse: ''hive'' or ''impala''.' + AutoscalingOptionsCreateRequest: + type: object + description: Auto-scaling configuration for a Virtual Warehouse. + properties: + minClusters: + type: integer + format: int32 + default: 1 + description: Minimum number of available compute groups. + maxClusters: + type: integer + format: int32 + default: 10 + description: Maximum number of available compute groups. + disableAutoSuspend: + type: boolean + description: Turn off auto suspend for Virtual Warehouse. + autoSuspendTimeoutSeconds: + type: integer + format: int32 + description: Auto suspend threshold for Virtual Warehouse. + enableUnifiedAnalytics: + x-deprecated: true + type: boolean + description: DEPRECATED in favor of the top level enableUnifiedAnalytics flag. Enable Unified Analytics. In case of Hive Virtual Warehouses this cannot be provided, because this value is inferred. In case of Impala this can be set. Passing --query-isolation-options will be considered if this flag is set to true. If Unified Analytics enabled then the "impalaEnableShutdownOfCoordinator" explicitly disabled and should not be provided, furthermore the "impalaHighAvailabilityMode" cannot be set to ACTIVE_ACTIVE. + hiveScaleWaitTimeSeconds: + type: integer + format: int32 + description: Set wait time before a scale event happens. Either "hiveScaleWaitTimeSeconds" or "hiveDesiredFreeCapacity" can be provided. + hiveDesiredFreeCapacity: + type: integer + format: int32 + description: Set Desired free capacity. Either "hiveScaleWaitTimeSeconds" or "hiveDesiredFreeCapacity" can be provided. + impalaHighAvailabilityMode: + x-deprecated: true + type: string + enum: + - ACTIVE_PASSIVE + - ACTIVE_ACTIVE + - DISABLED + description: DEPRECATED in favor of the top level impalaHASettings object. Set High Availability mode. If not provided the default will apply. This value is disregarded for Hive. + impalaScaleUpDelaySeconds: + type: integer + format: int32 + description: Scale up the scaling up threshold in seconds. If not provided defaults will apply. + impalaScaleDownDelaySeconds: + type: integer + format: int32 + description: Scale down threshold in seconds. If not provided defaults will apply. + impalaEnableShutdownOfCoordinator: + x-deprecated: true + type: boolean + description: DEPRECATED in favor of the top level impalaHASettings object. Enables a shutdown of the coordinator. If Unified Analytics enabled then this setting explicitly disabled and should not be provided. + impalaShutdownOfCoordinatorDelaySeconds: + x-deprecated: true + type: integer + format: int32 + description: DEPRECATED in favor of the top level impalaHASettings object. Delay in seconds before the shutdown of coordinator event happens. + impalaNumOfActiveCoordinators: + x-deprecated: true + type: integer + format: int32 + description: DEPRECATED in favor of the top level impalaHASettings object. Number of the active coordinators. + impalaEnableCatalogHighAvailability: + x-deprecated: true + type: boolean + description: DEPRECATED in favor of the top level impalaHASettings object. Enables a backup instance for Impala catalog to ensure high availability. + podConfigName: + type: string + description: Name of the pod configuration. + ImpalaOptionsCreateRequest: + type: object + description: Impala specific options. It cannot be provided for Virtual Warehouse types other than Impala. + properties: + spillToS3Uri: + type: string + description: Set S3 URI in "s3://bucket/path" format and enable spilling to S3. If this is set, "scratchSpaceLimit" cannot be set. Spilling to a remote storage is not supported on Azure, it is available on AWS and PvC platforms. If your workload results in large volumes of intermediate data being written, it is recommended to configure the heavy spilling queries to use a remote storage location rather than the local one since Impala occasionally needs to use persistent storage for writing intermediate files during large sorts, joins, aggregations, or analytic function operations. Note that this value is ignored if the Impala version does not support spilling to S3. + scratchSpaceLimit: + x-entitlement: CDW_IMPALA_EBS_SCRATCH_SPACE + type: integer + format: int32 + description: Defines the limit for scratch space in GiB needed by Impala for spilling queries. If this is set, "spillToS3Uri" cannot be set. The valid values are between 1-16000 for AWS and 1-16684 for Azure. It will choose the first valid value for which the total disk space is greater than or equal to the specified scratch space limit. The valid scratch space limit values per node in GiBs for AWS are [300, 634, 968, 1302, 1636, 1970, 2304, 2638, 2972, 6550, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000, 16000]. Valid values for Azure are [300, 684, 812, 1068, 1324, 1836, 2348, 3372, 4396, 8492, 16684]. + ImpalaOptionsResponse: + type: object + description: Impala specific settings. + properties: + spillToS3Uri: + type: string + description: Impala spill to S3 URI. + scratchSpaceLimit: + type: integer + format: int32 + description: Maximum scratch space used for spilling to disk. + x-omitempty: false + ImpalaHASettingsCreateRequest: + type: object + description: High Availability settings for the Impala Virtual Warehouse. The values are disregarded for Hive. + properties: + highAvailabilityMode: + $ref: '#/definitions/ImpalaHighAvailabilityMode' + description: Set High Availability mode. If not provided, the default will apply. DISABLED - Disables Impala coordinator and Database Catalog high availability. ACTIVE_PASSIVE - Runs multiple coordinators (one active, one passive) and Database Catalogs (one active, one passive). ACTIVE_ACTIVE - Runs multiple coordinators (both active) and Database Catalogs (one active, one passive). If Unified Analytics is enabled, then this cannot be set to ACTIVE_ACTIVE. + enableShutdownOfCoordinator: + type: boolean + description: Enables a shutdown of the coordinator. If Unified Analytics is enabled, then this setting is explicitly disabled (ignored) and should not be provided. + shutdownOfCoordinatorDelaySeconds: + type: integer + format: int32 + description: Delay in seconds before the shutdown of coordinator event happens. + numOfActiveCoordinators: + type: integer + format: int32 + description: The number of active coordinators. + enableCatalogHighAvailability: + type: boolean + description: Enables a backup instance for Impala catalog to ensure high availability. + AutoscalingOptionsUpdateRequest: + type: object + description: Auto-scaling configuration for a Virtual Warehouse. Provide those values only that you want to update. + properties: + minClusters: + type: integer + format: int32 + default: 0 + description: Minimum number of available compute groups. Zero means, the minClusters will not be updated. + maxClusters: + type: integer + format: int32 + default: 0 + description: Maximum number of available compute groups. Zero means, the maxClusters will not be updated.. + disableAutoSuspend: + type: boolean + description: Turn off auto suspend for Virtual Warehouse. + autoSuspendTimeoutSeconds: + type: integer + format: int32 + description: Auto suspend threshold for Virtual Warehouse. + hiveScaleWaitTimeSeconds: + type: integer + format: int32 + description: Set wait time before a scale event happens. Either "hiveScaleWaitTimeSeconds" or "hiveDesiredFreeCapacity" can be provided. If "hiveScaleWaitTimeSeconds" provided, then the "hiveDesiredFreeCapacity" will be explicityly set to 0. + hiveDesiredFreeCapacity: + type: integer + format: int32 + description: Set Desired free capacity. Either "hiveScaleWaitTimeSeconds" or "hiveDesiredFreeCapacity" can be provided. + impalaScaleUpDelaySeconds: + type: integer + format: int32 + description: Scale up the scaling up threshold in seconds. + impalaScaleDownDelaySeconds: + type: integer + format: int32 + description: Scale down threshold in seconds. + impalaShutdownOfCoordinatorDelaySeconds: + x-deprecated: true + type: integer + format: int32 + description: DEPRECATED in favor of the top level impalaHASettings object. Delay in seconds before the shutdown of coordinator event happens. + impalaNumOfActiveCoordinators: + x-deprecated: true + type: integer + format: int32 + description: DEPRECATED in favor of the top level impalaHASettings object. Number of the active coordinators. + ImpalaHASettingsUpdateRequest: + type: object + description: High Availability settings update options for the Impala Virtual Warehouse. + properties: + shutdownOfCoordinatorDelaySeconds: + type: integer + format: int32 + description: Delay in seconds before the shutdown of coordinator event happens. + numOfActiveCoordinators: + type: integer + format: int32 + description: The number of active coordinators. + AutoscalingOptionsResponse: + type: object + description: Auto-scaling configuration for a Virtual Warehouse. + properties: + minClusters: + type: integer + format: int32 + description: Minimum number of available compute groups. + maxClusters: + type: integer + format: int32 + description: Maximum number of available compute groups. + disableAutoSuspend: + type: boolean + description: Turn off auto suspend for Virtual Warehouse. + autoSuspendTimeoutSeconds: + type: integer + format: int32 + description: Auto suspend threshold for Virtual Warehouse. + enableUnifiedAnalytics: + x-deprecated: true + type: boolean + description: DEPRECATED in favor of the top level enableUnifiedAnalytics flag. Whether the Unified Analytics is enabled. + hiveScaleWaitTimeSeconds: + type: integer + format: int32 + description: Wait time before a scale event happens. + hiveDesiredFreeCapacity: + type: integer + format: int32 + description: Desired free capacity. + impalaHighAvailabilityMode: + x-deprecated: true + type: string + enum: + - ACTIVE_PASSIVE + - ACTIVE_ACTIVE + - DISABLED + description: DEPRECATED in favor of the top level impalaHASettings object. High Availability mode. + impalaScaleUpDelaySeconds: + type: integer + format: int32 + description: Scale up the scaling up threshold in seconds. + impalaScaleDownDelaySeconds: + type: integer + format: int32 + description: Scale down threshold in seconds. + impalaEnableShutdownOfCoordinator: + x-deprecated: true + type: boolean + description: DEPRECATED in favor of the top level impalaHASettings object. Whether a shutdown of the coordinator is enabled. + impalaNumOfActiveCoordinators: + x-deprecated: true + type: integer + format: int32 + description: DEPRECATED in favor of the top level impalaHASettings object. Number of the active coordinators. + impalaShutdownOfCoordinatorDelaySeconds: + x-deprecated: true + type: integer + format: int32 + description: DEPRECATED in favor of the top level impalaHASettings object. Delay in seconds before the shutdown of coordinator event happens. + impalaEnableCatalogHighAvailability: + x-deprecated: true + type: boolean + description: DEPRECATED in favor of the top level impalaHASettings object. Denotes whether a backup instance for Impala catalog is enabled. + podConfigName: + type: string + description: Name of the pod configuration. + ImpalaHASettingsOptionsResponse: + type: object + description: Impala High Availability settings for a Virtual Warehouse. + properties: + highAvailabilityMode: + $ref: '#/definitions/ImpalaHighAvailabilityMode' + description: High Availability mode. DISABLED - Impala coordinator and Database Catalog high availability is disabled. ACTIVE_PASSIVE - Multiple coordinators (one active, one passive) and Database Catalogs (one active, one passive) are run. ACTIVE_ACTIVE - Multiple coordinators (both active) and Database Catalogs (one active, one passive) are run. + enableShutdownOfCoordinator: + type: boolean + description: Whether a shutdown of the coordinator is enabled. + numOfActiveCoordinators: + type: integer + format: int32 + description: Number of the active coordinators. + shutdownOfCoordinatorDelaySeconds: + type: integer + format: int32 + description: Delay in seconds before the shutdown of coordinator event happens. + enableCatalogHighAvailability: + type: boolean + description: Denotes whether a backup instance for Impala catalog is enabled. + ImpalaHighAvailabilityMode: + type: string + enum: + - ACTIVE_PASSIVE + - ACTIVE_ACTIVE + - DISABLED + description: Set Impala High Availability mode. If not provided, the default will apply. DISABLED - Disables Impala coordinator and Database Catalog high availability. ACTIVE_PASSIVE - Runs multiple coordinators (one active, one passive) and Database Catalogs (one active, one passive). ACTIVE_ACTIVE - Runs multiple coordinators (both active) and Database Catalogs (one active, one passive). If Unified Analytics is enabled, then this cannot be set to ACTIVE_ACTIVE. + QueryIsolationOptionsRequest: + type: object + description: Configurations for Query Isolation. + properties: + maxQueries: + type: integer + format: int32 + default: 0 + description: Maximum Concurrent Isolated Queries. If not provided, 0 will be applied. The 0 value means the query isoltaion functionality will be disabled. + maxNodesPerQuery: + type: integer + format: int32 + default: 0 + description: Maximum Nodes Per Isolated Query. If not provided, 0 will be applied. The 0 value means the query isoltaion functionality will be disabled. + QueryIsolationOptionsResponse: + type: object + description: Configurations for Query Isolation. + properties: + maxQueries: + type: integer + format: int32 + description: Maximum Concurrent Isolated Queries + maxNodesPerQuery: + type: integer + format: int32 + description: Maximum Nodes Per Isolated Query + ReplicaStatus: + x-form-factors: public,private + type: object + description: Status information on the current state of replicas in the virtual warehouse. + properties: + totalExecutorReplicas: + type: integer + format: int32 + description: Total number of executor replicas scheduled for the virtual warehouse. This number contains the number of executor replicas in pending state, as well as the replicas that are already running. If this number is zero, then the executor functionality is stopped. + x-omitempty: false + readyExecutorReplicas: + type: integer + format: int32 + description: Total number of ready executor replicas in the virtual warehouse. This number only contains the healthy executor replicas that have already started up and are ready to accept requests. If this number is less than the totalExecutorReplicas, then the virtual warehouse might still be starting up or there might be a problem scheduling these replicas. + x-omitempty: false + totalCoordinatorReplicas: + type: integer + format: int32 + description: Total number of coordinator replicas scheduled for the virtual warehouse. This number contains the number of coordinator replicas in pending state, as well as the replicas that are already running. If this number is zero, then the coordinator functionality is stopped. + x-omitempty: false + CreateVwRequest: + type: object + description: Request object for the createVw method. + required: + - clusterId + - dbcId + - vwType + - name + properties: + clusterId: + type: string + description: ID of cluster where Virtual Warehouse should be created. + dbcId: + type: string + description: ID of Database Catalog that the Virtual Warehouse should be attached to. + vwType: + description: Type of Virtual Warehouse to be created. + $ref: '#/definitions/VwType' + name: + type: string + description: Name of the Virtual Warehouse. + imageVersion: + type: string + description: version of the Virtual Warehouse. + default: '' + x-form-factors: public + template: + type: string + description: Name of configuration template to use. + enum: + - xsmall + - small + - medium + - large + nodeCount: + type: integer + format: int32 + default: 0 + description: Node Count per compute cluster. Implies 'custom' template, even if you pass template explicitly. + availabilityZone: + type: string + description: This feature works only for AWS cluster type. An availability zone to host compute instances. If not specified, defaults to a randomly selected availability zone inferred from available subnets. In order to query possible options, see "availabilityZones" field of describe-cluster or list-clusters command response. + enableUnifiedAnalytics: + type: boolean + description: Enable Unified Analytics. In the case of Hive Virtual Warehouses, this cannot be provided, because this value is inferred. In the case of Impala, this can be set. Passing --query-isolation-options will be considered only if this flag is set to true. If Unified Analytics is enabled then the "enableShutdownOfCoordinator" in --impala-ha-settings is explicitly disabled (ignored) and should not be provided, furthermore the "highAvailabilityMode" in --impala-ha-settings cannot be set to ACTIVE_ACTIVE. + impalaOptions: + description: Impala specific options. It cannot be provided for Virtual Warehouse types other than Impala. + $ref: '#/definitions/ImpalaOptionsCreateRequest' + impalaHaSettings: + description: High Availability settings for the Impala Virtual Warehouse. NOTE that in --autoscaling object you should avoid using the same deprecated properties because only the --impala-ha-setting properties will be considered if any of its values are set. + $ref: '#/definitions/ImpalaHASettingsCreateRequest' + autoscaling: + description: Autoscaling settings for the Virtual Warehouse. + $ref: '#/definitions/AutoscalingOptionsCreateRequest' + config: + description: Configuration settings for the Virtual Warehouse. + $ref: '#/definitions/ServiceConfigReq' + queryIsolationOptions: + description: Query isolation settings for the Virtual Warehouse. For Impala this value will be considered only if Unified Analytics is enabled. + $ref: '#/definitions/QueryIsolationOptionsRequest' + tags: + type: array + description: Tags associated with the resources. + items: + $ref: '#/definitions/TagRequest' + platformJwtAuth: + type: boolean + default: false + description: Value of 'true' automatically configures the Virtual Warehouse to support JWTs issues by the CDP JWT token provider. Value of 'false' does not enable JWT auth on the Virtual Warehouse. If this field is not specified, it defaults to 'false'. + TagRequest: + description: A key/value pair that can be attached to some resources. + type: object + required: + - key + - value + properties: + key: + type: string + description: The tag's name. + value: + type: string + description: The associated value of the tag. + CreateVwResponse: + type: object + description: Response object for the createVw method. + properties: + vwId: + type: string + description: ID of the new Virtual Warehouse. + VwFilter: + type: object + description: Filter object for Virtual Warehouses. + properties: + vwType: + description: Virtual Warehouse type. + $ref: '#/definitions/VwType' + dbcId: + type: string + description: Filter Virtual Warehouses by Database Catalog Id. + compactor: + type: boolean + description: Filter Virtual Warehouses whether it is a Compactor or not. + viz: + type: boolean + description: Filter the Virtual Warehouses based on whether it has Data Visualisation. + ListVwsRequest: + type: object + description: Request object for the listVws method. + required: + - clusterId + properties: + clusterId: + type: string + description: ID of cluster to list. + filter: + description: Filter object for listVws method. + $ref: '#/definitions/VwFilter' + ListVwsResponse: + type: object + description: Response object for the listVws method. + properties: + vws: + type: array + items: + $ref: '#/definitions/VwSummary' + description: The list of Virtual Warehouses. + DescribeVwRequest: + type: object + description: Request object for the describeVw method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + DescribeVwResponse: + type: object + description: Response object for the describeVw method. + properties: + vw: + description: The Virtual Warehouse. + $ref: '#/definitions/VwSummary' + UpdateVwConfigRequest: + type: object + description: Request object for the updateVwConfig method. + required: + - clusterId + - vwId + - component + properties: + clusterId: + type: string + description: ID of the cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + component: + type: string + description: Configuration component to update. Hive components are [DasWebapp, Hiveserver2, QueryCoordinator, QueryExecutor, StandaloneQueryExecutor, TokenAuth, Hue]. Impala components are [Hue, ImpalaAutoscaler, ImpalaCatalogd, ImpalaCoordinator, ImpalaExecutor, ImpalaProxy, ImpalaStatestored, ImpalaTokenAuth]. + enum: + - DasWebapp + - Hiveserver2 + - QueryCoordinator + - QueryExecutor + - StandaloneQueryExecutor + - TokenAuth + - Hue + - ImpalaAutoscaler + - ImpalaCatalogd + - ImpalaCoordinator + - ImpalaExecutor + - ImpalaProxy + - ImpalaStatestored + - ImpalaTokenAuth + set: + description: Configuration files of the selected component to update. + type: array + items: + type: object + $ref: '#/definitions/ConfigBlock' + UpdateVwConfigResponse: + type: object + description: Response object for the updateVwConfig method. + RebuildVwRequest: + type: object + description: Request object for the rebuildVw method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: ID of the Virtual Warehouse to rebuild. + keepImageVersion: + type: boolean + description: Set it to true to keep the current image version. Set it to false to use the latest image version when rebuilding the Virtual Warehouse. If not provided, the latest image version will be set. + RebuildVwResponse: + type: object + description: Response object for the rebuildVw method. + DeleteVwRequest: + type: object + description: Request object for the deleteVw method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: ID of the Virtual Warehouse to delete. + DeleteVwResponse: + type: object + description: Response object for the deleteVw method. + ActorResponse: + type: object + description: A CDP actor (user or machine user). + properties: + crn: + type: string + description: Actor CRN. + email: + type: string + description: Email address for users. + workloadUsername: + type: string + description: Username for users. + machineUsername: + type: string + description: Username for machine users. + AwsOptionsResponse: + type: object + description: Response object of the cluster AWS settings. + properties: + subnetIds: + type: array + description: IDs of AWS subnets where the cluster has been deployed. + items: + type: string + workerSubnetIds: + type: array + description: IDs of AWS subnets where the cluster worker nodes should be deployed. + items: + type: string + lbSubnetIds: + type: array + description: IDs of AWS subnets where the cluster load balancer should be deployed. + items: + type: string + availabilityZones: + type: array + items: + type: string + description: List of availability zones that the cluster is restricted to use. + customAmiId: + type: string + description: Id of the Custom Amazon Machine Image + reducedPermissionMode: + type: boolean + description: Denotes whether the Reduced Permission mode is enabled. + AzureOptionsResponse: + type: object + description: Response object of the cluster Azure settings. + properties: + subnetId: + type: string + description: ID of Azure subnet where the cluster is deployed. + enableAZ: + type: boolean + description: Denotes whther the Azure Availability Zones for the cluster is enabled or not. + default: false + outboundType: + type: string + description: The current outbound type setting. + logAnalyticsWorkspaceId: + type: string + description: Workspace ID for Azure log analytics. + RestartVwRequest: + type: object + description: Request object for the restartVw method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: The id of the Virtual Warehouse to restart. + RestartVwResponse: + type: object + description: Response object for the restartVw method. + CreateVwDiagnosticDataJobRequest: + type: object + description: Request object for the createVwDiagnosticDataJob method. + x-form-factors: public + required: + - clusterId + - vwId + - destination + properties: + clusterId: + type: string + description: ID of cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + destination: + type: string + description: Destination of the diagnostics collection. + enum: + - UPLOAD_TO_CLOUDERA + - DOWNLOAD + startTime: + type: string + format: date-time + description: The resulting bundle will contain logs/metrics after the specified start time. If not indicated, then 30 minutes ago from now is taken as the start time. + endTime: + type: string + format: date-time + description: The resulting bundle will contain logs/metrics before the specified end time. If not indicated, then the current time is taken as the end time. + caseNumber: + type: string + description: Optional support case number in case of UPLOAD_TO_CLOUDERA destination, otherwise only act as additional data. + bundleMetadata: + type: object + additionalProperties: + type: string + description: Additional user-defined metadata information which is attached to resulting bundle-info.json when posting the bundle. + force: + type: boolean + default: false + description: Forced recreation of the diagnostic job. + hiveDownloadOptions: + description: Hive diagnostic options. If not provided, everything will be included into the Diagnostic Data. + $ref: '#/definitions/HiveCreateDiagnosticDataDownloadOptions' + impalaDownloadOptions: + description: Impala diagnostic options. If not provided, everything will be included into the Diagnostic Data. + $ref: '#/definitions/ImpalaCreateDiagnosticDataDownloadOptions' + CreateVwDiagnosticDataJobResponse: + type: object + description: Response object for the createVwDiagnosticDataJob method. + x-form-factors: public + properties: + id: + type: string + description: Identifier for each bundle collection. + status: + type: string + description: Status of the diagnostics collection request. + url: + type: string + description: This URL points to a download location if the destination is DOWNLOAD. + labels: + type: object + description: Additional key-value pair attributes associated with the Diagnostic Data Job. + additionalProperties: + type: string + ListVwDiagnosticDataJobsRequest: + type: object + description: Request object for the listVwDiagnosticDataJobsRequest method. + x-form-factors: public + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + status: + description: Filter for job type + $ref: '#/definitions/DiagnosticDataJobStatus' + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + x-paging-input-token: true + ListVwDiagnosticDataJobsResponse: + type: object + description: Response object for the listVwDiagnosticDataJobsRequest method. + x-form-factors: public + properties: + jobs: + type: array + description: The list of the jobs belonging to the particular Virtual Warehouse. + items: + $ref: '#/definitions/VwDiagnosticDataJob' + x-paging-result: true + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If there are no additional results, the string is empty. + DescribeVwDiagnosticDataJobRequest: + type: object + description: Request object for the describeVwDiagnosticDataJobRequest method. + x-form-factors: public + required: + - clusterId + - vwId + - jobId + properties: + clusterId: + type: string + description: ID of cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + jobId: + type: string + description: ID of the diagnostic job. + DescribeVwDiagnosticDataJobResponse: + type: object + description: Response object for the describeVwDiagnosticDataJobRequest method. + x-form-factors: public + properties: + job: + description: The job belonging to the particular Virtual Warehouse. + $ref: '#/definitions/VwDiagnosticDataJob' + DeleteVwDiagnosticDataJobRequest: + type: object + description: Request object for the deleteVwDiagnosticDataJobRequest method. + x-form-factors: public + required: + - clusterId + - vwId + - jobId + properties: + clusterId: + type: string + description: ID of cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + jobId: + type: string + description: ID of the diagnostic job. + DeleteVwDiagnosticDataJobResponse: + type: object + description: Response object for the deleteVwDiagnosticDataJobRequest method. + x-form-factors: public + VwDiagnosticDataJob: + type: object + description: Represents a Diagnostic Data Job. + x-form-factors: public + properties: + jobId: + type: string + description: The unique identifier of the Diagnostic Data Job. + startTime: + type: string + format: date-time + description: The start time of the Diagnostic Data Job. + endTime: + type: string + format: date-time + description: The finish time of the Diagnostic Data Job. + url: + type: string + description: If the request is for download, this URL points to download location. + status: + description: The job status. + $ref: '#/definitions/DiagnosticDataJobStatus' + labels: + type: object + description: Additional key-value pair attributes associated with the Diagnostic Data Job. + additionalProperties: + type: string + ListVwEventsRequest: + type: object + description: Request object for the listVwEvents method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + limit: + type: integer + format: int32 + description: Limit the number of returned rows. If not specified all the events will be returned. Please note the DWX only stores the last 50 events. + ascending: + type: boolean + default: false + description: Provide the result in ascending order, default is descending. + ListVwEventsResponse: + type: object + description: Response object for the listVwEvents method. + properties: + events: + type: array + description: The list of the events belonging to the particular Virtual Warehouse + items: + $ref: '#/definitions/EventResponse' + HiveCreateDiagnosticDataDownloadOptions: + type: object + description: Flags that denote which diagnostics to include for a Hive Virtual Warehouse. + x-form-factors: public + properties: + includeHms: + type: boolean + default: false + description: Include the HMS diagnostics. + includeErrordump: + type: boolean + default: false + description: Include the error dump. + includeGclogs: + type: boolean + default: false + description: Include the Garbage collector logs. + includeHeapdump: + type: boolean + default: false + description: Include the heap-dump. + includeLogs: + type: boolean + default: false + description: Include logs. + includeComputeResourceInfo: + type: boolean + default: false + description: Include compute resource info. + includeKubernetesResourceInfo: + type: boolean + default: false + description: Include Kubernetes resource info. + ImpalaCreateDiagnosticDataDownloadOptions: + type: object + description: Flags that denote which diagnostics to include for an Impala Virtual Warehouse. + x-form-factors: public + properties: + includeHms: + type: boolean + default: false + description: Include the HMS diagnostics. + includeMinidump: + type: boolean + default: false + description: Include the minidump. + includeProfile: + type: boolean + default: false + description: Include the profile. + includeSidecar: + type: boolean + default: false + description: Include the sidecar diagnostics. + includeWorkload: + type: boolean + default: false + description: Include the workload diagnostics. + includeKubernetesResourceInfo: + type: boolean + default: false + description: Include kubernetes resource info. + DBCCreateDiagnosticDataDownloadOptions: + type: object + description: Flags that denote which diagnostics to include for a Database Catalog. + x-form-factors: public + properties: + includeKubernetesResourceInfo: + type: boolean + default: false + description: Include kubernetes resource info. + ClusterCreateDiagnosticDataDownloadOptions: + type: object + description: Flags that denote which diagnostics to include for the cluster. + x-form-factors: public + properties: + includeClusterInfo: + type: boolean + default: false + description: Include cluster info. + includeIstioSystem: + type: boolean + default: false + description: Include Istio system. + includeSharedServices: + type: boolean + default: false + description: Include shared services. + includeKubeSystem: + type: boolean + default: false + description: Include Kube system. + ClusterSummaryResponse: + type: object + description: A Cloudera Data Warehouse cluster. + properties: + crn: + type: string + description: The CRN of the cluster. + id: + type: string + description: The ID of the cluster. + environmentCrn: + type: string + description: The CRN of the environment where the cluster is located. + name: + type: string + description: Name of the cluster (same as the name of the environment). + status: + type: string + description: 'Status of the cluster. Possible values are: Creating, Created, Accepted, Starting, Running, Stopping, Stopped, Updating, PreUpdate, Upgrading, PreUpgrade, Restarting, Deleting, Waiting, Failed, Error.' + creator: + $ref: '#/definitions/ActorResponse' + description: The creator of the cluster. + creationDate: + type: string + format: date-time + description: Creation date of cluster. + cloudPlatform: + type: string + description: The cloud platform of the environment that was used to create this cluster. + enableStorageRoles: + type: boolean + description: Enable Storage Roles checkbox was checked when creating/activating this cluster. + x-form-factors: public + x-entitlement: CDW_STORAGE_ROLES + enableSpotInstances: + x-form-factors: public + type: boolean + description: Denotes whether the spot instances have been enabled for the cluster. This value is only available for AWS and Azure clusters. + computeInstanceTypes: + type: array + items: + type: string + description: Compute instance types that the environment is restricted to use. This affects the creation of the virtual warehouses where this restriction will apply. + additionalInstanceTypes: + type: array + items: + type: string + description: Additional (fallback) instance types listed in their priority order. They are used instead of the primary compute instance type in case it is unavailable. Since additional instance types are not supported for Azure, this is always empty for it. + awsOptions: + $ref: '#/definitions/AwsOptionsResponse' + description: Response object of AWS related cluster options. + x-form-factors: public + azureOptions: + $ref: '#/definitions/AzureOptionsResponse' + description: Response object of Azure related cluster options. + x-form-factors: public + DataVisualizationSummary: + type: object + description: A Cloudera Data Visualization. + properties: + id: + type: string + description: The ID of the Cloudera Data Visualization. + name: + type: string + description: The name of the Cloudera Data Visualization. + status: + type: string + description: 'Status of the Cloudera Data Visualization. Possible values are: Creating, Created, Accepted, Starting, Running, Stopping, Stopped, Updating, PreUpdate, Upgrading, PreUpgrade, Restarting, Deleting, Waiting, Failed, Error.' + imageVersion: + type: string + description: Current image version of the Cloudera Data Visualization + creatorCrn: + type: string + description: The CRN of the user who created the Cloudera Data Visualization + size: + type: string + description: The template size for the Cloudera Data Visualization + DbcSummary: + type: object + description: A Database Catalog. + properties: + crn: + type: string + description: The CRN of the Database Catalog. + id: + type: string + description: The ID of the Database Catalog. + name: + type: string + description: The name of the Database Catalog. + status: + type: string + description: 'Status of the Database Catalog. Possible values are: Creating, Created, Accepted, Starting, Running, Stopping, Stopped, Updating, PreUpdate, Upgrading, PreUpgrade, Restarting, Deleting, Waiting, Failed, Error.' + statusChangedAt: + type: string + format: date-time + description: Timestamp of the last status change of the Database Catalog. + creator: + $ref: '#/definitions/ActorResponse' + description: The creator of the Database Catalog. + creationDate: + type: string + format: date-time + description: Creation date of Database Catalog. + VwSummary: + type: object + description: A Virtual Warehouse. + properties: + crn: + type: string + description: The CRN of the Virtual Warehouse. + id: + type: string + description: The ID of the Virtual Warehouse. + name: + type: string + description: The name of the Virtual Warehouse. + vwType: + description: The type of the Virtual Warehouse. + $ref: '#/definitions/VwType' + dbcId: + type: string + description: ID of Database Catalog that the Virtual Warehouse is attached to. + status: + type: string + description: 'Status of the Virtual Warehouse. Possible values are: Creating, Created, Accepted, Starting, Running, Stopping, Stopped, Updating, PreUpdate, Upgrading, PreUpgrade, Restarting, Deleting, Waiting, Failed, Error.' + statusChangedAt: + type: string + format: date-time + description: Timestamp of the last status change of the Virtual Warehouse. + creator: + $ref: '#/definitions/ActorResponse' + description: The creator of the Virtual Warehouse. + creationDate: + type: string + format: date-time + description: Creation date of Virtual Warehouse. + configId: + type: string + description: ID of the configuration. + cdhVersion: + type: string + description: CDH image version. + availabilityZone: + type: string + description: Availability zone in which the Virtual Warehouse is running. + endpoints: + type: object + description: Endpoints for accessing the Virtual Warehouse. + properties: + hiveJdbc: + type: string + description: JDBC URL for Hive Virtual Warehouses. + impalaJdbc: + type: string + description: JDBC URL for Impala Virtual Warehouses. + impalaFENGJdbc: + type: string + description: FENG JDBC URL for Impala Virtual Warehouses. + impalaShell: + type: string + description: Command to use impala-shell for Impala Virtual Warehouses. + hue: + type: string + description: URL of Hue for both Hive and Impala Virtual Warehouses. + das: + type: string + description: URL of Data Analytics Studio for Hive Virtual Warehouses. + hostname: + type: string + description: Hostname for clients to use when connecting to the VW. + port: + type: integer + format: int32 + description: Port for clients to use when connecting to the VW. + jwtConnectionString: + type: string + description: Generic semi-colon delimited list of key-value pairs that contain all necessary information for clients to construct a connection to this Virtual Warehouse using JWTs as the authentication method. + jwtTokenGenUrl: + type: string + description: When platform JWT authentication is enabled, contains a URL where a JWT token can be generated by the CDP JWT token provider. + supportedAuthMethods: + type: object + description: Describes which authentication methods are supported on this Virtual Warehouse. + required: + - ldap + - jwt + - sso + properties: + ldap: + type: boolean + description: Indicates if username/password access to this Virtual Warehouse is supported. + jwt: + type: boolean + description: Indicates if JWT auth is supported on this Virtual Warehouse. + sso: + type: boolean + description: Indicates if SSO auth is supported on this Virtual Warehouse. + jwtAuth: + type: object + description: Details related to JWT Authentication settings on this Virtual Warehouse. + properties: + provider: + type: string + description: If JWT auth is enabled on the Virtual Warehouse, describes the type of provider. If set to "CDP", then the CDP JWT auth provider is configured. If set to "CUSTOM", then another JWT provider is configured. If empty or missing, then JWT auth is not enabled on this Virtual Warehouse. + tags: + type: array + description: Tags associated with the resources. + items: + $ref: '#/definitions/TagResponse' + compactor: + type: boolean + description: Denotes whether the Hive Virtual Warehouse is a compactor or not. + viz: + type: boolean + description: Denotes whether the Virtual Warehouse has Data Visualisation or not. + enableUnifiedAnalytics: + type: boolean + description: Denotes whether the Unified Analytics is enabled. + autoscalingOptions: + description: The current settings stored for autoscaling. + $ref: '#/definitions/AutoscalingOptionsResponse' + impalaOptions: + description: Current Impala settings. + $ref: '#/definitions/ImpalaOptionsResponse' + impalaHaSettingsOptions: + description: Current Impala High Availability settings. + $ref: '#/definitions/ImpalaHASettingsOptionsResponse' + queryIsolationOptions: + description: The current settings stored for query-isolation. + $ref: '#/definitions/QueryIsolationOptionsResponse' + replicaStatus: + x-form-factors: public,private + description: Status information on the current state of replicas in the virtual warehouse. + $ref: '#/definitions/ReplicaStatus' + TagResponse: + description: A key/value pair attached to some resources. + type: object + required: + - key + - value + properties: + key: + type: string + description: The tag's name. + value: + type: string + description: The associated value of the tag. + DescribeDbcConfigRequest: + type: object + description: Request object for the describeDbcConfig method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of the cluster. + dbcId: + type: string + description: ID of the Database Catalog. + DescribeDbcConfigResponse: + type: object + description: Response object for the describeDbcConfig method. + properties: + config: + description: The Database Catalog configuration. + $ref: '#/definitions/ServiceConfigResp' + UpdateDbcConfigRequest: + type: object + description: Request object for the updateDbcConfig method. + required: + - clusterId + - dbcId + - component + properties: + clusterId: + type: string + description: ID of the cluster. + dbcId: + type: string + description: ID of the Database Catalog. + component: + type: string + description: Database Catalog configuration component to update. + enum: + - DasEventProcessor + - DatabusProducer + - HueQueryProcessor + - Metastore + set: + description: Configuration files of the selected component to update. + type: array + items: + type: object + $ref: '#/definitions/ConfigBlock' + ConfigBlock: + type: object + description: Set values for a configuration file of a service. + properties: + configFile: + type: string + x-no-param-file: true + description: Configuration file to update. + keyValue: + type: object + description: Set values for key-value format configuration file e.g. ENV, PROPERTIES, FLAGFILE, HADOOP_XML typed file. + additionalProperties: + type: string + content: + description: Set values for text format configuration file e.g. TEXT, JSON, YAML, XML typed file. + type: string + UpdateDbcConfigResponse: + type: object + description: Response object for the updateDbcConfig method. + DescribeVwConfigRequest: + type: object + description: Request object for the describeVwConfig method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of the cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + DescribeVwConfigResponse: + type: object + description: Response object for the describeVwConfig method. + properties: + config: + description: The Virtual Warehouse configuration. + $ref: '#/definitions/ServiceConfigResp' + DescribeConfigRequest: + type: object + description: Request object for the describeConfig method. + required: + - clusterId + - configId + properties: + clusterId: + type: string + description: ID of the cluster. + configId: + type: string + description: ID of the service (Database Catalog or Virtual Warehouse). + DescribeConfigResponse: + type: object + description: Response object for the describeConfig method. + properties: + config: + description: The service configuration. + $ref: '#/definitions/ServiceConfigResp' + DescribeConfigDiffRequest: + type: object + description: Request object for the describeConfigDiff method. + required: + - clusterId + - fromConfigId + - toConfigId + properties: + clusterId: + type: string + description: ID of the cluster. + fromConfigId: + type: string + description: ID of the old service configuration. + toConfigId: + type: string + description: ID of the new service configuration. + DescribeConfigDiffResponse: + type: object + description: Response object for the describeConfigDiff method. + properties: + config: + description: The service configuration. + $ref: '#/definitions/ServiceConfigDiff' + ListDbcConfigsRequest: + type: object + description: Request object for the listDbcConfigs method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of the Database Catalog's cluster. + dbcId: + type: string + description: ID of the Database Catalog. + ListDbcConfigsResponse: + type: object + description: Response object for the listDbcConfigs method. + properties: + configHistory: + type: array + description: Configuration history of a service. + items: + $ref: '#/definitions/ConfigHistoryItem' + ListVwConfigsRequest: + type: object + description: Request object for the listVwConfigs method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + ListVwConfigsResponse: + type: object + description: Response object for the listVwConfigs method. + properties: + configHistory: + type: array + description: Configuration history of a service. + items: + $ref: '#/definitions/ConfigHistoryItem' + UpdateVwRequest: + type: object + description: Request object for the updateVw method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: ID of the Virtual Warehouse. + config: + description: The service configuration to update the VW with. This will be applied on top of the existing configuration so there's no need to list configurations that stay the same. + $ref: '#/definitions/ServiceConfigReq' + autoscaling: + description: Autoscaling settings for the Virtual Warehouse. + $ref: '#/definitions/AutoscalingOptionsUpdateRequest' + impalaHaSettings: + description: High Availability settings update for the Impala Virtual Warehouse. + $ref: '#/definitions/ImpalaHASettingsUpdateRequest' + queryIsolationOptions: + description: Query isolation settings for Hive Virtual Warehouses. + $ref: '#/definitions/QueryIsolationOptionsRequest' + platformJwtAuth: + type: boolean + x-nullable: true + description: Value of 'true' automatically configures the Virtual Warehouse to support JWTs issues by the CDP JWT token provider. Value of 'false' does not enable JWT auth on the Virtual Warehouse. If this field is not specified, it defaults to 'false'. + UpdateVwResponse: + type: object + description: Response object for the updateVw method. + UpdateDbcRequest: + type: object + description: Request object for the updateDbc method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: ID of the Database Catalog's cluster. + dbcId: + type: string + description: ID of the Database Catalog. + config: + description: The service configuration to update the DBC with. This will be applied on top of the existing configuration so there's no need to list configurations that stay the same. + $ref: '#/definitions/ServiceConfigReq' + UpdateDbcResponse: + type: object + description: Response object for the updateDbc method. + ConfigHistoryItem: + type: object + description: An entry in the configuration history of a service. + properties: + serviceId: + type: string + description: DBC or VW ID that this configuration belongs to. + configId: + type: string + description: ID of the configuration. + from: + type: string + format: date-time + description: When was this configuration used from. + ConfigContentResp: + type: object + description: Contents of a ConfigBlock. + properties: + keyValues: + type: object + description: Key-value type configurations. + additionalProperties: + description: Key-value type configurations. + type: string + text: + type: string + description: Text type configuration. + json: + type: string + description: JSON type configuration. + ConfigContentReq: + type: object + description: Contents of a ConfigBlock. + properties: + keyValues: + type: object + description: Key-value type configurations. + additionalProperties: + description: Key-value type configurations. + type: string + text: + type: string + description: Text type configuration. + json: + type: string + description: JSON type configuration. + StringDiff: + type: object + description: Difference between two strings. + required: + - from + - to + properties: + from: + type: string + description: The old value. + to: + type: string + description: The new value. + KeyValuesDiff: + type: object + description: Different between keyValues of two ConfigContents. + properties: + added: + type: object + description: Keys that are only present in the new configuration. + additionalProperties: + type: string + description: Keys that are only present in the new configuration. + removed: + type: object + description: Keys that are only present in the old configuration. + additionalProperties: + type: string + description: Keys that are only present in the old configuration. + same: + type: object + description: Keys that are present in both configurations. + additionalProperties: + description: Keys that are present in both configurations. + type: string + changed: + type: object + description: Keys with different values. + additionalProperties: + description: Keys with different values. + $ref: '#/definitions/StringDiff' + VizConfig: + type: object + description: Configurations for a Cloudera Data Visualization + properties: + userGroups: + type: array + items: + type: string + description: User groups to allow user access to Data Visualization for selected users + adminGroups: + type: array + items: + type: string + description: Admin groups to allow configuration access to Data Visualization for selected users + ConfigContentDiff: + type: object + description: Difference between two ConfigContents. + properties: + keyValues: + description: Different between keyValues of two ConfigContents. + $ref: '#/definitions/KeyValuesDiff' + ConfigBlockResp: + type: object + description: A piece of configuration stored in the same place (e.g. same file or environment variables). + properties: + id: + type: string + description: ID of the ConfigBlock. Unique within an ApplicationConfig. + format: + type: string + description: Format of ConfigBlock. + enum: + - HADOOP_XML + - PROPERTIES + - TEXT + - JSON + - BINARY + - ENV + - FLAGFILE + content: + description: Contents of a ConfigBlock. + $ref: '#/definitions/ConfigContentResp' + ConfigBlockReq: + type: object + description: A piece of configuration stored in the same place (e.g. same file or environment variables). + required: + - id + - format + - content + properties: + id: + type: string + description: ID of the ConfigBlock. Unique within an ApplicationConfig. + format: + type: string + description: Format of ConfigBlock. + enum: + - HADOOP_XML + - PROPERTIES + - TEXT + - JSON + - BINARY + - ENV + - FLAGFILE + content: + description: Contents of a ConfigBlock. + $ref: '#/definitions/ConfigContentReq' + ConfigBlockDiff: + type: object + description: Differences between two ConfigBlocks. + properties: + id: + type: string + description: ID of the ConfigBlock. + contentDiff: + description: Differences between the contents. + $ref: '#/definitions/ConfigContentDiff' + ConfigBlocksDiffs: + type: object + description: Differences between two sets of ConfigBlocks. + required: + - isChanged + properties: + isChanged: + type: boolean + description: Has any of the config blocks changed? + added: + type: array + description: Config blocks that are only present in the new configuration. + items: + $ref: '#/definitions/ConfigBlockResp' + removed: + type: array + description: Config blocks that are only present in the old configuration. + items: + $ref: '#/definitions/ConfigBlockResp' + same: + type: array + description: Config blocks that are the same in both configurations. + items: + $ref: '#/definitions/ConfigBlockResp' + changed: + type: array + description: Config blocks that are different between the two configurations. + items: + $ref: '#/definitions/ConfigBlockDiff' + ApplicationConfigResp: + type: object + description: Configurations for an application inside a service. + properties: + configBlocks: + type: array + description: List of ConfigBlocks for the application. + items: + $ref: '#/definitions/ConfigBlockResp' + ApplicationConfigReq: + type: object + description: Configurations for an application inside a service. + properties: + configBlocks: + type: array + description: List of ConfigBlocks for the application. + items: + $ref: '#/definitions/ConfigBlockReq' + ApplicationConfigDiff: + type: object + description: Differences between two ApplicationConfigs. + required: + - isChanged + properties: + isChanged: + type: boolean + description: Has any of the configurations changed? + configBlocksDiffs: + description: Differences between the two sets of ConfigBlocks. + $ref: '#/definitions/ConfigBlocksDiffs' + ServiceConfigResp: + type: object + description: Configurations for a service (DBC or VW) + properties: + commonConfigs: + description: Configurations that are applied to every application in the service. + $ref: '#/definitions/ApplicationConfigResp' + applicationConfigs: + type: object + description: Application specific configurations. + additionalProperties: + description: Application specific configurations. + $ref: '#/definitions/ApplicationConfigResp' + ldapGroups: + type: array + items: + type: string + description: List of LDAP Groupnames to be enabled for auth. + enableSSO: + type: boolean + description: Should SSO be enabled for this VW. This cannot be changed later. + ServiceConfigReq: + type: object + description: Configurations for a service (DBC or VW) + properties: + commonConfigs: + description: Configurations that are applied to every application in the service. + $ref: '#/definitions/ApplicationConfigReq' + applicationConfigs: + type: object + description: Application specific configurations. + additionalProperties: + description: Application specific configurations. + $ref: '#/definitions/ApplicationConfigReq' + ldapGroups: + type: array + items: + type: string + description: LDAP Groupnames to be enabled for auth. + enableSSO: + type: boolean + description: Should SSO be enabled for this VW. + ServiceConfigDiff: + type: object + description: Differences between two service configurations. + properties: + isChanged: + type: boolean + description: Has any of the configurations changed? + commonConfigsDiff: + description: Differences between the common configurations. + $ref: '#/definitions/ApplicationConfigDiff' + applicationConfigsDiffs: + type: object + description: Differences between the application specific configurations. + additionalProperties: + description: Differences between the application specific configurations. + $ref: '#/definitions/ApplicationConfigDiff' + StartVwRequest: + type: object + description: The request object for the startVw method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: The ID of the Virtual Warehouse cluster. + vwId: + type: string + description: The ID of the Virtual Warehouse. + StartVwResponse: + type: object + description: The response object for the startVw method. + SuspendVwRequest: + type: object + description: The request object for the suspendVw method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: The ID of the Virtual Warehouse cluster. + vwId: + type: string + description: The ID of the Virtual Warehouse to suspend. + SuspendVwResponse: + type: object + description: The response object for the suspendVw method. + AddUserRequest: + type: object + description: Request object for the addUser method. + required: + - clusterId + - userId + properties: + clusterId: + type: string + description: The ID of the cluster to which the user must be added. + userId: + type: string + description: A cloud based unique identifier of the user (ARN for AWS users, groupId for Azure users). + AddUserResponse: + type: object + description: Response object for the addUser method. + DeleteUserRequest: + type: object + description: Request object for the deleteUser method. + required: + - clusterId + - userId + properties: + clusterId: + type: string + description: The ID of the cluster from which the user must be deleted. + userId: + type: string + description: A cloud based unique identifier of the user (ARN for AWS users, groupId for Azure users). + DeleteUserResponse: + type: object + description: Response object for the deleteUser method. + ListUsersRequest: + type: object + description: Request object for the listUsers method. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster for which the users must be retrieved. + ListUsersResponse: + type: object + description: Response object for the listUsers method. + properties: + users: + type: array + items: + $ref: '#/definitions/CloudUserReference' + description: The list of users allowed to access the given cluster. + CloudUserReference: + type: object + description: Cloud user definition object. + required: + - userId + properties: + userId: + type: string + description: A cloud based unique identifier of the user (ARN for AWS users, groupId for Azure users). + ListLatestVersionsResponse: + type: object + description: Response object of the listLatestVersions call. + properties: + idToLatestVersionsMap: + type: object + description: Map containing the latest image versions for each Virtual Warehouse found in the cluster. + additionalProperties: + type: string + ListLatestVersionsRequest: + type: object + description: Request object of the listLatestVersions call. + required: + - clusterId + properties: + clusterId: + type: string + description: The ID of the cluster from which the version information must be collected. + UpgradeDbcRequest: + type: object + description: Request object for the upgradeDbc method. + required: + - clusterId + - dbcId + - imageVersion + properties: + clusterId: + type: string + description: The ID of the Database Catalog's cluster. + dbcId: + type: string + description: The ID of the Database Catalog. + imageVersion: + type: string + description: The version to which the Database Catalog should be upgraded. + UpgradeDbcResponse: + type: object + description: Response object of the upgradeDbc call. + properties: + status: + type: string + description: 'The upgrade status. Possible values are: Upgrading, Error, Failed.' + message: + type: string + description: The Upgrade message. + timedOut: + type: boolean + description: True if the upgrade timed out, false or omitted otherwise. + serviceUnhealthy: + type: boolean + description: True, if the service is in unhealthy state, false or omitted otherwise. + UpgradeVwRequest: + type: object + description: Request object for the upgradeVw method. + required: + - clusterId + - vwId + - dbcId + - imageVersion + properties: + clusterId: + type: string + description: The ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: The ID of the Virtual Warehouse. + dbcId: + type: string + description: The ID of Database Catalog that the Virtual Warehouse is attached to. + imageVersion: + type: string + description: The version to which the Virtual Warehouse should be upgraded. + UpgradeVwResponse: + type: object + description: Response object for the upgradeVw method. + properties: + status: + type: string + description: 'The upgrade status. Possible values are: Upgrading, Error, Failed.' + message: + type: string + description: The upgrade message. + timedOut: + type: boolean + description: True if the upgrade timed out, false or omitted otherwise. + serviceUnhealthy: + type: boolean + description: True, if the service is in unhealthy state, false or omitted otherwise. + GetUpgradeVwVersionsRequest: + type: object + description: Request object for the getUpgradeVwVersions method. + required: + - clusterId + - vwId + properties: + clusterId: + type: string + description: The ID of the Virtual Warehouse's cluster. + vwId: + type: string + description: The ID of the Virtual Warehouse. + GetUpgradeVwVersionsResponse: + type: object + description: Response object for the getUpgradeVwVersions method. + properties: + latestVersion: + type: string + description: The latest available CDW version. + compatibleVersion: + type: string + description: The latest compatible CDW version. + latestCDPVersion: + type: string + description: The latest available CDP version. + compatibleCDPVersion: + type: string + description: The latest compatible CDP version. + GetUpgradeDbcVersionsRequest: + type: object + description: Request object for the getUpgradeDbcVersions method. + required: + - clusterId + - dbcId + properties: + clusterId: + type: string + description: The ID of the Database Catalog's cluster. + dbcId: + type: string + description: The ID of the Database Catalog. + GetUpgradeDbcVersionsResponse: + type: object + description: Response object for the getUpgradeDbcVersions method. + properties: + latestVersion: + type: string + description: The latest available CDW version. + compatibleVersion: + type: string + description: The latest compatible CDW version. + latestCDPVersion: + type: string + description: The latest available CDP version. + compatibleCDPVersion: + type: string + description: The latest compatible CDP version. + HealthCheckRequest: + type: object + description: Request object for the healthCheck method. + HealthCheckResponse: + type: object + description: Response object for the healthCheck method. + properties: + message: + type: string + description: HealthCheck status text. + CreateBackupRequest: + type: object + x-form-factors: private + description: Request object for the create backup request. + properties: + backupName: + type: string + description: Specified name for the backup. If not set, the name will be blank. + namespaceName: + type: string + description: Namespace of the potential candidate for backup. If not set, all of the Data Warehouse namespaces will be backed up. + CreateBackupResponse: + type: object + x-form-factors: private + description: Response object for the create backup request. + required: + - backupCrn + properties: + backupCrn: + type: string + description: The CRN the backup. + DeleteBackupRequest: + type: object + x-form-factors: private + description: Request object for the delete backup request. + required: + - backupCrn + properties: + backupCrn: + type: string + description: The CRN of the backup. + DeleteBackupResponse: + type: object + x-form-factors: private + description: Response object for the delete backup request. + required: + - deleteBackupCrn + properties: + deleteBackupCrn: + type: string + description: The CRN of the delete backup custom resource. + DescribeBackupRequest: + type: object + x-form-factors: private + description: Request object for the describe backup request. + required: + - backupCrn + properties: + backupCrn: + type: string + description: The CRN of the backup. + DescribeBackupResponse: + type: object + x-form-factors: private + description: Response object for the describe backup request. + required: + - backup + properties: + backup: + $ref: '#/definitions/Backup' + description: The backup details. + ListBackupsRequest: + type: object + x-form-factors: private + description: Request object for the list backups request. + properties: + backupName: + type: string + description: Specified name for the backup. If not present, this filter is not used. + jobStates: + type: array + items: + type: string + description: The job states we need to filter by. If not present, this filter is not used. + ListBackupsResponse: + type: object + x-form-factors: private + description: Response object for the list backups request. + required: + - backups + properties: + backups: + type: array + description: List of backups. + items: + $ref: '#/definitions/SimpleBackup' + Message: + type: object + x-form-factors: private + description: The message object used to display warnings and errors during DRS workflows + properties: + text: + type: string + description: The text message of the warning/error. + timestamp: + type: string + description: The time when the warning/error is hit. + namespace: + type: string + description: The namespace that has the warning/error. + SimpleBackup: + type: object + x-form-factors: private + description: A simple backup entry for listBackup usage + properties: + backupCrn: + type: string + description: The CRN of the backup. + backupName: + type: string + description: The display name of the backup. + backupCreationTime: + type: string + description: The time when the backup was created. + Backup: + type: object + x-form-factors: private + description: Backup entry + properties: + backupCrn: + type: string + description: The CRN of the backup. + backupCreationTime: + type: string + description: The time when the backup was created. + backupName: + type: string + description: The display name of the backup. + backupUpdatedTime: + type: string + description: The time when the backup was updated. + backupPhase: + type: string + description: The phase of the backup operation. + backupJobState: + type: string + description: The current state of the backup job. + backupJob: + type: string + description: The backup job name. + includedNamespaces: + type: array + description: The list of namespaces to be included in backup. + items: + type: string + warnings: + type: array + description: The warnings from backup job. + items: + $ref: '#/definitions/Message' + errors: + type: array + description: The errors from backup job. + items: + $ref: '#/definitions/Message' + RestoreBackupRequest: + type: object + x-form-factors: private + description: Request object for the restore backup request. + required: + - backupCrn + properties: + backupCrn: + type: string + description: The CRN of the backup. + namespaceNames: + type: array + description: A list of namespaces of the potential candidates for restore. If not set, all of the Data Warehouse namespaces within the backup CRN will be restored. + items: + type: string + RestoreBackupResponse: + type: object + x-form-factors: private + description: Response object for the restore backup request. + required: + - restoreCrn + properties: + restoreCrn: + type: string + description: The CRN of the restore. + DescribeRestoreRequest: + type: object + x-form-factors: private + description: Request object for the describe restore request. + required: + - restoreCrn + properties: + restoreCrn: + type: string + description: The CRN of the restore. + DescribeRestoreResponse: + type: object + x-form-factors: private + description: Response object for the describe restore request. + required: + - restore + properties: + restore: + $ref: '#/definitions/Restore' + description: The restore details. + ListRestoresRequest: + type: object + x-form-factors: private + description: Request object for the list restores request. + properties: + jobStates: + type: array + items: + type: string + description: The job states to filter by. + backupCrn: + type: string + description: CRN of the backup. + ListRestoresResponse: + type: object + x-form-factors: private + description: Response object for the list restores request. + required: + - restores + properties: + restores: + type: array + description: List of restores for the control plane. + items: + $ref: '#/definitions/SimpleRestore' + SimpleRestore: + type: object + x-form-factors: private + description: A simple Restore entry for listRestore Usage + properties: + restoreCrn: + type: string + description: The CRN of the restore. + backupCrn: + type: string + description: The CRN of the backup. + restoreCreationTime: + type: string + description: The time when the restore was created. + includedNamespaces: + type: array + description: The list of namespaces to be included in restore. + items: + type: string + Restore: + type: object + x-form-factors: private + description: Restore entry + properties: + restoreCrn: + type: string + description: The CRN of the restore. + backupCrn: + type: string + description: The CRN of the backup. + restoreCreationTime: + type: string + description: The time when the restore was created. + restoreUpdatedTime: + type: string + description: The updated time of the restore. + excludedResources: + type: array + description: The list of resources to be excluded in restore. + items: + type: string + includedNamespaces: + type: array + description: The list of namespaces to be included in restore. + items: + type: string + successConditions: + type: array + description: The list of conditions to be met for a successful restore. + items: + type: string + restorePhase: + type: string + description: The phase of the restore operation. + restoreJobState: + type: string + description: The current state of the restore job. + restoreJob: + type: string + description: The restore job name. + warnings: + type: array + description: The warnings from restore job. + items: + $ref: '#/definitions/Message' + errors: + type: array + description: The errors from restore job. + items: + $ref: '#/definitions/Message' + GetLogsRequest: + type: object + x-form-factors: private + description: Request object for the get logs request. + required: + - crn + properties: + crn: + type: string + description: The CRN of the backup, restore or backup deletion. + GetLogsResponse: + type: object + x-form-factors: private + description: Response object for the get logs request. + required: + - logs + properties: + logs: + type: string + description: Contains the logs of the operation. + x-skip-logging: true + ListBackupEntitiesRequest: + type: object + x-form-factors: private + description: Request object for the list backup entities request. + ListBackupEntitiesResponse: + type: object + x-form-factors: private + description: Response object for the list backup entities request. + required: + - items + properties: + items: + type: array + description: A list of available namespaces for backup, corresponding to the CDW entities. + items: + type: string +x-audit: true diff --git a/cdp-sdk-go/resources/swagger/environments.yaml b/cdp-sdk-go/resources/swagger/environments.yaml new file mode 100644 index 00000000..94a669a4 --- /dev/null +++ b/cdp-sdk-go/resources/swagger/environments.yaml @@ -0,0 +1,4875 @@ +swagger: '2.0' +x-endpoint-name: environments2 +x-display-name: environments +x-products: CDP +x-form-factors: public,private +x-cdp-releases: PUBLIC +x-audit: true +info: + version: 0.9.87 (BETA) + title: Cloudera Environments Service + license: + name: Apache 2.0 + description: Cloudera Environments Service is a web service that manages cloud provider access. + termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html +schemes: + - https +consumes: + - application/json +produces: + - application/json +paths: + /api/v1/environments2/getCredentialPrerequisites: + post: + summary: This API provides the credential prerequisites for the given cloud provider. + description: Provides the the credential prerequisites for the given cloud provider. + operationId: getCredentialPrerequisites + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetCredentialPrerequisitesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetCredentialPrerequisitesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createAWSEnvironment: + post: + summary: Creates a new AWS environment by providing the cloud provider access and network information. A FreeIPA server will be automatically provisioned when an environment is created. + description: Creates a new AWS environment. + operationId: createAWSEnvironment + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAWSEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAWSEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createAzureEnvironment: + post: + summary: Creates a new Azure environment by providing the cloud provider access and network information. A FreeIPA server will be automatically provisioned when an environment is created. + description: Creates a new Azure environment. + operationId: createAzureEnvironment + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAzureEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAzureEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createGCPEnvironment: + post: + summary: Creates a new GCP environment by providing the cloud provider access and network information. A FreeIPA server will be automatically provisioned when an environment is created. + description: Creates a new GCP environment. + operationId: createGCPEnvironment + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateGCPEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateGCPEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createPrivateEnvironment: + post: + summary: Creates a new Private Cloud environment by providing the Cloudera Manager address and credentials. + description: Creates a new Private Cloud environment. + operationId: createPrivateEnvironment + x-form-factors: private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreatePrivateEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreatePrivateEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createAWSCredential: + post: + summary: Creates a new AWS credential that can be attatched to an environment. The credential is used for authorization to provision resources such as compute instances within your cloud provider account. + description: Creates a new AWS credential. + operationId: createAWSCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAWSCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAWSCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createAzureCredential: + post: + summary: Creates a new Azure credential that can be attached to an environment. The credential is used for authorization to provision resources such as compute instances within your cloud provider account. + description: Creates a new Azure credential. + operationId: createAzureCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateAzureCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateAzureCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/updateAzureCredential: + post: + summary: Updates a new certificate based Azure credential that can be attached to an environment. The credential is used for authorization to provision resources such as compute instances within your cloud provider account. + description: Updates a certificate based Azure credential. + operationId: updateAzureCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateAzureCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateAzureCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createGCPCredential: + post: + summary: Creates a new GCP credential that can be attatched to an environment. The credential is used for authorization to provision resources such as compute instances within your cloud provider account. + description: Creates a new GCP credential. + operationId: createGCPCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateGCPCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateGCPCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/changeEnvironmentCredential: + post: + summary: Changes the credential for an environment. + description: Changes the credential for an environment. + operationId: changeEnvironmentCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ChangeEnvironmentCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ChangeEnvironmentCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/updateAzureEncryptionResources: + post: + summary: Update the Azure encryption resources for the environment. + description: Updates the Azure encryption resources for the environment. Enables the SSE with CMK for newly created Azure resources for the existing environment. + operationId: updateAzureEncryptionResources + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateAzureEncryptionResourcesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateAzureEncryptionResourcesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/disableS3Guard: + post: + summary: Disable the S3Guard for an environment. + description: Disables the S3Guard for an environment. + operationId: disableS3Guard + x-mutating: true + x-entitlement: CDP_RAW_S3 + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DisableS3GuardRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DisableS3GuardResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/updateAwsDiskEncryptionParameters: + post: + summary: Update the AWS encryption key ARN for the environment. + description: Updates the AWS encryption key ARN for the environment. Enables the server side encryption with CMK for newly created AWS resources for the existing environment. + operationId: updateAwsDiskEncryptionParameters + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateAwsDiskEncryptionParametersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateAwsDiskEncryptionParametersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/deleteEnvironment: + post: + summary: Deletes an environment. + description: Deletes an environment. + operationId: deleteEnvironment + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/deleteCredential: + post: + summary: Deletes a credential. + description: Deletes a credential. + operationId: deleteCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/listEnvironments: + post: + summary: Lists environments. + description: Lists environments. + operationId: listEnvironments + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListEnvironmentsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListEnvironmentsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/listCredentials: + post: + summary: Lists credentials. + description: Lists credentials. + operationId: listCredentials + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListCredentialsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListCredentialsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/describeEnvironment: + post: + summary: Describes an environment. + description: Describes an environment. + operationId: describeEnvironment + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/syncAllUsers: + post: + summary: Synchronizes environments with all users and groups state with CDP. + description: Synchronizes environments with all users and groups state with CDP. + operationId: syncAllUsers + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SyncAllUsersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SyncAllUsersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/syncUser: + post: + summary: Synchronizes environments with single user to the FreeIPA servers. + description: Synchronizes environments with single user to the FreeIPA servers. + operationId: syncUser + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SyncUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SyncUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/syncStatus: + post: + summary: Returns status of the sync operation for the operation id. + description: Returns status of the sync operation for the operation id. Operation Id should be one of the previously request sync operation. + operationId: syncStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SyncStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SyncStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getEnvironmentUserSyncState: + post: + summary: Returns the user synchronization state for an environment. + description: Returns the user synchronization state for an environment. + operationId: getEnvironmentUserSyncState + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetEnvironmentUserSyncStateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetEnvironmentUserSyncStateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setPassword: + post: + summary: Sets workload user's password and updates into all environments. + description: Deprecated. Use 'iam set-workload-password' command instead. + operationId: setPassword + x-deprecated: true + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetPasswordRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetPasswordResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getRootCertificate: + post: + summary: This API provides contents of public certificate for an environment. + description: This API provides the contents of the root public certificate for an environment. The contents are a base64 encoded blob between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----. This certificate can be imported by end users to establish trust with environment resources. + operationId: getRootCertificate + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetRootCertificateRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetRootCertificateResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getKeytab: + post: + summary: Retrieves a keytab for a user or machine user. + description: Retrieves a keytab for a user or machine user. + operationId: getKeytab + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetKeytabRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetKeytabResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getAutomatedSyncEnvironmentStatus: + post: + summary: Gets the the automated sync status for the environment. + description: Gets the the automated sync status for the environment. + operationId: getAutomatedSyncEnvironmentStatus + x-no-compatibility-guarantee: true + x-entitlement: WORKLOAD_IAM_SYNC + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAutomatedSyncEnvironmentStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAutomatedSyncEnvironmentStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/synchronizeAllEnvironments: + post: + summary: Synchronizes all environments in the calling account. + description: Invokes the automated user sync service to synchronize all environments in the calling account. + operationId: synchronizeAllEnvironments + x-no-compatibility-guarantee: true + x-right: environments/synchronizeAllEnvironments + x-entitlement: WORKLOAD_IAM_SYNC + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SynchronizeAllEnvironmentsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SynchronizeAllEnvironmentsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getIdBrokerMappings: + post: + summary: Gets all ID Broker mappings for an environment. + description: Gets all ID Broker mappings for an environment. + operationId: getIdBrokerMappings + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetIdBrokerMappingsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetIdBrokerMappingsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setIdBrokerMappings: + post: + summary: Sets all ID Broker mappings for an environment. + description: Sets all ID Broker mappings for an environment. Overwrites all existing mappings. + operationId: setIdBrokerMappings + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetIdBrokerMappingsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetIdBrokerMappingsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/syncIdBrokerMappings: + post: + summary: Syncs all ID Broker mappings for an environment. + description: Syncs all ID Broker mappings to all datalake clusters in an environment. + operationId: syncIdBrokerMappings + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SyncIdBrokerMappingsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SyncIdBrokerMappingsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getIdBrokerMappingsSyncStatus: + post: + summary: Gets ID Broker mappings sync status. + description: Gets the status of the most recent ID Broker mappings sync operation, if any. + operationId: getIdBrokerMappingsSyncStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetIdBrokerMappingsSyncStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetIdBrokerMappingsSyncStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/startEnvironment: + post: + summary: Start an environment. + description: Start an environment. + operationId: startEnvironment + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/stopEnvironment: + post: + summary: Stop an environment. + description: Stop an environment. + operationId: stopEnvironment + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StopEnvironmentRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StopEnvironmentResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/checkEnvironmentConnectivity: + post: + summary: Checks connectivity to a new Private Cloud environment by trying to access the Cloudera Manager address with provided credentials. + description: Checks connectivity to a Private Cloud environment. + operationId: checkEnvironmentConnectivity + x-form-factors: private + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CheckEnvironmentConnectivityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CheckEnvironmentConnectivityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/checkDatabaseConnectivity: + post: + summary: Checks Database connectivity based on the input parameters. + description: Checks Database connectivity based on the input parameters. + operationId: checkDatabaseConnectivity + x-form-factors: private + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CheckDatabaseConnectivityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CheckDatabaseConnectivityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/checkKubernetesConnectivity: + post: + summary: Checks connectivity to a Kubernetes address with provided kubeconfig files. + description: Checks connectivity to a Kubernetes address with provided kubeconfig files. + operationId: checkKubernetesConnectivity + x-form-factors: private + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CheckKubernetesConnectivityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CheckKubernetesConnectivityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getFreeipaStatus: + post: + summary: Get the status of the FreeIPA services + description: Gets the status of the FreeIPA nodes services and connectivity. + operationId: getFreeipaStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetFreeipaStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetFreeipaStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/attachFreeIpaRecipes: + post: + summary: Attach recipes to FreeIPA. + description: Attach recipes to FreeIPA. + operationId: attachFreeIpaRecipes + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AttachFreeIpaRecipesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AttachFreeIpaRecipesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/detachFreeIpaRecipes: + post: + summary: Detach recipes from FreeIPA. + description: Detach recipes from FreeIPA. + operationId: detachFreeIpaRecipes + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DetachFreeIpaRecipesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DetachFreeIpaRecipesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/repairFreeipa: + post: + summary: Repairs the FreeIPA nodes. + description: Repairs the FreeIPA nodes if they are in a non working state. + operationId: repairFreeipa + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RepairFreeipaRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RepairFreeipaResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getRepairFreeipaStatus: + post: + summary: Returns status of the repair operation for the operation id. + description: Returns status of the repair operation for the operation id. Operation Id should be one of the previously requested repair operation ids. + operationId: getRepairFreeipaStatus + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetRepairFreeipaStatusRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetRepairFreeipaStatusResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/createProxyConfig: + post: + summary: Creates a new proxy config that can be attatched to an environment. + description: Creates a new proxy config. + operationId: createProxyConfig + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateProxyConfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateProxyConfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/listProxyConfigs: + post: + summary: Lists proxy configs. + description: Lists proxy configs. + operationId: listProxyConfigs + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListProxyConfigsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListProxyConfigsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/deleteProxyConfig: + post: + summary: Deletes a proxy config. + description: Deletes a proxy config. + operationId: deleteProxyConfig + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteProxyConfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteProxyConfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setTelemetryFeatures: + post: + summary: Configure environment level telemetry feature setting. + description: Configure environment level telemetry feature setting. + operationId: setTelemetryFeatures + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetTelemetryFeaturesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetTelemetryFeaturesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getEnvironmentSetting: + post: + x-form-factors: private + summary: Read a configuration setting from the environment service. + description: Read a configuration setting from the environment service. + operationId: getEnvironmentSetting + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetEnvironmentSettingRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetEnvironmentSettingResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setEnvironmentSetting: + post: + x-form-factors: private + summary: Read a configuration setting from the environment service. + description: Read a configuration setting from the environment service. + operationId: setEnvironmentSetting + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetEnvironmentSettingRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetEnvironmentSettingResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setAccountTelemetry: + post: + summary: Set account level telemetry settings. (telemetry features and anonymization rules) + description: Set account level telemetry settings. (telemetry features and anonymization rules) + operationId: setAccountTelemetry + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetAccountTelemetryRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetAccountTelemetryResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getAccountTelemetry: + post: + summary: Get account level telemetry settings. (telemetry features and anonymization rules) + description: Get account level telemetry settings. (telemetry features and anonymization rules) + operationId: getAccountTelemetry + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAccountTelemetryRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAccountTelemetryResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getAccountTelemetryDefault: + post: + summary: Get default account level telemetry settings. Helps to set back the default values. + description: Get default account level telemetry settings. Helps to set back the default values. + operationId: getAccountTelemetryDefault + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAccountTelemetryDefaultRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAccountTelemetryDefaultResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/testAccountTelemetryRules: + post: + summary: Test anonymization rules (for account telemetry) against text input. + description: Test anonymization rules (for account telemetry) against text input. + operationId: testAccountTelemetryRules + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/TestAccountTelemetryRulesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/TestAccountTelemetryRulesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getFreeipaLogDescriptors: + post: + summary: Gather log descriptors that are used for diagnostics collection. + description: Gather log descriptors that are used for diagnostics collection. + operationId: getFreeipaLogDescriptors + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetFreeipaLogDescriptorsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetFreeipaLogDescriptorsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/collectFreeipaDiagnostics: + post: + summary: Start FreeIPA diagnostics collection + description: Start FreeIPA diagnostics collection + operationId: collectFreeipaDiagnostics + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CollectFreeipaDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CollectFreeipaDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/listFreeipaDiagnostics: + post: + summary: List recent FreeIPA diagnostics collections + description: List recent FreeIPA diagnostics collection + operationId: listFreeipaDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListFreeipaDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListFreeipaDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/cancelFreeipaDiagnostics: + post: + summary: Cancel running FreeIPA diagnostics collections + description: Cancel running FreeIPA diagnostics collection + operationId: cancelFreeipaDiagnostics + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CancelFreeipaDiagnosticsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CancelFreeipaDiagnosticsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/getAuditCredentialPrerequisites: + post: + summary: This API provides the audit credential prerequisites for the given cloud provider. + description: Provides the the audit credential prerequisites for the given cloud provider. + operationId: getAuditCredentialPrerequisites + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAuditCredentialPrerequisitesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAuditCredentialPrerequisitesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/listAuditCredentials: + post: + summary: Lists audit credentials. + description: Lists audit credentials. + operationId: listAuditCredentials + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListAuditCredentialsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListAuditCredentialsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setAWSAuditCredential: + post: + summary: Creates or updates the AWS audit credential for the account. The credential is used for authorization to archive audit events to your cloud storage. + description: Creates or updates the AWS audit credential for the account. The response will only contain details appropriate to AWS. + operationId: setAWSAuditCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetAWSAuditCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetAWSAuditCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setAzureAuditCredential: + post: + summary: Creates or updates the Azure audit credential for the account. The credential is used for authorization to archive audit events to your cloud storage. + description: Creates or updates the Azure audit credential for the account. The response will only contain details appropriate to Azure. + operationId: setAzureAuditCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetAzureAuditCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetAzureAuditCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/deleteAuditCredential: + post: + summary: Deletes an audit credential. + description: Deletes an audit credential. + operationId: deleteAuditCredential + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteAuditCredentialRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteAuditCredentialResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setEndpointAccessGateway: + post: + summary: Sets endpoint access gateway settings for the environment. + description: Sets endpoint access gateway settings for the environment. + operationId: setEndpointAccessGateway + x-mutating: true + x-entitlement: CDP_PUBLIC_ENDPOINT_ACCESS_GATEWAY_FOR_EXISTING_ENVIRONMENTS + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetEndpointAccessGatewayRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetEndpointAccessGatewayResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/updateSubnet: + post: + summary: Updates the subnet(s) of the given environment. + description: Updates the subnet(s) of the given environment. + operationId: updateSubnet + x-mutating: true + x-no-compatibility-guarantee: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateSubnetRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateSubnetResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/setCatalog: + post: + summary: Sets a catalog for a FreeIPA installation. + description: Sets a catalog for a FreeIPA installation. + operationId: setCatalog + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetCatalogRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetCatalogResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/upgradeFreeipa: + post: + summary: Upgrades FreeIPA to the latest or defined image. + description: FreeIPA is an integrated Identity and Authentication solution that can be used for any of CM, CDP services. + operationId: upgradeFreeipa + x-mutating: true + x-no-compatibility-guarantee: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeFreeipaRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeFreeipaResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/upscaleFreeipa: + post: + summary: Upscales FreeIPA instances. + description: FreeIPA is an integrated Identity and Authentication solution that can be used for any of CM, CDP services. + operationId: upscaleFreeipa + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpscaleFreeipaRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpscaleFreeipaResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/downscaleFreeipa: + post: + summary: Downscales FreeIPA instances. + description: FreeIPA is an integrated Identity and Authentication solution that can be used for any of CM, CDP services. + operationId: downscaleFreeipa + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DownscaleFreeipaRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DownscaleFreeipaResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/retryFreeipa: + post: + summary: Retries the last failed operation on a FreeIPA. + description: Retries the last failed operation on a FreeIPA. + operationId: retryFreeipa + x-mutating: true + x-no-compatibility-guarantee: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RetryFreeipaRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RetryFreeipaResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/startFreeIpaVerticalScaling: + post: + summary: Initiates the vertical scaling on FreeIPA. + description: Initiates the vertical scaling on FreeIPA. + operationId: startFreeIpaVerticalScaling + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/StartFreeIpaVerticalScalingRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/StartFreeIpaVerticalScalingResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/upgradeCcm: + post: + summary: Upgrades Cluster Connectivity Manager on the environment to the latest available version. + description: Upgrades Cluster Connectivity Manager on the environment to the latest available version. + operationId: upgradeCcm + x-mutating: true + x-no-compatibility-guarantee: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeCcmRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeCcmResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /api/v1/environments2/rotateSaltPassword: + post: + summary: Rotate SaltStack user password on FreeIPA instances. + description: Rotate SaltStack user password on FreeIPA instances. + operationId: rotateSaltPassword + x-mutating: true + x-entitlement: CDP_ROTATE_SALTUSER_PASSWORD + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RotateSaltPasswordRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RotateSaltPasswordResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' +definitions: + Error: + type: object + description: An object returned on an error. + properties: + code: + type: string + description: The error code. + message: + type: string + description: The error message. + UpdateSubnetRequest: + type: object + description: The request for updating subnets of the given environment. + x-no-compatibility-guarantee: true + required: + - environment + - subnetIds + properties: + environment: + type: string + description: The name or the CRN of the environment. + subnetIds: + type: array + items: + type: string + description: The selected subnets to update the given environment to. + UpdateSubnetResponse: + type: object + description: Response object for an update environment subnet request. + x-no-compatibility-guarantee: true + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: The environment. + CreateAWSCredentialResponse: + type: object + description: Response object for a create AWS credential request. + required: + - credential + properties: + credential: + description: The credential object. + $ref: '#/definitions/Credential' + CreateAWSCredentialRequest: + type: object + description: Request object for a create AWS credential request. + required: + - credentialName + - roleArn + properties: + credentialName: + type: string + description: The name of the credential. + roleArn: + type: string + description: The ARN of the delegated access role. + description: + type: string + description: A description for the credential. + CreateAzureCredentialRequest: + type: object + description: Request object for a create Azure credential request. + required: + - credentialName + - appBased + properties: + credentialName: + type: string + description: The name of the credential. + appBased: + type: object + description: Additional configurations needed for app-based authentication. + properties: + authenticationType: + $ref: '#/definitions/AzureAuthenticationTypeProperties' + description: Authentication type of the credential + applicationId: + type: string + description: The id of the application registered in Azure. + secretKey: + type: string + x-sensitive: true + description: The client secret key (also referred to as application password) for the registered application. + subscriptionId: + type: string + description: The Azure subscription ID. Required for secret based credentials and optional for certificate based ones. + tenantId: + type: string + description: The Azure AD tenant ID for the Azure subscription. Required for secret based credentials and optional for certificate based ones. + description: + type: string + description: A description for the credential. + UpdateAzureCredentialRequest: + type: object + description: Request object for an update Azure credential request. + required: + - credentialName + - subscriptionId + - tenantId + - appBased + properties: + credentialName: + type: string + description: The name of the credential. + subscriptionId: + type: string + description: The Azure subscription ID. + tenantId: + type: string + description: The Azure AD tenant ID for the Azure subscription. + appBased: + type: object + description: Additional configurations needed for app-based authentication. + required: + - authenticationType + - applicationId + properties: + authenticationType: + $ref: '#/definitions/AzureAuthenticationTypeProperties' + description: Authentication type of the credential + applicationId: + type: string + description: The id of the application registered in Azure. + description: + type: string + description: A description for the credential. + CreateGCPCredentialResponse: + type: object + description: Response object for a create GCP credential request. + required: + - credential + properties: + credential: + description: The credential object. + $ref: '#/definitions/Credential' + CreateGCPCredentialRequest: + type: object + description: Request object for a create GCP credential request. + required: + - credentialName + - credentialKey + properties: + credentialName: + type: string + description: The name of the credential. + credentialKey: + type: string + x-sensitive: true + description: The JSON key for the service account. Please use local path when using the CLI (e.g. file:///absolute/path/to/cred.json) to avoid exposing the keys in the command line history. + description: + type: string + description: A description for the credential. + CreateAzureCredentialResponse: + type: object + description: Response object for a create Azure credential request. + required: + - credential + properties: + credential: + description: The credential object. + $ref: '#/definitions/Credential' + Credential: + type: object + description: A credential object. + required: + - credentialName + - crn + - cloudPlatform + properties: + credentialName: + type: string + description: The name of the credential. + crn: + type: string + description: The CRN of the credential. + cloudPlatform: + type: string + description: The cloud provider. + description: + type: string + description: A description for the credential. + awsCredentialProperties: + description: The credential properties that closely related to those that have been created on AWS. + $ref: '#/definitions/AwsCredentialProperties' + azureCredentialProperties: + description: The credential properties that closely related to those that have been created on Azure. + $ref: '#/definitions/AzureCredentialProperties' + gcpCredentialProperties: + description: The credential properties that closely related to those that have been created on GCP. + $ref: '#/definitions/GCPCredentialProperties' + UpdateAzureCredentialResponse: + type: object + properties: + credential: + description: The credential object. + $ref: '#/definitions/Credential' + description: Response object for an update Azure credential request. + AwsCredentialProperties: + type: object + description: The credential properties that closely related to those that have been created on AWS. + properties: + roleArn: + type: string + description: The AWS role arn for the given credential. + AzureCredentialProperties: + type: object + description: The credential properties that closely related to those that have been created on Azure. + properties: + subscriptionId: + type: string + description: The Azure subscription ID for the given credential. + tenantId: + type: string + description: The Azure tenant ID for the given credential. + appId: + type: string + description: The ID of the created Azure app. + authenticationType: + $ref: '#/definitions/AzureAuthenticationTypeProperties' + description: Authentication type of the credential + certificate: + $ref: '#/definitions/AzureCredentialCertificateProperties' + description: The public certificate used by the Azure credential. + AzureAuthenticationTypeProperties: + type: string + description: Authentication type of the credential + enum: + - CERTIFICATE + - SECRET + AzureCredentialCertificateProperties: + type: object + description: The certificate used for the credential + properties: + status: + type: string + description: The status of an Azure credential. + enum: + - KEY_GENERATED + - ACTIVE + expiration: + type: string + description: the expiration timestamp + expirationDate: + type: string + format: date-time + description: the expiration in date format + sha512: + type: string + description: The SHA512 digest of the certificate + base64: + type: string + description: The certificate (PEM) encoded in base64 format + GCPCredentialProperties: + type: object + description: The credential properties that closely related to those that have created on GCP. + properties: + keyType: + type: string + description: The GCP credential key type. Json is the only supported key type. + GetCredentialPrerequisitesRequest: + type: object + description: Request object for getting the credential prerequisites for the given cloud platform. + required: + - cloudPlatform + properties: + cloudPlatform: + type: string + enum: + - AWS + - AZURE + description: The kind of cloud platform. + GetCredentialPrerequisitesResponse: + type: object + description: The credential prerequisites for AWS. + required: + - cloudPlatform + properties: + cloudPlatform: + type: string + description: The name of the given cloud platform + accountId: + type: string + description: The provider specific identifier of the account/subscription/project that is used by Cloudbreak. + aws: + description: Provides the external id and policy JSON (this one encoded in base64) for AWS credential creation. + $ref: '#/definitions/AwsCredentialPrerequisitesResponse' + azure: + description: Provides the app creation command and role definition Json for Azure credential creation. + $ref: '#/definitions/AzureCredentialPrerequisitesResponse' + AwsCredentialPrerequisitesResponse: + type: object + description: Response object for getting AWS credential prerequisites. + required: + - externalId + - policyJson + properties: + externalId: + type: string + description: The cross-account external ID. + policyJson: + type: string + description: The related policy json encoded in base64 + policies: + type: array + description: The fine-grained policies related to each service. + items: + $ref: '#/definitions/CredentialGranularPolicyResponse' + AzureCredentialPrerequisitesResponse: + type: object + description: Response object for getting Azure credential prerequisites. + required: + - appCreationCommand + - roleDefinitionJson + properties: + appCreationCommand: + type: string + description: Azure CLI command to create Azure AD Application encoded in base64. + roleDefinitionJson: + type: string + description: The related role definition json encoded in base64 + policies: + type: array + description: The fine-grained policies related to each service. + items: + $ref: '#/definitions/CredentialGranularPolicyResponse' + CredentialGranularPolicyResponse: + type: object + description: Response object for the granular policy for the given service or experience. + required: + - service + - policyJson + properties: + service: + type: string + description: The name of the service that requires the given policy for resource management. + policyJson: + type: string + description: The policy JSON encoded in base64. + CreateAWSEnvironmentRequest: + type: object + description: Request object for a create AWS environment request. + required: + - environmentName + - credentialName + - region + - securityAccess + - authentication + - logStorage + properties: + environmentName: + type: string + description: The name of the environment. Must contain only lowercase letters, numbers and hyphens. + credentialName: + type: string + description: Name of the credential to use for the environment. + region: + type: string + description: The region of the environment. + securityAccess: + description: Security control for FreeIPA and Data Lake deployment. + $ref: '#/definitions/SecurityAccessRequest' + authentication: + description: SSH authentication information for accessing cluster node instances. Users with access to this authentication information have root level access to the Data Lake and Data Hub cluster instances. + $ref: '#/definitions/AuthenticationRequest' + logStorage: + description: AWS storage configuration for cluster and audit logs. + $ref: '#/definitions/AwsLogStorageRequest' + networkCidr: + type: string + description: The network CIDR. This will create a VPC along with subnets in multiple Availability Zones. + vpcId: + type: string + description: The Amazon VPC ID. Mutually exclusive with networkCidr. + subnetIds: + type: array + description: One or more subnet IDs within the VPC. Mutually exclusive with networkCidr. + uniqueItems: true + items: + type: string + createPrivateSubnets: + type: boolean + description: Whether to create private subnets or not. + createServiceEndpoints: + type: boolean + description: Whether to create service endpoints or not. + endpointAccessGatewayScheme: + type: string + description: The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over the Internet. Defaults to PRIVATE which restricts the traffic to be internal to the VPC. + enum: + - PUBLIC + - PRIVATE + endpointAccessGatewaySubnetIds: + type: array + items: + type: string + description: The subnets to use for endpoint access gateway. + s3GuardTableName: + type: string + description: The name for the DynamoDB table backing S3Guard. + description: + type: string + description: An description of the environment. + enableTunnel: + type: boolean + description: Whether to enable SSH tunneling for the environment. + workloadAnalytics: + type: boolean + description: When this is enabled, diagnostic information about job and query execution is sent to Workload Manager for Data Hub clusters created within this environment. + reportDeploymentLogs: + type: boolean + description: When true, this will report additional diagnostic information back to Cloudera. + freeIpa: + $ref: '#/definitions/AWSFreeIpaCreationRequest' + description: The FreeIPA creation request for the environment + image: + $ref: '#/definitions/FreeIpaImageRequest' + description: The FreeIPA image request for the environment + tags: + type: array + description: Tags associated with the resources. + items: + $ref: '#/definitions/TagRequest' + proxyConfigName: + type: string + description: Name of the proxy config to use for the environment. + encryptionKeyArn: + type: string + description: ARN of the AWS KMS CMK to use for the server-side encryption of AWS storage resources. + CreatePrivateEnvironmentRequest: + type: object + description: Request object for a create private cloud environment request. + x-form-factors: private + required: + - environmentName + - address + - user + - authenticationToken + - clusterNames + properties: + environmentName: + type: string + description: The name of the environment. Must contain only lowercase letters, numbers and hyphens. + address: + x-no-paramfile: true + type: string + description: The address of the Cloudera Manager managing the Datalake cluster. + user: + type: string + description: User name for accessing the Cloudera Manager. + authenticationToken: + type: string + description: A string (text or json) used to authenticate to the Cloudera Manager. + x-sensitive: true + clusterNames: + type: array + description: The name of the cluster(s) to use as a Datalake for the environment. + items: + type: string + kubeConfig: + type: string + description: Name of credentials holding kubeconfig for access to the kubernetes cluster paired with this Environment. + x-sensitive: true + authenticationTokenType: + type: string + description: How to interpret the authenticationToken field. Defaults to CLEARTEXT_PASSWORD. + enum: + - CLEARTEXT_PASSWORD + namespacePrefix: + type: string + default: cdp + description: Prefix for all namespaces created by Cloudera Data Platform within this cluster. + domain: + type: string + description: default domain suffix to work workload applications to use. + platform: + type: string + default: OPENSHIFT + description: the K8s cluster type used for the environment. + dockerConfigJson: + type: string + description: docker pull secrets for the K8s cluster. This is expected to be a docker config json. + x-sensitive: true + dockerUserPass: + type: object + description: Alternative to dockerConfigJson. + required: + - username + - password + - server + properties: + username: + type: string + description: Docker username. + password: + type: string + description: Docker password. + x-sensitive: true + email: + type: string + description: Docker email. + server: + type: string + description: Docker Registry FQDN. + description: + type: string + description: An description of the environment. + storageClass: + type: string + description: An existing storage class on this kubernetes cluster. If not specified, the default storage class will be used. + CheckEnvironmentConnectivityRequest: + type: object + description: Request object to check connectivity to private cloud environment. + x-form-factors: private + required: + - address + - user + - authenticationToken + properties: + address: + type: string + description: The address of the Cloudera Manager managing the Datalake cluster. + user: + type: string + description: User name for accessing the Cloudera Manager. + authenticationToken: + type: string + description: A string (text or json) used to authenticate to the Cloudera Manager. + x-sensitive: true + authenticationTokenType: + type: string + description: How to interpret the authenticationToken field. Defaults to CLEARTEXT_PASSWORD. + enum: + - CLEARTEXT_PASSWORD + clusterNames: + type: array + description: The name of the cluster(s) to use as a Datalake for the environment. + items: + type: string + AwsLogStorageRequest: + type: object + required: + - storageLocationBase + - instanceProfile + description: AWS storage configuration for cluster and audit logs. + properties: + storageLocationBase: + type: string + description: The base location to store logs in S3. This should be an s3a:// url. + instanceProfile: + type: string + description: The AWS instance profile that which contains the necessary permissions to access the S3 storage location. + backupStorageLocationBase: + type: string + description: The base location to store backup in S3. This should be an s3a:// url. + AzureLogStorageRequest: + type: object + description: Azure storage configuration for cluster and audit logs. + required: + - storageLocationBase + - managedIdentity + properties: + storageLocationBase: + type: string + description: The storage location to use. The location has to be in the following format abfs://filesystem@storage-account-name.dfs.core.windows.net. The filesystem must already exist and the storage account must be StorageV2. + managedIdentity: + type: string + description: The managed identity associated with the logger. This identity should have Storage Blob Data Contributor role on the given storage account. + backupStorageLocationBase: + type: string + description: The storage location to use. The location has to be in the following format abfs://filesystem@storage-account-name.dfs.core.windows.net. The filesystem must already exist and the storage account must be StorageV2. + GcpLogStorageRequest: + type: object + description: GCP storage configuration for cluster and audit logs. + required: + - storageLocationBase + - serviceAccountEmail + properties: + storageLocationBase: + type: string + description: The Google storage bucket to use. This should be a gs:// url. + serviceAccountEmail: + type: string + description: Email id of the service account to be associated with the instances. This service account should have "storage.ObjectCreator" role on the given storage bucket. + backupStorageLocationBase: + type: string + description: The Google storage bucket to use. This should be a gs:// url. + LogStorage: + type: object + description: Storage configuration for cluster and audit logs. + required: + - enabled + properties: + enabled: + type: boolean + description: Whether external log storage is enabled. + awsDetails: + type: object + description: AWS-specific log storage configuration information. + properties: + storageLocationBase: + type: string + description: The base location to store logs in S3. This should be an s3a:// url. + instanceProfile: + type: string + description: The AWS instance profile that which contains the necessary permissions to access the S3 storage location. + azureDetails: + type: object + description: Azure-specific log storage configuration information. + properties: + storageLocationBase: + type: string + description: The storage location to use. The location has to be in the following format abfs://filesystem@storage-account-name.dfs.core.windows.net. + managedIdentity: + type: string + description: The managed identity associated with the logger. This identity should have Storage Blob Data Contributor role on the given storage account. + gcpDetails: + type: object + description: GCP-specific log storage configuration information. + properties: + storageLocationBase: + type: string + description: The storage location to use. This should be a gs:// url. + serviceAccountEmail: + type: string + description: Email ID of the service account associated with the logging instances. + BackupStorage: + type: object + description: Storage configuration for backup. + properties: + enabled: + type: boolean + description: Whether external backup storage is enabled. The default value is disabled. + awsDetails: + type: object + description: AWS-specific backup storage configuration information. + properties: + storageLocationBase: + type: string + description: The base location to store backup in S3. This should be an s3a:// url. + instanceProfile: + type: string + description: The AWS instance profile which contains the necessary permissions to access the S3 storage location. + azureDetails: + type: object + description: Azure-specific backup storage configuration information. + properties: + storageLocationBase: + type: string + description: The storage location to use. The location has to be in the following format abfs://filesystem@storage-account-name.dfs.core.windows.net. + managedIdentity: + type: string + description: The managed identity associated with the backup. This identity should have Storage Blob Data Contributor role on the given storage account. + gcpDetails: + type: object + description: GCP-specific backup storage configuration information. + properties: + storageLocationBase: + type: string + description: The storage location to use. This should be a gs:// url. + serviceAccountEmail: + type: string + description: Email ID of the service account associated with the backup instances. + SecurityAccessRequest: + type: object + description: Security control configuration for FreeIPA and Datalake deployment. Choosing a CIDR will automatically create security groups. Alternatively existing security groups can be specified. + properties: + cidr: + type: string + description: CIDR range which is allowed for inbound traffic. Either IPv4 or IPv6 is allowed. + securityGroupIdForKnox: + type: string + description: Security group where Knox-enabled hosts are placed. Mutually exclusive with cidr. + defaultSecurityGroupId: + type: string + description: Security group where all other hosts are placed. Mutually exclusive with cidr. + securityGroupIDsForKnox: + type: array + description: Security group IDs where Knox-enabled hosts are placed. Mutually exclusive with CIDR. + uniqueItems: true + items: + type: string + defaultSecurityGroupIDs: + type: array + description: Security group IDs where all other hosts are placed. Mutually exclusive with CIDR. + uniqueItems: true + items: + type: string + GcpSecurityAccessRequest: + type: object + description: Firewall rules for FreeIPA, Data Lake and Data Hub deployment. + properties: + securityGroupIdForKnox: + type: string + minLength: 1 + description: Firewall rule for Knox hosts. + defaultSecurityGroupId: + type: string + minLength: 1 + description: Firewall rule for other hosts. + SecurityAccess: + type: object + description: Security control configuration for FreeIPA and Datalake deployment. + properties: + cidr: + type: string + description: CIDR range which is allowed for inbound traffic. Either IPv4 or IPv6 is allowed. + securityGroupIdForKnox: + type: string + description: Security group where Knox-enabled hosts are placed. + defaultSecurityGroupId: + type: string + description: Security group where all other hosts are placed. + CreateAWSEnvironmentResponse: + type: object + description: Response object for a create AWS environment request. + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: Created environment object. + CreateAzureEnvironmentResponse: + type: object + description: Response object for a create Azure environment request. + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: Created environment object. + CreateGCPEnvironmentResponse: + type: object + description: Response object for a create GCP environment request. + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: Created environment object. + CreatePrivateEnvironmentResponse: + type: object + description: Response object for a create private cloud environment request. + x-form-factors: private + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: Created environment object. + CheckEnvironmentConnectivityResponse: + type: object + description: Response object to check connectivity to private cloud environment. + x-form-factors: private + required: + - clusters + properties: + clusters: + type: array + description: List of discovered clusters + items: + $ref: '#/definitions/CdpCluster' + description: Discovered CdpCluster object. + ListEnvironmentsRequest: + type: object + description: Request object for a list environments request. + ListEnvironmentsResponse: + type: object + description: Response object for a list environments request. + required: + - environments + properties: + environments: + type: array + items: + $ref: '#/definitions/EnvironmentSummary' + description: The environment. + ListCredentialsRequest: + type: object + description: Request object for a list credentials request. + properties: + credentialName: + type: string + description: An optional credential name to search by. + ListCredentialsResponse: + type: object + description: Response object for a list credentials request. + required: + - credentials + properties: + credentials: + type: array + items: + $ref: '#/definitions/Credential' + description: The credentials. + CreateAzureEnvironmentRequest: + type: object + description: Request object for a create Azure environment request. + required: + - environmentName + - credentialName + - region + - publicKey + - securityAccess + - usePublicIp + - logStorage + properties: + environmentName: + type: string + description: The name of the environment. Must contain only lowercase letters, numbers and hyphens. + credentialName: + type: string + description: Name of the credential to use for the environment. + region: + type: string + description: The region of the environment. + publicKey: + type: string + description: Public SSH key string. The associated private key can be used to get root-level access to the Data Lake instance and Data Hub cluster instances. + securityAccess: + description: Security control for FreeIPA and Data Lake deployment. + $ref: '#/definitions/SecurityAccessRequest' + usePublicIp: + type: boolean + description: Whether to associate public ip's to the resources within the network. + logStorage: + description: Azure storage configuration for cluster and audit logs. + $ref: '#/definitions/AzureLogStorageRequest' + existingNetworkParams: + description: Parameters needed to use an existing VNet and Subnets. + $ref: '#/definitions/ExistingAzureNetworkRequest' + newNetworkParams: + type: object + description: Parameteres needed to automatically create VNet and Subnets. + required: + - networkCidr + properties: + networkCidr: + type: string + description: The range of private IPv4 addresses that resources will use under the created VNet. + description: + type: string + description: An description of the environment. + enableTunnel: + type: boolean + description: Whether to enable SSH tunneling for the environment. + workloadAnalytics: + type: boolean + description: When this is enabled, diagnostic information about job and query execution is sent to Workload Manager for Data Hub clusters created within this environment. + reportDeploymentLogs: + type: boolean + description: When true, this will report additional diagnostic information back to Cloudera. + freeIpa: + $ref: '#/definitions/AzureFreeIpaCreationRequest' + description: The FreeIPA creation request for the environment + image: + $ref: '#/definitions/FreeIpaImageRequest' + description: The FreeIPA image request for the environment + tags: + type: array + description: Tags associated with the resources. + items: + $ref: '#/definitions/TagRequest' + proxyConfigName: + type: string + description: Name of the proxy config to use for the environment. + resourceGroupName: + type: string + description: Name of an existing Azure resource group to be used for the environment. If it is not specified then new resource groups will be generated. + createPrivateEndpoints: + type: boolean + description: When this is enabled, then Azure Postgres will be configured with Private Endpoint and a Private DNS Zone. When this is disabled, then Azure Service Endpoints will be created. The default value is disabled. + endpointAccessGatewayScheme: + type: string + description: The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over the Internet. Defaults to PRIVATE which restricts the traffic to be internal to the VNet. + enum: + - PUBLIC + - PRIVATE + encryptionKeyUrl: + type: string + description: URL of the key which will be used to encrypt the Azure Managed Disks, if entitlement has been granted. + x-no-paramfile: true + encryptionKeyResourceGroupName: + type: string + description: Name of the existing Azure resource group hosting the Azure Key Vault containing customer managed key which will be used to encrypt the Azure Managed Disks. It is required only when the entitlement is granted and the resource group of the key vault is different from the resource group in which the environment is to be created. Omitting it implies that, the key vault containing the encryption key is present in the same resource group where the environment would be created. + enableOutboundLoadBalancer: + type: boolean + description: Whether or not outbound load balancers should be created for Azure environments. The default behavior is to not create the outbound load balancer. + CreateGCPEnvironmentRequest: + type: object + description: Request object for a create GCP environment request. + required: + - environmentName + - credentialName + - region + - publicKey + - usePublicIp + - existingNetworkParams + properties: + environmentName: + type: string + description: The name of the environment. Must contain only lowercase letters, numbers and hyphens. + credentialName: + type: string + description: Name of the credential to use for the environment. + region: + type: string + description: The region of the environment. + publicKey: + type: string + description: Public SSH key string. The associated private key can be used to get root-level access to the Data Lake instance and Data Hub cluster instances. + usePublicIp: + type: boolean + description: Whether to associate public ip's to the resources within the network. + existingNetworkParams: + description: Parameters needed to use an existing VPC and Subnets. For now only existing network params is supported. + $ref: '#/definitions/ExistingGCPNetworkRequest' + securityAccess: + description: Firewall rules for FreeIPA, Data Lake and Data Hub deployment. + $ref: '#/definitions/GcpSecurityAccessRequest' + logStorage: + description: GCP storage configuration for cluster and audit logs. + $ref: '#/definitions/GcpLogStorageRequest' + description: + type: string + description: A description of the environment. + enableTunnel: + type: boolean + description: Whether to enable SSH tunneling for the environment. + workloadAnalytics: + type: boolean + description: When this is enabled, diagnostic information about job and query execution is sent to Workload Manager for Data Hub clusters created within this environment. + reportDeploymentLogs: + type: boolean + description: When true, this will report additional diagnostic information back to Cloudera. + freeIpa: + $ref: '#/definitions/GCPFreeIpaCreationRequest' + description: The FreeIPA creation request for the environment + endpointAccessGatewayScheme: + type: string + description: The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over the Internet. Defaults to PRIVATE which restricts the traffic to be internal to the VPC. + enum: + - PUBLIC + - PRIVATE + tags: + type: array + description: Tags that can be attached to GCP resources. Please refer to Google documentation for the rules https://cloud.google.com/compute/docs/labeling-resources#label_format. + items: + $ref: '#/definitions/GcpTagRequest' + proxyConfigName: + type: string + description: Name of the proxy config to use for the environment. + encryptionKey: + type: string + description: Key Resource ID of the customer managed encryption key to encrypt GCP resources. + x-entitlement: CDP_CB_GCP_DISK_ENCRYPTION_WITH_CMEK + ExistingAzureNetworkRequest: + type: object + description: Request object for creating an Azure environment using existing VNet and subnets. + required: + - networkId + - resourceGroupName + - subnetIds + properties: + networkId: + type: string + description: The id of the Azure VNet. + resourceGroupName: + type: string + description: The name of the resource group associated with the VNet. + subnetIds: + type: array + description: One or more subnet ids within the VNet. + uniqueItems: true + items: + type: string + databasePrivateDnsZoneId: + type: string + description: The ID of an existing private DNS zone used for the database. + aksPrivateDnsZoneId: + type: string + description: The ID of an existing private DNS zone used for the AKS. + ExistingGCPNetworkRequest: + type: object + description: Request object for creating an GCP environment using existing VPC and subnets. + required: + - networkName + - subnetNames + - sharedProjectId + properties: + networkName: + type: string + description: The name of the GCP VPC. + subnetNames: + type: array + description: One or more subnet names within the VPC. Google VPC's are global, please give subnets from single geographic region only to reduce latency. + uniqueItems: true + items: + type: string + sharedProjectId: + type: string + description: The ID of the Google project associated with the VPC. + ChangeEnvironmentCredentialRequest: + type: object + description: Request object for a change environment credentials request. + required: + - environmentName + - credentialName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + credentialName: + type: string + description: The credential name to set for the environment. This must be a credential that already exists. + ChangeEnvironmentCredentialResponse: + type: object + description: Response object for a change environment credentials request. + required: + - environment + properties: + environment: + $ref: '#/definitions/EnvironmentSummary' + description: The environment summary. + UpdateAzureEncryptionResourcesRequest: + type: object + description: Request object for updating Azure encryption resources. + required: + - environment + - encryptionKeyUrl + properties: + environment: + type: string + description: The name or CRN of the environment. + encryptionKeyUrl: + type: string + description: The URL of an encryption key, which will be used to encrypt the Azure Managed Disks, if the entitlement has been granted. + x-no-paramfile: true + encryptionKeyResourceGroupName: + type: string + description: Name of the existing Azure resource group hosting the Azure Key Vault containing customer managed key which will be used to encrypt the Azure Managed Disks. It is required only when the entitlement is granted and the resource group of the key vault is different from the resource group in which the environment is to be created. Omitting it implies that, the key vault containing the encryption key is present in the same resource group where the environment would be created. + UpdateAzureEncryptionResourcesResponse: + type: object + description: Response object for a update Azure encryption resources request. + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: The environment summary. + resourceEncryptionParameters: + $ref: '#/definitions/AzureResourceEncryptionParameters' + description: Object containing details of encryption parameters for Azure cloud. + UpdateAwsDiskEncryptionParametersRequest: + type: object + description: Request object for updating AWS encryption parameters. + required: + - environment + - encryptionKeyArn + properties: + environment: + type: string + description: The name or CRN of the environment. + encryptionKeyArn: + type: string + description: The ARN of an encryption key, which will be used to encrypt the AWS EBS volumes, if the entitlement has been granted. + x-no-paramfile: true + UpdateAwsDiskEncryptionParametersResponse: + type: object + description: Response object for an update AWS encryption parameters request. + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: The environment summary. + awsDiskEncryptionParameters: + $ref: '#/definitions/AwsDiskEncryptionParameters' + description: Object containing details of encryption parameters for AWS cloud. + AwsDiskEncryptionParameters: + type: object + description: Object containing details of encryption parameters for AWS cloud. + properties: + encryptionKeyArn: + type: string + description: ARN of the CMK which is used to encrypt the AWS EBS volumes. + x-no-paramfile: true + AzureResourceEncryptionParameters: + type: object + description: Object containing details of encryption parameters for Azure cloud. + properties: + encryptionKeyUrl: + type: string + description: URL of the key which is used to encrypt the Azure Managed Disks. + x-no-paramfile: true + encryptionKeyResourceGroupName: + type: string + description: Name of the existing Azure resource group hosting the Azure Key Vault containing customer managed key which is used to encrypt the Azure Managed Disks. + diskEncryptionSetId: + type: string + description: ID of the Disk Encryption Set created in Azure which is used to encrypt Managed Disks of FreeIPA, Data Lake, Data Hub and PostgreSQL. + DisableS3GuardRequest: + type: object + description: Request object for disabling S3Guard in an environment. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + DisableS3GuardResponse: + type: object + description: Response object for disabling S3Guard in an environment. + properties: + s3GuardResponse: + type: string + description: Response status for disabling S3Guard in an environment. + DescribeEnvironmentRequest: + type: object + description: Request object for a describe environment request. + required: + - environmentName + properties: + environmentName: + type: string + description: The names or CRN of the environment. + DescribeEnvironmentResponse: + type: object + description: Response object for a describe environment request. + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: The environment. + EnvironmentSummary: + type: object + description: The environment summary. + required: + - environmentName + - crn + - status + - region + - cloudPlatform + - credentialName + properties: + environmentName: + type: string + description: Name of the environment. + crn: + type: string + description: CRN of the environment. + status: + type: string + description: Status of the environment, + region: + type: string + description: Region of the environment. + cloudPlatform: + type: string + description: Cloud platform of the environment. + credentialName: + type: string + description: Name of the credential of the environment. Must contain only lowercase letters, numbers and hyphens. + description: + type: string + description: Description of the environment. + created: + type: string + format: date-time + description: Creation date + proxyConfigName: + type: string + description: Name of the proxy config of the environment. + Environment: + type: object + description: The environment. + required: + - environmentName + - crn + - status + - region + - cloudPlatform + - credentialName + - network + - logStorage + properties: + environmentName: + type: string + description: Name of the environment. + crn: + type: string + description: CRN of the environment. + status: + type: string + description: Status of the environment. + region: + type: string + description: Region of the environment. + cloudPlatform: + type: string + description: Cloud platform of the environment. + credentialName: + type: string + description: Name of the credential of the environment. + network: + description: Network related specifics of the environment. + $ref: '#/definitions/Network' + logStorage: + description: Storage configuration for cluster and audit logs. + $ref: '#/definitions/LogStorage' + backupStorage: + description: Storage configuration for backup. + $ref: '#/definitions/BackupStorage' + authentication: + description: SSH key for accessing cluster node instances. + $ref: '#/definitions/Authentication' + securityAccess: + description: Security control for FreeIPA and Data Lake deployment. + $ref: '#/definitions/SecurityAccess' + description: + type: string + description: Description of the environment + statusReason: + type: string + description: The status reason. + created: + type: string + format: date-time + description: Creation date + creator: + type: string + description: The CRN of the user who has created the given environment. + tunnelEnabled: + type: boolean + description: Whether tunneling is enabled for the environment. + x-no-compatibility-guarantee: true + tunnelType: + description: CCM version + $ref: '#/definitions/TunnelType' + x-no-compatibility-guarantee: true + awsDetails: + type: object + description: AWS-specific environment configuration information. + properties: + s3GuardTableName: + type: string + description: The name for the DynamoDB table backing S3Guard. + gcpDetails: + type: object + description: GCP specific environment configuration information. + properties: + sharedProjectId: + type: string + description: ID of the Google project where the resources are created. + workloadAnalytics: + type: boolean + description: When this is enabled, diagnostic information about job and query execution is sent to Workload Manager for Data Hub clusters created within this environment. + reportDeploymentLogs: + type: boolean + description: When true, this will report additional diagnostic information back to Cloudera. + freeipa: + description: Details of FreeIPA instance associated with this environment. + $ref: '#/definitions/FreeipaDetails' + proxyConfig: + description: The proxy config. + $ref: '#/definitions/ProxyConfig' + tags: + description: Environment tags object containing the tag values defined for the environment. + $ref: '#/definitions/EnvironmentTags' + x-no-compatibility-guarantee: true + AuthenticationRequest: + type: object + description: Additional SSH key authentication configuration for accessing cluster node. + properties: + publicKey: + type: string + description: Public SSH key string. Mutually exclusive with publicKeyId. + publicKeyId: + type: string + description: Public SSH key ID already registered in the cloud provider. Mutually exclusive with publicKey. + Authentication: + type: object + description: Additional SSH key authentication configuration for accessing cluster node instances. + properties: + publicKey: + type: string + description: SSH Public key string. + publicKeyId: + type: string + description: Public SSH key ID already registered in the cloud provider. + loginUserName: + type: string + description: The SSH user name created on the nodes for SSH access. + Network: + type: object + description: The network. + required: + - networkName + - subnetIds + properties: + networkName: + type: string + description: Name or id of the network + subnetIds: + type: array + description: Subnet names or ids of the network. + uniqueItems: true + items: + type: string + endpointAccessGatewayScheme: + type: string + description: The scheme for the endpoint gateway. PUBLIC indicates an external endpoint that can be accessed over the Internet. + enum: + - PUBLIC + - PRIVATE + endpointAccessGatewaySubnetIds: + type: array + items: + type: string + description: The subnets to use for endpoint access gateway. + uniqueItems: true + aws: + description: AWS network parameters. + $ref: '#/definitions/NetworkAwsParams' + azure: + description: Azure network parameters. + $ref: '#/definitions/NetworkAzureParams' + gcp: + description: GCP network parameters. + $ref: '#/definitions/NetworkGcpParams' + networkCidr: + type: string + description: The range of private IPv4 addresses that resources will use under this network. + subnetMetadata: + type: object + description: Additional subnet metadata of the network. + additionalProperties: + description: The subnet information. + $ref: '#/definitions/CloudSubnet' + CloudSubnet: + type: object + description: Information about a cloud provider subnet. + properties: + subnetId: + description: The id of the subnet. + type: string + subnetName: + description: The name of the subnet. + type: string + availabilityZone: + description: The availability zone of the subnet. + type: string + cidr: + description: The CIDR IP range of the subnet. + type: string + NetworkAwsParams: + type: object + description: AWS network parameters. + required: + - vpcId + properties: + vpcId: + type: string + description: VPC ids of the specified networks. + NetworkAzureParams: + type: object + description: Azure network parameters. + required: + - networkId + - resourceGroupName + - usePublicIp + properties: + networkId: + type: string + description: The id of the Azure VNet. + resourceGroupName: + type: string + description: The name of the resource group associated with the VNet. + usePublicIp: + type: boolean + description: Whether to associate public ip's to the resources within the network. + databasePrivateDnsZoneId: + type: string + description: The ID of an existing private DNS zone used for the database. + aksPrivateDnsZoneId: + type: string + description: The ID of an existing private DNS zone used for the AKS. + enableOutboundLoadBalancer: + type: boolean + description: Whether the outbound load balancer was created for this environment. + NetworkGcpParams: + type: object + description: GCP network parameters. + required: + - networkName + - usePublicIp + properties: + networkName: + type: string + description: The name of the GCP VPC. + usePublicIp: + type: boolean + description: Whether to associate public ip's to the resources within the network. + sharedProjectId: + type: string + description: The ID of the Google project associated with the VPC. + DeleteEnvironmentRequest: + type: object + description: Request object for a delete environment request. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + cascading: + type: boolean + description: Delete all connected resources too. + forced: + type: boolean + description: Force delete action removes CDP resources and may leave cloud provider resources running even if the deletion did not succeed. + DeleteEnvironmentResponse: + type: object + description: Response object for a delete environment request. + StartEnvironmentRequest: + type: object + description: Request object for a start environment request. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + withDatahubStart: + type: boolean + description: Whether the Data Hub clusters should start or not at the environment (re-)start + StartEnvironmentResponse: + type: object + description: Response object for a start environment request. + StopEnvironmentRequest: + type: object + description: Request object for a stop environment request. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + StopEnvironmentResponse: + type: object + description: Response object for a stop environment request. + DeleteCredentialRequest: + type: object + description: Request object for a delete credential request. + required: + - credentialName + properties: + credentialName: + type: string + description: The name or CRN of the credential. + DeleteCredentialResponse: + type: object + description: Response object for a delete credential request. + SyncAllUsersRequest: + type: object + description: Request object for a All Users and Groups Sync. + properties: + environmentNames: + type: array + description: List of environments to be synced. If not present, all environments will be synced. + items: + type: string + SyncAllUsersResponse: + type: object + description: All Users and Groups Sync Response Object + required: + - operationId + properties: + operationId: + type: string + description: UUID of the request for this operation. This Id can be used for geting status on the operation. + operationType: + description: Operation type, set password or user sync + $ref: '#/definitions/OperationType' + status: + description: Status of this operation. Status can be one of these values (REQUESTED, RUNNING, COMPLETED, FAILED, REJECTED, TIMEDOUT) + $ref: '#/definitions/SyncStatus' + success: + type: array + description: List of sync operation details for all succeeded environments. + items: + $ref: '#/definitions/SyncOperationDetails' + failure: + type: array + description: List of sync operation details for all failed envs. + items: + $ref: '#/definitions/SyncOperationDetails' + error: + type: string + description: If there is any error associated. + startTime: + type: string + description: Sync operation start timestamp. + endTime: + type: string + description: Sync operation end timestamp. + SyncUserRequest: + type: object + description: Request Object for single user sync operation. + SyncUserResponse: + type: object + description: Response Object for single user sync operation. + required: + - operationId + properties: + operationId: + type: string + description: UUID of the request for this operation. This Id can be used for geting status on the operation. + operationType: + description: Operation type, set password or user sync + $ref: '#/definitions/OperationType' + status: + description: Status of this operation. Status can be one of these values (REQUESTED, RUNNING, COMPLETED, FAILED, REJECTED, TIMEDOUT) + $ref: '#/definitions/SyncStatus' + success: + type: array + description: List of sync operation details for all succeeded environments. + items: + $ref: '#/definitions/SyncOperationDetails' + failure: + type: array + description: List of sync operation details for all failed envs. + items: + $ref: '#/definitions/SyncOperationDetails' + error: + type: string + description: If there is any error associated. + startTime: + type: string + description: Sync operation start timestamp. + endTime: + type: string + description: Sync operation end timestamp. + SetPasswordRequest: + type: object + description: Request object for set password request. (deprecated) + x-deprecated: true + required: + - password + properties: + password: + type: string + description: password field. + x-sensitive: true + environmentCRNs: + type: array + description: Optional list of environment CRNs. Only the passed environments user's password will be affected. If this field is not present, all environments will be affected. + items: + type: string + SetPasswordResponse: + type: object + description: Response object for set password request. (deprecated) + x-deprecated: true + required: + - operationId + properties: + operationId: + type: string + description: UUID of the request for this operation. This Id can be used for geting status on the operation. + operationType: + description: Operation type, set password or user sync + $ref: '#/definitions/OperationType' + status: + description: Status of this operation. Status can be one of these values (REQUESTED, RUNNING, COMPLETED, FAILED, REJECTED, TIMEDOUT) + $ref: '#/definitions/SyncStatus' + success: + type: array + description: List of sync operation details for all succeeded environments. + items: + $ref: '#/definitions/SyncOperationDetails' + failure: + type: array + description: List of sync operation details for all failed envs. + items: + $ref: '#/definitions/SyncOperationDetails' + error: + type: string + description: If there is any error associated. + startTime: + type: string + description: Sync operation start timestamp. + endTime: + type: string + description: Sync operation end timestamp. + SyncStatusRequest: + type: object + description: Request object for Sync Status. + required: + - operationId + properties: + operationId: + type: string + description: operationId for the previously requested sync operation for user sync or password. + SyncStatusResponse: + type: object + description: Response object for Sync Operation. + required: + - operationId + properties: + operationId: + type: string + description: UUID of the request for this operation. This Id can be used for geting status on the operation. + operationType: + description: Operation type, set password or user sync + $ref: '#/definitions/OperationType' + status: + description: Status of this operation. Status can be one of these values (REQUESTED, RUNNING, COMPLETED, FAILED, REJECTED, TIMEDOUT) + $ref: '#/definitions/SyncStatus' + success: + type: array + description: List of sync operation details for all succeeded environments. + items: + $ref: '#/definitions/SyncOperationDetails' + failure: + type: array + description: List of sync operation details for all failed envs. + items: + $ref: '#/definitions/SyncOperationDetails' + error: + type: string + description: If there is any error associated. + startTime: + type: string + description: Sync operation start timestamp. + endTime: + type: string + description: Sync operation end timestamp. + GetEnvironmentUserSyncStateRequest: + type: object + description: Request object for retrieving the user sync state of an environment. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + GetEnvironmentUserSyncStateResponse: + type: object + description: Response object for retrieving the user sync state of an environment. + required: + - state + properties: + state: + type: string + enum: + - UP_TO_DATE + - STALE + - SYNC_IN_PROGRESS + - SYNC_FAILED + description: The user sync state of the environment. + userSyncOperationId: + type: string + description: Operation Id for the latest user sync operation, if any, run for this environment. + GetRootCertificateRequest: + type: object + description: Request object for obtaining public certificate of an environment. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + GetRootCertificateResponse: + type: object + description: Response object with base64 encoded contents of the public certificate for an environment. + properties: + contents: + type: string + description: Contents of a certificate. + GetKeytabRequest: + type: object + description: Request object for get keytab request. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + actorCrn: + type: string + description: The CRN of the user or machine user to retrieve the keytab for. If it is not included, it defaults to the user making the request. + GetKeytabResponse: + type: object + description: Request object for get keytab request. + properties: + contents: + type: string + description: The contents of the keytab encoded as a base64 string. + GetAutomatedSyncEnvironmentStatusRequest: + type: object + description: Request object for getting automated sync environment status. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + GetAutomatedSyncEnvironmentStatusResponse: + type: object + description: Response object for getting automated sync environment status. + properties: + environmentCrn: + type: string + description: The CRN of the environment. + syncPendingState: + type: string + description: The state to indicate whether the environment is synced or has a sync pending. + enum: + - UNKNOWN + - SYNC_PENDING + - SYNCED + - SYNC_HALTED + lastSyncStatus: + description: Status of the last automated sync operation for the environment. + $ref: '#/definitions/LastAutomatedSyncDetails' + SynchronizeAllEnvironmentsRequest: + type: object + description: Request object for synchronizing all environments. + x-no-compatibility-guarantee: true + SynchronizeAllEnvironmentsResponse: + type: object + description: Response object for synchronizing all environments. + x-no-compatibility-guarantee: true + GetIdBrokerMappingsRequest: + type: object + description: Request object for getting ID Broker mappings for an environment. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + GetIdBrokerMappingsResponse: + type: object + description: Response object for getting ID Broker mappings for an environment. + required: + - mappingsVersion + - dataAccessRole + - rangerAuditRole + properties: + mappingsVersion: + type: integer + format: int64 + description: The version of the mappings. + dataAccessRole: + type: string + description: The cloud provider role to which data access services will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). + rangerAuditRole: + type: string + description: The cloud provider role to which services that write to Ranger audit logs will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). Note that some data access services also write to Ranger audit logs; such services will be mapped to the dataAccessRole, not the rangerAuditRole. + rangerCloudAccessAuthorizerRole: + type: string + description: The cloud provider role to which the Ranger RAZ service will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). + baselineRole: + type: string + description: Deprecated. Please use rangerAuditRole instead. + x-deprecated: true + mappings: + type: array + description: ID Broker mappings for individual actors and groups. Does not include mappings for data access services. May be empty if no individual mappings are needed. + items: + $ref: '#/definitions/IdBrokerMapping' + SetIdBrokerMappingsRequest: + type: object + description: Request object for setting ID Broker mappings for an environment. Overwrites all existing mappings. + required: + - environmentName + - dataAccessRole + properties: + environmentName: + type: string + description: The name or CRN of the environment. + dataAccessRole: + type: string + description: The cloud provider role to which data access services will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). + rangerAuditRole: + type: string + description: The cloud provider role to which services that write to Ranger audit logs will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). Note that some data access services also write to Ranger audit logs; such services will be mapped to the dataAccessRole, not the rangerAuditRole. ``THIS PARAMETER IS REQUIRED.`` + rangerCloudAccessAuthorizerRole: + type: string + description: The cloud provider role to which the Ranger RAZ service will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). This is required in RAZ-enabled environments. + baselineRole: + type: string + description: Deprecated. Please use rangerAuditRole instead. + x-deprecated: true + mappings: + type: array + description: ID Broker mappings for individual actors and groups. Does not include mappings for data access services. If omitted or set to an empty list, you must also specify the ``--set-empty-mappings`` option, to confirm that you want to remove any existing individual mappings. + items: + $ref: '#/definitions/IdBrokerMappingRequest' + setEmptyMappings: + type: boolean + default: false + description: Whether to install an empty set of individual mappings, deleting any existing mappings. The ``--set-empty-mappings`` option is required if ``--mappings`` is omitted or if its value is an empty list, and disallowed otherwise. + SetIdBrokerMappingsResponse: + type: object + description: Response object for setting ID Broker mappings for an environment. + required: + - mappingsVersion + - dataAccessRole + - rangerAuditRole + properties: + mappingsVersion: + type: integer + format: int64 + description: The version of the mappings. + dataAccessRole: + type: string + description: The cloud provider role to which data access services will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). + rangerAuditRole: + type: string + description: The cloud provider role to which services that write to Ranger audit logs will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). Note that some data access services also write to Ranger audit logs; such services will be mapped to the dataAccessRole, not the rangerAuditRole. + rangerCloudAccessAuthorizerRole: + type: string + description: The cloud provider role to which the Ranger RAZ service will be mapped (e.g. an ARN in AWS, a Resource ID in Azure). + baselineRole: + type: string + description: Deprecated. Please use rangerAuditRole instead. + x-deprecated: true + mappings: + type: array + description: ID Broker mappings for individual actors and groups. Does not include mappings for data access services. May be empty if no individual mappings are needed. + items: + $ref: '#/definitions/IdBrokerMapping' + SyncIdBrokerMappingsRequest: + type: object + description: Request object for synchronizing ID Broker mappings for an environment. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + SyncIdBrokerMappingsResponse: + type: object + description: Response object for synchronizing ID Broker mappings for an environment. + GetIdBrokerMappingsSyncStatusRequest: + type: object + description: Request object for getting ID Broker mappings sync status. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + GetIdBrokerMappingsSyncStatusResponse: + type: object + description: Response object for getting ID Broker mappings sync status. + required: + - syncNeeded + - globalStatus + - statuses + properties: + syncNeeded: + type: boolean + description: Whether a sync is needed to bring in-cluster mappings up-to-date. + globalStatus: + description: The overall mappings sync status for all datalake clusters in the environment. + $ref: '#/definitions/SyncStatus' + statuses: + type: object + description: Map of datalake cluster CRN to mappings sync status for each datalake cluster in the environment. + additionalProperties: + description: ID Broker sync status. + $ref: '#/definitions/IdBrokerSyncStatus' + IdBrokerMapping: + type: object + description: A mapping of an actor or group to a cloud provider role. + required: + - accessorCrn + - role + properties: + accessorCrn: + type: string + description: The CRN of the actor or group. + role: + type: string + description: The cloud provider role (e.g., ARN in AWS, Resource ID in Azure) to which the actor or group is mapped. + IdBrokerMappingRequest: + type: object + description: A mapping of an actor or group to a cloud provider role, used in request objects. + required: + - accessorCrn + - role + properties: + accessorCrn: + type: string + description: The CRN of the actor or group. + role: + type: string + description: The cloud provider role (e.g., ARN in AWS, Resource ID in Azure) to which the actor or group is mapped. + IdBrokerSyncStatus: + type: object + description: Status of an ID Broker mappings sync operation. + required: + - status + properties: + status: + description: The mappings sync summary status. + $ref: '#/definitions/SyncStatus' + startDate: + type: string + format: date-time + description: The date when the mappings sync started executing. Omitted if status is NEVER_RUN. + endDate: + type: string + format: date-time + description: The date when the mappings sync completed or was terminated. Omitted if status is NEVER_RUN or RUNNING. + errorDetail: + type: string + description: The detail of the error. Omitted if status is not FAILED. + SyncOperationDetails: + type: object + description: Details object of the sync operation for success or falure. + required: + - environmentCrn + properties: + environmentCrn: + description: environment crn. + type: string + message: + type: string + description: The detail of the success or failure. + SyncStatus: + type: string + description: Status of a sync operation. + enum: + - NEVER_RUN + - REQUESTED + - REJECTED + - RUNNING + - COMPLETED + - FAILED + - TIMEDOUT + OperationType: + type: string + description: Operation Type. + enum: + - SET_PASSWORD + - USER_SYNC + RepairOperationDetails: + type: object + description: Details object of the repair operation for success or falure. + required: + - environmentCrn + properties: + environmentCrn: + description: environment crn. + type: string + message: + type: string + description: The detail of the success or failure. + RepairStatus: + type: string + description: Status of a repair operation. + enum: + - NEVER_RUN + - REQUESTED + - REJECTED + - RUNNING + - COMPLETED + - FAILED + - TIMEDOUT + ExposedService: + x-form-factors: private + description: Exposed CDP DC service object. + type: object + properties: + name: + type: string + description: Name of service. + type: + type: string + description: Type of service. + displayName: + type: string + description: Display name of service. + serviceUrl: + type: string + description: URL of service. + serviceVersion: + type: string + description: Version of service. + status: + type: string + description: Status of service. + serviceValidationMessages: + type: array + description: List of service validation message. + items: + $ref: '#/definitions/EnvValidation' + CdpCluster: + x-form-factors: private + description: Discovered CdpCluster object. + type: object + properties: + name: + type: string + description: Name of cluster. + displayName: + type: string + description: Display name of cluster. + cmUrl: + type: string + description: The Url to Cloudera Manager. + version: + type: string + description: Version of Cloudera Manager. + exposedServices: + type: array + description: List of exposed CDP DC services + items: + $ref: '#/definitions/ExposedService' + clusterValidationMessages: + type: array + description: List of cluster validation message. + items: + $ref: '#/definitions/EnvValidation' + EnvValidation: + x-form-factors: private + description: Object for validating services. + type: object + properties: + severity: + description: The level of validation severity. + type: string + enum: + - INFO + - WARNING + - ERROR + message: + type: string + description: Validation message. + CheckKubernetesConnectivityRequest: + x-form-factors: private + type: object + description: Request object for checking Kubernetes connectivity. + required: + - kubeConfig + properties: + kubeConfig: + type: string + description: Content of Kubernetes configuration file as a text blob in YAML format. + x-sensitive: true + format: + type: string + description: Format of Kubernetes configuration file. Defaults to YAML. + enum: + - YAML + CheckKubernetesConnectivityResponse: + x-form-factors: private + type: object + description: Response object for checking Kubernetes connectivity. + required: + - status + properties: + status: + type: string + description: Status of Kubernetes cluster. Also indicates connectivity. + enum: + - SUCCESS + - FAILURE + message: + type: string + description: Message explaining the status. Used for Errors. + CheckDatabaseConnectivityRequest: + x-form-factors: private + type: object + description: Request object for checking Database connectivity. + required: + - host + - port + - name + - username + - password + properties: + host: + type: string + description: Host value. + port: + type: integer + format: int32 + description: Port value. + name: + type: string + description: Database name value. + username: + type: string + description: Username value. + password: + type: string + description: Password value. + CheckDatabaseConnectivityResponse: + x-form-factors: private + type: object + description: Response object for checking Database connectivity. + required: + - result + properties: + result: + type: string + description: Result of the connectivity check. + enum: + - SUCCESS + - FAILURE + message: + type: string + description: Message explaining the result. + GetFreeipaStatusRequest: + type: object + description: Request object for getting the status of the FreeIPA servers. + required: + - environmentName + properties: + environmentName: + type: string + description: The environment name or CRN of the FreeIPA to repair + FreeIPANodeStatus: + type: object + description: The status and issues of an individual FreeIPA node. + required: + - hostname + - status + properties: + hostname: + type: string + description: The hostname of the ipa instance. + status: + type: string + description: The status of the individual node + enum: + - REQUESTED + - CREATED + - UNREGISTERED + - REGISTERED + - DECOMMISSIONED + - TERMINATED + - DELETED_ON_PROVIDER_SIDE + - DELETED_BY_PROVIDER + - FAILED + - STOPPED + - REBOOTING + - UNREACHABLE + - UNHEALTHY + - DELETE_REQUESTED + issues: + type: array + description: A list of issues the node is having + items: + type: string + GetFreeipaStatusResponse: + type: object + description: The overall status of the FreeIPA cluster. + required: + - environmentCrn + - environmentName + - status + - instances + properties: + environmentCrn: + type: string + description: The CRN of the environment + environmentName: + type: string + description: The name of the Environment + status: + type: string + description: The overall status of the FreeIPA cluster + enum: + - REQUESTED + - CREATE_IN_PROGRESS + - AVAILABLE + - STACK_AVAILABLE + - UPDATE_IN_PROGRESS + - UPDATE_REQUESTED + - UPDATE_FAILED + - CREATE_FAILED + - DELETE_IN_PROGRESS + - DELETE_FAILED + - DELETE_COMPLETED + - STOPPED + - STOP_REQUESTED + - START_REQUESTED + - STOP_IN_PROGRESS + - START_IN_PROGRESS + - START_FAILED + - STOP_FAILED + - WAIT_FOR_SYNC + - MAINTENANCE_MODE_ENABLED + - UNREACHABLE + - UNHEALTHY + - DELETED_ON_PROVIDER_SIDE + - UNKNOWN + instances: + type: object + description: Status of individual nodes in the FreeIPA cluster + additionalProperties: + description: An Individual Node Status + $ref: '#/definitions/FreeIPANodeStatus' + AttachFreeIpaRecipesRequest: + type: object + description: Request object for attaching recipes to FreeIPA. + required: + - environment + - recipes + properties: + environment: + type: string + description: The environment name or CRN of the FreeIPA. + recipes: + type: array + items: + type: string + description: The list of recipes to attach. + AttachFreeIpaRecipesResponse: + type: object + description: Response object for attaching recipes to FreeIPA. + DetachFreeIpaRecipesRequest: + type: object + description: Request object for detaching recipes from FreeIPA. + required: + - environment + - recipes + properties: + environment: + type: string + description: The environment name or CRN of the FreeIPA. + recipes: + type: array + items: + type: string + description: The list of recipes to detach. + DetachFreeIpaRecipesResponse: + type: object + description: Response object for detaching recipes from FreeIPA. + RepairFreeipaRequest: + type: object + description: Request object for repairing the FreeIPA servers. + required: + - environmentName + properties: + environmentName: + type: string + description: The environment name or CRN of the FreeIPA to repair + force: + type: boolean + description: Force the repair even if the status if the FreeIPA nodes are good. + default: false + instances: + type: array + items: + type: string + description: The instance Ids to repair. If not provided then all instances are looked at for repair. + repairType: + type: string + description: The type of FreeIPA repair to perform. * AUTO - Currently, this is the same as reboot but this may change in the future. * REBOOT - Repair the failed instances by rebooting them. * REBUILD - Repair the failed instances by deleting them and creating new instances, then replicate data from an existing instance to the new instances. + enum: + - AUTO + - REBOOT + - REBUILD + RepairFreeipaResponse: + type: object + description: Response object for an FreeIPA repair request. + properties: + operationId: + type: string + description: Operation ID of the request for this operation. This ID can be used for geting status on the operation. + status: + description: Status of this operation. + $ref: '#/definitions/RepairStatus' + successfulOperationDetails: + type: array + description: List of operation details for all successes. If the repair is only partially successful both successful and failure operation details will be populated. + items: + $ref: '#/definitions/RepairOperationDetails' + failureOperationDetails: + type: array + description: List of operation details for failures. If the repair is only partially successful both successful and failure operation details will be populated. + items: + $ref: '#/definitions/RepairOperationDetails' + error: + type: string + description: If there is any error associated. The error will be populated on any error and it may be populated when the operation failure details are empty. The error will typically contain the high level information such as the assocated repair failure phase. + startDate: + type: string + format: date-time + description: Date when the operation started. + endDate: + type: string + format: date-time + description: Date when the operation ended. Omitted if operation has not ended. + GetRepairFreeipaStatusRequest: + type: object + description: Request object for Repair Status. + required: + - operationId + properties: + operationId: + type: string + description: operationId for the previously requested repair operation. + GetRepairFreeipaStatusResponse: + type: object + description: Response object for Repair Operation. + properties: + status: + description: Status of this operation. + $ref: '#/definitions/RepairStatus' + successfulOperationDetails: + type: array + description: List of operation details for all successes. If the repair is only partially successful both successful and failure operation details will be populated. + items: + $ref: '#/definitions/RepairOperationDetails' + failureOperationDetails: + type: array + description: List of operation details for failures. If the repair is only partially successful both successful and failure operation details will be populated. + items: + $ref: '#/definitions/RepairOperationDetails' + error: + type: string + description: If there is any error associated. The error will be populated on any error and it may be populated when the operation failure details are empty. The error will typically contain the high level information such as the assocated repair failure phase. + startDate: + type: string + format: date-time + description: Date when the operation started. + endDate: + type: string + format: date-time + description: Date when the operation ended. Omitted if operation has not ended. + AWSFreeIpaCreationRequest: + description: Request object for creating FreeIPA in the environment. + type: object + properties: + instanceCountByGroup: + type: integer + format: int32 + description: The number of FreeIPA instances to create per group when creating FreeIPA in the environment + recipes: + type: array + items: + type: string + description: The recipes for the FreeIPA cluster. + instanceType: + type: string + description: Custom instance type of FreeIPA instances. + multiAz: + type: boolean + description: Flag which marks that the freeIPA will be deployed in a multi-availability zone way or not. + AzureFreeIpaCreationRequest: + description: Request object for creating FreeIPA in the environment. + type: object + properties: + instanceCountByGroup: + type: integer + format: int32 + description: The number of FreeIPA instances to create per group when creating FreeIPA in the environment + recipes: + type: array + items: + type: string + description: The recipes for the FreeIPA cluster. + instanceType: + type: string + description: Custom instance type of FreeIPA instances. + GCPFreeIpaCreationRequest: + description: Request object for creating FreeIPA in the environment. + type: object + properties: + instanceCountByGroup: + type: integer + format: int32 + description: The number of FreeIPA instances to create per group when creating FreeIPA in the environment + recipes: + type: array + items: + type: string + description: The recipes for the FreeIPA cluster. + instanceType: + type: string + description: Custom instance type of FreeIPA instances. + FreeIpaImageRequest: + description: Request object for FreeIPA image. + type: object + required: + - catalog + - id + properties: + catalog: + type: string + description: Image catalog to use for FreeIPA image selection. + x-no-paramfile: true + id: + type: string + description: Image ID to use for creating FreeIPA instances. + TagRequest: + description: A label that can be attached to some resources. + type: object + required: + - key + - value + properties: + key: + type: string + description: The tag's name. + value: + type: string + description: The associated value of the tag. + GcpTagRequest: + description: A label that can be attached to GCP resources. Please refer to Google documentation for the rules https://cloud.google.com/compute/docs/labeling-resources#label_format. + type: object + required: + - key + - value + properties: + key: + type: string + description: The tag's name. + value: + type: string + description: The associated value of the tag. + FreeipaDetails: + description: Details of a FreeIPA cluster. + type: object + properties: + crn: + type: string + description: CRN of the FreeIPA cluster. + domain: + type: string + description: The domain name of the FreeIPA cluster. + hostname: + type: string + description: The hostname of the FreeIPA cluster. + serverIP: + type: array + description: The IP addresses of the FreeIPA cluster. + uniqueItems: true + items: + type: string + recipes: + type: array + description: The recipes for the FreeIPA cluster. + items: + type: string + ProxyConfig: + type: object + description: A proxy config object. + required: + - proxyConfigName + - crn + - protocol + - host + - port + properties: + proxyConfigName: + type: string + description: The name of the proxy config. + crn: + type: string + description: The CRN of the proxy config. + protocol: + type: string + description: The protocol. + host: + type: string + description: The proxy host. + port: + type: integer + format: int32 + description: The proxy port. + description: + type: string + description: A description for the proxy config. + noProxyHosts: + type: string + description: Comma-separated list of 'CIDR', '[.]host[:port]' (can be a subdomain as well) and 'IP[:port]' entries that should not be proxied. Wildcards are not accepted. For example .cloudera.com,192.168.1.1 + user: + type: string + description: The proxy user. + password: + type: string + description: The proxy password. + CreateProxyConfigRequest: + type: object + description: Request object for a create proxy config request. + required: + - proxyConfigName + - protocol + - host + - port + properties: + proxyConfigName: + type: string + description: The name of the proxy config. + protocol: + type: string + description: The protocol. + host: + type: string + description: The proxy host. + port: + type: integer + format: int32 + description: The proxy port. + description: + type: string + description: A description for the proxy config. + noProxyHosts: + type: string + description: Comma-separated list of 'CIDR', '[.]host[:port]' (can be a subdomain as well) and 'IP[:port]' entries that should not be proxied. Wildcards are not accepted. For example .cloudera.com,192.168.1.1 + user: + type: string + description: The proxy user. + password: + type: string + description: The proxy password. + CreateProxyConfigResponse: + type: object + description: Response object for a create proxy config request. + required: + - proxyConfig + properties: + proxyConfig: + description: The proxy config object. + $ref: '#/definitions/ProxyConfig' + ListProxyConfigsRequest: + type: object + description: Request object for a list proxy configs request. + properties: + proxyConfigName: + type: string + description: An optional proxy config name to search by. + ListProxyConfigsResponse: + type: object + description: Response object for a list proxy configs request. + required: + - proxyConfigs + properties: + proxyConfigs: + type: array + items: + $ref: '#/definitions/ProxyConfig' + description: The proxy configs. + DeleteProxyConfigRequest: + type: object + description: Request object for a delete proxy config request. + required: + - proxyConfigName + properties: + proxyConfigName: + type: string + description: The name or CRN of the proxy config. + DeleteProxyConfigResponse: + type: object + description: Response object for a delete proxy config request. + SetTelemetryFeaturesRequest: + type: object + description: Request object to enable environment level telemetry features. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + workloadAnalytics: + type: boolean + description: Flag to enable environment level workload analytics. + reportDeploymentLogs: + type: boolean + description: Flag to enable environment level deployment log collection. + SetTelemetryFeaturesResponse: + type: object + description: Response object to enable environment level telemetry features. + GetEnvironmentSettingRequest: + x-form-factors: private + type: object + description: Request object to query environment configuration settings. + required: + - attrs + properties: + attrs: + type: array + items: + type: string + description: List of attributes to query settings for. Non-existant settings will be ignored. + environmentName: + type: string + description: The name or CRN of the environment. Empty to get system wide settings. + GetEnvironmentSettingResponse: + x-form-factors: private + type: object + properties: + settings: + type: object + additionalProperties: + type: string + description: Dictionary of settings found. + description: Dictionary of settings found. + description: Response object containing configuration settings. + SetEnvironmentSettingRequest: + x-form-factors: private + type: object + description: Request object to set environment configuration settings. + required: + - settings + properties: + settings: + type: object + additionalProperties: + type: string + description: Dictionary of settings to set. + description: Dictionary of settings to set. + environmentName: + type: string + description: The name or CRN of the environment. Empty to set system wide settings. + SetEnvironmentSettingResponse: + x-form-factors: private + type: object + description: Response object to set configuration. + SetAccountTelemetryRequest: + type: object + description: Request object to enable environment level telemetry features. + properties: + workloadAnalytics: + type: boolean + description: Flag to enable account level workload analytics. (that will be used as a default for environment) + reportDeploymentLogs: + type: boolean + description: Flag to enable account level deployment log collection. (that will be used as a default for environment) + rules: + type: array + description: List of anonymization rules that are applied on logs that are shipped to Cloudera + items: + $ref: '#/definitions/AnonymizationRuleRequest' + SetAccountTelemetryResponse: + type: object + description: Response object for set account level telemetry settings. + properties: + workloadAnalytics: + type: boolean + description: Flag to enable account level workload analytics. (that will be used as a default for environment) + reportDeploymentLogs: + type: boolean + description: Flag to enable account level deployment log collection. (that will be used as a default for environment) + rules: + type: array + description: List of anonymization rules that are applied on logs that are shipped to Cloudera + items: + $ref: '#/definitions/AnonymizationRuleResponse' + GetAccountTelemetryRequest: + type: object + description: Request object for get account level telemetry settings. + GetAccountTelemetryResponse: + type: object + description: Response object for get account level telemetry settings. + properties: + workloadAnalytics: + type: boolean + description: Flag to enable account level workload analytics. (that will be used as a default for environment) + reportDeploymentLogs: + type: boolean + description: Flag to enable account level deployment log collection. (that will be used as a default for environment) + rules: + type: array + description: List of anonymization rules that are applied on logs that are shipped to Cloudera + items: + $ref: '#/definitions/AnonymizationRuleResponse' + GetAccountTelemetryDefaultRequest: + type: object + description: Request object for get default account level telemetry settings. + GetAccountTelemetryDefaultResponse: + type: object + description: Response object for get default account level telemetry settings. + properties: + workloadAnalytics: + type: boolean + description: Flag to enable account level workload analytics. (that will be used as a default for environment) + reportDeploymentLogs: + type: boolean + description: Flag to enable account level deployment log collection. (that will be used as a default for environment) + rules: + type: array + description: List of anonymization rules that are applied on logs that are shipped to Cloudera + items: + $ref: '#/definitions/AnonymizationRuleResponse' + AnonymizationRuleRequest: + type: object + description: Anonymization rule request object that is applied on logs that are sent to Cloudera. + required: + - value + properties: + value: + type: string + description: Pattern of the rule that should be redacted. + replacement: + type: string + default: '[REDACTED]' + description: If rule pattern (value) matches, that will be replaced for this string (default [REDACTED]) + AnonymizationRuleResponse: + type: object + description: Anonymization rule response object rule that is applied on logs that are sent to Cloudera. + properties: + value: + type: string + description: Pattern of the rule that should be redacted. + replacement: + type: string + description: If rule pattern (value) matches, that will be replaced for this string (default [REDACTED]) + TestAccountTelemetryRulesRequest: + type: object + description: Request object for testing text input against provided account telemetry anonymization rules. + required: + - testInput + - rules + properties: + testInput: + type: string + description: Text input that will be tested against the provided account telemetry anonymization rules. + rules: + type: array + description: List of anonymization rules that are applied on logs that are shipped to Cloudera + items: + $ref: '#/definitions/AnonymizationRuleRequest' + TestAccountTelemetryRulesResponse: + type: object + description: Response object for testing anonymization rules for account telemetry. + properties: + output: + type: string + description: Output text after applying the anonymization rules on the test input. + FreeipaVmLogRequest: + type: object + description: Log descriptor, contains a path and label pair. Used for diagnostics collections. + required: + - path + - label + properties: + path: + type: string + description: Path of the log file(s) that needs to be collected. (Can be glob wildcard) + label: + type: string + description: Label that will be used to identify a log descriptor. (will be used as a folder inside logs folder) + FreeipaVmLogResponse: + type: object + description: Log descriptor, contains a path and label pair. Used for diagnostics collections. + properties: + path: + type: string + description: Path of the log file(s) that needs to be collected. (Can be glob wildcard) + label: + type: string + description: Label that will be used to identify a log descriptor. (will be used as a folder inside logs folder) + CollectFreeipaDiagnosticsRequest: + type: object + description: Request object for collecting FreeIPA diagnostics. + required: + - environmentName + - destination + - description + properties: + environmentName: + type: string + description: The name or CRN of the environment. + destination: + type: string + enum: + - SUPPORT + - CLOUD_STORAGE + - ENG + - LOCAL + description: Destination of the diagnostics collection (Support, Own cloud storage, Engineering or collect only on the nodes) + description: + type: string + description: Additional information / title for the diagnostics collection. + caseNumber: + type: string + description: Optional support case number in case of SUPPORT destination, otherwise only act as additional data. + labels: + type: array + description: Array of labels that can filter logs that are collected during diagnostics collection. + uniqueItems: true + items: + type: string + startDate: + type: string + format: date-time + description: Date timestamp - collect files only for diagnostics that has higher last modified timestamp value than this. + endDate: + type: string + format: date-time + description: Date timestamp - collect files only for diagnostics that has lower created timestamp value than this. + additionalLogs: + type: array + description: Array of log descriptors that should be additionally collected during diagnostics collection. + items: + $ref: '#/definitions/FreeipaVmLogRequest' + hosts: + type: array + description: Array of host names (fqdn), collection will run only on the dedicated hosts. + uniqueItems: true + items: + type: string + hostGroups: + type: array + description: Array of host groups, collection will run only on the dedicated hosts that belongs to these host groups. + uniqueItems: true + items: + type: string + excludeHosts: + type: array + description: Array of host names (fqdn or IP address), collection will not run on the excluded hosts. + uniqueItems: true + items: + type: string + skipUnresponsiveHosts: + type: boolean + description: Skip unhealthy hosts from the diagnostics collection. + includeNginxReport: + type: boolean + description: Include Nginx report generated by GoAccess (if available). + includeSaltLogs: + type: boolean + description: Include salt minion/master/api system logs in the diagnostics collection. + includeSarOutput: + type: boolean + description: Include SAR (System Activity Report) generated outputs in the diagnostics collection (if available). + updatePackage: + type: boolean + default: false + description: If enabled, required package (cdp-telemetry) will be upgraded or installed on the nodes. (useful if package is not installed or needs to be upgraded) Network is required for this operation. + storageValidation: + type: boolean + default: false + description: Enable/disable node level storage validation (can be disabled for example, if you have too many hosts and do not want to do too much parallel writes to s3/abfs) + CollectFreeipaDiagnosticsResponse: + type: object + description: Response object for collecting FreeIPA diagnostics. + ListFreeipaDiagnosticsRequest: + type: object + description: Request object for listing recent FreeIPA diagnostics collections. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + ListFreeipaDiagnosticsResponse: + type: object + description: Response object for listing recent FreeIPA diagnostics collections. + properties: + collections: + type: array + description: description. + items: + $ref: '#/definitions/FreeipaDiagnosticsCollectionResponse' + FreeipaDiagnosticsCollectionResponse: + type: object + description: Response object for diagnostic collection flow details. + properties: + status: + type: string + description: Status of the diagnostics collection flow. + enum: + - RUNNING + - FAILED + - FINISHED + - CANCELLED + flowId: + type: string + description: Flow ID of the diagnostics collection flow. + flowState: + type: string + description: Current state of the diagnostics collection flow. + created: + type: string + format: date-time + description: Creation date of the diagnostics collection flow. + progressPercentage: + type: integer + description: Progress percentage of the diagnostics collection flow (maximum value if finished). + format: int32 + collectionDetails: + $ref: '#/definitions/FreeipaDiagnosticsCollectionDetailsResponse' + description: Additional details about the diagnostics collection. + FreeipaDiagnosticsCollectionDetailsResponse: + type: object + description: Response object for diagnostic collection details. + properties: + case: + type: string + description: Case number for the diagnostics collection. + output: + type: string + description: Output destination of the diagnostics collection. + destination: + type: string + description: Destination type of the diagnostics collection. + description: + type: string + description: Description of the diagnostics collection. + accountId: + type: string + description: Account Id that was used for the diagnostics collection. + resourceCrn: + type: string + description: Crn of the Freeipa cluster. + clusterVersion: + type: string + description: Version of the cluster that was used for the diagnostics collection. + CancelFreeipaDiagnosticsRequest: + type: object + description: Request object for cancel running FreeIPA diagnostics collections. + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + CancelFreeipaDiagnosticsResponse: + type: object + description: Response object for cancel running FreeIPA diagnostics collections. + GetFreeipaLogDescriptorsRequest: + type: object + description: Request object for obtaining log descriptors. (that are used for diagnostics collection) + GetFreeipaLogDescriptorsResponse: + type: object + description: Response object for obtaining log descriptors. (useful for diagnostics collection filtering) + properties: + logs: + type: array + description: Array of log descriptors. (useful for diagnostics collection filtering) + items: + $ref: '#/definitions/FreeipaVmLogResponse' + EnvironmentTags: + type: object + x-no-compatibility-guarantee: true + description: Environment tags object containing the tag values defined for the environment. + properties: + userDefined: + type: object + description: Map of tag names to values, for user-defined tags. + additionalProperties: + type: string + description: Tag value for the user-defined tag. + defaults: + type: object + description: Map of tag names to values, for default tags. + additionalProperties: + type: string + description: Tag value for the default tag. + TunnelType: + type: string + description: Supported CCM versions + enum: + - CCM + - CCMV2 + - CCMV2_JUMPGATE + GetAuditCredentialPrerequisitesRequest: + type: object + description: Request object for getting the audit credential prerequisites for the given cloud platform. + required: + - cloudPlatform + properties: + cloudPlatform: + type: string + enum: + - AWS + - AZURE + description: The kind of cloud platform. + GetAuditCredentialPrerequisitesResponse: + type: object + description: The audit credential prerequisites. + required: + - cloudPlatform + properties: + cloudPlatform: + type: string + description: The name of the given cloud platform + accountId: + type: string + description: The provider specific identifier of the account/subscription/project that is used by Cloudbreak. + aws: + description: Provides the external id and policy JSON (this one encoded in base64) for AWS credential creation. + $ref: '#/definitions/AwsCredentialPrerequisitesResponse' + azure: + description: Provides the app creation command and role definition Json for Azure credential creation. + $ref: '#/definitions/AzureCredentialPrerequisitesResponse' + ListAuditCredentialsRequest: + type: object + description: Request object for a list audit credentials request. + ListAuditCredentialsResponse: + type: object + description: Response object for a list audit credentials request. + required: + - credentials + properties: + credentials: + type: array + items: + $ref: '#/definitions/Credential' + description: The credentials. + SetAWSAuditCredentialRequest: + type: object + description: Request object for a set AWS audit credential request. + required: + - roleArn + properties: + roleArn: + type: string + description: The ARN of the delegated access role. + SetAWSAuditCredentialResponse: + type: object + description: Response object for a set AWS audit credential request. + required: + - credential + properties: + credential: + description: The credential object. + $ref: '#/definitions/Credential' + SetAzureAuditCredentialRequest: + type: object + description: Request object for a set Azure audit credential request. + required: + - subscriptionId + - tenantId + - appBased + properties: + subscriptionId: + type: string + description: The Azure subscription ID. + tenantId: + type: string + description: The Azure AD tenant ID for the Azure subscription. + appBased: + type: object + description: Additional configurations needed for app-based authentication. + required: + - applicationId + - secretKey + properties: + applicationId: + type: string + description: The id of the application registered in Azure. + secretKey: + type: string + x-sensitive: true + description: The client secret key (also referred to as application password) for the registered application. + SetAzureAuditCredentialResponse: + type: object + description: Response object for a set Azure audit credential request. + required: + - credential + properties: + credential: + description: The credential object. + $ref: '#/definitions/Credential' + DeleteAuditCredentialRequest: + type: object + description: Request object for a delete audit credential request. + required: + - credentialName + properties: + credentialName: + type: string + description: The name or CRN of the credential. + DeleteAuditCredentialResponse: + type: object + description: Response object for a delete audit credential request. + SetEndpointAccessGatewayRequest: + type: object + description: Request object to set endpoint access gateway settings. + required: + - environment + - endpointAccessGatewayScheme + properties: + environment: + type: string + description: The name or CRN of the environment. Empty to get system wide settings. + endpointAccessGatewayScheme: + type: string + description: The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over internet. Defaults to PRIVATE which restricts the traffic to be internal to the VPC / Vnet. + enum: + - PUBLIC + - PRIVATE + endpointAccessGatewaySubnetIds: + type: array + items: + type: string + description: The subnets to use for endpoint access gateway. + SetEndpointAccessGatewayResponse: + type: object + description: Response object for set endpoint access gateway request. + LastAutomatedSyncDetails: + type: object + description: The details of the last sync performed by automated user sync. + required: + - timestamp + - status + properties: + timestamp: + type: string + format: date-time + description: The time when the sync was processed. + status: + type: string + description: The status of the sync. + enum: + - UNKNOWN + - SUCCESS + - FAILED + statusMessages: + type: array + description: Additional detail related to the status. + items: + type: string + SetCatalogRequest: + type: object + description: The request object to set catalog for a FreeIPA. + required: + - environment + - catalog + properties: + environment: + type: string + description: The name or CRN of the affected environment that holds the FreeIPA installation. + catalog: + type: string + description: URL of the FreeIPA catalog to be used. + x-no-paramfile: true + SetCatalogResponse: + type: object + description: The response object to set catalog for a FreeIPA request. + UpgradeFreeipaRequest: + type: object + description: The request object for FreeIPA upgrade. + x-no-compatibility-guarantee: true + required: + - environmentName + properties: + environmentName: + type: string + description: The name or CRN of the environment. + UpgradeFreeipaResponse: + type: object + description: The response object for FreeIPA upgrade. + x-no-compatibility-guarantee: true + properties: + targetImage: + description: Image selected for upgrade. + $ref: '#/definitions/ImageInfoResponse' + originalImage: + description: Original, current image. + $ref: '#/definitions/ImageInfoResponse' + operationId: + description: UUID of the request for this operation. This ID can be used for geting status on the operation. + type: string + UpscaleFreeipaRequest: + type: object + description: The request object for FreeIPA upscale. + required: + - environmentName + - targetAvailabilityType + properties: + environmentName: + type: string + description: The name or CRN of the environment. + targetAvailabilityType: + type: string + enum: + - HA + description: The target FreeIPA availability type. + UpscaleFreeipaResponse: + type: object + description: The response object for FreeIPA upscale. + properties: + originalAvailabilityType: + type: string + enum: + - NON_HA + - TWO_NODE_BASED + description: The original FreeIPA availability type. + targetAvailabilityType: + type: string + enum: + - HA + description: The target FreeIPA availability type. + operationId: + description: UUID of the request for this operation. This ID can be used to get the status of the operation. + type: string + DownscaleFreeipaRequest: + type: object + description: The request object for FreeIPA downscale. + required: + - environmentName + - targetAvailabilityType + properties: + environmentName: + type: string + description: The name or CRN of the environment. + targetAvailabilityType: + type: string + enum: + - HA + - TWO_NODE_BASED + description: The target FreeIPA availability type. + DownscaleFreeipaResponse: + type: object + description: The response object for FreeIPA downscale. + properties: + originalAvailabilityType: + type: string + enum: + - HA + description: The target FreeIPA availability type. + targetAvailabilityType: + type: string + enum: + - HA + - TWO_NODE_BASED + description: The target FreeIPA availability type. + operationId: + description: UUID of the request for this operation. This ID can be used to get the status of the operation. + type: string + StartFreeIpaVerticalScalingRequest: + type: object + description: The request object for FreeIPA vertical scaling. + required: + - environment + - instanceTemplate + properties: + environment: + type: string + description: The name or CRN of the environment. + instanceTemplate: + description: Instance template that specifies the core information for the vertical scale. + $ref: '#/definitions/InstanceTemplate' + StartFreeIpaVerticalScalingResponse: + type: object + description: The response object for FreeIPA vertical scaling. + properties: + result: + type: string + description: The result of the operation. + InstanceTemplate: + type: object + description: Instance template that specifies the core information for the instances. + properties: + attachedVolumes: + type: array + description: The attached volume configuration(s). + items: + $ref: '#/definitions/AttachedVolume' + awsProperties: + description: AWS specific FreeIPA parameters. + $ref: '#/definitions/AwsFreeIpaInstanceTemplateParams' + instanceType: + type: string + description: The type of the instance. + AttachedVolume: + type: object + description: The attached volume configuration. + properties: + count: + type: integer + format: int32 + description: The number of volumes. + volumeType: + type: string + description: The type of the volumes. + size: + type: integer + format: int64 + description: The size of each volume in GB. + AwsFreeIpaInstanceTemplateParams: + type: object + description: AWS specific FreeIPA parameters. + properties: + spotPercentage: + type: integer + format: int32 + minimum: 0 + maximum: 100 + description: Percentage of spot instances. + spotMaxPrice: + type: number + format: double + minimum: 0.001 + maximum: 255 + description: Maximum hourly price of spot instances. + ImageInfoResponse: + type: object + description: Information about FreeIPA image. + x-no-compatibility-guarantee: true + properties: + catalog: + type: string + description: Image catalog URL. + id: + type: string + description: Virtual machine image ID from ImageCatalog, machines of the cluster will be started from this image. + os: + type: string + description: OS type of the image, this property is only considered when no specific image ID is provided. + imageName: + type: string + description: Image name + date: + type: string + description: Creation date of the image from catalog. + catalogName: + type: string + description: Image catalog name. + RetryFreeipaRequest: + type: object + description: Request object for retry FreeIPA request. + x-no-compatibility-guarantee: true + required: + - environment + properties: + environment: + type: string + description: The name or CRN of the environment. + RetryFreeipaResponse: + type: object + description: Response object for retry FreeIPA operation on an environment. + x-no-compatibility-guarantee: true + UpgradeCcmRequest: + type: object + description: Request object for upgrading Cluster Connectivity Manager on an environment. + x-no-compatibility-guarantee: true + required: + - environment + properties: + environment: + type: string + description: The name or CRN of the environment. + UpgradeCcmResponse: + type: object + description: Response object for upgrading Cluster Connectivity Manager request on an environment. + x-no-compatibility-guarantee: true + RotateSaltPasswordRequest: + type: object + description: Request object for rotating SaltStack user password on FreeIPA instances. + required: + - environment + properties: + environment: + type: string + description: The name or CRN of the environment. + RotateSaltPasswordResponse: + type: object + description: Response object for rotating SaltStack user password on FreeIPA instances. diff --git a/cdp-sdk-go/resources/swagger/iam.yaml b/cdp-sdk-go/resources/swagger/iam.yaml new file mode 100644 index 00000000..51acc7be --- /dev/null +++ b/cdp-sdk-go/resources/swagger/iam.yaml @@ -0,0 +1,4073 @@ +swagger: '2.0' +x-endpoint-name: iam +x-products: ALTUS,CDP +x-form-factors: public,private +x-altus-releases: PUBLIC +x-cdp-releases: PUBLIC +x-audit: true +info: + version: 0.9.87 (BETA) + title: Cloudera IAM Service + license: + name: Apache 2.0 + description: Cloudera CDP IAM is a web service that you can use to manage users and user permissions under your CDP account. + termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html +schemes: + - https +consumes: + - application/json +produces: + - application/json +paths: + /iam/getUser: + post: + summary: Gets information on a user. + description: Gets information on a user. If no user name is specified. The user name is determined from the access key used to make the request. + operationId: getUser + x-form-factors: public,private + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listUsers: + post: + summary: Lists users. + description: Lists users. + operationId: listUsers + x-form-factors: public,private + x-right: iam/listUsers + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListUsersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListUsersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/createUser: + post: + summary: Creates a user in CDP. + description: Creates a user in CDP. + operationId: createUser + x-form-factors: public,private + x-right: iam/createUser + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/updateUser: + post: + summary: Updates a user. + description: Updates a user. Updates request fields provided. An error is returned if no field updates are defined in the request. + operationId: updateUser + x-right: iam/updateUser + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/deleteUser: + post: + summary: Deletes a user and all associated resources. + description: Deletes a user. This includes deleting all associated access keys and unassigning all roles and resource roles assigned to the user. The user is also removed from all groups it belongs to. If the call succeeds the user will not be able to login interactively, or use any access keys to access the CDP control plane. This feature is under development and some resources may be left behind after a successful call. Note that user-sync is not triggered yet by this call and the caller must trigger that to ensure that the user loses access to all environments as soon as possible. + operationId: deleteUser + x-form-factors: public + x-right: iam/deleteUser + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/createUserAccessKey: + post: + summary: Creates a new access key for a user. + description: Creates a new access key for a user. + operationId: createUserAccessKey + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateUserAccessKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateUserAccessKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/createMachineUserAccessKey: + post: + summary: Creates a new access key for a machine user. + description: Creates a new access key for a machine user. + operationId: createMachineUserAccessKey + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateMachineUserAccessKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateMachineUserAccessKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/deleteAccessKey: + post: + summary: Deletes an access key. + description: Deletes an access key. + operationId: deleteAccessKey + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteAccessKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteAccessKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/updateAccessKey: + post: + summary: Updates an access key. + description: Updates an access key. + operationId: updateAccessKey + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateAccessKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateAccessKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/getAccessKey: + post: + summary: Gets information on an access key. + description: Gets information on an access key. If no access key ID is specified. Information on the access key used to make the request is returned. + operationId: getAccessKey + x-form-factors: public,private + x-right: iam/getAccessKey + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAccessKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAccessKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listAccessKeys: + post: + summary: Lists access keys. + description: Lists access keys. + operationId: listAccessKeys + x-form-factors: public,private + x-right: iam/listAccessKeys + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListAccessKeysRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListAccessKeysResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listRoles: + post: + summary: Lists all the available roles. + description: Lists all the available roles. Roles grant rights to users via policies that are attached to the roles. + operationId: listRoles + x-form-factors: public,private + x-right: iam/listRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listResourceRoles: + post: + summary: Lists all the available resource roles. + description: Lists all the available resource roles. Resource roles grant rights over certain resources. + operationId: listResourceRoles + x-form-factors: public,private + x-right: iam/listResourceRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListResourceRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListResourceRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/setAccountMessages: + post: + summary: Set messages for an account. + description: Set messages for an account. + operationId: setAccountMessages + x-form-factors: public + x-right: iam/setAccountMessages + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetAccountMessagesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetAccountMessagesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/getAccountMessages: + post: + summary: Get account messages. + description: Get account messages. + operationId: getAccountMessages + x-form-factors: public + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAccountMessagesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAccountMessagesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignUserRole: + post: + summary: Assign a role to a user. + description: Assign a role to a user. If the role is already assigned to the user the request will fail. + operationId: assignUserRole + x-form-factors: public,private + x-right: iam/assignRole + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignUserRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignUserRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignUserRole: + post: + summary: Unassign a role from a user. + description: Unassign a role from a user. If the role is not currently assigned to the user the request will fail. + operationId: unassignUserRole + x-form-factors: public,private + x-right: iam/unassignRole + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignUserRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignUserRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignUserResourceRole: + post: + summary: Assign a resource role to a user. + description: Assign a resource role to a user. If the resource role is already assigned to the user the request will fail. + operationId: assignUserResourceRole + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignUserResourceRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignUserResourceRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignUserResourceRole: + post: + summary: Unassign a resource role from a user. + description: Unassign a resource role from a user. If the resource role is not currently assigned to the user the request will fail. + operationId: unassignUserResourceRole + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignUserResourceRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignUserResourceRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listUserAssignedRoles: + post: + summary: Lists the user's assigned roles. + description: Lists the user's assigned roles. + operationId: listUserAssignedRoles + x-form-factors: public,private + x-right: iam/listAssignedRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListUserAssignedRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListUserAssignedRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listUserAssignedResourceRoles: + post: + summary: Lists a user's assigned resource roles. + description: Lists a user's assigned resource roles. + operationId: listUserAssignedResourceRoles + x-form-factors: public,private + x-right: iam/listAssignedResourceRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListUserAssignedResourceRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListUserAssignedResourceRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignMachineUserRole: + post: + summary: Assign a role to a machine user. + description: Assign a role to a machine user. If the role is already assigned to the machine user the request will fail. + operationId: assignMachineUserRole + x-form-factors: public,private + x-right: iam/assignRole + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignMachineUserRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignMachineUserRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignMachineUserRole: + post: + summary: Unassign a role from a machine user. + description: Unassign a role from a machine user. If the role is not currently assigned to the machine user the request will fail. + operationId: unassignMachineUserRole + x-form-factors: public,private + x-right: iam/unassignRole + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignMachineUserRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignMachineUserRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignMachineUserResourceRole: + post: + summary: Assign a resource role to a machine user. + description: Assign a resource role to a machine user. If the resource role is already assigned to the machine user the request will fail. + operationId: assignMachineUserResourceRole + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignMachineUserResourceRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignMachineUserResourceRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignMachineUserResourceRole: + post: + summary: Unassign a resource role from a machine user. + description: Unassign a resource role from a machine user. If the resource role is not currently assigned to the machine user the request will fail. + operationId: unassignMachineUserResourceRole + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignMachineUserResourceRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignMachineUserResourceRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listMachineUserAssignedRoles: + post: + summary: Lists the machine user's assigned roles. + description: Lists the machine user's assigned roles. + operationId: listMachineUserAssignedRoles + x-form-factors: public,private + x-right: iam/listAssignedRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListMachineUserAssignedRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListMachineUserAssignedRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listMachineUserAssignedResourceRoles: + post: + summary: Lists a machine user's assigned resource roles. + description: Lists a machine user's assigned resource roles. + operationId: listMachineUserAssignedResourceRoles + x-form-factors: public,private + x-right: iam/listAssignedResourceRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListMachineUserAssignedResourceRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListMachineUserAssignedResourceRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listResourceAssignees: + post: + summary: List the resource assignees and their respective resource roles for the resource. + description: List the resource assignees and their respective resource roles for the resource. + operationId: listResourceAssignees + x-form-factors: public,private + x-right: iam/listResourceAssignees + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListResourceAssigneesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListResourceAssigneesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/createMachineUser: + post: + summary: Create a machine user. + description: Creates a machine user in the account. A machine user can be used to access CDP API. A machine user can have access keys associated with it and can be assigned roles and resource roles. A machine user cannot login to the CDP console. + operationId: createMachineUser + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateMachineUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateMachineUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listMachineUsers: + post: + summary: Lists machine users. + description: Lists machine users in the account. + operationId: listMachineUsers + x-form-factors: public,private + x-right: iam/listMachineUsers + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListMachineUsersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListMachineUsersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/deleteMachineUser: + post: + summary: Delete a machine user. + description: Deletes a machine user. This includes deleting all associated access keys and unassigning all roles and resource roles assigned to the machine user. The machine user is also removed from all groups it belongs to. If the call succeeds the machine user will not be able to use any access keys to access the CDP control plane. Note that user-sync is not triggered yet by this call and the caller must trigger that to ensure that the machine user loses access to all environments as soon as possible. + operationId: deleteMachineUser + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteMachineUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteMachineUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/createSamlProvider: + post: + summary: Creates a SAML provider in CDP. + description: Creates a SAML provider in CDP. + operationId: createSamlProvider + x-form-factors: public + x-right: iam/createSamlProvider + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateSamlProviderRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateSamlProviderResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/deleteSamlProvider: + post: + summary: Deletes a SAML provider in CDP account. + description: Deletes a SAML provider in CDP account. + operationId: deleteSamlProvider + x-form-factors: public + x-right: iam/deleteSamlProvider + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteSamlProviderRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteSamlProviderResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listSamlProviders: + post: + summary: Lists SAML providers in CDP account. + description: Lists SAML providers in CDP account. + operationId: listSamlProviders + x-form-factors: public + x-right: iam/listSamlProviders + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListSamlProvidersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListSamlProvidersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/describeSamlProvider: + post: + summary: Describes one SAML provider. + description: Describes one SAML provider. + operationId: describeSamlProvider + x-form-factors: public + x-right: iam/listSamlProviders + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeSamlProviderRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeSamlProviderResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/updateSamlProvider: + post: + summary: Updates a SAML provider in CDP. + description: Updates a SAML provider in CDP. + operationId: updateSamlProvider + x-form-factors: public + x-right: iam/updateSamlProvider + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateSamlProviderRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateSamlProviderResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/enableClouderaSSOLogin: + post: + summary: Enables interactive login using Cloudera SSO for this account. + description: Enables interactive login using Cloudera SSO for this account. This is a no-op if login using Cloudera SSO are already enabled. + operationId: enableClouderaSSOLogin + x-form-factors: public + x-right: iam/manageClouderaSSOLogin + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/EnableClouderaSSOLoginRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/EnableClouderaSSOLoginResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/disableClouderaSSOLogin: + post: + summary: Disables interactive login using Cloudera SSO for this account. + description: Disables interactive login using Cloudera SSO for this account. When disabled, only users who are designated account administrators will be able to use Cloudera SSO to interactively login to the CDP account. All other users will only be able to interactively login using SAML providers defined for the account. This is a no-op if login using Cloudera SSO are already disabled. + operationId: disableClouderaSSOLogin + x-form-factors: public + x-right: iam/manageClouderaSSOLogin + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DisableClouderaSSOLoginRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DisableClouderaSSOLoginResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/getAccount: + post: + summary: Retrieves information about the CDP account. + description: Retrieves information about the CDP account. + operationId: getAccount + x-form-factors: public,private + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAccountRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAccountResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/createGroup: + post: + summary: Create a group. + description: Create a group. A group is a named collection of users and machine users. Roles and resource roles can be assigned to a group impacting all members of the group. + operationId: createGroup + x-form-factors: public,private + x-right: iam/createGroup + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/deleteGroup: + post: + summary: Delete a group. + description: Delete a group. + operationId: deleteGroup + x-form-factors: public,private + x-right: iam/deleteGroup + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listGroups: + post: + summary: Lists groups. + description: Lists groups. If no group names are specified, the call lists all groups. + operationId: listGroups + x-form-factors: public,private + x-right: iam/listGroups + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListGroupsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListGroupsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/updateGroup: + post: + summary: Update a group. + description: Update a group. + operationId: updateGroup + x-form-factors: public,private + x-right: iam/updateGroup + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/addUserToGroup: + post: + summary: Add a user to a group. + description: Add a user to group. + operationId: addUserToGroup + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AddUserToGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AddUserToGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/addMachineUserToGroup: + post: + summary: Add a machine user to group. + description: Add a machine user to a group. + operationId: addMachineUserToGroup + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AddMachineUserToGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AddMachineUserToGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/removeUserFromGroup: + post: + summary: Remove a user from a group. + description: Remove a user from a group. + operationId: removeUserFromGroup + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RemoveUserFromGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RemoveUserFromGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/removeMachineUserFromGroup: + post: + summary: Remove a machine user from a group. + description: Remove a machine user from a group. + operationId: removeMachineUserFromGroup + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RemoveMachineUserFromGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RemoveMachineUserFromGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listGroupMembers: + post: + summary: List the members of a group. + description: List the members of a group. + operationId: listGroupMembers + x-form-factors: public,private + x-right: iam/listGroupMembers + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListGroupMembersRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListGroupMembersResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listGroupsForUser: + post: + summary: List the groups that the user belongs to. + description: List the groups that the user belongs to. + operationId: listGroupsForUser + x-form-factors: public,private + x-right: iam/listGroupsForActor + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListGroupsForUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListGroupsForUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listGroupsForMachineUser: + post: + summary: List the groups that the machine user belongs to. + description: List the groups that the machine user belongs to. + operationId: listGroupsForMachineUser + x-form-factors: public,private + x-right: iam/listGroupsForActor + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListGroupsForMachineUserRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListGroupsForMachineUserResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignGroupRole: + post: + summary: Assign a role to a group. + description: Assign a role to a group. If the role is already assigned to the group the request will fail. + operationId: assignGroupRole + x-form-factors: public,private + x-right: iam/assignRole + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignGroupRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignGroupRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignGroupRole: + post: + summary: Unassign a role from a group. + description: Unassign a role from a group. If the role is not currently assigned to the group the request will fail. + operationId: unassignGroupRole + x-form-factors: public,private + x-right: iam/unassignRole + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignGroupRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignGroupRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignGroupResourceRole: + post: + summary: Assign a resource role to a group. + description: Assign a resource role to a group. If the resource role is already assigned to the group the request will fail. + operationId: assignGroupResourceRole + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignGroupResourceRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignGroupResourceRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignGroupResourceRole: + post: + summary: Unassign a resource role from a group. + description: Unassign a resource role from a group. If the resource role is not currently assigned to the group the request will fail. + operationId: unassignGroupResourceRole + x-form-factors: public,private + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignGroupResourceRoleRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignGroupResourceRoleResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listGroupAssignedRoles: + post: + summary: Lists the group's assigned roles. + description: Lists the group's assigned roles. + operationId: listGroupAssignedRoles + x-form-factors: public,private + x-right: iam/listAssignedRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListGroupAssignedRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListGroupAssignedRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listGroupAssignedResourceRoles: + post: + summary: Lists a group's assigned resource roles. + description: Lists a group's assigned resource roles. + operationId: listGroupAssignedResourceRoles + x-form-factors: public,private + x-right: iam/listAssignedResourceRoles + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListGroupAssignedResourceRolesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListGroupAssignedResourceRolesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/setWorkloadPassword: + post: + summary: Set the workload password for an actor. + description: Set the workload password for an actor. This will be the actor's password in all Environments they have access to, including Environments they are given access to after setting the password. The password plaintext is not kept. + operationId: setWorkloadPassword + x-form-factors: public + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetWorkloadPasswordRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetWorkloadPasswordResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unsetWorkloadPasswordMinLifetime: + post: + summary: Removes workload password minimum lifetime date for an actor. + description: Removes the workload password minimum lifetime date for an actor. + operationId: unsetWorkloadPasswordMinLifetime + x-form-factors: public + x-right: iam/unsetWorkloadPasswordMinLifetime + x-entitlement: WORKLOAD_PASSWORD_POLICY + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnsetWorkloadPasswordMinLifetimeRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnsetWorkloadPasswordMinLifetimeResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/setWorkloadPasswordPolicy: + post: + summary: Set the workload password policy for the account. + description: Set the workload password for the account. Changes to the workload password policy only affect passwords that are set after the policy has been updated. By default, passwords never expire. + operationId: setWorkloadPasswordPolicy + x-right: iam/setWorkloadPasswordPolicy + x-entitlement: WORKLOAD_PASSWORD_POLICY + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetWorkloadPasswordPolicyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetWorkloadPasswordPolicyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unsetWorkloadPasswordPolicy: + post: + summary: Unset workload password policy for the account. + description: Unset the workload password for the account. Changes to the workload password policy only affect passwords that are set after the policy has been updated. + operationId: unsetWorkloadPasswordPolicy + x-right: iam/unsetWorkloadPasswordPolicy + x-entitlement: WORKLOAD_PASSWORD_POLICY + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnsetWorkloadPasswordPolicyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnsetWorkloadPasswordPolicyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/setAuthenticationPolicy: + post: + summary: Set the authentication policy for the account. + description: Set the authentication policy for the account. Check each request parameter for its default values. Changes to the authentication policy only affect authentications that are done after the policy has been updated. + operationId: setAuthenticationPolicy + x-no-compatibility-guarantee: true + x-right: iam/setAuthenticationPolicy + x-entitlement: AUTHENTICATION_POLICY + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SetAuthenticationPolicyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SetAuthenticationPolicyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/addSshPublicKey: + post: + summary: Adds an SSH public key for an actor. + description: Adds an SSH public key for an actor. The private key that corresponds to this public key can be used to SSH into any workload cluster that the actor is authorized to use. + operationId: addSshPublicKey + x-form-factors: public + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AddSshPublicKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AddSshPublicKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listSshPublicKeys: + post: + summary: Lists SSH public keys for an actor. + description: Lists SSH public keys for an actor. + operationId: listSshPublicKeys + x-form-factors: public + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListSshPublicKeysRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListSshPublicKeysResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/describeSshPublicKey: + post: + summary: Describes an SSH public key for an actor. + description: Describe an SSH public key for an actor. + operationId: describeSshPublicKey + x-form-factors: public + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeSshPublicKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeSshPublicKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/deleteSshPublicKey: + post: + summary: Deletes an SSH public key for an actor. + description: Delete an SSH public key for an actor. + operationId: deleteSshPublicKey + x-form-factors: public + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteSshPublicKeyRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteSshPublicKeyResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignAzureCloudIdentity: + post: + summary: Assign an Azure cloud identity to an actor or group. + description: Assign an Azure cloud identity, i.e. an object ID (OID), to an actor or group. + operationId: assignAzureCloudIdentity + x-no-compatibility-guarantee: true + x-right: iam/assignAzureCloudIdentity + x-entitlement: CDP_CLOUD_IDENTITY_MAPPING + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignAzureCloudIdentityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignAzureCloudIdentityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignAzureCloudIdentity: + post: + summary: Unassign an Azure cloud identity from an actor or group. + description: Unassign an Azure cloud identity, i.e. an object ID (OID), from an actor or group. + operationId: unassignAzureCloudIdentity + x-no-compatibility-guarantee: true + x-right: iam/unassignAzureCloudIdentity + x-entitlement: CDP_CLOUD_IDENTITY_MAPPING + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignAzureCloudIdentityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignAzureCloudIdentityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/assignServicePrincipalAzureCloudIdentity: + post: + summary: Assign an Azure cloud identity to a service principal. + description: Assign an Azure cloud identity, i.e. an object ID (OID), to a service principal. + operationId: assignServicePrincipalAzureCloudIdentity + x-no-compatibility-guarantee: true + x-right: iam/assignServicePrincipalAzureCloudIdentity + x-entitlement: CDP_CLOUD_IDENTITY_MAPPING + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/AssignServicePrincipalAzureCloudIdentityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/AssignServicePrincipalAzureCloudIdentityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unassignServicePrincipalAzureCloudIdentity: + post: + summary: Unassign an Azure cloud identity from a service principal. + description: Unassign an Azure cloud identity, i.e. an object ID (OID), from a service principal. + operationId: unassignServicePrincipalAzureCloudIdentity + x-no-compatibility-guarantee: true + x-right: iam/unassignServicePrincipalAzureCloudIdentity + x-entitlement: CDP_CLOUD_IDENTITY_MAPPING + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnassignServicePrincipalAzureCloudIdentityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnassignServicePrincipalAzureCloudIdentityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listServicePrincipalCloudIdentities: + post: + summary: List cloud identity mappings for service principals. + description: List cloud identity mappings for service principals. + operationId: listServicePrincipalCloudIdentities + x-no-compatibility-guarantee: true + x-right: iam/listServicePrincipalCloudIdentities + x-entitlement: CDP_CLOUD_IDENTITY_MAPPING + x-paging-default-max-items: 100 + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListServicePrincipalCloudIdentitiesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListServicePrincipalCloudIdentitiesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/generateWorkloadAuthToken: + post: + summary: Generates an authentication token for workload APIs. + description: Generates an authentication token which is required for sending requests to workload APIs. + operationId: generateWorkloadAuthToken + x-form-factors: public,private + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GenerateWorkloadAuthTokenRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GenerateWorkloadAuthTokenResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/createScimAccessToken: + post: + summary: Creates a SCIM access token for a SCIM enabled identity provider. + description: Creates a SCIM access token for a SCIM enabled identity provider. This token is used to authenticate requests sent to the SCIM endpoints. This operation is not supported for Cloudera for Government. + operationId: createScimAccessToken + x-form-factors: public + x-right: iam/createScimAccessToken + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateScimAccessTokenRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateScimAccessTokenResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/listScimAccessTokens: + post: + summary: Lists SCIM access tokens for a SCIM enabled identity provider. + description: Lists SCIM access tokens for a SCIM enabled identity provider. These access tokens are used to authenticate requests sent to the SCIM endpoints. This operation is not supported for Cloudera for Government. + operationId: listScimAccessTokens + x-form-factors: public + x-paginates: true + x-paging-default-max-items: 100 + x-right: iam/listScimAccessTokens + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListScimAccessTokensRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListScimAccessTokensResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/deleteScimAccessToken: + post: + summary: Deletes a SCIM access token. + description: Deletes a SCIM access token. This operation is not supported for Cloudera for Government. + operationId: deleteScimAccessToken + x-form-factors: public + x-right: iam/deleteScimAccessToken + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteScimAccessTokenRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteScimAccessTokenResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unlockUserInControlPlane: + post: + summary: Unlocks user in the CDP control plane. + description: Unlocks user in the CDP control plane. This operation is idempotent. Unlocking an active user will succeed and leave the user active. + operationId: unlockUserInControlPlane + x-form-factors: public + x-right: iam/unlockUserInControlPlane + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnlockUserInControlPlaneRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnlockUserInControlPlaneResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + /iam/unlockMachineUserInControlPlane: + post: + summary: Unlocks machine user in the CDP control plane. + description: Unlocks machine user in the CDP control plane. This operation is idempotent. Unlocking an active machine user will succeed and leave the machine user active. + operationId: unlockMachineUserInControlPlane + x-form-factors: public + x-right: iam/unlockMachineUserInControlPlane + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UnlockMachineUserInControlPlaneRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UnlockMachineUserInControlPlaneResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' +definitions: + Error: + type: object + description: An object returned on an error. + properties: + code: + type: string + description: The error code. + message: + type: string + description: The error message. + WorkloadPasswordPolicy: + type: object + description: Information about the workload password policy for an account. + required: + - maxPasswordLifetimeDays + - minPasswordLength + - mustIncludeUpperCaseCharacters + - mustIncludeLowerCaseCharacters + - mustIncludeNumbers + - mustIncludeSymbols + - minPasswordLifetimeDays + - passwordHistorySize + properties: + maxPasswordLifetimeDays: + type: integer + format: int32 + description: The maximum lifetime, in days, of the password. If '0' passwords never expire. + minPasswordLength: + type: integer + format: int32 + description: The minimum length of a password. + mustIncludeUpperCaseCharacters: + type: boolean + description: Whether passwords must include upper case characters. + mustIncludeLowerCaseCharacters: + type: boolean + description: Whether passwords must include lower case characters. + mustIncludeNumbers: + type: boolean + description: Whether passwords must include numbers. + mustIncludeSymbols: + type: boolean + description: Whether passwords must include symbols. The symbols are '#', '&', '*', '$', '%', '@', '^', '.', '_', and '!'. + minPasswordLifetimeDays: + type: integer + format: int32 + description: The minimum lifetime of passwords, in days. The password must be used for this duration before it can be changed. If set to '0' the password may be changed any time. The default is 0. + passwordHistorySize: + type: integer + format: int32 + description: The number of previous passwords that should be remembered. The user or machine user is prevented from reusing these passwords. Can be any number between 0 and 20. The default is 0, this value means all previous passwords may be reused. + AuthenticationPolicy: + type: object + description: Information about the authentication policy for an account. + x-no-compatibility-guarantee: true + properties: + accessKeyInactivityDurationSec: + type: integer + format: int32 + description: The inactivity duration, in seconds, of the access key, which would invalidate the access key due to no activity. The value of '0' indicates default inactivity duration (which is 1 hour normally and 15 minutes for Cloudera for Government). There's no access key invalidation from no activity if the value is greater or equal to expiration. + x-no-compatibility-guarantee: true + accessKeyExpirationSec: + type: integer + format: int32 + description: The expiration, in seconds, of the access key. The value of '0' indicates the system default expiration (which is 12 hours). + x-no-compatibility-guarantee: true + sessionTokenInactivityDurationSec: + type: integer + format: int32 + description: The inactivity duration, in seconds, of the UI session token, which would invalidate the session token due to no activity. The value of '0' indicates default inactivity duration (which is 1 hour normally and 15 minutes for Cloudera for Government). There's no session token invalidation from no activity if the value is greater or equal to expiration. + x-no-compatibility-guarantee: true + sessionTokenExpirationSec: + type: integer + format: int32 + description: The expiration, in seconds, of the UI session token. The value of '0' indicates the system default expiration (which is 12 hours). + x-no-compatibility-guarantee: true + Account: + type: object + description: Information about a Cloudera CDP account. + required: + - clouderaSSOLoginEnabled + - clouderaSSOAllLoginEnabled + - workloadPasswordPolicy + properties: + clouderaSSOLoginEnabled: + type: boolean + description: Whether interactive login using Cloudera SSO is enabled for users who are not account administrators. Its default value is 'true'. When it is 'true', the account administrators, as well as non-administrator users can login through Cloudera SSO. When it is 'false', Cloudera SSO users who are not account administrators will not be able to login. + clouderaSSOAllLoginEnabled: + type: boolean + description: Whether login is enabled for Cloudera SSO users. It can only be set by Cloudera upon request and disables interactive login through Cloudera SSO. Note that restricting Cloudera SSO login will prevent account administrators from logging in interactively. Its default value is 'true'. When it is 'true', the Cloudera SSO interactive login behavior is controlled according to the existing `clouderaSSOLoginEnabled` flag. When it is 'false', it overrides the setting for `clouderaSSOLoginEnabled`. + workloadPasswordPolicy: + $ref: '#/definitions/WorkloadPasswordPolicy' + description: The workload password policy object. + machineUserWorkloadPasswordPolicy: + $ref: '#/definitions/WorkloadPasswordPolicy' + description: The machine user workload password policy object. May be omitted if no such policy was defined. + authenticationPolicy: + x-no-compatibility-guarantee: true + $ref: '#/definitions/AuthenticationPolicy' + description: The authentication policy object. May be omitted if no such policy was defined. + User: + type: object + description: Information about a Cloudera CDP user. + required: + - userId + - crn + - email + - firstName + - lastName + - creationDate + - accountAdmin + - identityProviderCrn + x-limits: + - scope: account + value: 100 + doc: The maximum number of users that can be created in an account. + properties: + userId: + type: string + description: The stable, unique identifier of the user. + crn: + type: string + description: The CRN of the user. + email: + type: string + description: The user's email address. + firstName: + type: string + description: The user's first name. + lastName: + type: string + description: The user's last name. + creationDate: + type: string + format: date-time + description: The date when this user record was created. + accountAdmin: + type: boolean + description: Whether the user is an administrator of their CDP account. + identityProviderCrn: + type: string + description: The identity provider that the user belongs to. It can be "Cloudera-Default", "Cloudera-Administration", or a customer defined IdP. + lastInteractiveLogin: + type: string + format: date-time + description: The date of the user's last interactive login. + workloadUsername: + type: string + description: The username used in all the workload clusters of the user. + x-no-compatibility-guarantee: true + azureCloudIdentities: + type: array + items: + $ref: '#/definitions/AzureCloudIdentity' + description: The list of Azure cloud identities assigned to the user. + x-no-compatibility-guarantee: true + workloadPasswordDetails: + $ref: '#/definitions/WorkloadPasswordDetails' + description: Information about the workload password for the user. + MachineUser: + type: object + description: Information about a Cloudera CDP machine user. + required: + - machineUserName + - crn + - creationDate + x-limits: + - scope: account + value: 100 + doc: The maximum number of machine users that can be created in an account. + properties: + machineUserName: + type: string + description: The machine user name. + crn: + type: string + description: The CRN of the user. + creationDate: + type: string + format: date-time + description: The date when this machine user record was created. + workloadUsername: + type: string + description: The username used in all the workload clusters of the machine user. + x-no-compatibility-guarantee: true + azureCloudIdentities: + type: array + items: + $ref: '#/definitions/AzureCloudIdentity' + description: The list of Azure cloud identities assigned to the machine user. + x-no-compatibility-guarantee: true + workloadPasswordDetails: + $ref: '#/definitions/WorkloadPasswordDetails' + description: Information about the workload password for the machine user. + WorkloadPasswordDetails: + type: object + description: Information about the workload password for a user or machine user. + required: + - isPasswordSet + properties: + isPasswordSet: + type: boolean + description: Whether a workload password is set. + passwordExpirationDate: + type: string + format: date-time + description: The date at which the workload password will expire. + passwordMinLifetimeDate: + type: string + format: date-time + description: The minimum lifetime date of the workload password. A new password can't be set until this date. + AccessKeyType: + type: string + description: The version of an access key. `V1` - Deprecated, use RSA as the request signing algorithm. `V2` - Use ED25519 as the request signing algorithm. `V3` - Use ECDSA as the request signing algorithm. `DEFAULT` - Use the system default signing algorithm (V3 in GovCloud, V2 in other regions). + enum: + - V1 + - V2 + - V3 + AccessKey: + type: object + description: Information about a Cloudera CDP access key. + required: + - accessKeyId + - crn + - actorCrn + - creationDate + x-limits: + - scope: account + value: 200 + doc: The maximum number of access keys that can be created in an account. + properties: + accessKeyId: + type: string + description: The ID of the access key. + crn: + type: string + description: The CRN of the access key. + actorCrn: + type: string + description: The CRN of the actor with which this access key is associated. + creationDate: + type: string + format: date-time + description: The date when the access key was created. + status: + type: string + description: The status of an access key. + enum: + - ACTIVE + - INACTIVE + type: + $ref: '#/definitions/AccessKeyType' + description: The type of an access key. + lastUsage: + $ref: '#/definitions/AccessKeyLastUsage' + description: Information on the last time this access key was used. + AccessKeyLastUsage: + type: object + description: Information on the last time an access key was used. + properties: + lastUsageDate: + type: string + format: date-time + description: The date when the access key was last used. + serviceName: + type: string + description: The name of the service with which this access key was most recently used. + PolicyStatement: + type: object + description: A policy statement is a list of rights and zero or more resources on which the rights are granted. + required: + - rights + - resources + properties: + rights: + type: array + items: + type: string + description: The list of rights in the policy statement. + resources: + type: array + items: + type: string + description: The resources on which the rights are granted. + Policy: + type: object + description: A policy contains a list of one or more policy statements. + required: + - crn + - policyStatements + properties: + crn: + type: string + description: The policy crn. + policyStatements: + type: array + items: + $ref: '#/definitions/PolicyStatement' + description: The policy statements. + ResourceRole: + type: object + description: Information about a resource role. A resource role is a role that grants a collection of rights to a user on resources. + required: + - crn + - rights + properties: + crn: + type: string + description: The CRN of the resource role. + rights: + type: array + items: + type: string + description: The rights granted by this role. + Role: + type: object + description: Information about a role. + required: + - crn + - policies + properties: + crn: + type: string + description: The role's CRN. + policies: + type: array + items: + $ref: '#/definitions/Policy' + description: The list of policies that belong to the role. Cannot be empty. + ResourceAssignment: + type: object + description: Information about a resource assignment. + required: + - resourceCrn + - resourceRoleCrn + properties: + resourceCrn: + type: string + description: The assigned resource's CRN. + resourceRoleCrn: + type: string + description: The assigned resource role CRN. + ResourceAssignee: + type: object + description: Information about the resource role assignee for the resource. + required: + - assigneeCrn + - resourceRoleCrn + properties: + assigneeCrn: + type: string + description: The CRN of the assignee. + resourceRoleCrn: + type: string + description: The assigned resource role CRN. + Group: + type: object + description: Information about a group. + required: + - groupName + - crn + - creationDate + properties: + groupName: + type: string + description: The group name. + crn: + type: string + description: The CRN of the group. + creationDate: + type: string + format: date-time + description: The date when this group record was created. + syncMembershipOnUserLogin: + type: boolean + description: Whether group membership is synced when a user logs in. The default is to sync group membership. + azureCloudIdentities: + type: array + items: + $ref: '#/definitions/AzureCloudIdentity' + description: The list of Azure cloud identities assigned to the group. + x-no-compatibility-guarantee: true + SamlProvider: + type: object + description: Information used to connect a CDP account to an external identity provider. + required: + - crn + - creationDate + - samlProviderName + - samlProviderId + - syncGroupsOnLogin + properties: + crn: + type: string + description: CRN of the SAML provider in CDP. + x-no-compatibility-guarantee: true + creationDate: + type: string + format: date-time + description: The date when this SAML provider record was created. + x-no-compatibility-guarantee: true + samlProviderName: + type: string + description: Name of the SAML provider. + samlProviderId: + type: string + description: The unique ID of the saml provider. + syncGroupsOnLogin: + type: boolean + description: Whether users federated with this SAML provider will have their group membership synchronized. Group membership can be passed using the https://cdp.cloudera.com/SAML/Attributes/groups SAML assertion. + generateWorkloadUsernameByEmail: + type: boolean + description: Whether to generate users' workload username by email or by identity provider user ID (SAML NameID). + enableScim: + type: boolean + description: Whether SCIM is enabled on this SAML provider. System for Cross-domain Identity Management (SCIM) version 2.0 is a standard for automating the provisioning of user and group identity information from identity provider to CDP. It is omitted for Cloudera for Government. + scimUrl: + type: string + description: The SCIM URL if SCIM is enabled. It is omitted for Cloudera for Government. + samlMetadataDocument: + type: string + description: The original metadata that was passed while creating the SAML provider connector. This field will not be set when the SAML provider does not have metadata. This field will not be set for listSamlProviders API response. + cdpSpMetadata: + type: string + description: The Service Provider SAML metadata specific to this CDP SAML provider. This field will only be set for createSamlProvider and describeSamlProvider API calls. + SshPublicKey: + type: object + description: Information about an SSH public key. + required: + - crn + - publicKeyFingerprint + properties: + crn: + type: string + description: The SSH public key CRN. + publicKeyFingerprint: + type: string + description: The SSH public key SHA256 fingerprint. This is identical to the SHA256 produced by running the following command on a public key named 'key.pub'; ssh-keygen -l -E SHA256 -f /home/user/.ssh/key.pub. Note that ssh-keygen removes any padding bytes from the BASE64 fingerprint encoding (the '=' characters at the end of the fingerprint) which is also true for this fingerprint. + description: + type: string + description: An optional description for the public key. + publicKey: + type: string + description: The SSH public key string. Only populated for DescribeSshPublicKeyResponses. This is the same string that was used when the key was added. + AzureCloudIdentity: + type: object + description: An Azure cloud identity. + x-no-compatibility-guarantee: true + required: + - objectId + properties: + objectId: + type: string + description: The Azure object ID (OID). + environmentCrn: + type: string + description: The CRN of the environment this Azure cloud identity is associated with. If omitted, this cloud identity is associated with all Azure environments. + GetUserRequest: + type: object + description: Request object for a get user request. + properties: + userId: + type: string + description: The ID of the user to get information about. If it is not included, it defaults to the user making the request. + GetUserResponse: + type: object + description: Response object for a get user request. + required: + - user + properties: + user: + $ref: '#/definitions/User' + description: Information about the user. + ListUsersRequest: + type: object + description: Request object for a list users request. + properties: + userIds: + type: array + items: + type: string + description: The user IDs or CRNs of the users. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 500 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListUsersResponse: + type: object + description: Response object for a list users request. + required: + - users + properties: + users: + type: array + items: + $ref: '#/definitions/User' + x-paging-result: true + description: The users. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + CreateUserAccessKeyRequest: + type: object + description: Request object for a create user access key request. + properties: + user: + type: string + description: The ID or CRN of the user to whom this access key will be associated. If it is not included, it defaults to the user making the request. + type: + $ref: '#/definitions/AccessKeyType' + description: The version of an access key to create. + CreateUserAccessKeyResponse: + type: object + description: Response object for a create user access key request. + required: + - accessKey + - privateKey + properties: + accessKey: + $ref: '#/definitions/AccessKey' + description: The access key that was created. + privateKey: + type: string + description: The private key associated with this access key. This string is the contents of a PEM file containing a PKCS#8 private key. + x-sensitive: true + CreateMachineUserAccessKeyRequest: + type: object + description: Request object for a create machine user access key request. + required: + - machineUserName + properties: + machineUserName: + type: string + description: The name or CRN of the machine user to whom this access key will be associated. + type: + $ref: '#/definitions/AccessKeyType' + description: The version of an access key to create. + CreateMachineUserAccessKeyResponse: + type: object + description: Response object for a create machine user access key request. + required: + - accessKey + - privateKey + properties: + accessKey: + $ref: '#/definitions/AccessKey' + description: The access key that was created. + privateKey: + type: string + description: The private key associated with this access key. This string is the contents of a PEM file containing a PKCS#8 private key. + x-sensitive: true + DeleteAccessKeyRequest: + type: object + description: Request object for a delete access key request. + required: + - accessKeyId + properties: + accessKeyId: + type: string + description: The ID of the access key. + DeleteAccessKeyResponse: + type: object + description: Response object for a delete access key request. + UpdateAccessKeyRequest: + type: object + description: Request object for an update access key request. + required: + - accessKeyId + - status + properties: + accessKeyId: + type: string + description: The ID of the access key to update. + status: + type: string + description: The status to assign to the access key. + enum: + - ACTIVE + - INACTIVE + UpdateAccessKeyResponse: + type: object + description: Response object for an update access key request. + required: + - accessKey + properties: + accessKey: + $ref: '#/definitions/AccessKey' + description: The access key that was updated. + GetAccessKeyRequest: + type: object + description: Request object for a get access key request. + properties: + accessKeyId: + type: string + description: The ID of the access key to get information about. If it is not included, it defaults to the access key used to make the request. + GetAccessKeyResponse: + type: object + description: Response object for a get access key request. + required: + - accessKey + properties: + accessKey: + $ref: '#/definitions/AccessKey' + description: Information about the access key. + ListAccessKeysRequest: + type: object + description: Request object for a list access keys request. + properties: + accessKeyIds: + type: array + items: + type: string + description: The access key IDs or CRNs of the access keys. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 500 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListAccessKeysResponse: + type: object + description: Response object for a list access keys request. + required: + - accessKeys + properties: + accessKeys: + type: array + items: + $ref: '#/definitions/AccessKey' + x-paging-result: true + description: The access keys. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + CreateSamlProviderRequest: + type: object + description: Request object for creating SAML provider request. + required: + - samlProviderName + properties: + samlProviderName: + type: string + description: The name of SAML provider. The name must be unique, must have a maximum of 128 characters, and must contain only alphanumeric characters, "-" and "_". Names are are not case-sensitive. + samlMetadataDocument: + type: string + description: SAML metadata document XML file. Length of meta data document cannot be more than 200 KB (200,000 bytes). + maxLength: 200000 + syncGroupsOnLogin: + type: boolean + description: Whether to sync group information for users federated with this SAML provider. Group membership can be passed using the https://cdp.cloudera.com/SAML/Attributes/groups SAML assertion. The default is to synchronize group membership. + generateWorkloadUsernameByEmail: + type: boolean + description: Whether to generate users' workload username by email . The default is to generate workload usernames by identity provider user ID (SAML NameID). + enableScim: + type: boolean + description: Whether to enable SCIM on this SAML provider. System for Cross-domain Identity Management (SCIM) version 2.0 is a standard for automating the provisioning of user and group identity information from identity provider to CDP. It is not supported for Cloudera for Government. + CreateSamlProviderResponse: + type: object + description: Response object for a creating SAML provider request. + required: + - samlProvider + properties: + samlProvider: + $ref: '#/definitions/SamlProvider' + description: The SAML provider. + DeleteSamlProviderRequest: + type: object + description: Request object for deleting SAML provider request. + properties: + samlProviderName: + type: string + description: The name or CRN of the SAML provider to delete. + DeleteSamlProviderResponse: + type: object + description: Response object for delete SAML provider request. + ListSamlProvidersRequest: + type: object + description: Request object for a list SAML providers request. + properties: + samlProviderNames: + type: array + description: The SAML providers names or CRNs to retrieve. If empty all SAML providers will be returned. + items: + type: string + description: The SAML providers names or CRNs to retrieve. If empty all SAML providers will be returned. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListSamlProvidersResponse: + type: object + description: Response object for a list SAML providers request. + required: + - samlProviders + properties: + samlProviders: + type: array + items: + $ref: '#/definitions/SamlProvider' + x-paging-result: true + description: The SAML providers. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + DescribeSamlProviderRequest: + type: object + description: Request object for a describe SAML provider request. + properties: + samlProviderName: + type: string + description: The name or CRN of the SAML provider to describe. + DescribeSamlProviderResponse: + type: object + description: Response object for a describe SAML request. + required: + - samlProvider + properties: + samlProvider: + $ref: '#/definitions/SamlProvider' + description: The SAML provider. + UpdateSamlProviderRequest: + type: object + description: Request object for an updating SAML provider request. + required: + - samlProviderName + properties: + samlProviderName: + type: string + description: The name or CRN of SAML provider to update. + samlMetadataDocument: + type: string + description: SAML metadata document XML file. Length of meta data document cannot be more than 200 KB (200,000 bytes). Can be omitted if no update is required. + maxLength: 200000 + syncGroupsOnLogin: + type: boolean + description: Whether to sync group information for users federated with this SAML provider. Group membership can be passed using the https://cdp.cloudera.com/SAML/Attributes/groups SAML assertion. The default is to synchronize group membership. Can be omitted if no update is required. + generateWorkloadUsernameByEmail: + type: boolean + description: Whether to generate users' workload username by email. The default is to generate workload usernames by identity provider user ID (SAML NameID). + enableScim: + type: boolean + description: Whether to enable SCIM on this SAML provider. System for Cross-domain Identity Management (SCIM) version 2.0 is a standard for automating the provisioning of user and group identity information from identity provider to CDP. It is not supported for Cloudera for Government. + UpdateSamlProviderResponse: + type: object + description: Response object for an updating SAML provider request. + required: + - samlProvider + properties: + samlProvider: + $ref: '#/definitions/SamlProvider' + description: The SAML provider. + ListRolesRequest: + type: object + description: Request object for a list roles request. + properties: + roleNames: + type: array + items: + type: string + description: The roles names or CRNs to retrieve. If empty all roles will be returned. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListRolesResponse: + type: object + description: Response object for a list roles request. + required: + - roles + properties: + roles: + type: array + items: + $ref: '#/definitions/Role' + x-paging-result: true + description: The list of roles in the account. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ListResourceRolesRequest: + type: object + description: Request object for a list resource roles request. + properties: + resourceRoleNames: + type: array + items: + type: string + description: The resource roles CRNs to retrieve. If empty all resource roles will be returned. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListResourceRolesResponse: + type: object + description: Response object for a list resource roles request. + required: + - resourceRoles + properties: + resourceRoles: + type: array + items: + $ref: '#/definitions/ResourceRole' + x-paging-result: true + description: The list of resource roles. Cannot be empty. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + SetAccountMessagesRequest: + type: object + description: Request object for set account messages for account. + properties: + contactYourAdministratorMessage: + type: string + description: Message shown to user when user does not have sufficient rights. Length of message cannot be more than 512 characters. If string is empty, default message is displayed. + SetAccountMessagesResponse: + type: object + description: Response object for set account messages. + GetAccountMessagesRequest: + type: object + description: Request object for get account messages. + GetAccountMessagesResponse: + type: object + description: Response object for get account messages. + properties: + contactYourAdministratorMessage: + type: string + description: Message shown to user when user does not have sufficient rights. + AssignUserRoleRequest: + type: object + description: Request object for an assign user role request. + required: + - user + - role + properties: + user: + type: string + description: The user the role is assigned to. Can be the user's CRN or id. + role: + type: string + description: The role to assign to the user. Can be the role's CRN or name. + AssignUserRoleResponse: + type: object + description: Response object for an assign user role request. + UnassignUserRoleRequest: + type: object + description: Request object for an unassign user role request. + required: + - user + - role + properties: + user: + type: string + description: The user to unassigned the roles from. Can be the user CRN or id. + role: + type: string + description: The role to unassigned from the user. Can be the role's CRN or name. + UnassignUserRoleResponse: + type: object + description: Response object for an unassign user role request. + AssignUserResourceRoleRequest: + type: object + description: Request object for an assign user resource role request. + required: + - user + - resourceRoleCrn + - resourceCrn + properties: + user: + type: string + description: The user to assign the resource role to. Can be the user's CRN or id. + resourceRoleCrn: + type: string + description: The CRN of the resource role to assign to the user. + resourceCrn: + type: string + description: The resource for which the resource role rights are granted. + AssignUserResourceRoleResponse: + type: object + description: Response object for an assign user resource role request. + UnassignUserResourceRoleRequest: + type: object + description: Request object for an unassign user role request. + required: + - user + - resourceRoleCrn + - resourceCrn + properties: + user: + type: string + description: The user to unassign the resource role from. + resourceRoleCrn: + type: string + description: The CRN of the resource role to unassigned from the user. + resourceCrn: + type: string + description: The CRN of the resource for which the resource role rights will be unassigned. + UnassignUserResourceRoleResponse: + type: object + description: Response object for an unassign user role request. + ListUserAssignedRolesRequest: + type: object + description: Request object for a list user assigned roles request. + properties: + user: + type: string + description: The user to list the assigned roles for. Can be the user's CRN or id. If it is not included, it defaults to the user making the request. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListUserAssignedRolesResponse: + type: object + description: Response object for a list user assigned roles request. + required: + - roleCrns + properties: + roleCrns: + type: array + items: + type: string + x-paging-result: true + description: The role CRNs assigned to the user. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ListUserAssignedResourceRolesRequest: + type: object + description: Request object for a list user assigned resource roles request. + properties: + user: + type: string + description: The user to list the assigned roles for. Can be the user's CRN or id. If it is not included, it defaults to the user making the request. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListUserAssignedResourceRolesResponse: + type: object + description: Response object for a list user assigned roles request. + required: + - resourceAssignments + properties: + resourceAssignments: + type: array + items: + $ref: '#/definitions/ResourceAssignment' + x-paging-result: true + description: The user's resource assignments. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + AssignMachineUserRoleRequest: + type: object + description: Request object for an assign machine user role request. + required: + - machineUserName + - role + properties: + machineUserName: + type: string + description: The machine user the role is assigned to. Can be the machine user's name or CRN. + role: + type: string + description: The role to assign to the machine user. Can be the role's name or CRN. + AssignMachineUserRoleResponse: + type: object + description: Response object for an assign machine user role request. + UnassignMachineUserRoleRequest: + type: object + description: Request object for an unassign machine user role request. + required: + - machineUserName + - role + properties: + machineUserName: + type: string + description: The machine user to unassigned the roles from. Can be the machine user's name or CRN. + role: + type: string + description: The role to unassigned from the user. Can be the role's name or CRN. + UnassignMachineUserRoleResponse: + type: object + description: Response object for an unassign machine user role request. + AssignMachineUserResourceRoleRequest: + type: object + description: Request object for an assign machine user resource role request. + required: + - machineUserName + - resourceRoleCrn + - resourceCrn + properties: + machineUserName: + type: string + description: The machine user to assign the resource role to. Can be the machine user's name or CRN. + resourceRoleCrn: + type: string + description: The CRN of the resource role to assign to the machine user. + resourceCrn: + type: string + description: The resource for which the resource role rights are granted. + AssignMachineUserResourceRoleResponse: + type: object + description: Response object for an assign machine user resource role request. + UnassignMachineUserResourceRoleRequest: + type: object + description: Request object for an unassign machine user role request. + required: + - machineUserName + - resourceRoleCrn + - resourceCrn + properties: + machineUserName: + type: string + description: The machine user to unassign the resource role from. Can be the machine user's name or CRN. + resourceRoleCrn: + type: string + description: The CRN of the resource role to unassigned from the machine user. + resourceCrn: + type: string + description: The CRN of the resource for which the resource role rights will be unassigned. + UnassignMachineUserResourceRoleResponse: + type: object + description: Response object for an unassign machine user role request. + ListMachineUserAssignedRolesRequest: + type: object + description: Request object for a list machine user assigned roles request. + required: + - machineUserName + properties: + machineUserName: + type: string + description: The machine user to list the assigned roles for. Can be the machine user's name or CRN. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListMachineUserAssignedRolesResponse: + type: object + description: Response object for a list machine user assigned roles request. + required: + - roleCrns + properties: + roleCrns: + type: array + items: + type: string + x-paging-result: true + description: The role CRNs assigned to the user. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ListMachineUserAssignedResourceRolesRequest: + type: object + description: Request object for a list machine user assigned resource roles request. + required: + - machineUserName + properties: + machineUserName: + type: string + description: The machine user to list the assigned resource roles for. Can be the machine user's name or CRN. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListMachineUserAssignedResourceRolesResponse: + type: object + description: Response object for a list machine user assigned roles request. + required: + - resourceAssignments + properties: + resourceAssignments: + type: array + items: + $ref: '#/definitions/ResourceAssignment' + x-paging-result: true + description: The user's resource assignments. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ListResourceAssigneesRequest: + type: object + description: Request object for a list resource assignees request. + required: + - resourceCrn + properties: + resourceCrn: + type: string + description: The resource CRN for which to list the assignees. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListResourceAssigneesResponse: + type: object + description: Response object for a list resource assignees request. + required: + - resourceAssignees + properties: + resourceAssignees: + type: array + items: + $ref: '#/definitions/ResourceAssignee' + x-paging-result: true + description: List of resource assignees and their respective resource roles for the resource. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + CreateMachineUserRequest: + type: object + description: Request object for create machine user request. + required: + - machineUserName + properties: + machineUserName: + type: string + description: The name to use for the new machine user. The name must be an alpha numeric string, including '-' and '_', cannot start with '__' (double underscore) and cannot be longer than 128 characters. Only one machine user with this name can exist in an account at a given time. + CreateMachineUserResponse: + type: object + description: Response object for create machine user request. + required: + - machineUser + properties: + machineUser: + $ref: '#/definitions/MachineUser' + description: Information about the machine user. + ListMachineUsersRequest: + type: object + description: Request object for a list machine users request. + properties: + machineUserNames: + type: array + items: + type: string + description: The names or the CRNs of the machine users. If not provided all machine users for the account are retrieved. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListMachineUsersResponse: + type: object + description: Response object for a list machine users request. + required: + - machineUsers + properties: + machineUsers: + type: array + items: + $ref: '#/definitions/MachineUser' + x-paging-result: true + description: The machine users. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + DeleteMachineUserRequest: + type: object + description: Request object for delete machine user request. + required: + - machineUserName + properties: + machineUserName: + type: string + description: The name or CRN of the machine user to delete. + DeleteMachineUserResponse: + type: object + description: Response object for delete machine user request. + required: + - accessKeysDeleted + - groupsModified + - rolesUnassigned + - resourcesUnassigned + properties: + accessKeysDeleted: + type: array + items: + type: string + description: The list of associated access key CRNs that were deleted. + groupsModified: + type: array + items: + type: string + description: The list of group CRNs from which the machine user has been removed. + rolesUnassigned: + type: array + items: + type: string + description: The list of role CRNs unassigned from the machine user. + resourcesUnassigned: + type: array + items: + $ref: '#/definitions/ResourceAssignment' + description: The list of resource role assignments that have been unassigned from the machine user. + CreateGroupRequest: + type: object + description: Request object for create group request. + required: + - groupName + properties: + groupName: + type: string + description: The name of the group. This name must be unique. There are certain restrictions on the group name. Refer to the How To > User Management section in the Management Console documentation for the details. + syncMembershipOnUserLogin: + x-nullable: true + type: boolean + description: Whether group membership is synced when a user logs in. The default is to sync group membership. + CreateGroupResponse: + type: object + description: Response object for create group request. + required: + - group + properties: + group: + $ref: '#/definitions/Group' + description: Information about the group. + DeleteGroupRequest: + type: object + description: Request object for delete group request. + required: + - groupName + properties: + groupName: + type: string + description: The name or CRN of the group to delete. + DeleteGroupResponse: + type: object + description: Response object for delete group request. + ListGroupsRequest: + type: object + description: Request object for a list groups request. + properties: + groupNames: + type: array + items: + type: string + description: The group names or CRNs of the groups. If not provided, all groups in the account are retrieved. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListGroupsResponse: + type: object + description: Response object for a list groups request. + required: + - groups + properties: + groups: + type: array + items: + $ref: '#/definitions/Group' + x-paging-result: true + description: The list of groups. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + UpdateGroupRequest: + type: object + description: Request object for update group request. + required: + - groupName + properties: + groupName: + type: string + description: The name or CRN of the group to update. + syncMembershipOnUserLogin: + type: boolean + description: Whether group membership is synced when a user logs in. Can be omitted if no update is required. + UpdateGroupResponse: + type: object + description: Response object for update group request. + required: + - group + properties: + group: + $ref: '#/definitions/Group' + description: Information about the updated group. + AddUserToGroupRequest: + type: object + description: Request object for an add user to group request. + required: + - userId + - groupName + properties: + userId: + type: string + description: The ID or CRN of the user to add to the group. + groupName: + type: string + description: The name or CRN of the group to add the user to. + AddUserToGroupResponse: + type: object + description: Response object for an add user to group request. + AddMachineUserToGroupRequest: + type: object + description: Request object for an add machine user to group request. + required: + - machineUserName + - groupName + properties: + machineUserName: + type: string + description: The name or CRN of the machine user to add to the group. + groupName: + type: string + description: The name or CRN of the group to add the machine user to. + AddMachineUserToGroupResponse: + type: object + description: Response object for add machine user to group request. + RemoveUserFromGroupRequest: + type: object + description: Request object for a remove user from group request. + required: + - userId + - groupName + properties: + userId: + type: string + description: The ID or CRN of the user to remove from the group. + groupName: + type: string + description: The name or CRN of the group to remove the user from. + RemoveUserFromGroupResponse: + type: object + description: Response object for a remove user from group request. + RemoveMachineUserFromGroupRequest: + type: object + description: Request object for a remove machine user from group request. + required: + - machineUserName + - groupName + properties: + machineUserName: + type: string + description: The name or CRN of the machine user to add to the group. + groupName: + type: string + description: The name or CRN of the group to remove the machine user from. + RemoveMachineUserFromGroupResponse: + type: object + description: Response object for a remove machine user from group request. + ListGroupMembersRequest: + type: object + description: Request object for a list group members request. + required: + - groupName + properties: + groupName: + type: string + description: The name or CRN of the group to list the membership of. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListGroupMembersResponse: + type: object + description: Response object for a list group members request. + required: + - memberCrns + properties: + memberCrns: + type: array + items: + type: string + description: The list of group members. + x-paging-result: true + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ListGroupsForUserRequest: + type: object + description: Request object for a list groups for user request. + required: + - userId + properties: + userId: + type: string + description: The ID or CRN of the user to list the groups of. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListGroupsForUserResponse: + type: object + description: Response object for a list groups for user request. + required: + - groupCrns + properties: + groupCrns: + type: array + items: + type: string + x-paging-result: true + description: The list of groups. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ListGroupsForMachineUserRequest: + type: object + description: Request object for a list groups for machine user request. + required: + - machineUserName + properties: + machineUserName: + type: string + description: The name or CRN of the machine user to list the groups of. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListGroupsForMachineUserResponse: + type: object + description: Response object for a list groups for machine user request. + required: + - groupCrns + properties: + groupCrns: + type: array + items: + type: string + x-paging-result: true + description: The list of groups. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + AssignGroupRoleRequest: + type: object + description: Request object for an assign group role request. + required: + - groupName + - role + properties: + groupName: + type: string + description: The group to which the role is assigned to. Can be the group name or CRN. + role: + type: string + description: The role being assigned to the group. Can be the role's CRN or name. + AssignGroupRoleResponse: + type: object + description: Response object for an assign group role request. + UnassignGroupRoleRequest: + type: object + description: Request object for an unassign group role request. + required: + - groupName + - role + properties: + groupName: + type: string + description: The group to unassign the role from. Can be the group name or CRN. + role: + type: string + description: The role to unassign from the group. Can be the role's CRN or name. + UnassignGroupRoleResponse: + type: object + description: Response object for an unassign group role request. + AssignGroupResourceRoleRequest: + type: object + description: Request object for an assign group resource role request. + required: + - groupName + - resourceRoleCrn + - resourceCrn + properties: + groupName: + type: string + description: The group to assign the resource role to. Can be the group's name or CRN. + resourceRoleCrn: + type: string + description: The CRN of the resource role being assigned to the group. + resourceCrn: + type: string + description: The resource for which the resource role rights are granted. + AssignGroupResourceRoleResponse: + type: object + description: Response object for an assign group resource role request. + UnassignGroupResourceRoleRequest: + type: object + description: Request object for an unassign group resource role request. + required: + - groupName + - resourceRoleCrn + - resourceCrn + properties: + groupName: + type: string + description: The group to unassign the resource role from. + resourceRoleCrn: + type: string + description: The CRN of the resource role to unassign from the group. + resourceCrn: + type: string + description: The CRN of the resource for which the resource role rights will be unassigned. + UnassignGroupResourceRoleResponse: + type: object + description: Response object for an unassign group role request. + ListGroupAssignedRolesRequest: + type: object + description: Request object for a list group assigned roles request. + required: + - groupName + properties: + groupName: + type: string + description: The group to list the assigned roles for. Can be the group's name or CRN. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListGroupAssignedRolesResponse: + type: object + description: Response object for a list group assigned roles request. + required: + - roleCrns + properties: + roleCrns: + type: array + items: + type: string + x-paging-result: true + description: The role CRNs assigned to the group. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + ListGroupAssignedResourceRolesRequest: + type: object + description: Request object for a list group assigned resource roles request. + required: + - groupName + properties: + groupName: + type: string + description: The group to list the assigned resource roles for. Can be the group's name or CRN. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListGroupAssignedResourceRolesResponse: + type: object + description: Response object for a list group assigned resource roles request. + required: + - resourceAssignments + properties: + resourceAssignments: + type: array + items: + $ref: '#/definitions/ResourceAssignment' + x-paging-result: true + description: The group's resource assignments. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + EnableClouderaSSOLoginRequest: + type: object + description: Request object for an enable Cloudera SSO login request. + EnableClouderaSSOLoginResponse: + type: object + description: Response object for an enable Cloudera SSO login request. + DisableClouderaSSOLoginRequest: + type: object + description: Request object for a disable Cloudera SSO login request. + DisableClouderaSSOLoginResponse: + type: object + description: Response object for a disable Cloudera SSO login request. + GetAccountRequest: + type: object + description: Request object for a get account request. + GetAccountResponse: + type: object + description: Response object for a get account response. + required: + - account + properties: + account: + $ref: '#/definitions/Account' + description: The account object. + CreateUserRequest: + type: object + description: Request object for creating user request. + required: + - identityProviderUserId + - email + properties: + identityProviderUserId: + type: string + description: The identity provider user id for the user. This ID must match the NameId attribute value that will be passed for the user in the SAML response using the associated SAML provider. + email: + type: string + description: The email address for the user. Used for display purposes only. + samlProviderName: + type: string + description: The name or CRN of the SAML provider the user will use for login. + groups: + type: array + items: + type: string + description: The list of groups the user belongs to. The groups will be created if they do not exist. There are certain restrictions on the group name. Refer to the How To > User Management section in the Management Console documentation for the details. + firstName: + type: string + description: The user first name. + lastName: + type: string + description: The user last name. + CreateUserResponse: + type: object + description: Response object for a create user request. + required: + - user + properties: + user: + $ref: '#/definitions/User' + description: Information about the user. + UpdateUserRequest: + type: object + description: Request object to update a user. + required: + - user + properties: + user: + type: string + description: The CRN or userId of the user to be updated. + active: + type: boolean + description: The active state to which to set the user. When it is 'true', the user will be activated. When it is 'false' the user will be deactivated. + UpdateUserResponse: + type: object + description: Response object to update a user. + required: + - user + properties: + user: + $ref: '#/definitions/User' + description: Information about the updated user. + DeleteUserRequest: + type: object + description: Request object to delete a user. + required: + - userId + properties: + userId: + type: string + description: The ID or CRN of the user to delete. + DeleteUserResponse: + type: object + description: Response object to delete a user. + required: + - accessKeysDeleted + - groupsModified + - rolesUnassigned + - resourcesUnassigned + properties: + accessKeysDeleted: + type: array + items: + type: string + description: The list of associated access key CRNs that were deleted. + groupsModified: + type: array + items: + type: string + description: The list of group CRNs from which the user has been removed. + rolesUnassigned: + type: array + items: + type: string + description: The list of role CRNs unassigned from the user. + resourcesUnassigned: + type: array + items: + $ref: '#/definitions/ResourceAssignment' + description: The list of resource role assignments that have been unassigned from the user. + SetWorkloadPasswordRequest: + type: object + description: Request object for a set workload password request. + required: + - password + properties: + password: + type: string + description: The password value to set + x-sensitive: true + actorCrn: + type: string + description: The CRN of the user or machine user for whom the password will be set. If it is not included, it defaults to the user making the request. + SetWorkloadPasswordResponse: + type: object + description: Response object for a set workload password request. + PasswordPolicy: + type: object + description: An object representing password policy options. + properties: + maxPasswordLifetimeDays: + type: integer + format: int32 + minimum: 0 + description: The maximum lifetime of passwords, in days. If set to '0' passwords never expire. The default is 0. + minPasswordLength: + type: integer + format: int32 + minimum: 6 + maximum: 256 + description: The minimum length of a password. Can be any number between 6 and 256. The default minimum password length is 8. + mustIncludeUpperCaseCharacters: + type: boolean + description: Whether passwords must include upper case characters. The default is 'true'. + mustIncludeLowerCaseCharacters: + type: boolean + description: Whether passwords must include lower case characters. The default is 'true'. + mustIncludeNumbers: + type: boolean + description: Whether passwords must include numbers. The default is 'true'. + mustIncludeSymbols: + type: boolean + description: Whether passwords must include symbols. The symbols are '#', '&', '*', '$', '%', '@', '^', '.', '_', and '!'. The default is 'true'. + minPasswordLifetimeDays: + type: integer + format: int32 + minimum: 0 + description: The minimum lifetime of passwords, in days. The password must be used for this duration before it can be changed. If set to '0' the password may be changed any time. The default is 0. The minPasswordLifetimeDays must be greater than maxPasswordLifetimeDays. + passwordHistorySize: + type: integer + format: int32 + minimum: 0 + maximum: 20 + description: The number of previous passwords that should be remembered. The user or machine user is prevented from reusing these passwords. Can be any number between 0 and 20. The default is 0, this value means all previous passwords may be reused. + SetWorkloadPasswordPolicyRequest: + type: object + description: Request object for a set workload password policy request. + properties: + globalPasswordPolicy: + $ref: '#/definitions/PasswordPolicy' + description: The global password policy object. If set, maxPasswordLifetimeDays is ignored, and if not set the default values for the different password policies are used. See PasswordPolicy for more details on the different default values. + machineUsersPasswordPolicy: + $ref: '#/definitions/PasswordPolicy' + description: The password policy object for machine users. If set, this will be used for enforcing password complexity for machine users instead of the global password policy. + SetWorkloadPasswordPolicyResponse: + type: object + description: Response object for a set workload password policy request. + UnsetWorkloadPasswordMinLifetimeRequest: + type: object + description: Request object for a unset workload password min lifetime request. + required: + - actorCrn + properties: + actorCrn: + type: string + description: The CRN of the actor for whom to unset the workload password minimum lifetime date. + UnsetWorkloadPasswordMinLifetimeResponse: + type: object + description: Response object for an unset workload password minimum lifetime request. + UnsetWorkloadPasswordPolicyRequest: + type: object + description: Request object for a unset workload password policy request. + properties: + unsetGlobalPasswordPolicy: + type: boolean + description: Whether to unset the global password policy. This will reset the global policy to its defaults. + unsetMachineUsersPasswordPolicy: + type: boolean + description: Whether to unset the machine user password policy, if one exists. + UnsetWorkloadPasswordPolicyResponse: + type: object + description: Response object for a unset workload password policy request. + SetAuthenticationPolicyRequest: + type: object + description: Request object for a set authentication policy request. + x-no-compatibility-guarantee: true + properties: + accessKeyInactivityDurationSec: + type: integer + format: int32 + minimum: 0 + description: The inactivity duration, in seconds, of the access key, which would invalidate the access key due to inactivity. Set the value to '0' to use the system's default inactivity duration (which is 1 hour normally and 15 minutes for Cloudera for Government). If set to a value longer than the value for `accessKeyExpirationSec` then there will be no inactivity timeout. The value will be set to '0' if not provided. + x-no-compatibility-guarantee: true + accessKeyExpirationSec: + type: integer + format: int32 + minimum: 0 + description: The expiration, in seconds, of the access key. Set the value to '0' to use system default expiration (which is 12 hours for CDP). The value will be set to '0' if not provided. + x-no-compatibility-guarantee: true + sessionTokenInactivityDurationSec: + type: integer + format: int32 + minimum: 0 + description: The inactivity duration, in seconds, of the UI session token, which would invalidate the session token due to inactivity. Set the value to '0' to use the system's default inactivity duration (which is 1 hour normally and 15 minutes for Cloudera for Government). If set to a value longer than the value for `sessionTokenExpirationSec` then there will be no inactivity timeout. The value will be set to '0' if not provided. + x-no-compatibility-guarantee: true + sessionTokenExpirationSec: + type: integer + format: int32 + minimum: 0 + description: The expiration, in seconds, of the UI session token. Set the value to '0' to use system default expiration (which is 12 hours for CDP). The value will be set to '0' if not provided. + x-no-compatibility-guarantee: true + SetAuthenticationPolicyResponse: + type: object + description: Response object for a set authentication policy request. + x-no-compatibility-guarantee: true + AddSshPublicKeyRequest: + type: object + description: Request object for add user ssh public key. + required: + - publicKey + properties: + publicKey: + type: string + description: The RSA or ED25519 public ssh key to add. DSA and ECDSA public keys are not supported. The public key should be in RFC4253 format. (e.g. ssh-rsa AAAAB3NzaC1yc2EAAA.. user@host) as produced, for example, by ssh-keygen. + actorCrn: + type: string + description: The CRN of the user or machine user for whom the SSH public key will be added. If it is not included, it defaults to the user making the request. + description: + type: string + description: An optional description for the public key. + AddSshPublicKeyResponse: + type: object + description: Response object for add ssh public key. + required: + - sshPublicKey + properties: + sshPublicKey: + $ref: '#/definitions/SshPublicKey' + description: Information about the SSH public key. + ListSshPublicKeysRequest: + type: object + description: Request object for list SSH public key. + properties: + actorCrn: + type: string + description: The CRN of the user or machine user to list SSH public keys for. If it is not included, it defaults to the actor making the request. + ListSshPublicKeysResponse: + type: object + description: Response object for list SSH public key. + required: + - sshPublicKeys + properties: + sshPublicKeys: + type: array + items: + $ref: '#/definitions/SshPublicKey' + description: The list of SSH Public keys. + DescribeSshPublicKeyRequest: + type: object + description: Request object for describe SSH public key. + required: + - crnOrFingerprint + properties: + crnOrFingerprint: + type: string + description: The SSH public key CRN or its SHA256 fingerprint. + actorCrn: + type: string + description: The CRN of the user or machine user that the SSH public key belongs to. If it is not included, it defaults to the actor making the request. + DescribeSshPublicKeyResponse: + type: object + description: Response object for describe user SSH public key. + required: + - sshPublicKey + properties: + sshPublicKey: + $ref: '#/definitions/SshPublicKey' + description: Information about the SSH public key. + DeleteSshPublicKeyRequest: + type: object + description: Request object for delete SSH public key. + required: + - crnOrFingerprint + properties: + crnOrFingerprint: + type: string + description: The SSH public key CRN or the keys SHA256 fingerprint to remove. + actorCrn: + type: string + description: The CRN of the user or machine user that the SSH public key belongs to. If it is not included, it defaults to the actor making the request. + DeleteSshPublicKeyResponse: + type: object + description: Response object for delete SSH public key. + AssignAzureCloudIdentityRequest: + type: object + description: Request object for an assign Azure cloud identity request. + x-no-compatibility-guarantee: true + required: + - assigneeCrn + - objectId + properties: + assigneeCrn: + type: string + description: The CRN of the actor or group that the cloud identity will be assigned to. + objectId: + type: string + description: The Azure object ID (OID) to assign to the actor or group. + AssignAzureCloudIdentityResponse: + type: object + description: Response object for an assign Azure cloud identity request. + x-no-compatibility-guarantee: true + UnassignAzureCloudIdentityRequest: + type: object + description: Request object for an unassign Azure cloud identity request. + x-no-compatibility-guarantee: true + required: + - assigneeCrn + properties: + assigneeCrn: + type: string + description: The CRN of the actor or group from which the cloud identity will be unassigned. + UnassignAzureCloudIdentityResponse: + type: object + description: Response object for an unassign Azure cloud identity request. + x-no-compatibility-guarantee: true + AssignServicePrincipalAzureCloudIdentityRequest: + type: object + description: Request object for an assign service principal Azure cloud identity request. + x-no-compatibility-guarantee: true + required: + - servicePrincipal + - environmentCrn + - objectId + properties: + servicePrincipal: + type: string + description: The name of the service principal that the cloud identity will be assigned to. + environmentCrn: + type: string + description: The CRN of the environment for which the cloud identity assignment will be in effect. + objectId: + type: string + description: The Azure object ID (OID) to assign to the service principal. + AssignServicePrincipalAzureCloudIdentityResponse: + type: object + description: Response object for an assign service principal Azure cloud identity request. + x-no-compatibility-guarantee: true + UnassignServicePrincipalAzureCloudIdentityRequest: + type: object + description: Request object for an unassign service principal Azure cloud identity request. + x-no-compatibility-guarantee: true + required: + - servicePrincipal + - environmentCrn + properties: + servicePrincipal: + type: string + description: The name of the service principal from which the cloud identity will be unassigned. + environmentCrn: + type: string + description: The CRN of the environment for which the cloud identity to unassign is in effect. + UnassignServicePrincipalAzureCloudIdentityResponse: + type: object + description: Response object for an unassign service principal Azure cloud identity request. + x-no-compatibility-guarantee: true + ListServicePrincipalCloudIdentitiesRequest: + type: object + description: Request object for a list service principal cloud identities request. + x-no-compatibility-guarantee: true + properties: + servicePrincipals: + type: array + items: + type: string + description: The service principals for which cloud identity mappings should be listed. If omitted, mappings for all service principals are listed. + environmentCrn: + type: string + description: The CRN of the environment for which cloud identity mappings should be listed. If omitted, mappings for all environments are listed. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ServicePrincipalCloudIdentities: + type: object + description: Cloud identity mappings for a service principal. + x-no-compatibility-guarantee: true + required: + - servicePrincipal + properties: + servicePrincipal: + type: string + description: The name of the service principal that the cloud identities are assigned to. + azureCloudIdentities: + type: array + items: + $ref: '#/definitions/AzureCloudIdentity' + description: The list of Azure cloud identities assigned to the service principal. + ListServicePrincipalCloudIdentitiesResponse: + type: object + description: Response object for a list service principal cloud identities request. + x-no-compatibility-guarantee: true + required: + - servicePrincipalCloudIdentities + properties: + servicePrincipalCloudIdentities: + type: array + items: + $ref: '#/definitions/ServicePrincipalCloudIdentities' + x-paging-result: true + description: The list of service principal cloud identity mappings. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + GenerateWorkloadAuthTokenRequest: + type: object + description: Request object for GenerateWorkloadAuthToken method. + required: + - workloadName + properties: + workloadName: + description: The workload name + $ref: '#/definitions/WorkloadName' + environmentCrn: + type: string + description: The environment CRN, required by DF. + GenerateWorkloadAuthTokenResponse: + type: object + description: Response object for GenerateWorkloadAuthToken method. + properties: + endpointUrl: + type: string + description: The workload endpoint URL + token: + type: string + description: The authentication token + x-sensitive: true + expireAt: + type: string + format: date-time + description: When the information should expire + WorkloadName: + type: string + description: The workload name. + enum: + - DE + - DF + CreateScimAccessTokenRequest: + type: object + description: Request object to create the SCIM access token. + required: + - identityProviderNameOrCrn + - accessTokenLifetimeDays + properties: + identityProviderNameOrCrn: + type: string + description: The name or CRN of the SCIM enabled identity provider. + accessTokenLifetimeDays: + type: integer + format: int32 + minimum: 1 + description: The lifetime, in days, of the access token. + CreateScimAccessTokenResponse: + type: object + description: Response object to create the SCIM access token. + required: + - accessToken + - accessTokenSecret + properties: + accessToken: + $ref: '#/definitions/ScimAccessToken' + description: The SCIM access token that was created. + accessTokenSecret: + type: string + description: The SCIM access token secret. This secret could be used to authenticate requests sent to SCIM endpoints. + x-sensitive: true + ListScimAccessTokensRequest: + type: object + description: Request object to list the SCIM access tokens. + required: + - identityProviderNameOrCrn + properties: + identityProviderNameOrCrn: + type: string + description: The name or CRN of the identity provider. + pageSize: + type: integer + format: int32 + minimum: 1 + maximum: 100 + x-paging-page-size: true + description: The size of each page. + startingToken: + type: string + x-paging-input-token: true + description: A token to specify where to start paginating. This is the nextToken from a previously truncated response. + ListScimAccessTokensResponse: + type: object + description: Response object to list the SCIM access tokens. + required: + - accessTokens + properties: + accessTokens: + type: array + items: + $ref: '#/definitions/ScimAccessToken' + x-paging-result: true + description: The SCIM access tokens. + nextToken: + type: string + x-paging-output-token: true + description: The token to use when requesting the next set of results. If not present, there are no additional results. + DeleteScimAccessTokenRequest: + type: object + description: Request object to delete the SCIM access token. + required: + - accessTokenIdOrCrn + properties: + accessTokenIdOrCrn: + type: string + description: The ID or CRN of the SCIM access token. + DeleteScimAccessTokenResponse: + type: object + description: Response object to delete the SCIM access token. + ScimAccessToken: + type: object + description: Information about the SCIM access token. + required: + - accessTokenId + - crn + - creationDate + properties: + accessTokenId: + type: string + description: The SCIM access token id. + crn: + type: string + description: The SCIM access token CRN. + creationDate: + type: string + format: date-time + description: The date when this SCIM access token was created. + expirationDate: + type: string + format: date-time + description: The SCIM access token expiration date. The access token never expires if the value is not set. + UnlockUserInControlPlaneRequest: + type: object + description: Request object for unlocking the user in the CDP control plane. + required: + - user + properties: + user: + type: string + description: The ID or CRN of the user to be unlocked in the CDP control plane. + UnlockUserInControlPlaneResponse: + type: object + description: Response object for unlocking the user in the CDP control plane. + required: + - user + properties: + user: + $ref: '#/definitions/User' + description: The unlocked user. + UnlockMachineUserInControlPlaneRequest: + type: object + description: Request object for unlocking the machine user in the control plane. + required: + - machineUser + properties: + machineUser: + type: string + description: The name or CRN of the machine user to be unlocked in the CDP control plane. + UnlockMachineUserInControlPlaneResponse: + type: object + description: Response object for unlocking the machine user in the CDP control plane. + required: + - machineUser + properties: + machineUser: + $ref: '#/definitions/MachineUser' + description: The unlocked machine user. diff --git a/cdp-sdk-go/resources/swagger/ml.yaml b/cdp-sdk-go/resources/swagger/ml.yaml new file mode 100644 index 00000000..46a5ee30 --- /dev/null +++ b/cdp-sdk-go/resources/swagger/ml.yaml @@ -0,0 +1,1679 @@ +x-generated: Automatically generated by CDP protoc plugin. Do not edit manually. +swagger: '2.0' +x-endpoint-name: ml +x-products: CDP +x-form-factors: public,private +x-cdp-releases: PUBLIC +info: + version: 0.9.87 (BETA) + title: Cloudera Machine Learning + license: + name: Apache 2.0 + description: Install and manage Cloudera Machine Learning applications. + termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html +schemes: + - https +consumes: + - application/json +produces: + - application/json +paths: + /api/v1/ml/backupWorkspace: + post: + summary: Backup a workspace. + description: Backup a workspace. + operationId: backupWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/BackupWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/BackupWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/createWorkspace: + post: + summary: Create a Cloudera Machine Learning workspace. + description: Provision a Kubernetes cluster and install the Cloudera Machine Learning application in it. + operationId: createWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/CreateWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/CreateWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/deleteBackup: + post: + summary: Deletes a backup snapshot. + description: Deletes a Cloudera Machine Learning workspace backup. + operationId: deleteBackup + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteBackupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteBackupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/deleteInstanceGroup: + post: + summary: Deletes an instance group from the cluster. + description: Deletes an instance group from a Cloudera Machine Learning workspace. + operationId: deleteInstanceGroup + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteInstanceGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteInstanceGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/deleteWorkspace: + post: + summary: Delete Cloudera Machine Learning Workspace. + description: Deletes a Cloudera Machine Learning workspace. + operationId: deleteWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DeleteWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DeleteWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/describeWorkspace: + post: + summary: Describe Cloudera Machine Learning Workspace. + description: Describes a Cloudera Machine Learning workspace. + operationId: describeWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/DescribeWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/DescribeWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/ml/getAuditEvents: + post: + summary: Gets all the events belong to a workspace crn. + description: Gets all the events belong to a workspace crn. + operationId: getAuditEvents + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetAuditEventsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetAuditEventsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/ml/getKubeconfig: + post: + summary: ListWorkspaceAccess Cloudera Machine Learning Workspace. + description: Lists users that can perform Kubernetes operations on a Cloudera Machine Learning workspace via EKS. + operationId: getKubeconfig + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetKubeconfigRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetKubeconfigResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/ml/getLatestWorkspaceVersion: + post: + summary: GetLatestWorkspaceVersion Cloudera Machine Learning Workspace. + description: Retrieves the latest version that Cloudera Machine Learning deploys to workspaces. + operationId: getLatestWorkspaceVersion + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetLatestWorkspaceVersionRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetLatestWorkspaceVersionResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/ml/getLogs: + post: + summary: Gets all the logs belong to a request id. + description: Gets all the logs belong to a request id. + operationId: getLogs + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetLogsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetLogsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/ml/grantWorkspaceAccess: + post: + summary: GrantWorkspaceAccess Cloudera Machine Learning Workspace. + description: Grants an AWS user to perform Kubernetes operations on a Cloudera Machine Learning workspace via EKS. + operationId: grantWorkspaceAccess + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GrantWorkspaceAccessRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GrantWorkspaceAccessResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/listWorkspaceAccess: + post: + summary: ListWorkspaceAccess Cloudera Machine Learning Workspace. + description: Lists users that can perform Kubernetes operations on a Cloudera Machine Learning workspace via EKS. + operationId: listWorkspaceAccess + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListWorkspaceAccessRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListWorkspaceAccessResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/ml/listWorkspaceBackups: + post: + summary: List backup snapshots of a workspace. + description: List backup snapshots of a workspace. + operationId: listWorkspaceBackups + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListWorkspaceBackupsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListWorkspaceBackupsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: false + /api/v1/ml/listWorkspaces: + post: + summary: List Cloudera Machine Learning workspaces. + description: List Cloudera Machine Learning workspaces. + operationId: listWorkspaces + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ListWorkspacesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ListWorkspacesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-skip-auditing: true + /api/v1/ml/modifyClusterInstanceGroup: + post: + summary: Modify Cloudera Machine Learning workspace cluster instance group. + description: Modify a Cloudera Machine Learning workspace cluster instance group. + operationId: modifyClusterInstanceGroup + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ModifyClusterInstanceGroupRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ModifyClusterInstanceGroupResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/modifyClusterSecurity: + post: + summary: Modify Cloudera Machine Learning workspace cluster security. + description: Modify a Cloudera Machine Learning workspace cluster security. + operationId: modifyClusterSecurity + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ModifyClusterSecurityRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ModifyClusterSecurityResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/modifyWorkspaceLoadBalancer: + post: + summary: Modify Cloudera Machine Learning workspace loadbalancer. + description: Modify a Cloudera Machine Learning workspace loadbalancer. + operationId: modifyWorkspaceLoadBalancer + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ModifyWorkspaceLoadBalancerRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ModifyWorkspaceLoadBalancerResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/requestWorkflowCancellation: + post: + summary: Request a workflow cancellation. + description: Request a long running workflow cancellation by resource ID and workflow type. + operationId: requestWorkflowCancellation + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RequestWorkflowCancellationRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RequestWorkflowCancellationResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/restoreWorkspace: + post: + summary: Restore a Cloudera Machine Learning workspace. + description: Create a new workspace based on an existing workspace backup snapshot. + operationId: restoreWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RestoreWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RestoreWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/resumeWorkspace: + post: + summary: Resume Cloudera Machine Learning workspace. + description: Resume a Cloudera Machine Learnings workspace. + operationId: resumeWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ResumeWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ResumeWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/revokeWorkspaceAccess: + post: + summary: RevokeWorkspaceAccess Cloudera Machine Learning Workspace. + description: Revokes an AWS user to perform Kubernetes operations on a Cloudera Machine Learning workspace via EKS. + operationId: revokeWorkspaceAccess + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/RevokeWorkspaceAccessRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/RevokeWorkspaceAccessResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/suspendWorkspace: + post: + summary: Suspend Cloudera Machine Learning workspace. + description: Suspend a Cloudera Machine Learning workspace. + operationId: suspendWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/SuspendWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/SuspendWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true + /api/v1/ml/upgradeWorkspace: + post: + summary: Upgrade Cloudera Machine Learning workspace. + description: Upgrades a Cloudera Machine Learning workspace to the latest available version. + operationId: upgradeWorkspace + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpgradeWorkspaceRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpgradeWorkspaceResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true +definitions: + Error: + type: object + description: An object returned on an error. + properties: + code: + type: string + description: The error code. + message: + type: string + description: The error message. + RootVolume: + type: object + description: Configuration for instance root device volume. + required: + - size + properties: + size: + type: integer + format: int64 + description: The volume size in GB. + GetLogsRequest: + type: object + description: GetLogsRequestfor getting logs for a request ID. + required: + - workspaceCrn + - requestID + properties: + workspaceCrn: + type: string + description: WorkspaceCrn the requestID belongs to. + requestID: + type: string + description: Unique Key to identify a set of logs. + fetchAll: + type: boolean + description: Flag to fetch all logs. + pageSize: + type: integer + format: int32 + description: Limit the number of logs. + offset: + type: integer + format: int32 + description: offset from which the logs should be fetched. + GetLogsResponse: + type: object + description: GetLogsResponse contains all the logs for a given request id. + required: + - auditLogs + properties: + auditLogs: + description: Contains all the logs for a given request id. + $ref: '#/definitions/AuditLogs' + AuditLogs: + type: object + description: AuditLogs contains all the logs for a given request id. + required: + - requestID + - count + - logs + properties: + requestID: + type: string + description: The request ID associated with a long-running operation to fetch the logs for. + count: + type: integer + format: int32 + description: Total number of logs associated with the request id. + logs: + type: array + items: + $ref: '#/definitions/AuditLog' + description: Contains all the logs for a given request id. + AuditLog: + type: object + description: Audit log represents an individual log. + required: + - createdDate + - log + properties: + createdDate: + type: string + format: date-time + description: Time at which the log is created. + log: + type: string + description: Log description. + GetAuditEventsRequest: + type: object + description: GetAuditEventsRequest to get all audit events for a given workspace crn. + required: + - workspaceCrn + properties: + workspaceCrn: + type: string + description: Workspace crn for which audit events to be fetched. + GetAuditEventsResponse: + type: object + description: GetAuditEventsResponse containes all the audit events for a given workspace crn. + required: + - auditEvents + properties: + auditEvents: + description: Contains all the audit events for a given workspace crn. + $ref: '#/definitions/AuditEvents' + AuditEvents: + type: object + description: AuditEvents contains all the audit events for a given workspace crn. + required: + - workspaceCrn + - events + properties: + workspaceCrn: + type: string + description: Workspace crn unique for the set of audit events. + events: + type: array + items: + $ref: '#/definitions/AuditEvent' + description: AuditEvent belong to the workspace crn. + AuditEvent: + type: object + description: Audit event descibes an performed or performing in a given workspace. + required: + - workspaceCrn + - userCrn + - requestID + - action + - createdDate + properties: + workspaceCrn: + type: string + description: Workspace crn where the event observed. + userCrn: + type: string + description: UserCrn to track which user has caused the event. + requestID: + type: string + description: Unique request ID to keep track of event. + action: + type: string + description: Action the user has generated. + createdDate: + type: string + format: date-time + description: Time at creation of event. + Autoscaling: + type: object + description: Configuration for instance auto scaling. + required: + - minInstances + - maxInstances + properties: + minInstances: + type: integer + format: int32 + description: The minimum number of instance for auto scaling. + maxInstances: + type: integer + format: int32 + description: The maximum number of instance for auto scaling. + enabled: + type: boolean + description: The boolean flag to enable the auto scaling. + InstanceGroup: + type: object + description: Contains the necessary info for an instance group. + required: + - instanceType + properties: + instanceType: + type: string + description: The cloud provider instance type for the node instance. + instanceTier: + type: string + description: The tier of the instance i.e. on-demand/spot. + instanceCount: + type: integer + format: int32 + description: The initial number of instance node. + name: + type: string + description: The unique name of the instance group. + ingressRules: + type: array + items: + type: string + description: The networking rules for the ingress. + rootVolume: + description: The root volume of the instance. + $ref: '#/definitions/RootVolume' + autoscaling: + description: The auto scaling configuration. + $ref: '#/definitions/Autoscaling' + WorkspaceInstanceGroup: + type: object + description: Instance group information to show in workspace details. + required: + - instanceType + - instanceCount + - instanceGroupName + - minInstances + - maxInstances + - instances + - tags + properties: + instanceType: + type: string + description: The cloud provider instance type for the node instance. + instanceCount: + type: integer + format: int32 + description: The initial number of instance node. + instanceGroupName: + type: string + description: The unique name of the instance group. + minInstances: + type: integer + format: int32 + description: The minimum number of instances that can be deployed to this instance group. If the value is 0, the group might be empty. + maxInstances: + type: integer + format: int32 + description: The maximum number of instances that can be deployed to this instance group. + instances: + type: array + items: + $ref: '#/definitions/Instance' + description: Instances in the instance group. + tags: + type: array + items: + $ref: '#/definitions/Tag' + description: Tags are key/value pairs that are applied to all tag-able resources deployed in the workspace's cloud environment. + Instance: + type: object + description: Represents each instance in an instance group. + required: + - instanceId + - availabilityZone + properties: + instanceId: + type: string + description: Unique instance Id generated by the cloud provider. + availabilityZone: + type: string + description: Availability zone the instance belongs to. + Tag: + type: object + description: Contains a single tag entry associated with a workspace. + required: + - key + - value + properties: + key: + type: string + description: The name for the tag. + value: + type: string + description: The value for the tag. + ProvisionTag: + type: object + description: Contains a single tag entry that will be configured on cloud resources associated with a workspace. + required: + - key + - value + properties: + key: + type: string + description: The name for the tag. + value: + type: string + description: The value for the tag. + ProvisionK8sRequest: + type: object + description: Request object for workspace provision. + required: + - instanceGroups + - environmentName + properties: + instanceGroups: + type: array + items: + $ref: '#/definitions/InstanceGroup' + description: The instance groups. + environmentName: + type: string + description: The name of the environment for the workspace to create. + tags: + type: array + items: + $ref: '#/definitions/ProvisionTag' + description: Tags to add to the cloud provider resources created. This is in addition to any tags added by Cloudera. + network: + description: The overlay network for an AWS Kubernetes cluster's CNI. + $ref: '#/definitions/OverlayNetwork' + OverlayNetwork: + type: object + description: Contains the information about overlay network. + properties: + plugin: + type: string + description: 'The plugin specifies specific cni vendor, ex: calico, weave etc.' + topology: + description: The options for overlay topology. + $ref: '#/definitions/Topology' + Topology: + type: object + description: Contains the information about topology. + properties: + subnets: + type: array + items: + type: string + description: The options for subnets. + ExistingDatabaseConfig: + type: object + description: Configurations for bringing an existing database for model metrics + properties: + existingDatabaseHost: + type: string + description: Optionally provide a Postgresql database host to export model metrics to. + existingDatabasePort: + type: string + description: Optionally provide a Postgresql database port to export model metrics to. + existingDatabaseName: + type: string + description: Optionally provide a Postgresql database name to export model metrics to. + existingDatabaseUser: + type: string + description: Optionally provide a Postgresql database user to use when exporting model metrics. + existingDatabasePassword: + type: string + description: Optionally provide a Postgresql database password to use when exporting model metrics. + x-sensitive: true + CreateWorkspaceRequest: + type: object + description: Request object for the CreateWorkspace method. + required: + - environmentName + - workspaceName + properties: + environmentName: + type: string + description: The environment for the workspace to create. + workspaceName: + type: string + description: The name of the workspace to create. + usePublicLoadBalancer: + type: boolean + description: The boolean flag to request public load balancer. By default, private load balancer is used. + disableTLS: + type: boolean + description: The boolean flag to disable TLS setup for workspace. By default, the TLS is enabled. + provisionK8sRequest: + description: The request for Kubernetes workspace provision. Required in public cloud. + $ref: '#/definitions/ProvisionK8sRequest' + enableMonitoring: + type: boolean + description: The boolean flag is used to enable monitoring. By default, monitoring is disabled. + enableGovernance: + type: boolean + description: Enables Cloudera Machine Learning governance by integrating with Cloudera Atlas. By default, this flag is disabled. + existingNFS: + type: string + description: Optionally use an existing NFS by providing the hostname and desired path (Azure and Private Cloud only). + loadBalancerIPWhitelists: + type: array + items: + type: string + description: The whitelist of IPs for load balancer. + nfsVersion: + type: string + description: The NFS Protocol version of the NFS server we are using for Azure and Private Cloud. + enableModelMetrics: + type: boolean + description: Enables the model metrics service for exporting metrics for models to a metrics store. + existingDatabaseConfig: + description: Optional configurations for an existing Postgres to export model metrics to. + $ref: '#/definitions/ExistingDatabaseConfig' + whitelistAuthorizedIPRanges: + type: boolean + description: Whether to whitelist only 'authorizedIPRanges' given or all public IPs. + authorizedIPRanges: + type: array + items: + type: string + description: The whitelist of CIDR blocks which can access the API server. + skipValidation: + type: boolean + description: Skip pre-flight validations if requested + privateCluster: + type: boolean + description: Whether to create a private cluster. + subnetsForLoadBalancers: + type: array + items: + type: string + description: The list of subnets used for the load balancer that CML creates. + staticSubdomain: + type: string + description: The static subdomain to be used for the workspace. + cdswMigrationMode: + type: string + description: Toggle for cdsw migration preflight validation + outboundTypes: + type: array + items: + $ref: '#/definitions/OutboundTypes' + description: Outbound Types provided for the workspace. + OutboundTypes: + type: string + description: List of possible Outbound types. + enum: + - UNKNOWN + - OUTBOUND_TYPE_UDR + RestoreWorkspaceRequest: + type: object + description: Request object for RestoreWorkspace method. + properties: + newWorkspaceParameters: + description: The parameters required for a new Cloudera Machine Learning workspace. + $ref: '#/definitions/CreateWorkspaceRequest' + backupCrn: + type: string + description: The CRN of the backup snapshot to used for restoring. + useStaticSubdomain: + type: boolean + description: A boolean value to check if subdomain must be used or not. + restoreJobTimeoutMinutes: + type: integer + format: int32 + description: The timeout to restore the backup snapshots, in minutes. + CreateWorkspaceResponse: + type: object + description: Response object for the CreateWorkspace method. + RestoreWorkspaceResponse: + type: object + description: Response object for the RestoreWorkspace method. + properties: + workspaceCrn: + type: string + description: The CRN of the Cloudera Machine Learning workspace being provisioned. + ListWorkspacesRequest: + type: object + description: Request object for the ListWorkspaces method. + properties: + queryOptions: + type: array + items: + type: string + description: Additional query options. + ListWorkspacesResponse: + type: object + description: Response object for the ListWorkspaces method. + properties: + workspaces: + type: array + items: + $ref: '#/definitions/WorkspaceSummary' + description: The list of workspaces. + ListWorkspaceBackupsQueryOptions: + type: object + description: Query options object for ListWorkspaceBackups method. + properties: + expandEnvironmentMetadata: + type: boolean + description: When set to true, will return the metadata of the environment where the backed-up workspace is/was present. + ListWorkspaceBackupsRequest: + type: object + description: Request object for ListWorkspaceBackups method. + properties: + environmentName: + type: string + description: The environment for the workspace to list backups for. + workspaceName: + type: string + description: The name of the workspace to list backups for. + workspaceCrn: + type: string + description: The CRN of the workspace to list backups for. If this field is specified, environmentName and workspaceName are ignored. + queryOptions: + description: Additional query options to enhance/mutate the API response. + $ref: '#/definitions/ListWorkspaceBackupsQueryOptions' + BackupDetail: + type: object + description: Backup Detail response object for listing backups. + properties: + backupCrn: + type: string + description: The CRN of the backup snapshot. + backupName: + type: string + description: The name of the backup snapshot. + createdAt: + type: string + format: date-time + description: The creation time of the backup snapshot. + creatorCrn: + type: string + description: The CRN of the creator. + workspaceVersionAtBackup: + type: string + description: The version of the backed-up workspace at the time of backup. + backupStatus: + type: string + description: The status of the backup. + ListWorkspaceBackupsResponse: + type: object + description: Response object for ListWorkspaceBackups method. + properties: + backups: + type: array + items: + $ref: '#/definitions/BackupDetail' + description: The list of backups along with their details. + UpgradeState: + type: object + description: Response object for the workspace summary. + properties: + state: + type: string + description: The current upgrade state of the workspace. + reason: + type: string + description: The reason for the current state. + BackupMetadata: + type: object + description: Backup metadata response object for the workspace summary. + properties: + backupVaultName: + type: string + description: The backup vault name. + lastSuccessfulBackupTime: + type: string + format: date-time + description: The time when the last successful backup was taken. + isSuccessfulBackupAvailable: + type: boolean + description: Whether successful backups are available for the workspace. + lastBackupStatus: + type: string + description: The status of the last backup initiated. + numberOfAvailableBackups: + type: integer + format: int64 + description: The number of backups available. + WorkspaceSummary: + type: object + description: A Cloudera Machine Learning workspace which includes the deployed configuration details. + required: + - instanceName + - environmentName + - instanceStatus + - instanceUrl + - environmentCrn + - crn + - k8sClusterName + - creatorCrn + - version + - httpsEnabled + - filesystemID + - cloudPlatform + - monitoringEnabled + properties: + instanceName: + type: string + description: The name of the workspace. + environmentName: + type: string + description: The name of the workspace's environment. + instanceStatus: + type: string + description: The workspace's current status. + instanceUrl: + type: string + description: URL of the workspace's user interface. + environmentCrn: + type: string + description: CRN of the environment. + crn: + type: string + description: The CRN of the workspace. + k8sClusterName: + type: string + description: The Kubernetes cluster name. + creatorCrn: + type: string + description: The CRN of the creator of the workspace. + version: + type: string + description: The version of Cloudera Machine Learning that was installed on the workspace. + httpsEnabled: + type: boolean + description: Indicates if HTTPs communication was enabled on this workspace when provisioned. + filesystemID: + type: string + description: A filesystem ID referencing the filesystem that was created on the cloud provider environment that this workspace uses. + cloudPlatform: + type: string + description: The cloud platform of the environment that was used to create this workspace. + monitoringEnabled: + type: boolean + description: If usage monitoring is enabled or not on this workspace. + loadBalancerIPWhitelists: + type: array + items: + type: string + description: The whitelist of IPs for load balancer. + creationDate: + type: string + format: date-time + description: Creation date of workspace. + failureMessage: + type: string + description: Failure message from the most recent failure that has occurred during workspace provisioning. + healthInfoLists: + type: array + items: + $ref: '#/definitions/HealthInfo' + description: The health info information of the workspace. + upgradeState: + description: The upgrade state contains the workspace upgrade information. + $ref: '#/definitions/UpgradeState' + nfsVersion: + type: string + description: NFS Version of the filesystem. + backupMetadata: + description: The Backup Metadata for the workspace. + $ref: '#/definitions/BackupMetadata' + clusterID: + type: string + description: The Cluster ID for the workspace. + isPrivate: + type: boolean + description: The value to indicate if the cluster is private or not. + Workspace: + type: object + description: A ML workspace, which includes the cluster and storage. + required: + - instanceName + - environmentName + - instanceStatus + - instanceUrl + - environmentCrn + - crn + - k8sClusterName + - creatorCrn + - version + - httpsEnabled + - endpointPublicAccess + - filesystemID + - tags + - instanceGroups + - cloudPlatform + - monitoringEnabled + properties: + instanceName: + type: string + description: The name of the workspace. + environmentName: + type: string + description: The name of the workspace's environment. + instanceStatus: + type: string + description: The workspace's current status. + instanceUrl: + type: string + description: URL of the workspace's user interface. + environmentCrn: + type: string + description: CRN of the environment. + crn: + type: string + description: The CRN of the workspace. + k8sClusterName: + type: string + description: The Kubernetes cluster name. + creatorCrn: + type: string + description: The CRN of the creator of the workspace. + version: + type: string + description: The version of Cloudera Machine Learning that was installed on the workspace. + httpsEnabled: + type: boolean + description: To Display if Https is enabled or not. + endpointPublicAccess: + type: boolean + description: To check if the cluster is publicly accessible or not. + filesystemID: + type: string + description: filesystemID used by the workspace + tags: + type: array + items: + $ref: '#/definitions/Tag' + description: Tags provided by the user at the time of workspace creation. + instanceGroups: + type: array + items: + $ref: '#/definitions/WorkspaceInstanceGroup' + description: The instance groups. + cloudPlatform: + type: string + description: The cloud platform of the environment that was used to create this workspace. + monitoringEnabled: + type: boolean + description: If usage monitoring is enabled or not on this workspace. + loadBalancerIPWhitelists: + type: array + items: + type: string + description: IP whitelist for loadBalancer. + creationDate: + type: string + format: date-time + description: Creation date of workspace. + healthInfoLists: + type: array + items: + $ref: '#/definitions/HealthInfo' + description: The health info information of the workspace. + failureMessage: + type: string + description: Failure message from the most recent failure that has occurred during workspace provisioning. + clusterBaseDomain: + type: string + description: The basedomain of the cluster. + modelMetricsEnabled: + type: boolean + description: Whether model metrics is enabled. + governanceEnabled: + type: boolean + description: Whether governance is enabled. + subnets: + type: array + items: + type: string + description: The subnets of the workspace. + whitelistAuthorizedIPRanges: + type: boolean + description: Whether to whitelist only 'authorizedIPRanges' given or all public IPs. + authorizedIPRanges: + type: array + items: + type: string + description: The whitelist of CIDR blocks which can access the API server. + nfsVersion: + type: string + description: NFS Version of the filesystem. + subnetsForLoadBalancers: + type: array + items: + type: string + description: The list of subnets used for the load balancer that CML creates. + upgradeState: + description: The upgrade state contains the workspace upgrade information. + $ref: '#/definitions/UpgradeState' + backupMetadata: + description: The Backup MetaData for this Workspace + $ref: '#/definitions/BackupMetadata' + clusterID: + type: string + description: The Cluster ID for the workspace. + isPrivate: + type: boolean + description: The value to indicate if the cluster is private or not. + UpgradeWorkspaceRequest: + type: object + description: Request object for the UpgradeWorkspace method. + properties: + environmentName: + type: string + description: The environment of the workspace. + workspaceName: + type: string + description: The name of the workspace. + mlVersion: + type: string + description: The version of workspace to upgrade to. (Deprecated). + x-deprecated: true + workspaceCrn: + type: string + description: The CRN of the workspace. If CRN is specified only the CRN is used for identifying the workspace, environment and name arguments are ignored. + UpgradeWorkspaceResponse: + type: object + description: Response object for the UpgradeWorkspace method. + DescribeWorkspaceRequest: + type: object + description: Request object for the DescribeWorkspace method. + properties: + environmentName: + type: string + description: The environment for the workspace to describe. + workspaceName: + type: string + description: The name of the workspace to describe. + workspaceCrn: + type: string + description: The CRN of the workspace to describe. If CRN is specified only the CRN is used for identifying the workspace, environment and name arguments are ignored. + DescribeWorkspaceResponse: + type: object + description: Response object for the DescribeWorkspace method. + required: + - workspace + properties: + workspace: + description: The workspace. + $ref: '#/definitions/Workspace' + DeleteInstanceGroupRequest: + type: object + description: Request object for the DeleteInstanceGroup method. + required: + - workspaceCrn + - instanceGroupName + properties: + workspaceCrn: + type: string + description: The CRN of the workspace from which instance group is to be deleted. + instanceGroupName: + type: string + description: The instance group that we want to delete from the workspace. + DeleteInstanceGroupResponse: + type: object + description: Response object for the DeleteInstanceGroup method. + DeleteWorkspaceRequest: + type: object + description: Request object for the DeleteWorkspace method. + required: + - force + properties: + force: + type: boolean + description: Force delete a workspace even if errors occur during deletion. Force delete removes the guarantee that resources in your cloud account will be cleaned up. + removeStorage: + type: boolean + description: The remove storage flag indicates weather to keep the backing workspace filesystem storage or remove it during delete. + environmentName: + type: string + description: The environment for the workspace to delete. + workspaceName: + type: string + description: The name of the workspace to delete. + workspaceCrn: + type: string + description: The CRN of the workspace to delete. If CRN is specified only the CRN is used for identifying the workspace, environment and name arguments are ignored. + DeleteWorkspaceResponse: + type: object + description: Response object for the DeleteWorkspace method. + GrantWorkspaceAccessRequest: + type: object + description: Request object for the GrantWorkspaceAccess method. + properties: + arn: + type: string + description: 'The aws user ARN to grant access to the corresponding EKS cluster. (Deprecated: Use identifier instead).' + x-deprecated: true + environmentName: + type: string + description: The environment that the workspace is a member of. + workspaceName: + type: string + description: The name of the workspace to grant access to. + workspaceCrn: + type: string + description: The CRN of the workspace to grant access to. If CRN is specified only the CRN is used for identifying the workspace, environment and name arguments are ignored. + identifier: + type: string + description: The cloud provider user id which will be granted access to the workspace's Kubernetes cluster. + GrantWorkspaceAccessResponse: + type: object + description: Response object for the GrantWorkspaceAccess method. + required: + - kubeconfig + properties: + kubeconfig: + type: string + description: The Kubernetes config file + x-sensitive: true + RevokeWorkspaceAccessRequest: + type: object + description: Request object for the RevokeWorkspace method. + properties: + arn: + type: string + description: 'The aws user ARN to revoke access to the corresponding EKS cluster. (Deprecated: Use identifier instead).' + x-deprecated: true + environmentName: + type: string + description: The environment that the workspace is a member of. + workspaceName: + type: string + description: The name of the workspace to revoke access to. + workspaceCrn: + type: string + description: The CRN of the workspace to revoke access to. If CRN is specified only the CRN is used for identifying the workspace, environment and name arguments are ignored. + identifier: + type: string + description: The cloud provider user id which will be granted access to the workspace's Kubernetes cluster. + RevokeWorkspaceAccessResponse: + type: object + description: Response object for the RevokeWorkspaceAccess method. + ListWorkspaceAccessRequest: + type: object + description: Request object for the ListWorkspace method. + properties: + environmentName: + type: string + description: The environment that the workspace is a member of. + workspaceName: + type: string + description: The name of the workspace to list access. + workspaceCrn: + type: string + description: The CRN of the workspace to list access. If CRN is specified only the CRN is used for identifying the workspace, environment and name arguments are ignored. + ListWorkspaceAccessResponse: + type: object + description: Response object for the ListWorkspaceAccess method. + required: + - users + properties: + users: + type: array + items: + type: string + x-sensitive: true + description: The list of users that have access. + x-sensitive: true + GetKubeconfigRequest: + type: object + description: Request object for the GetKubeconfig method. + properties: + environmentName: + type: string + description: The environment that the workspace is a member of. + workspaceName: + type: string + description: The name of the workspace to list access. + workspaceCrn: + type: string + description: The CRN of the workspace to list access. + GetKubeconfigResponse: + type: object + description: Response object for the GetKubeconfig method. + required: + - kubeconfig + properties: + kubeconfig: + type: string + description: The list of users that have access. + x-sensitive: true + GetLatestWorkspaceVersionRequest: + type: object + description: Request object for GetLatestWorkspaceVersion. + GetLatestWorkspaceVersionResponse: + type: object + description: Response object for GetLatestWorkspaceVersion. + required: + - version + properties: + version: + type: string + description: The latest version of a workspace that is used when deploying Cloudera Machine Learning workspaces. + HealthInfo: + type: object + description: Healthinfo object contains the health information of a resource. + required: + - resourceName + - isHealthy + - updatedAt + - message + - details + properties: + resourceName: + type: string + description: The resource name being checked. + isHealthy: + type: boolean + description: The boolean that indicates the health status. + updatedAt: + type: string + format: date-time + description: The timestamp for the heartbeat. + message: + type: string + description: The message to show for the health info. + details: + type: array + items: + type: string + description: The detail of the health info. + ModifyClusterInstanceGroupRequest: + type: object + description: Request object for ModifyClusterInstanceGroup. + required: + - workspaceCrn + - instanceGroupName + - min + - max + - instanceType + properties: + workspaceCrn: + type: string + description: The CRN of the workspace cluster to modify. + instanceGroupName: + type: string + description: The name of the instance group of the workspace cluster to modify. + min: + type: integer + format: int32 + description: The desired autoscaling min of the workspace cluster instance group. + max: + type: integer + format: int32 + description: The desired autoscaling min of the workspace cluster instance group. + instanceType: + type: string + description: The desired instance type of the workspace cluster instance group. + ModifyClusterInstanceGroupResponse: + type: object + description: Response object for ModifyClusterInstanceGroup. + ModifyClusterSecurityRequest: + type: object + description: Request object for ModifyClusterSecurity. + required: + - workspaceCrn + - allowlistAuthorizedIPRanges + - authorizedIPRanges + properties: + workspaceCrn: + type: string + description: The CRN of the workspace cluster to modify. + allowlistAuthorizedIPRanges: + type: boolean + description: Whether to allow only authorized IP ranges given or all public IPs. + authorizedIPRanges: + type: array + items: + type: string + description: The allowlist of CIDR blocks which can access the API server. + ModifyClusterSecurityResponse: + type: object + description: Response object for ModifyClusterSecurity. + ModifyWorkspaceLoadBalancerRequest: + type: object + description: Request object for ModifyWorkspaceLoadBalancer. + required: + - workspaceCrn + - loadBalancerIPAllowLists + properties: + workspaceCrn: + type: string + description: The CRN of the workspace cluster to modify. + loadBalancerIPAllowLists: + type: array + items: + type: string + description: The allowlist of CIDR blocks which can access the loadbalancer. + ModifyWorkspaceLoadBalancerResponse: + type: object + description: Response object for ModifyWorkspaceLoadBalancer. + SuspendWorkspaceRequest: + type: object + description: Request object for SuspendWorkspace. + required: + - workspaceCrn + properties: + workspaceCrn: + type: string + description: The CRN of the workspace to suspend. + SuspendWorkspaceResponse: + type: object + description: Response object for SuspendWorkspace. + ResumeWorkspaceRequest: + type: object + description: Request object for ResumeWorkspace. + required: + - workspaceCrn + properties: + workspaceCrn: + type: string + description: The CRN of the workspace to resume. + ResumeWorkspaceResponse: + type: object + description: Response object for ResumeWorkspace. + BackupWorkspaceRequest: + type: object + description: The request object for workspace backup. + required: + - workspaceCrn + - backupName + properties: + workspaceCrn: + type: string + description: CRN of the workspace to backup. + backupName: + type: string + description: Backup name. + backupJobTimeoutMinutes: + type: integer + format: int32 + description: The timeout(in minutes) to use for the execution of the backup jobs. + skipValidation: + type: boolean + description: Skip pre-flight validations if requested. + BackupWorkspaceResponse: + type: object + description: The response object for workspace backup. + properties: + backupCrn: + type: string + description: CRN of the backup generated. + vaultName: + type: string + description: Name of the vault where backup related volumes are stored. + DeleteBackupRequest: + type: object + description: The request object for DeleteBackup operation. + required: + - backupCrn + properties: + backupCrn: + type: string + description: The CRN of the backup to be deleted. + skipValidation: + type: boolean + description: Skip pre-flight validations if requested. + DeleteBackupResponse: + type: object + description: The response object for DeleteBackup operation. + properties: + workflowId: + type: string + description: The ID of the delete-backup workflow. + WorkflowMetadata: + type: object + description: The workflow metadata. + properties: + resourceId: + type: string + description: The unique identifier of the resource. + workflowIndex: + type: integer + format: int64 + description: The workflow index. Monotonically increases for each subsequent workflow for a resource. + workflowType: + type: string + description: The workflow type. + workflowId: + type: string + description: The workflow identifier. + lastKnownStatus: + type: string + description: The last known status of the workflow. + RequestWorkflowCancellationRequest: + type: object + description: Request object for RequestWorkflowCancellation. + properties: + resourceId: + type: string + description: The unique identifier of the resource. + workflowType: + type: string + description: The workflow type. + RequestWorkflowCancellationResponse: + type: object + description: Response object for RequestWorkflowCancellation. + properties: + workflowMetadata: + type: array + items: + $ref: '#/definitions/WorkflowMetadata' + description: The list of workflow metedata for cancelled workflows. +x-audit: true diff --git a/go.mod b/go.mod index 7a6af551..f56c6d77 100644 --- a/go.mod +++ b/go.mod @@ -3,18 +3,19 @@ module github.com/cloudera/terraform-provider-cdp go 1.18 require ( - github.com/go-openapi/errors v0.20.3 - github.com/go-openapi/runtime v0.25.0 - github.com/go-openapi/strfmt v0.21.3 - github.com/go-openapi/swag v0.22.3 - github.com/go-openapi/validate v0.22.0 + github.com/go-openapi/errors v0.20.4 + github.com/go-openapi/runtime v0.26.0 + github.com/go-openapi/strfmt v0.21.7 + github.com/go-openapi/swag v0.22.4 + github.com/go-openapi/validate v0.22.1 github.com/hashicorp/terraform-plugin-docs v0.14.1 github.com/hashicorp/terraform-plugin-framework v1.2.0 github.com/hashicorp/terraform-plugin-go v0.14.3 github.com/hashicorp/terraform-plugin-log v0.8.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 github.com/mitchellh/go-homedir v1.1.0 - golang.org/x/crypto v0.7.0 + golang.org/x/crypto v0.9.0 + golang.org/x/text v0.9.0 gopkg.in/ini.v1 v1.67.0 ) @@ -25,24 +26,19 @@ require ( github.com/agext/levenshtein v1.2.2 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect - github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect + github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect github.com/fatih/color v1.13.0 // indirect - github.com/felixge/httpsnoop v1.0.3 // indirect - github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-logr/logr v1.2.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-openapi/analysis v0.21.4 // indirect - github.com/go-openapi/inflect v0.19.0 // indirect - github.com/go-openapi/jsonpointer v0.19.5 // indirect - github.com/go-openapi/jsonreference v0.20.0 // indirect + github.com/go-openapi/jsonpointer v0.19.6 // indirect + github.com/go-openapi/jsonreference v0.20.2 // indirect github.com/go-openapi/loads v0.21.2 // indirect - github.com/go-openapi/spec v0.20.8 // indirect - github.com/go-swagger/go-swagger v0.30.4 // indirect - github.com/golang/protobuf v1.5.2 // indirect + github.com/go-openapi/spec v0.20.9 // indirect + github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/uuid v1.3.0 // indirect - github.com/gorilla/handlers v1.5.1 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -53,7 +49,6 @@ require ( github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/hc-install v0.5.0 // indirect - github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/hcl/v2 v2.16.2 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.18.1 // indirect @@ -63,11 +58,7 @@ require ( github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect github.com/huandu/xstrings v1.3.3 // indirect github.com/imdario/mergo v0.3.13 // indirect - github.com/jessevdk/go-flags v1.5.0 // indirect github.com/josharian/intern v1.0.0 // indirect - github.com/kr/pretty v0.3.1 // indirect - github.com/kr/text v0.2.0 // indirect - github.com/magiconair/properties v1.8.6 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.16 // indirect @@ -80,37 +71,25 @@ require ( github.com/oklog/run v1.0.0 // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.0.5 // indirect - github.com/pkg/errors v0.9.1 // indirect github.com/posener/complete v1.2.3 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect - github.com/spf13/afero v1.9.2 // indirect - github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.14.0 // indirect - github.com/stretchr/testify v1.8.1 // indirect - github.com/subosito/gotenv v1.4.1 // indirect - github.com/toqueteos/webbrowser v1.2.0 // indirect + github.com/spf13/cast v1.5.1 // indirect + github.com/stretchr/testify v1.8.4 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect github.com/vmihailenco/tagparser v0.1.1 // indirect github.com/zclconf/go-cty v1.13.1 // indirect - go.mongodb.org/mongo-driver v1.11.1 // indirect - go.opentelemetry.io/otel v1.11.1 // indirect - go.opentelemetry.io/otel/trace v1.11.1 // indirect - golang.org/x/mod v0.8.0 // indirect - golang.org/x/net v0.8.0 // indirect - golang.org/x/sys v0.6.0 // indirect - golang.org/x/text v0.8.0 // indirect - golang.org/x/tools v0.6.0 // indirect + go.mongodb.org/mongo-driver v1.11.3 // indirect + go.opentelemetry.io/otel v1.14.0 // indirect + go.opentelemetry.io/otel/trace v1.14.0 // indirect + golang.org/x/mod v0.10.0 // indirect + golang.org/x/net v0.10.0 // indirect + golang.org/x/sys v0.8.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e // indirect - google.golang.org/grpc v1.51.0 // indirect - google.golang.org/protobuf v1.28.1 // indirect + google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect + google.golang.org/grpc v1.55.0 // indirect + google.golang.org/protobuf v1.30.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 3c422f7e..504406b3 100644 --- a/go.sum +++ b/go.sum @@ -1,43 +1,5 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= @@ -67,40 +29,21 @@ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= -github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= -github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg= github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= -github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= @@ -110,9 +53,6 @@ github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6vMiRR/nnVTBtavnB0= github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4= github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -124,39 +64,39 @@ github.com/go-openapi/analysis v0.21.4/go.mod h1:4zQ35W4neeZTqh3ol0rv/O8JBbka9Qy github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc= -github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk= -github.com/go-openapi/inflect v0.19.0 h1:9jCH9scKIbHeV9m12SmPilScz6krDxKRasNNSNPXu/4= -github.com/go-openapi/inflect v0.19.0/go.mod h1:lHpZVlpIQqLyKwJ4N+YSc9hchQy/i12fJykb83CRBH4= +github.com/go-openapi/errors v0.20.4 h1:unTcVm6PispJsMECE3zWgvG4xTiKda1LIR5rCRWLG6M= +github.com/go-openapi/errors v0.20.4/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= +github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= -github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= +github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= +github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g= github.com/go-openapi/loads v0.21.2 h1:r2a/xFIYeZ4Qd2TnGpWDIQNcP80dIaZgf704za8enro= github.com/go-openapi/loads v0.21.2/go.mod h1:Jq58Os6SSGz0rzh62ptiu8Z31I+OTHqmULx5e/gJbNw= -github.com/go-openapi/runtime v0.25.0 h1:7yQTCdRbWhX8vnIjdzU8S00tBYf7Sg71EBeorlPHvhc= -github.com/go-openapi/runtime v0.25.0/go.mod h1:Ux6fikcHXyyob6LNWxtE96hWwjBPYF0DXgVFuMTneOs= +github.com/go-openapi/runtime v0.26.0 h1:HYOFtG00FM1UvqrcxbEJg/SwvDRvYLQKGhw2zaQjTcc= +github.com/go-openapi/runtime v0.26.0/go.mod h1:QgRGeZwrUcSHdeh4Ka9Glvo0ug1LC5WyE+EV88plZrQ= github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= -github.com/go-openapi/spec v0.20.8 h1:ubHmXNY3FCIOinT8RNrrPfGc9t7I1qhPtdOGoG2AxRU= -github.com/go-openapi/spec v0.20.8/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/spec v0.20.9 h1:xnlYNQAwKd2VQRRfwTEI0DcK+2cbuvI/0c7jx3gA8/8= +github.com/go-openapi/spec v0.20.9/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg= github.com/go-openapi/strfmt v0.21.1/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= -github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o= github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= +github.com/go-openapi/strfmt v0.21.7 h1:rspiXgNWgeUzhjo1YU01do6qsahtJNByjLVbPLNHb8k= +github.com/go-openapi/strfmt v0.21.7/go.mod h1:adeGTkxE44sPyLk0JV235VQAO/ZXUr8KAzYjclFs3ew= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-openapi/validate v0.22.0 h1:b0QecH6VslW/TxtpKgzpO1SNG7GU2FsaqKdP1E2T50Y= -github.com/go-openapi/validate v0.22.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= +github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU= +github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-openapi/validate v0.22.1 h1:G+c2ub6q47kfX1sOBLwIQwzBVt8qmOAARyo/9Fqs9NU= +github.com/go-openapi/validate v0.22.1/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-swagger/go-swagger v0.30.4 h1:cPrWLSXY6ZdcgfRicOj0lANg72TkTHz6uv/OlUdzO5U= -github.com/go-swagger/go-swagger v0.30.4/go.mod h1:YM5D5kR9c1ft3ynMXvDk2uo/7UZHKFEqKXcAL9f4Phc= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd/go.mod h1:4duuawTqi2wkkpB4ePgWMaai6/Kc6WEz83bhFwpHzj0= github.com/gobuffalo/depgen v0.0.0-20190329151759-d478694a28d3/go.mod h1:3STtPUQYuzV0gBVOY3vy6CfMm/ljR4pABfrTeHNLHUY= @@ -182,73 +122,24 @@ github.com/gobuffalo/packd v0.1.0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWe github.com/gobuffalo/packr/v2 v2.0.9/go.mod h1:emmyGweYTm6Kdper+iywB6YK5YzuKchGtJQZ0Odn4pQ= github.com/gobuffalo/packr/v2 v2.2.0/go.mod h1:CaAwI0GPIAv+5wKLtv8Afwl+Cm78K/I/VCm/3ptBN+0= github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754/go.mod h1:HhnNqWY95UYwwW3uSASeV7vtgYkT2t16hJgV3AEPUpw= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= -github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -273,12 +164,8 @@ github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hc-install v0.5.0 h1:D9bl4KayIYKEeJ4vUDe9L5huqxZXczKaykSRcmQ0xY0= github.com/hashicorp/hc-install v0.5.0/go.mod h1:JyzMfbzfSBSjoDCRPna1vi/24BEDxFaCPfdHtM5SCdo= -github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/hcl/v2 v2.16.2 h1:mpkHZh/Tv+xet3sy3F9Ld4FyI2tUpWe9x3XtPx9f1a0= github.com/hashicorp/hcl/v2 v2.16.2/go.mod h1:JRmR89jycNkrrqnMmvPDMd56n1rQJ2Q6KocSLCMCXng= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= @@ -307,8 +194,6 @@ github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= @@ -316,35 +201,27 @@ github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= -github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 h1:DowS9hvgyYSX4TO5NpyC606/Z4SxnNYbT+WX27or6Ck= github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= -github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= @@ -390,27 +267,18 @@ github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= -github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= @@ -421,19 +289,11 @@ github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFR github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= -github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= -github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.14.0 h1:Rg7d3Lo706X9tHsJMUjdiwMpHB7W8WnSVOssIY+JElU= -github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+egj8As= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= @@ -447,14 +307,11 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= -github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/toqueteos/webbrowser v1.2.0 h1:tVP/gpK69Fx+qMJKsLE7TD8LuGWPnEV71wBN9rrstGQ= -github.com/toqueteos/webbrowser v1.2.0/go.mod h1:XWoZq4cyp9WeUeak7w7LXRUQf1F1ATJMir8RTqb4ayM= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -470,10 +327,6 @@ github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23n github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.13.1 h1:0a6bRwuiSHtAmqCqNOE+c2oHgepv0ctoxU4FUe43kwc= @@ -481,108 +334,41 @@ github.com/zclconf/go-cty v1.13.1/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4 go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= -go.mongodb.org/mongo-driver v1.11.1 h1:QP0znIRTuL0jf1oBQoAoM0C6ZJfBK4kx0Uumtv1A7w8= -go.mongodb.org/mongo-driver v1.11.1/go.mod h1:s7p5vEtfbeR1gYi6pnj3c3/urpbLv2T5Sfd6Rp2HBB8= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opentelemetry.io/otel v1.11.1 h1:4WLLAmcfkmDk2ukNXJyq3/kiz/3UzCaYq6PskJsaou4= -go.opentelemetry.io/otel v1.11.1/go.mod h1:1nNhXBbWSD0nsL38H6btgnFN2k4i0sNLHNNMZMSbUGE= -go.opentelemetry.io/otel/sdk v1.11.1 h1:F7KmQgoHljhUuJyA+9BiU+EkJfyX5nVVF4wyzWZpKxs= -go.opentelemetry.io/otel/trace v1.11.1 h1:ofxdnzsNrGBYXbP7t7zpUK281+go5rF7dvdIZXF8gdQ= -go.opentelemetry.io/otel/trace v1.11.1/go.mod h1:f/Q9G7vzk5u91PhbmKbg1Qn0rzH1LJ4vbPHFGkTPtOk= +go.mongodb.org/mongo-driver v1.11.3 h1:Ql6K6qYHEzB6xvu4+AU0BoRoqf9vFPcc4o7MUIdPW8Y= +go.mongodb.org/mongo-driver v1.11.3/go.mod h1:PTSz5yu21bkT/wXpkS7WR5f0ddqw5quethTUn9WM+2g= +go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= +go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel/sdk v1.14.0 h1:PDCppFRDq8A1jL9v6KMI6dYesaq+DFcDZvjsoGvxGzY= +go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= +go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= -golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= +golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= +golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k= @@ -591,74 +377,34 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -667,186 +413,46 @@ golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190329151228-23e29df326fe/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190416151739-9c9e1878f421/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190420181800-aa740d480789/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e h1:S9GbmC1iCgvbLyAokVCwiO6tVIrU9Y7c5oMx1V/ki/Y= -google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.51.0 h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U= -google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= +google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= +google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -871,13 +477,3 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/utils/copyright_test.go b/utils/copyright_test.go index a523364a..16936d60 100644 --- a/utils/copyright_test.go +++ b/utils/copyright_test.go @@ -21,7 +21,7 @@ import ( var ( skippedPrefixes = []string{".", "_"} - skippedPaths = []string{"/testdata/", "/gen/", "/dist/"} + skippedPaths = []string{"/testdata/", "/gen/", "/dist/", "/resources/swagger/"} copyrightRe = regexp.MustCompile(`[[:graph:]]+ Copyright \d{4} Cloudera\. All Rights Reserved\.\s+[[:graph:]]+\s+[[:graph:]]+ This file is licensed under the Apache License Version 2\.0 \(the "License"\)\.\s+[[:graph:]]+ You may not use this file except in compliance with the License.\s+[[:graph:]]+ You may obtain a copy of the License at http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0\.\s+[[:graph:]]+\s+[[:graph:]]+ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS\s+[[:graph:]]+ OF ANY KIND, either express or implied. Refer to the License for the specific\s+[[:graph:]]+ permissions and limitations governing your use of the file\.`) )