diff --git a/cdp-sdk-go/Makefile b/cdp-sdk-go/Makefile index 598e622f..8295a45e 100644 --- a/cdp-sdk-go/Makefile +++ b/cdp-sdk-go/Makefile @@ -10,8 +10,8 @@ GO_FLAGS:="" -SWAGGER_REPO_RAW=https://raw.githubusercontent.com/cloudera/cdp-dev-docs/ -API_DEFINITION_TAG ?= cdp-api-0.9.128 +SWAGGER_REPO_RAW=https://raw.githubusercontent.com/cloudera/cdp-dev-docs/refs/tags/ +API_DEFINITION_TAG ?= cdp-api-0.9.132 SWAGGER=$(SWAGGER_REPO_RAW)/$(API_DEFINITION_TAG)/api-docs-beta/swagger all: check-go test build diff --git a/cdp-sdk-go/gen/datahub/client/operations/collect_cm_diagnostics_responses.go b/cdp-sdk-go/gen/datahub/client/operations/collect_cm_diagnostics_responses.go index fc587800..d8a46a55 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/collect_cm_diagnostics_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/collect_cm_diagnostics_responses.go @@ -53,7 +53,7 @@ CollectCmDiagnosticsOK describes a response with status code 200, with default h Expected response to a valid request. */ type CollectCmDiagnosticsOK struct { - Payload models.CollectCmDiagnosticsResponse + Payload *models.CollectCmDiagnosticsResponse } // IsSuccess returns true when this collect cm diagnostics o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *CollectCmDiagnosticsOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/collectCmDiagnostics][%d] collectCmDiagnosticsOK %s", 200, payload) } -func (o *CollectCmDiagnosticsOK) GetPayload() models.CollectCmDiagnosticsResponse { +func (o *CollectCmDiagnosticsOK) GetPayload() *models.CollectCmDiagnosticsResponse { return o.Payload } func (o *CollectCmDiagnosticsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.CollectCmDiagnosticsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/collect_datahub_diagnostics_responses.go b/cdp-sdk-go/gen/datahub/client/operations/collect_datahub_diagnostics_responses.go index 0de090ca..9c6fe993 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/collect_datahub_diagnostics_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/collect_datahub_diagnostics_responses.go @@ -53,7 +53,7 @@ CollectDatahubDiagnosticsOK describes a response with status code 200, with defa Expected response to a valid request. */ type CollectDatahubDiagnosticsOK struct { - Payload models.CollectDatahubDiagnosticsResponse + Payload *models.CollectDatahubDiagnosticsResponse } // IsSuccess returns true when this collect datahub diagnostics o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *CollectDatahubDiagnosticsOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/collectDatahubDiagnostics][%d] collectDatahubDiagnosticsOK %s", 200, payload) } -func (o *CollectDatahubDiagnosticsOK) GetPayload() models.CollectDatahubDiagnosticsResponse { +func (o *CollectDatahubDiagnosticsOK) GetPayload() *models.CollectDatahubDiagnosticsResponse { return o.Payload } func (o *CollectDatahubDiagnosticsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.CollectDatahubDiagnosticsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/delete_cluster_responses.go b/cdp-sdk-go/gen/datahub/client/operations/delete_cluster_responses.go index 69d19c0e..4cd00a24 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/delete_cluster_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/delete_cluster_responses.go @@ -53,7 +53,7 @@ DeleteClusterOK describes a response with status code 200, with default header v Expected response to a valid request. */ type DeleteClusterOK struct { - Payload models.DeleteClusterResponse + Payload *models.DeleteClusterResponse } // IsSuccess returns true when this delete cluster o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *DeleteClusterOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/deleteCluster][%d] deleteClusterOK %s", 200, payload) } -func (o *DeleteClusterOK) GetPayload() models.DeleteClusterResponse { +func (o *DeleteClusterOK) GetPayload() *models.DeleteClusterResponse { return o.Payload } func (o *DeleteClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.DeleteClusterResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/operations_client.go b/cdp-sdk-go/gen/datahub/client/operations/operations_client.go index 2d9f6db4..7973281f 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/operations_client.go +++ b/cdp-sdk-go/gen/datahub/client/operations/operations_client.go @@ -2269,7 +2269,7 @@ func (a *Client) RotatePrivateCertificates(params *RotatePrivateCertificatesPara /* RotateSaltPassword rotates salt stack user password on data hub instances -Rotate SaltStack user password on Data Hub instances. +Deprecated, please use rotateSecrets with SALT_PASSWORD secretType instead. */ func (a *Client) RotateSaltPassword(params *RotateSaltPasswordParams, opts ...ClientOption) (*RotateSaltPasswordOK, error) { // TODO: Validate the params before sending diff --git a/cdp-sdk-go/gen/datahub/client/operations/renew_certificate_responses.go b/cdp-sdk-go/gen/datahub/client/operations/renew_certificate_responses.go index d14b5b96..4b00ba68 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/renew_certificate_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/renew_certificate_responses.go @@ -53,7 +53,7 @@ RenewCertificateOK describes a response with status code 200, with default heade Expected response to a valid request. */ type RenewCertificateOK struct { - Payload models.RenewCertificateResponse + Payload *models.RenewCertificateResponse } // IsSuccess returns true when this renew certificate o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RenewCertificateOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/renewCertificate][%d] renewCertificateOK %s", 200, payload) } -func (o *RenewCertificateOK) GetPayload() models.RenewCertificateResponse { +func (o *RenewCertificateOK) GetPayload() *models.RenewCertificateResponse { return o.Payload } func (o *RenewCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RenewCertificateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/renew_public_certificate_responses.go b/cdp-sdk-go/gen/datahub/client/operations/renew_public_certificate_responses.go index ec4b3e7b..07316978 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/renew_public_certificate_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/renew_public_certificate_responses.go @@ -53,7 +53,7 @@ RenewPublicCertificateOK describes a response with status code 200, with default Expected response to a valid request. */ type RenewPublicCertificateOK struct { - Payload models.RenewPublicCertificateResponse + Payload *models.RenewPublicCertificateResponse } // IsSuccess returns true when this renew public certificate o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RenewPublicCertificateOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/renewPublicCertificate][%d] renewPublicCertificateOK %s", 200, payload) } -func (o *RenewPublicCertificateOK) GetPayload() models.RenewPublicCertificateResponse { +func (o *RenewPublicCertificateOK) GetPayload() *models.RenewPublicCertificateResponse { return o.Payload } func (o *RenewPublicCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RenewPublicCertificateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/repair_cluster_responses.go b/cdp-sdk-go/gen/datahub/client/operations/repair_cluster_responses.go index 12c37c31..b50c4fff 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/repair_cluster_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/repair_cluster_responses.go @@ -53,7 +53,7 @@ RepairClusterOK describes a response with status code 200, with default header v Expected response to a valid request. */ type RepairClusterOK struct { - Payload models.RepairClusterResponse + Payload *models.RepairClusterResponse } // IsSuccess returns true when this repair cluster o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RepairClusterOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/repairCluster][%d] repairClusterOK %s", 200, payload) } -func (o *RepairClusterOK) GetPayload() models.RepairClusterResponse { +func (o *RepairClusterOK) GetPayload() *models.RepairClusterResponse { return o.Payload } func (o *RepairClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RepairClusterResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/restart_cluster_instances_responses.go b/cdp-sdk-go/gen/datahub/client/operations/restart_cluster_instances_responses.go index 150dae29..10a49096 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/restart_cluster_instances_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/restart_cluster_instances_responses.go @@ -53,7 +53,7 @@ RestartClusterInstancesOK describes a response with status code 200, with defaul Expected response to a valid request. */ type RestartClusterInstancesOK struct { - Payload models.RestartClusterInstancesResponse + Payload *models.RestartClusterInstancesResponse } // IsSuccess returns true when this restart cluster instances o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RestartClusterInstancesOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/restartClusterInstances][%d] restartClusterInstancesOK %s", 200, payload) } -func (o *RestartClusterInstancesOK) GetPayload() models.RestartClusterInstancesResponse { +func (o *RestartClusterInstancesOK) GetPayload() *models.RestartClusterInstancesResponse { return o.Payload } func (o *RestartClusterInstancesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RestartClusterInstancesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/rotate_auto_tls_certificates_responses.go b/cdp-sdk-go/gen/datahub/client/operations/rotate_auto_tls_certificates_responses.go index 4d2420e5..34de8d4e 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/rotate_auto_tls_certificates_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/rotate_auto_tls_certificates_responses.go @@ -53,7 +53,7 @@ RotateAutoTLSCertificatesOK describes a response with status code 200, with defa Expected response to a valid request. */ type RotateAutoTLSCertificatesOK struct { - Payload models.RotateAutoTLSCertificatesResponse + Payload *models.RotateAutoTLSCertificatesResponse } // IsSuccess returns true when this rotate auto Tls certificates o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateAutoTLSCertificatesOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/rotateAutoTlsCertificates][%d] rotateAutoTlsCertificatesOK %s", 200, payload) } -func (o *RotateAutoTLSCertificatesOK) GetPayload() models.RotateAutoTLSCertificatesResponse { +func (o *RotateAutoTLSCertificatesOK) GetPayload() *models.RotateAutoTLSCertificatesResponse { return o.Payload } func (o *RotateAutoTLSCertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateAutoTLSCertificatesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/rotate_db_certificate_responses.go b/cdp-sdk-go/gen/datahub/client/operations/rotate_db_certificate_responses.go index d2975617..a5c44d63 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/rotate_db_certificate_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/rotate_db_certificate_responses.go @@ -53,7 +53,7 @@ RotateDbCertificateOK describes a response with status code 200, with default he Expected response to a valid request. */ type RotateDbCertificateOK struct { - Payload models.RotateDbCertificateResponse + Payload *models.RotateDbCertificateResponse } // IsSuccess returns true when this rotate db certificate o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateDbCertificateOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/rotateDbCertificate][%d] rotateDbCertificateOK %s", 200, payload) } -func (o *RotateDbCertificateOK) GetPayload() models.RotateDbCertificateResponse { +func (o *RotateDbCertificateOK) GetPayload() *models.RotateDbCertificateResponse { return o.Payload } func (o *RotateDbCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateDbCertificateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/rotate_private_certificates_responses.go b/cdp-sdk-go/gen/datahub/client/operations/rotate_private_certificates_responses.go index 73751036..c7ee05c8 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/rotate_private_certificates_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/rotate_private_certificates_responses.go @@ -53,7 +53,7 @@ RotatePrivateCertificatesOK describes a response with status code 200, with defa Expected response to a valid request. */ type RotatePrivateCertificatesOK struct { - Payload models.RotatePrivateCertificatesResponse + Payload *models.RotatePrivateCertificatesResponse } // IsSuccess returns true when this rotate private certificates o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotatePrivateCertificatesOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/rotatePrivateCertificates][%d] rotatePrivateCertificatesOK %s", 200, payload) } -func (o *RotatePrivateCertificatesOK) GetPayload() models.RotatePrivateCertificatesResponse { +func (o *RotatePrivateCertificatesOK) GetPayload() *models.RotatePrivateCertificatesResponse { return o.Payload } func (o *RotatePrivateCertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotatePrivateCertificatesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/rotate_salt_password_responses.go b/cdp-sdk-go/gen/datahub/client/operations/rotate_salt_password_responses.go index bd4dca83..0d679882 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/rotate_salt_password_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/rotate_salt_password_responses.go @@ -53,7 +53,7 @@ RotateSaltPasswordOK describes a response with status code 200, with default hea Expected response to a valid request. */ type RotateSaltPasswordOK struct { - Payload models.RotateSaltPasswordResponse + Payload *models.RotateSaltPasswordResponse } // IsSuccess returns true when this rotate salt password o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateSaltPasswordOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/rotateSaltPassword][%d] rotateSaltPasswordOK %s", 200, payload) } -func (o *RotateSaltPasswordOK) GetPayload() models.RotateSaltPasswordResponse { +func (o *RotateSaltPasswordOK) GetPayload() *models.RotateSaltPasswordResponse { return o.Payload } func (o *RotateSaltPasswordOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateSaltPasswordResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/rotate_secrets_responses.go b/cdp-sdk-go/gen/datahub/client/operations/rotate_secrets_responses.go index 016553fe..f04e03a5 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/rotate_secrets_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/rotate_secrets_responses.go @@ -53,7 +53,7 @@ RotateSecretsOK describes a response with status code 200, with default header v Expected response to a valid request. */ type RotateSecretsOK struct { - Payload models.RotateSecretsResponse + Payload *models.RotateSecretsResponse } // IsSuccess returns true when this rotate secrets o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateSecretsOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/rotateSecrets][%d] rotateSecretsOK %s", 200, payload) } -func (o *RotateSecretsOK) GetPayload() models.RotateSecretsResponse { +func (o *RotateSecretsOK) GetPayload() *models.RotateSecretsResponse { return o.Payload } func (o *RotateSecretsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateSecretsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/scale_cluster_responses.go b/cdp-sdk-go/gen/datahub/client/operations/scale_cluster_responses.go index 4949af5b..bdc397a1 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/scale_cluster_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/scale_cluster_responses.go @@ -53,7 +53,7 @@ ScaleClusterOK describes a response with status code 200, with default header va Expected response to a valid request. */ type ScaleClusterOK struct { - Payload models.ScaleClusterResponse + Payload *models.ScaleClusterResponse } // IsSuccess returns true when this scale cluster o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *ScaleClusterOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/scaleCluster][%d] scaleClusterOK %s", 200, payload) } -func (o *ScaleClusterOK) GetPayload() models.ScaleClusterResponse { +func (o *ScaleClusterOK) GetPayload() *models.ScaleClusterResponse { return o.Payload } func (o *ScaleClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.ScaleClusterResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/start_cluster_responses.go b/cdp-sdk-go/gen/datahub/client/operations/start_cluster_responses.go index 55801533..c0b8589a 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/start_cluster_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/start_cluster_responses.go @@ -53,7 +53,7 @@ StartClusterOK describes a response with status code 200, with default header va Expected response to a valid request. */ type StartClusterOK struct { - Payload models.StartClusterResponse + Payload *models.StartClusterResponse } // IsSuccess returns true when this start cluster o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *StartClusterOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/startCluster][%d] startClusterOK %s", 200, payload) } -func (o *StartClusterOK) GetPayload() models.StartClusterResponse { +func (o *StartClusterOK) GetPayload() *models.StartClusterResponse { return o.Payload } func (o *StartClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.StartClusterResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/start_instances_responses.go b/cdp-sdk-go/gen/datahub/client/operations/start_instances_responses.go index f0c9e73a..1d5eb22f 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/start_instances_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/start_instances_responses.go @@ -53,7 +53,7 @@ StartInstancesOK describes a response with status code 200, with default header Expected response to a valid request. */ type StartInstancesOK struct { - Payload models.StartInstancesResponse + Payload *models.StartInstancesResponse } // IsSuccess returns true when this start instances o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *StartInstancesOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/startInstances][%d] startInstancesOK %s", 200, payload) } -func (o *StartInstancesOK) GetPayload() models.StartInstancesResponse { +func (o *StartInstancesOK) GetPayload() *models.StartInstancesResponse { return o.Payload } func (o *StartInstancesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.StartInstancesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/stop_cluster_responses.go b/cdp-sdk-go/gen/datahub/client/operations/stop_cluster_responses.go index c085276f..01d6e47e 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/stop_cluster_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/stop_cluster_responses.go @@ -53,7 +53,7 @@ StopClusterOK describes a response with status code 200, with default header val Expected response to a valid request. */ type StopClusterOK struct { - Payload models.StopClusterResponse + Payload *models.StopClusterResponse } // IsSuccess returns true when this stop cluster o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *StopClusterOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/stopCluster][%d] stopClusterOK %s", 200, payload) } -func (o *StopClusterOK) GetPayload() models.StopClusterResponse { +func (o *StopClusterOK) GetPayload() *models.StopClusterResponse { return o.Payload } func (o *StopClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.StopClusterResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/stop_instances_responses.go b/cdp-sdk-go/gen/datahub/client/operations/stop_instances_responses.go index 504ebf23..cb3798e9 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/stop_instances_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/stop_instances_responses.go @@ -53,7 +53,7 @@ StopInstancesOK describes a response with status code 200, with default header v Expected response to a valid stop instances request. */ type StopInstancesOK struct { - Payload models.StopInstancesResponse + Payload *models.StopInstancesResponse } // IsSuccess returns true when this stop instances o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *StopInstancesOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/stopInstances][%d] stopInstancesOK %s", 200, payload) } -func (o *StopInstancesOK) GetPayload() models.StopInstancesResponse { +func (o *StopInstancesOK) GetPayload() *models.StopInstancesResponse { return o.Payload } func (o *StopInstancesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.StopInstancesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/sync_component_versions_from_cm_responses.go b/cdp-sdk-go/gen/datahub/client/operations/sync_component_versions_from_cm_responses.go index aa99b2e8..a39def9c 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/sync_component_versions_from_cm_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/sync_component_versions_from_cm_responses.go @@ -53,7 +53,7 @@ SyncComponentVersionsFromCmOK describes a response with status code 200, with de Expected response to a valid sync datahub CM component versions request. */ type SyncComponentVersionsFromCmOK struct { - Payload models.SyncComponentVersionsFromCmResponse + Payload *models.SyncComponentVersionsFromCmResponse } // IsSuccess returns true when this sync component versions from cm o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *SyncComponentVersionsFromCmOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/syncComponentVersionsFromCm][%d] syncComponentVersionsFromCmOK %s", 200, payload) } -func (o *SyncComponentVersionsFromCmOK) GetPayload() models.SyncComponentVersionsFromCmResponse { +func (o *SyncComponentVersionsFromCmOK) GetPayload() *models.SyncComponentVersionsFromCmResponse { return o.Payload } func (o *SyncComponentVersionsFromCmOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.SyncComponentVersionsFromCmResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/update_orchestrator_state_responses.go b/cdp-sdk-go/gen/datahub/client/operations/update_orchestrator_state_responses.go index 240d209c..9fe2305a 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/update_orchestrator_state_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/update_orchestrator_state_responses.go @@ -53,7 +53,7 @@ UpdateOrchestratorStateOK describes a response with status code 200, with defaul Expected response to a valid request. */ type UpdateOrchestratorStateOK struct { - Payload models.UpdateOrchestratorStateResponse + Payload *models.UpdateOrchestratorStateResponse } // IsSuccess returns true when this update orchestrator state o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateOrchestratorStateOK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/updateOrchestratorState][%d] updateOrchestratorStateOK %s", 200, payload) } -func (o *UpdateOrchestratorStateOK) GetPayload() models.UpdateOrchestratorStateResponse { +func (o *UpdateOrchestratorStateOK) GetPayload() *models.UpdateOrchestratorStateResponse { return o.Payload } func (o *UpdateOrchestratorStateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateOrchestratorStateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v1_responses.go b/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v1_responses.go index 6f7ee848..ddafd93c 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v1_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v1_responses.go @@ -53,7 +53,7 @@ UpdateToAwsImdsV1OK describes a response with status code 200, with default head Expected response to a valid request. */ type UpdateToAwsImdsV1OK struct { - Payload models.UpdateToAwsImdsV1Response + Payload *models.UpdateToAwsImdsV1Response } // IsSuccess returns true when this update to aws imds v1 o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateToAwsImdsV1OK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/updateToAwsImdsV1][%d] updateToAwsImdsV1OK %s", 200, payload) } -func (o *UpdateToAwsImdsV1OK) GetPayload() models.UpdateToAwsImdsV1Response { +func (o *UpdateToAwsImdsV1OK) GetPayload() *models.UpdateToAwsImdsV1Response { return o.Payload } func (o *UpdateToAwsImdsV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateToAwsImdsV1Response) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v2_responses.go b/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v2_responses.go index 73e1e706..41fc9e33 100644 --- a/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v2_responses.go +++ b/cdp-sdk-go/gen/datahub/client/operations/update_to_aws_imds_v2_responses.go @@ -53,7 +53,7 @@ UpdateToAwsImdsV2OK describes a response with status code 200, with default head Expected response to a valid request. */ type UpdateToAwsImdsV2OK struct { - Payload models.UpdateToAwsImdsV2Response + Payload *models.UpdateToAwsImdsV2Response } // IsSuccess returns true when this update to aws imds v2 o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateToAwsImdsV2OK) String() string { return fmt.Sprintf("[POST /api/v1/datahub/updateToAwsImdsV2][%d] updateToAwsImdsV2OK %s", 200, payload) } -func (o *UpdateToAwsImdsV2OK) GetPayload() models.UpdateToAwsImdsV2Response { +func (o *UpdateToAwsImdsV2OK) GetPayload() *models.UpdateToAwsImdsV2Response { return o.Payload } func (o *UpdateToAwsImdsV2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateToAwsImdsV2Response) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datahub/models/cluster.go b/cdp-sdk-go/gen/datahub/models/cluster.go index aa185300..3cc44daa 100644 --- a/cdp-sdk-go/gen/datahub/models/cluster.go +++ b/cdp-sdk-go/gen/datahub/models/cluster.go @@ -71,6 +71,9 @@ type Cluster struct { // The cluster node count. NodeCount int32 `json:"nodeCount,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityResponse `json:"security,omitempty"` + // The status of the stack. Status string `json:"status,omitempty"` @@ -113,6 +116,10 @@ func (m *Cluster) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -232,6 +239,25 @@ func (m *Cluster) validateInstanceGroups(formats strfmt.Registry) error { return nil } +func (m *Cluster) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + // ContextValidate validate this cluster based on the context it is used func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error @@ -252,6 +278,10 @@ func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -346,6 +376,27 @@ func (m *Cluster) contextValidateInstanceGroups(ctx context.Context, formats str return nil } +func (m *Cluster) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *Cluster) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/cdp-sdk-go/gen/datahub/models/collect_cm_diagnostics_response.go b/cdp-sdk-go/gen/datahub/models/collect_cm_diagnostics_response.go index 65266167..159677d9 100644 --- a/cdp-sdk-go/gen/datahub/models/collect_cm_diagnostics_response.go +++ b/cdp-sdk-go/gen/datahub/models/collect_cm_diagnostics_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // CollectCmDiagnosticsResponse Response object for collecting Datahub diagnostics. // // swagger:model CollectCmDiagnosticsResponse -type CollectCmDiagnosticsResponse interface{} +type CollectCmDiagnosticsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this collect cm diagnostics response +func (m *CollectCmDiagnosticsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this collect cm diagnostics response based on context it is used +func (m *CollectCmDiagnosticsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *CollectCmDiagnosticsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CollectCmDiagnosticsResponse) UnmarshalBinary(b []byte) error { + var res CollectCmDiagnosticsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_response.go b/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_response.go index 111bf345..c93dff16 100644 --- a/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_response.go +++ b/cdp-sdk-go/gen/datahub/models/collect_datahub_diagnostics_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // CollectDatahubDiagnosticsResponse Response object for collecting DataHub diagnostics. // // swagger:model CollectDatahubDiagnosticsResponse -type CollectDatahubDiagnosticsResponse interface{} +type CollectDatahubDiagnosticsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this collect datahub diagnostics response +func (m *CollectDatahubDiagnosticsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this collect datahub diagnostics response based on context it is used +func (m *CollectDatahubDiagnosticsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *CollectDatahubDiagnosticsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CollectDatahubDiagnosticsResponse) UnmarshalBinary(b []byte) error { + var res CollectDatahubDiagnosticsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 0804220d..30d850b7 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 @@ -70,6 +70,9 @@ type CreateAWSClusterRequest struct { // JSON template to use for cluster creation. This is different from cluster template and would be removed in the future. RequestTemplate string `json:"requestTemplate,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // The subnet ID. SubnetID string `json:"subnetId,omitempty"` @@ -104,6 +107,10 @@ func (m *CreateAWSClusterRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -211,6 +218,25 @@ func (m *CreateAWSClusterRequest) validateInstanceGroups(formats strfmt.Registry return nil } +func (m *CreateAWSClusterRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSClusterRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -257,6 +283,10 @@ func (m *CreateAWSClusterRequest) ContextValidate(ctx context.Context, formats s res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -352,6 +382,27 @@ func (m *CreateAWSClusterRequest) contextValidateInstanceGroups(ctx context.Cont return nil } +func (m *CreateAWSClusterRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSClusterRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); 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 a57686d4..c278068e 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 @@ -22,6 +22,9 @@ type CreateAWSClusterResponse struct { // The cluster. // Required: true Cluster *Cluster `json:"cluster"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create a w s cluster response diff --git a/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_request.go b/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_request.go index 8ba185c2..213dfd32 100644 --- a/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_request.go +++ b/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_request.go @@ -58,6 +58,9 @@ type CreateAWSGovCloudClusterRequest struct { // JSON template to use for cluster creation. This is different from the cluster template and would be removed in the future. RequestTemplate string `json:"requestTemplate,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // The subnet ID. SubnetID string `json:"subnetId,omitempty"` @@ -92,6 +95,10 @@ func (m *CreateAWSGovCloudClusterRequest) Validate(formats strfmt.Registry) erro res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -199,6 +206,25 @@ func (m *CreateAWSGovCloudClusterRequest) validateInstanceGroups(formats strfmt. return nil } +func (m *CreateAWSGovCloudClusterRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSGovCloudClusterRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -245,6 +271,10 @@ func (m *CreateAWSGovCloudClusterRequest) ContextValidate(ctx context.Context, f res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -340,6 +370,27 @@ func (m *CreateAWSGovCloudClusterRequest) contextValidateInstanceGroups(ctx cont return nil } +func (m *CreateAWSGovCloudClusterRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSGovCloudClusterRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { diff --git a/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_response.go b/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_response.go index 8fa7e760..1409b307 100644 --- a/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/create_a_w_s_gov_cloud_cluster_response.go @@ -22,6 +22,9 @@ type CreateAWSGovCloudClusterResponse struct { // The cluster. // Required: true Cluster *Cluster `json:"cluster"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create a w s gov cloud cluster response 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 5a9a828e..906b1800 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 @@ -72,6 +72,9 @@ type CreateAzureClusterRequest struct { // JSON template to use for cluster creation. This is different from cluster template and would be removed in the future. RequestTemplate string `json:"requestTemplate,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // The subnet ID. SubnetID string `json:"subnetId,omitempty"` @@ -111,6 +114,10 @@ func (m *CreateAzureClusterRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -277,6 +284,25 @@ func (m *CreateAzureClusterRequest) validateLoadBalancerSku(formats strfmt.Regis return nil } +func (m *CreateAzureClusterRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAzureClusterRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -327,6 +353,10 @@ func (m *CreateAzureClusterRequest) ContextValidate(ctx context.Context, formats res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -440,6 +470,27 @@ func (m *CreateAzureClusterRequest) contextValidateLoadBalancerSku(ctx context.C return nil } +func (m *CreateAzureClusterRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAzureClusterRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); 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 9e048411..9114026f 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 @@ -22,6 +22,9 @@ type CreateAzureClusterResponse struct { // The cluster. // Required: true Cluster *Cluster `json:"cluster"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create azure cluster response 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 1e2fdc65..ccb9944e 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 @@ -52,9 +52,15 @@ type CreateGCPClusterRequest struct { // Configure the major version of Java on the cluster. JavaVersion int32 `json:"javaVersion,omitempty"` + // Creates CDP Data Hub distributed across multiple availability zones in GCP region + MultiAz *bool `json:"multiAz,omitempty"` + // JSON template to use for cluster creation. This is different from cluster template and would be removed in the future. RequestTemplate string `json:"requestTemplate,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // The subnet name. SubnetName string `json:"subnetName,omitempty"` @@ -86,6 +92,10 @@ func (m *CreateGCPClusterRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -193,6 +203,25 @@ func (m *CreateGCPClusterRequest) validateInstanceGroups(formats strfmt.Registry return nil } +func (m *CreateGCPClusterRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateGCPClusterRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -239,6 +268,10 @@ func (m *CreateGCPClusterRequest) ContextValidate(ctx context.Context, formats s res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -334,6 +367,27 @@ func (m *CreateGCPClusterRequest) contextValidateInstanceGroups(ctx context.Cont return nil } +func (m *CreateGCPClusterRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateGCPClusterRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); 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 cfd6e1ee..1e3277c0 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 @@ -22,6 +22,9 @@ type CreateGCPClusterResponse struct { // The cluster. // Required: true Cluster *Cluster `json:"cluster"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create g c p cluster response diff --git a/cdp-sdk-go/gen/datahub/models/delete_cluster_response.go b/cdp-sdk-go/gen/datahub/models/delete_cluster_response.go index 67172820..b42141f3 100644 --- a/cdp-sdk-go/gen/datahub/models/delete_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/delete_cluster_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // DeleteClusterResponse Response object for delete cluster request. // // swagger:model DeleteClusterResponse -type DeleteClusterResponse interface{} +type DeleteClusterResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this delete cluster response +func (m *DeleteClusterResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this delete cluster response based on context it is used +func (m *DeleteClusterResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *DeleteClusterResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *DeleteClusterResponse) UnmarshalBinary(b []byte) error { + var res DeleteClusterResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 fa49106f..bc993f74 100644 --- a/cdp-sdk-go/gen/datahub/models/delete_instances_response.go +++ b/cdp-sdk-go/gen/datahub/models/delete_instances_response.go @@ -22,6 +22,9 @@ type DeleteInstancesResponse struct { // The cluster. // Required: true Cluster *Cluster `json:"cluster"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this delete instances response 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 ca450cc4..a50099b9 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 @@ -24,6 +24,9 @@ type GCPInstanceGroupRequest struct { // Required: true AttachedVolumeConfiguration []*AttachedVolumeRequest `json:"attachedVolumeConfiguration"` + // List of availability zones that this instance group is associated with. + AvailabilityZones []string `json:"availabilityZones"` + // The instance group name. // Required: true InstanceGroupName *string `json:"instanceGroupName"` diff --git a/cdp-sdk-go/gen/datahub/models/get_operation_response.go b/cdp-sdk-go/gen/datahub/models/get_operation_response.go index 1c7f02e6..064b59ed 100644 --- a/cdp-sdk-go/gen/datahub/models/get_operation_response.go +++ b/cdp-sdk-go/gen/datahub/models/get_operation_response.go @@ -20,34 +20,59 @@ import ( // swagger:model GetOperationResponse type GetOperationResponse struct { + // End time of the operation. + // Format: date-time + Ended strfmt.DateTime `json:"ended,omitempty"` + // Identifier of the operation. OperationID string `json:"operationId,omitempty"` + // Name of the operation. + OperationName string `json:"operationName,omitempty"` + // Status of the operation. // Enum: ["UNKNOWN","RUNNING","FAILED","FINISHED","CANCELLED"] OperationStatus string `json:"operationStatus,omitempty"` - // Type of the operation. - OperationType string `json:"operationType,omitempty"` - - // Progress percentage of the operation. - Progress int32 `json:"progress,omitempty"` + // Start time of the operation. + // Format: date-time + Started strfmt.DateTime `json:"started,omitempty"` } // Validate validates this get operation response func (m *GetOperationResponse) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateEnded(formats); err != nil { + res = append(res, err) + } + if err := m.validateOperationStatus(formats); err != nil { res = append(res, err) } + if err := m.validateStarted(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } +func (m *GetOperationResponse) validateEnded(formats strfmt.Registry) error { + if swag.IsZero(m.Ended) { // not required + return nil + } + + if err := validate.FormatOf("ended", "body", "date-time", m.Ended.String(), formats); err != nil { + return err + } + + return nil +} + var getOperationResponseTypeOperationStatusPropEnum []interface{} func init() { @@ -99,6 +124,18 @@ func (m *GetOperationResponse) validateOperationStatus(formats strfmt.Registry) return nil } +func (m *GetOperationResponse) validateStarted(formats strfmt.Registry) error { + if swag.IsZero(m.Started) { // not required + return nil + } + + if err := validate.FormatOf("started", "body", "date-time", m.Started.String(), formats); err != nil { + return err + } + + return nil +} + // ContextValidate validates this get operation response based on context it is used func (m *GetOperationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil 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 535119f8..cb0811d7 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 @@ -22,6 +22,9 @@ type PrepareClusterUpgradeResponse struct { // Information about the current image. Current *ImageInfo `json:"current,omitempty"` + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The reason why upgrade is not possible. Reason string `json:"reason,omitempty"` diff --git a/cdp-sdk-go/gen/datahub/models/renew_certificate_response.go b/cdp-sdk-go/gen/datahub/models/renew_certificate_response.go index 77de435d..c955d53d 100644 --- a/cdp-sdk-go/gen/datahub/models/renew_certificate_response.go +++ b/cdp-sdk-go/gen/datahub/models/renew_certificate_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RenewCertificateResponse Response object for renew certificate request, deprecated. // // swagger:model RenewCertificateResponse -type RenewCertificateResponse interface{} +type RenewCertificateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this renew certificate response +func (m *RenewCertificateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this renew certificate response based on context it is used +func (m *RenewCertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RenewCertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RenewCertificateResponse) UnmarshalBinary(b []byte) error { + var res RenewCertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/renew_public_certificate_response.go b/cdp-sdk-go/gen/datahub/models/renew_public_certificate_response.go index 651f2831..57f7a0d2 100644 --- a/cdp-sdk-go/gen/datahub/models/renew_public_certificate_response.go +++ b/cdp-sdk-go/gen/datahub/models/renew_public_certificate_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RenewPublicCertificateResponse Response object for renew public certificate request. // // swagger:model RenewPublicCertificateResponse -type RenewPublicCertificateResponse interface{} +type RenewPublicCertificateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this renew public certificate response +func (m *RenewPublicCertificateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this renew public certificate response based on context it is used +func (m *RenewPublicCertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RenewPublicCertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RenewPublicCertificateResponse) UnmarshalBinary(b []byte) error { + var res RenewPublicCertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/repair_cluster_response.go b/cdp-sdk-go/gen/datahub/models/repair_cluster_response.go index 9102d93c..f56ad1d2 100644 --- a/cdp-sdk-go/gen/datahub/models/repair_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/repair_cluster_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RepairClusterResponse Response object for repair cluster request. // // swagger:model RepairClusterResponse -type RepairClusterResponse interface{} +type RepairClusterResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this repair cluster response +func (m *RepairClusterResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this repair cluster response based on context it is used +func (m *RepairClusterResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RepairClusterResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RepairClusterResponse) UnmarshalBinary(b []byte) error { + var res RepairClusterResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/restart_cluster_instances_response.go b/cdp-sdk-go/gen/datahub/models/restart_cluster_instances_response.go index 7a9ea43a..e92f628d 100644 --- a/cdp-sdk-go/gen/datahub/models/restart_cluster_instances_response.go +++ b/cdp-sdk-go/gen/datahub/models/restart_cluster_instances_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RestartClusterInstancesResponse Response object for restart cluster instances request. // // swagger:model RestartClusterInstancesResponse -type RestartClusterInstancesResponse interface{} +type RestartClusterInstancesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this restart cluster instances response +func (m *RestartClusterInstancesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this restart cluster instances response based on context it is used +func (m *RestartClusterInstancesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RestartClusterInstancesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RestartClusterInstancesResponse) UnmarshalBinary(b []byte) error { + var res RestartClusterInstancesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/rotate_auto_tls_certificates_response.go b/cdp-sdk-go/gen/datahub/models/rotate_auto_tls_certificates_response.go index 8c6ff366..9646ce6f 100644 --- a/cdp-sdk-go/gen/datahub/models/rotate_auto_tls_certificates_response.go +++ b/cdp-sdk-go/gen/datahub/models/rotate_auto_tls_certificates_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotateAutoTLSCertificatesResponse Response object to rotate autotls certificates on datahub's hosts, deprecated. // // swagger:model RotateAutoTlsCertificatesResponse -type RotateAutoTLSCertificatesResponse interface{} +type RotateAutoTLSCertificatesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate auto Tls certificates response +func (m *RotateAutoTLSCertificatesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate auto Tls certificates response based on context it is used +func (m *RotateAutoTLSCertificatesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateAutoTLSCertificatesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateAutoTLSCertificatesResponse) UnmarshalBinary(b []byte) error { + var res RotateAutoTLSCertificatesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/rotate_db_certificate_response.go b/cdp-sdk-go/gen/datahub/models/rotate_db_certificate_response.go index 62e582fc..b90dd35f 100644 --- a/cdp-sdk-go/gen/datahub/models/rotate_db_certificate_response.go +++ b/cdp-sdk-go/gen/datahub/models/rotate_db_certificate_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotateDbCertificateResponse Response object to rotate ssl certificate a datahub. // // swagger:model RotateDbCertificateResponse -type RotateDbCertificateResponse interface{} +type RotateDbCertificateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate db certificate response +func (m *RotateDbCertificateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate db certificate response based on context it is used +func (m *RotateDbCertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateDbCertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateDbCertificateResponse) UnmarshalBinary(b []byte) error { + var res RotateDbCertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/rotate_private_certificates_response.go b/cdp-sdk-go/gen/datahub/models/rotate_private_certificates_response.go index 0924b1d9..f040c502 100644 --- a/cdp-sdk-go/gen/datahub/models/rotate_private_certificates_response.go +++ b/cdp-sdk-go/gen/datahub/models/rotate_private_certificates_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotatePrivateCertificatesResponse Response object to rotate private certificates on the hosts of Datahub. // // swagger:model RotatePrivateCertificatesResponse -type RotatePrivateCertificatesResponse interface{} +type RotatePrivateCertificatesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate private certificates response +func (m *RotatePrivateCertificatesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate private certificates response based on context it is used +func (m *RotatePrivateCertificatesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotatePrivateCertificatesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotatePrivateCertificatesResponse) UnmarshalBinary(b []byte) error { + var res RotatePrivateCertificatesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/rotate_salt_password_request.go b/cdp-sdk-go/gen/datahub/models/rotate_salt_password_request.go index 2aec85fe..aab3b68b 100644 --- a/cdp-sdk-go/gen/datahub/models/rotate_salt_password_request.go +++ b/cdp-sdk-go/gen/datahub/models/rotate_salt_password_request.go @@ -14,7 +14,7 @@ import ( "github.com/go-openapi/validate" ) -// RotateSaltPasswordRequest Request object for rotating SaltStack user password on Data Hub instances. +// RotateSaltPasswordRequest Request object for rotating SaltStack user password on Data Hub instances (Deprecated). // // swagger:model RotateSaltPasswordRequest type RotateSaltPasswordRequest struct { diff --git a/cdp-sdk-go/gen/datahub/models/rotate_salt_password_response.go b/cdp-sdk-go/gen/datahub/models/rotate_salt_password_response.go index 660dc8c6..5d36ae33 100644 --- a/cdp-sdk-go/gen/datahub/models/rotate_salt_password_response.go +++ b/cdp-sdk-go/gen/datahub/models/rotate_salt_password_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command -// RotateSaltPasswordResponse Response object for rotating SaltStack user password on Data Hub instances. +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// RotateSaltPasswordResponse Response object for rotating SaltStack user password on Data Hub instances (Deprecated). // // swagger:model RotateSaltPasswordResponse -type RotateSaltPasswordResponse interface{} +type RotateSaltPasswordResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate salt password response +func (m *RotateSaltPasswordResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate salt password response based on context it is used +func (m *RotateSaltPasswordResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateSaltPasswordResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateSaltPasswordResponse) UnmarshalBinary(b []byte) error { + var res RotateSaltPasswordResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/rotate_secrets_response.go b/cdp-sdk-go/gen/datahub/models/rotate_secrets_response.go index d3560672..a72d3b59 100644 --- a/cdp-sdk-go/gen/datahub/models/rotate_secrets_response.go +++ b/cdp-sdk-go/gen/datahub/models/rotate_secrets_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotateSecretsResponse Response object for rotating secrets. // // swagger:model RotateSecretsResponse -type RotateSecretsResponse interface{} +type RotateSecretsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate secrets response +func (m *RotateSecretsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate secrets response based on context it is used +func (m *RotateSecretsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateSecretsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateSecretsResponse) UnmarshalBinary(b []byte) error { + var res RotateSecretsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/scale_cluster_response.go b/cdp-sdk-go/gen/datahub/models/scale_cluster_response.go index 518812f8..cc5cbbbc 100644 --- a/cdp-sdk-go/gen/datahub/models/scale_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/scale_cluster_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // ScaleClusterResponse Response object for scale cluster request. // // swagger:model ScaleClusterResponse -type ScaleClusterResponse interface{} +type ScaleClusterResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this scale cluster response +func (m *ScaleClusterResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this scale cluster response based on context it is used +func (m *ScaleClusterResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ScaleClusterResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ScaleClusterResponse) UnmarshalBinary(b []byte) error { + var res ScaleClusterResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/security_request.go b/cdp-sdk-go/gen/datahub/models/security_request.go new file mode 100644 index 00000000..6b5c561a --- /dev/null +++ b/cdp-sdk-go/gen/datahub/models/security_request.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// SecurityRequest Security related configuration for Data Hub cluster. +// +// swagger:model SecurityRequest +type SecurityRequest struct { + + // Override default SELinux configuration which is PERMISSIVE by default + // Enum: ["PERMISSIVE","ENFORCING"] + SeLinux string `json:"seLinux,omitempty"` +} + +// Validate validates this security request +func (m *SecurityRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var securityRequestTypeSeLinuxPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["PERMISSIVE","ENFORCING"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + securityRequestTypeSeLinuxPropEnum = append(securityRequestTypeSeLinuxPropEnum, v) + } +} + +const ( + + // SecurityRequestSeLinuxPERMISSIVE captures enum value "PERMISSIVE" + SecurityRequestSeLinuxPERMISSIVE string = "PERMISSIVE" + + // SecurityRequestSeLinuxENFORCING captures enum value "ENFORCING" + SecurityRequestSeLinuxENFORCING string = "ENFORCING" +) + +// prop value enum +func (m *SecurityRequest) validateSeLinuxEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, securityRequestTypeSeLinuxPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *SecurityRequest) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + // value enum + if err := m.validateSeLinuxEnum("seLinux", "body", m.SeLinux); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this security request based on context it is used +func (m *SecurityRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityRequest) UnmarshalBinary(b []byte) error { + var res SecurityRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/security_response.go b/cdp-sdk-go/gen/datahub/models/security_response.go new file mode 100644 index 00000000..b023cf70 --- /dev/null +++ b/cdp-sdk-go/gen/datahub/models/security_response.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// SecurityResponse Security related configuration for Data Hub cluster. +// +// swagger:model SecurityResponse +type SecurityResponse struct { + + // Override default SELinux configuration which is PERMISSIVE by default + // Enum: ["PERMISSIVE","ENFORCING"] + SeLinux string `json:"seLinux,omitempty"` +} + +// Validate validates this security response +func (m *SecurityResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var securityResponseTypeSeLinuxPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["PERMISSIVE","ENFORCING"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + securityResponseTypeSeLinuxPropEnum = append(securityResponseTypeSeLinuxPropEnum, v) + } +} + +const ( + + // SecurityResponseSeLinuxPERMISSIVE captures enum value "PERMISSIVE" + SecurityResponseSeLinuxPERMISSIVE string = "PERMISSIVE" + + // SecurityResponseSeLinuxENFORCING captures enum value "ENFORCING" + SecurityResponseSeLinuxENFORCING string = "ENFORCING" +) + +// prop value enum +func (m *SecurityResponse) validateSeLinuxEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, securityResponseTypeSeLinuxPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *SecurityResponse) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + // value enum + if err := m.validateSeLinuxEnum("seLinux", "body", m.SeLinux); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this security response based on context it is used +func (m *SecurityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityResponse) UnmarshalBinary(b []byte) error { + var res SecurityResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/set_default_java_version_request.go b/cdp-sdk-go/gen/datahub/models/set_default_java_version_request.go index 88645c6e..189c3712 100644 --- a/cdp-sdk-go/gen/datahub/models/set_default_java_version_request.go +++ b/cdp-sdk-go/gen/datahub/models/set_default_java_version_request.go @@ -26,6 +26,9 @@ type SetDefaultJavaVersionRequest struct { // The Java version to set as default. // Required: true JavaVersion *string `json:"javaVersion"` + + // If set to true Cloudera Manager will use Rolling Restart to restart services running on the cluster. This operation can take a long time. Default value is false. + RollingRestart *bool `json:"rollingRestart,omitempty"` } // Validate validates this set default java version request diff --git a/cdp-sdk-go/gen/datahub/models/start_cluster_response.go b/cdp-sdk-go/gen/datahub/models/start_cluster_response.go index 12056a9b..f8d4440e 100644 --- a/cdp-sdk-go/gen/datahub/models/start_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/start_cluster_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // StartClusterResponse Response object for start cluster request. // // swagger:model StartClusterResponse -type StartClusterResponse interface{} +type StartClusterResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this start cluster response +func (m *StartClusterResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this start cluster response based on context it is used +func (m *StartClusterResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *StartClusterResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *StartClusterResponse) UnmarshalBinary(b []byte) error { + var res StartClusterResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_response.go b/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_response.go index b4937c76..0e78c266 100644 --- a/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_response.go +++ b/cdp-sdk-go/gen/datahub/models/start_cluster_vertical_scaling_response.go @@ -17,6 +17,9 @@ import ( // swagger:model StartClusterVerticalScalingResponse type StartClusterVerticalScalingResponse struct { + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The result of the operation. Result string `json:"result,omitempty"` } diff --git a/cdp-sdk-go/gen/datahub/models/start_database_upgrade_response.go b/cdp-sdk-go/gen/datahub/models/start_database_upgrade_response.go index 74cbb449..b9bddc33 100644 --- a/cdp-sdk-go/gen/datahub/models/start_database_upgrade_response.go +++ b/cdp-sdk-go/gen/datahub/models/start_database_upgrade_response.go @@ -17,6 +17,9 @@ import ( // swagger:model StartDatabaseUpgradeResponse type StartDatabaseUpgradeResponse struct { + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The database engine major version to upgrade to. TargetVersion string `json:"targetVersion,omitempty"` } diff --git a/cdp-sdk-go/gen/datahub/models/start_instances_response.go b/cdp-sdk-go/gen/datahub/models/start_instances_response.go index c3074584..95a9002d 100644 --- a/cdp-sdk-go/gen/datahub/models/start_instances_response.go +++ b/cdp-sdk-go/gen/datahub/models/start_instances_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // StartInstancesResponse Response object to start instances of a host group on Data Hub. // // swagger:model StartInstancesResponse -type StartInstancesResponse interface{} +type StartInstancesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this start instances response +func (m *StartInstancesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this start instances response based on context it is used +func (m *StartInstancesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *StartInstancesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *StartInstancesResponse) UnmarshalBinary(b []byte) error { + var res StartInstancesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/stop_cluster_response.go b/cdp-sdk-go/gen/datahub/models/stop_cluster_response.go index edb4fbd2..aedd1dff 100644 --- a/cdp-sdk-go/gen/datahub/models/stop_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/stop_cluster_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // StopClusterResponse Response object for stop cluster request. // // swagger:model StopClusterResponse -type StopClusterResponse interface{} +type StopClusterResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this stop cluster response +func (m *StopClusterResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this stop cluster response based on context it is used +func (m *StopClusterResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *StopClusterResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *StopClusterResponse) UnmarshalBinary(b []byte) error { + var res StopClusterResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/stop_instances_response.go b/cdp-sdk-go/gen/datahub/models/stop_instances_response.go index bb8dfeb5..4d89b9ea 100644 --- a/cdp-sdk-go/gen/datahub/models/stop_instances_response.go +++ b/cdp-sdk-go/gen/datahub/models/stop_instances_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // StopInstancesResponse Response object to a stop instances of a host group on a Data Hub. // // swagger:model StopInstancesResponse -type StopInstancesResponse interface{} +type StopInstancesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this stop instances response +func (m *StopInstancesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this stop instances response based on context it is used +func (m *StopInstancesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *StopInstancesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *StopInstancesResponse) UnmarshalBinary(b []byte) error { + var res StopInstancesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/sync_component_versions_from_cm_response.go b/cdp-sdk-go/gen/datahub/models/sync_component_versions_from_cm_response.go index 66ab03a4..4bac2ffa 100644 --- a/cdp-sdk-go/gen/datahub/models/sync_component_versions_from_cm_response.go +++ b/cdp-sdk-go/gen/datahub/models/sync_component_versions_from_cm_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // SyncComponentVersionsFromCmResponse Datahub sync CM component versions response. // // swagger:model SyncComponentVersionsFromCmResponse -type SyncComponentVersionsFromCmResponse interface{} +type SyncComponentVersionsFromCmResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this sync component versions from cm response +func (m *SyncComponentVersionsFromCmResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this sync component versions from cm response based on context it is used +func (m *SyncComponentVersionsFromCmResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SyncComponentVersionsFromCmResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SyncComponentVersionsFromCmResponse) UnmarshalBinary(b []byte) error { + var res SyncComponentVersionsFromCmResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/update_orchestrator_state_response.go b/cdp-sdk-go/gen/datahub/models/update_orchestrator_state_response.go index 2ab383d4..cc437a3a 100644 --- a/cdp-sdk-go/gen/datahub/models/update_orchestrator_state_response.go +++ b/cdp-sdk-go/gen/datahub/models/update_orchestrator_state_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateOrchestratorStateResponse Response object for running orchestrator engine state update on the Data Hub cluster. // // swagger:model UpdateOrchestratorStateResponse -type UpdateOrchestratorStateResponse interface{} +type UpdateOrchestratorStateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update orchestrator state response +func (m *UpdateOrchestratorStateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update orchestrator state response based on context it is used +func (m *UpdateOrchestratorStateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateOrchestratorStateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateOrchestratorStateResponse) UnmarshalBinary(b []byte) error { + var res UpdateOrchestratorStateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v1_response.go b/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v1_response.go index 2e7c43e8..84bbc607 100644 --- a/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v1_response.go +++ b/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v1_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateToAwsImdsV1Response Response object for updating Data Hub to AWS IMDSv1. // // swagger:model UpdateToAwsImdsV1Response -type UpdateToAwsImdsV1Response interface{} +type UpdateToAwsImdsV1Response struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update to aws imds v1 response +func (m *UpdateToAwsImdsV1Response) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update to aws imds v1 response based on context it is used +func (m *UpdateToAwsImdsV1Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateToAwsImdsV1Response) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateToAwsImdsV1Response) UnmarshalBinary(b []byte) error { + var res UpdateToAwsImdsV1Response + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v2_response.go b/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v2_response.go index ba43198b..8e9be68d 100644 --- a/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v2_response.go +++ b/cdp-sdk-go/gen/datahub/models/update_to_aws_imds_v2_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateToAwsImdsV2Response Response object for updating Data Hub to AWS IMDSv2. // // swagger:model UpdateToAwsImdsV2Response -type UpdateToAwsImdsV2Response interface{} +type UpdateToAwsImdsV2Response struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update to aws imds v2 response +func (m *UpdateToAwsImdsV2Response) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update to aws imds v2 response based on context it is used +func (m *UpdateToAwsImdsV2Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateToAwsImdsV2Response) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateToAwsImdsV2Response) UnmarshalBinary(b []byte) error { + var res UpdateToAwsImdsV2Response + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 2dc7db2e..df13f9af 100644 --- a/cdp-sdk-go/gen/datahub/models/upgrade_cluster_response.go +++ b/cdp-sdk-go/gen/datahub/models/upgrade_cluster_response.go @@ -22,6 +22,9 @@ type UpgradeClusterResponse struct { // Information about the current image. Current *ImageInfo `json:"current,omitempty"` + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The reason why upgrade is not possible. Reason string `json:"reason,omitempty"` diff --git a/cdp-sdk-go/gen/datalake/client/operations/collect_cm_diagnostics_responses.go b/cdp-sdk-go/gen/datalake/client/operations/collect_cm_diagnostics_responses.go index 67fc32ce..f29ed2e8 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/collect_cm_diagnostics_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/collect_cm_diagnostics_responses.go @@ -53,7 +53,7 @@ CollectCmDiagnosticsOK describes a response with status code 200, with default h Expected response to a valid request. */ type CollectCmDiagnosticsOK struct { - Payload models.CollectCmDiagnosticsResponse + Payload *models.CollectCmDiagnosticsResponse } // IsSuccess returns true when this collect cm diagnostics o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *CollectCmDiagnosticsOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/collectCmDiagnostics][%d] collectCmDiagnosticsOK %s", 200, payload) } -func (o *CollectCmDiagnosticsOK) GetPayload() models.CollectCmDiagnosticsResponse { +func (o *CollectCmDiagnosticsOK) GetPayload() *models.CollectCmDiagnosticsResponse { return o.Payload } func (o *CollectCmDiagnosticsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.CollectCmDiagnosticsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/collect_datalake_diagnostics_responses.go b/cdp-sdk-go/gen/datalake/client/operations/collect_datalake_diagnostics_responses.go index ecf97eeb..59683812 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/collect_datalake_diagnostics_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/collect_datalake_diagnostics_responses.go @@ -53,7 +53,7 @@ CollectDatalakeDiagnosticsOK describes a response with status code 200, with def Expected response to a valid request. */ type CollectDatalakeDiagnosticsOK struct { - Payload models.CollectDatalakeDiagnosticsResponse + Payload *models.CollectDatalakeDiagnosticsResponse } // IsSuccess returns true when this collect datalake diagnostics o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *CollectDatalakeDiagnosticsOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/collectDatalakeDiagnostics][%d] collectDatalakeDiagnosticsOK %s", 200, payload) } -func (o *CollectDatalakeDiagnosticsOK) GetPayload() models.CollectDatalakeDiagnosticsResponse { +func (o *CollectDatalakeDiagnosticsOK) GetPayload() *models.CollectDatalakeDiagnosticsResponse { return o.Payload } func (o *CollectDatalakeDiagnosticsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.CollectDatalakeDiagnosticsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/delete_datalake_responses.go b/cdp-sdk-go/gen/datalake/client/operations/delete_datalake_responses.go index b5fdf394..cb5e9a0e 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/delete_datalake_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/delete_datalake_responses.go @@ -53,7 +53,7 @@ DeleteDatalakeOK describes a response with status code 200, with default header Expected response to a valid request. */ type DeleteDatalakeOK struct { - Payload models.DeleteDatalakeResponse + Payload *models.DeleteDatalakeResponse } // IsSuccess returns true when this delete datalake o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *DeleteDatalakeOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/deleteDatalake][%d] deleteDatalakeOK %s", 200, payload) } -func (o *DeleteDatalakeOK) GetPayload() models.DeleteDatalakeResponse { +func (o *DeleteDatalakeOK) GetPayload() *models.DeleteDatalakeResponse { return o.Payload } func (o *DeleteDatalakeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.DeleteDatalakeResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/get_operation_parameters.go b/cdp-sdk-go/gen/datalake/client/operations/get_operation_parameters.go new file mode 100644 index 00000000..fdb9907f --- /dev/null +++ b/cdp-sdk-go/gen/datalake/client/operations/get_operation_parameters.go @@ -0,0 +1,150 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/datalake/models" +) + +// NewGetOperationParams creates a new GetOperationParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetOperationParams() *GetOperationParams { + return &GetOperationParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetOperationParamsWithTimeout creates a new GetOperationParams object +// with the ability to set a timeout on a request. +func NewGetOperationParamsWithTimeout(timeout time.Duration) *GetOperationParams { + return &GetOperationParams{ + timeout: timeout, + } +} + +// NewGetOperationParamsWithContext creates a new GetOperationParams object +// with the ability to set a context for a request. +func NewGetOperationParamsWithContext(ctx context.Context) *GetOperationParams { + return &GetOperationParams{ + Context: ctx, + } +} + +// NewGetOperationParamsWithHTTPClient creates a new GetOperationParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetOperationParamsWithHTTPClient(client *http.Client) *GetOperationParams { + return &GetOperationParams{ + HTTPClient: client, + } +} + +/* +GetOperationParams contains all the parameters to send to the API endpoint + + for the get operation operation. + + Typically these are written to a http.Request. +*/ +type GetOperationParams struct { + + // Input. + Input *models.GetOperationRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get operation params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetOperationParams) WithDefaults() *GetOperationParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get operation params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetOperationParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get operation params +func (o *GetOperationParams) WithTimeout(timeout time.Duration) *GetOperationParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get operation params +func (o *GetOperationParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get operation params +func (o *GetOperationParams) WithContext(ctx context.Context) *GetOperationParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get operation params +func (o *GetOperationParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get operation params +func (o *GetOperationParams) WithHTTPClient(client *http.Client) *GetOperationParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get operation params +func (o *GetOperationParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithInput adds the input to the get operation params +func (o *GetOperationParams) WithInput(input *models.GetOperationRequest) *GetOperationParams { + o.SetInput(input) + return o +} + +// SetInput adds the input to the get operation params +func (o *GetOperationParams) SetInput(input *models.GetOperationRequest) { + o.Input = input +} + +// WriteToRequest writes these params to a swagger request +func (o *GetOperationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Input != nil { + if err := r.SetBodyParam(o.Input); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/cdp-sdk-go/gen/datalake/client/operations/get_operation_responses.go b/cdp-sdk-go/gen/datalake/client/operations/get_operation_responses.go new file mode 100644 index 00000000..a31a5996 --- /dev/null +++ b/cdp-sdk-go/gen/datalake/client/operations/get_operation_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/datalake/models" +) + +// GetOperationReader is a Reader for the GetOperation structure. +type GetOperationReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetOperationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetOperationOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewGetOperationDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewGetOperationOK creates a GetOperationOK with default headers values +func NewGetOperationOK() *GetOperationOK { + return &GetOperationOK{} +} + +/* +GetOperationOK describes a response with status code 200, with default header values. + +Expected response to a valid request. +*/ +type GetOperationOK struct { + Payload *models.GetOperationResponse +} + +// IsSuccess returns true when this get operation o k response has a 2xx status code +func (o *GetOperationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get operation o k response has a 3xx status code +func (o *GetOperationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get operation o k response has a 4xx status code +func (o *GetOperationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get operation o k response has a 5xx status code +func (o *GetOperationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get operation o k response a status code equal to that given +func (o *GetOperationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get operation o k response +func (o *GetOperationOK) Code() int { + return 200 +} + +func (o *GetOperationOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/datalake/getOperation][%d] getOperationOK %s", 200, payload) +} + +func (o *GetOperationOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/datalake/getOperation][%d] getOperationOK %s", 200, payload) +} + +func (o *GetOperationOK) GetPayload() *models.GetOperationResponse { + return o.Payload +} + +func (o *GetOperationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GetOperationResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetOperationDefault creates a GetOperationDefault with default headers values +func NewGetOperationDefault(code int) *GetOperationDefault { + return &GetOperationDefault{ + _statusCode: code, + } +} + +/* +GetOperationDefault describes a response with status code -1, with default header values. + +The default response on an error. +*/ +type GetOperationDefault struct { + _statusCode int + + Payload *models.Error +} + +// IsSuccess returns true when this get operation default response has a 2xx status code +func (o *GetOperationDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this get operation default response has a 3xx status code +func (o *GetOperationDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this get operation default response has a 4xx status code +func (o *GetOperationDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this get operation default response has a 5xx status code +func (o *GetOperationDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this get operation default response a status code equal to that given +func (o *GetOperationDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the get operation default response +func (o *GetOperationDefault) Code() int { + return o._statusCode +} + +func (o *GetOperationDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/datalake/getOperation][%d] getOperation default %s", o._statusCode, payload) +} + +func (o *GetOperationDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/datalake/getOperation][%d] getOperation default %s", o._statusCode, payload) +} + +func (o *GetOperationDefault) GetPayload() *models.Error { + return o.Payload +} + +func (o *GetOperationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cdp-sdk-go/gen/datalake/client/operations/operations_client.go b/cdp-sdk-go/gen/datalake/client/operations/operations_client.go index 38facf71..1738cf52 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/operations_client.go +++ b/cdp-sdk-go/gen/datalake/client/operations/operations_client.go @@ -92,6 +92,8 @@ type ClientService interface { GetDatalakeLogDescriptors(params *GetDatalakeLogDescriptorsParams, opts ...ClientOption) (*GetDatalakeLogDescriptorsOK, error) + GetOperation(params *GetOperationParams, opts ...ClientOption) (*GetOperationOK, error) + ListDatalakeBackups(params *ListDatalakeBackupsParams, opts ...ClientOption) (*ListDatalakeBackupsOK, error) ListDatalakeDiagnostics(params *ListDatalakeDiagnosticsParams, opts ...ClientOption) (*ListDatalakeDiagnosticsOK, error) @@ -906,6 +908,45 @@ func (a *Client) GetDatalakeLogDescriptors(params *GetDatalakeLogDescriptorsPara return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +GetOperation useds for retrieving operation status for the datalake cluster defaulting to the most recent operation provide an operation Id to view details of a specific historical operation + +Used for retrieving operation status for the datalake cluster, defaulting to the most recent operation. Provide an operationId to view details of a specific historical operation. +*/ +func (a *Client) GetOperation(params *GetOperationParams, opts ...ClientOption) (*GetOperationOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetOperationParams() + } + op := &runtime.ClientOperation{ + ID: "getOperation", + Method: "POST", + PathPattern: "/api/v1/datalake/getOperation", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &GetOperationReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetOperationOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*GetOperationDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* ListDatalakeBackups lists all the backup operations that were performed on the datalake @@ -1650,7 +1691,7 @@ func (a *Client) RotatePrivateCertificates(params *RotatePrivateCertificatesPara /* RotateSaltPassword rotates salt stack user password on data lake instances -Rotate SaltStack user password on DataLake instances. +Deprecated, please use rotateSecrets with SALT_PASSWORD secretType instead. */ func (a *Client) RotateSaltPassword(params *RotateSaltPasswordParams, opts ...ClientOption) (*RotateSaltPasswordOK, error) { // TODO: Validate the params before sending diff --git a/cdp-sdk-go/gen/datalake/client/operations/recover_datalake_responses.go b/cdp-sdk-go/gen/datalake/client/operations/recover_datalake_responses.go index c79d085f..98f39030 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/recover_datalake_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/recover_datalake_responses.go @@ -53,7 +53,7 @@ RecoverDatalakeOK describes a response with status code 200, with default header Expected response to a valid recover data lake request. */ type RecoverDatalakeOK struct { - Payload models.RecoverDatalakeResponse + Payload *models.RecoverDatalakeResponse } // IsSuccess returns true when this recover datalake o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RecoverDatalakeOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/recoverDatalake][%d] recoverDatalakeOK %s", 200, payload) } -func (o *RecoverDatalakeOK) GetPayload() models.RecoverDatalakeResponse { +func (o *RecoverDatalakeOK) GetPayload() *models.RecoverDatalakeResponse { return o.Payload } func (o *RecoverDatalakeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RecoverDatalakeResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/renew_certificate_responses.go b/cdp-sdk-go/gen/datalake/client/operations/renew_certificate_responses.go index 585324d4..3d640ced 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/renew_certificate_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/renew_certificate_responses.go @@ -53,7 +53,7 @@ RenewCertificateOK describes a response with status code 200, with default heade Expected response to a valid request. */ type RenewCertificateOK struct { - Payload models.RenewCertificateResponse + Payload *models.RenewCertificateResponse } // IsSuccess returns true when this renew certificate o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RenewCertificateOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/renewCertificate][%d] renewCertificateOK %s", 200, payload) } -func (o *RenewCertificateOK) GetPayload() models.RenewCertificateResponse { +func (o *RenewCertificateOK) GetPayload() *models.RenewCertificateResponse { return o.Payload } func (o *RenewCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RenewCertificateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/renew_public_certificate_responses.go b/cdp-sdk-go/gen/datalake/client/operations/renew_public_certificate_responses.go index 6b26d49d..b71c9ff4 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/renew_public_certificate_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/renew_public_certificate_responses.go @@ -53,7 +53,7 @@ RenewPublicCertificateOK describes a response with status code 200, with default Expected response to a valid request. */ type RenewPublicCertificateOK struct { - Payload models.RenewPublicCertificateResponse + Payload *models.RenewPublicCertificateResponse } // IsSuccess returns true when this renew public certificate o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RenewPublicCertificateOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/renewPublicCertificate][%d] renewPublicCertificateOK %s", 200, payload) } -func (o *RenewPublicCertificateOK) GetPayload() models.RenewPublicCertificateResponse { +func (o *RenewPublicCertificateOK) GetPayload() *models.RenewPublicCertificateResponse { return o.Payload } func (o *RenewPublicCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RenewPublicCertificateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/repair_datalake_responses.go b/cdp-sdk-go/gen/datalake/client/operations/repair_datalake_responses.go index f22954b2..b74ab0c2 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/repair_datalake_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/repair_datalake_responses.go @@ -53,7 +53,7 @@ RepairDatalakeOK describes a response with status code 200, with default header Expected response to a valid request. */ type RepairDatalakeOK struct { - Payload models.RepairDatalakeResponse + Payload *models.RepairDatalakeResponse } // IsSuccess returns true when this repair datalake o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RepairDatalakeOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/repairDatalake][%d] repairDatalakeOK %s", 200, payload) } -func (o *RepairDatalakeOK) GetPayload() models.RepairDatalakeResponse { +func (o *RepairDatalakeOK) GetPayload() *models.RepairDatalakeResponse { return o.Payload } func (o *RepairDatalakeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RepairDatalakeResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/restart_datalake_instances_responses.go b/cdp-sdk-go/gen/datalake/client/operations/restart_datalake_instances_responses.go index 491711b5..9a420c60 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/restart_datalake_instances_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/restart_datalake_instances_responses.go @@ -53,7 +53,7 @@ RestartDatalakeInstancesOK describes a response with status code 200, with defau Expected response to a valid request. */ type RestartDatalakeInstancesOK struct { - Payload models.RestartDatalakeInstancesResponse + Payload *models.RestartDatalakeInstancesResponse } // IsSuccess returns true when this restart datalake instances o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RestartDatalakeInstancesOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/restartDatalakeInstances][%d] restartDatalakeInstancesOK %s", 200, payload) } -func (o *RestartDatalakeInstancesOK) GetPayload() models.RestartDatalakeInstancesResponse { +func (o *RestartDatalakeInstancesOK) GetPayload() *models.RestartDatalakeInstancesResponse { return o.Payload } func (o *RestartDatalakeInstancesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RestartDatalakeInstancesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/retry_datalake_responses.go b/cdp-sdk-go/gen/datalake/client/operations/retry_datalake_responses.go index a8426df0..d290dd4e 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/retry_datalake_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/retry_datalake_responses.go @@ -53,7 +53,7 @@ RetryDatalakeOK describes a response with status code 200, with default header v Expected response to a valid request. */ type RetryDatalakeOK struct { - Payload models.RetryDatalakeResponse + Payload *models.RetryDatalakeResponse } // IsSuccess returns true when this retry datalake o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RetryDatalakeOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/retryDatalake][%d] retryDatalakeOK %s", 200, payload) } -func (o *RetryDatalakeOK) GetPayload() models.RetryDatalakeResponse { +func (o *RetryDatalakeOK) GetPayload() *models.RetryDatalakeResponse { return o.Payload } func (o *RetryDatalakeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RetryDatalakeResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/rotate_auto_tls_certificates_responses.go b/cdp-sdk-go/gen/datalake/client/operations/rotate_auto_tls_certificates_responses.go index 0716bcba..65b568f2 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/rotate_auto_tls_certificates_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/rotate_auto_tls_certificates_responses.go @@ -53,7 +53,7 @@ RotateAutoTLSCertificatesOK describes a response with status code 200, with defa Expected response to a valid request. */ type RotateAutoTLSCertificatesOK struct { - Payload models.RotateAutoTLSCertificatesResponse + Payload *models.RotateAutoTLSCertificatesResponse } // IsSuccess returns true when this rotate auto Tls certificates o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateAutoTLSCertificatesOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/rotateAutoTlsCertificates][%d] rotateAutoTlsCertificatesOK %s", 200, payload) } -func (o *RotateAutoTLSCertificatesOK) GetPayload() models.RotateAutoTLSCertificatesResponse { +func (o *RotateAutoTLSCertificatesOK) GetPayload() *models.RotateAutoTLSCertificatesResponse { return o.Payload } func (o *RotateAutoTLSCertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateAutoTLSCertificatesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/rotate_db_certificate_responses.go b/cdp-sdk-go/gen/datalake/client/operations/rotate_db_certificate_responses.go index c3c00c31..bd842f2a 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/rotate_db_certificate_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/rotate_db_certificate_responses.go @@ -53,7 +53,7 @@ RotateDbCertificateOK describes a response with status code 200, with default he Expected response to a valid request. */ type RotateDbCertificateOK struct { - Payload models.RotateDbCertificateResponse + Payload *models.RotateDbCertificateResponse } // IsSuccess returns true when this rotate db certificate o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateDbCertificateOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/rotateDbCertificate][%d] rotateDbCertificateOK %s", 200, payload) } -func (o *RotateDbCertificateOK) GetPayload() models.RotateDbCertificateResponse { +func (o *RotateDbCertificateOK) GetPayload() *models.RotateDbCertificateResponse { return o.Payload } func (o *RotateDbCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateDbCertificateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/rotate_private_certificates_responses.go b/cdp-sdk-go/gen/datalake/client/operations/rotate_private_certificates_responses.go index c3462ecb..18b30ae8 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/rotate_private_certificates_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/rotate_private_certificates_responses.go @@ -53,7 +53,7 @@ RotatePrivateCertificatesOK describes a response with status code 200, with defa Expected response to a valid request. */ type RotatePrivateCertificatesOK struct { - Payload models.RotatePrivateCertificatesResponse + Payload *models.RotatePrivateCertificatesResponse } // IsSuccess returns true when this rotate private certificates o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotatePrivateCertificatesOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/rotatePrivateCertificates][%d] rotatePrivateCertificatesOK %s", 200, payload) } -func (o *RotatePrivateCertificatesOK) GetPayload() models.RotatePrivateCertificatesResponse { +func (o *RotatePrivateCertificatesOK) GetPayload() *models.RotatePrivateCertificatesResponse { return o.Payload } func (o *RotatePrivateCertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotatePrivateCertificatesResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/rotate_salt_password_responses.go b/cdp-sdk-go/gen/datalake/client/operations/rotate_salt_password_responses.go index 098a4153..70ff2d12 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/rotate_salt_password_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/rotate_salt_password_responses.go @@ -53,7 +53,7 @@ RotateSaltPasswordOK describes a response with status code 200, with default hea Expected response to a valid request. */ type RotateSaltPasswordOK struct { - Payload models.RotateSaltPasswordResponse + Payload *models.RotateSaltPasswordResponse } // IsSuccess returns true when this rotate salt password o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateSaltPasswordOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/rotateSaltPassword][%d] rotateSaltPasswordOK %s", 200, payload) } -func (o *RotateSaltPasswordOK) GetPayload() models.RotateSaltPasswordResponse { +func (o *RotateSaltPasswordOK) GetPayload() *models.RotateSaltPasswordResponse { return o.Payload } func (o *RotateSaltPasswordOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateSaltPasswordResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/rotate_secrets_responses.go b/cdp-sdk-go/gen/datalake/client/operations/rotate_secrets_responses.go index 8e2f1678..2fbc3ffd 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/rotate_secrets_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/rotate_secrets_responses.go @@ -53,7 +53,7 @@ RotateSecretsOK describes a response with status code 200, with default header v Expected response to a valid request. */ type RotateSecretsOK struct { - Payload models.RotateSecretsResponse + Payload *models.RotateSecretsResponse } // IsSuccess returns true when this rotate secrets o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateSecretsOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/rotateSecrets][%d] rotateSecretsOK %s", 200, payload) } -func (o *RotateSecretsOK) GetPayload() models.RotateSecretsResponse { +func (o *RotateSecretsOK) GetPayload() *models.RotateSecretsResponse { return o.Payload } func (o *RotateSecretsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateSecretsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/sync_component_versions_from_cm_responses.go b/cdp-sdk-go/gen/datalake/client/operations/sync_component_versions_from_cm_responses.go index 5b671baa..c5c67a78 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/sync_component_versions_from_cm_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/sync_component_versions_from_cm_responses.go @@ -53,7 +53,7 @@ SyncComponentVersionsFromCmOK describes a response with status code 200, with de Expected response to a valid sync datahub CM component versions request. */ type SyncComponentVersionsFromCmOK struct { - Payload models.SyncComponentVersionsFromCmResponse + Payload *models.SyncComponentVersionsFromCmResponse } // IsSuccess returns true when this sync component versions from cm o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *SyncComponentVersionsFromCmOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/syncComponentVersionsFromCm][%d] syncComponentVersionsFromCmOK %s", 200, payload) } -func (o *SyncComponentVersionsFromCmOK) GetPayload() models.SyncComponentVersionsFromCmResponse { +func (o *SyncComponentVersionsFromCmOK) GetPayload() *models.SyncComponentVersionsFromCmResponse { return o.Payload } func (o *SyncComponentVersionsFromCmOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.SyncComponentVersionsFromCmResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/update_orchestrator_state_responses.go b/cdp-sdk-go/gen/datalake/client/operations/update_orchestrator_state_responses.go index 46c593b1..b9aafa3e 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/update_orchestrator_state_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/update_orchestrator_state_responses.go @@ -53,7 +53,7 @@ UpdateOrchestratorStateOK describes a response with status code 200, with defaul Expected response to a valid request. */ type UpdateOrchestratorStateOK struct { - Payload models.UpdateOrchestratorStateResponse + Payload *models.UpdateOrchestratorStateResponse } // IsSuccess returns true when this update orchestrator state o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateOrchestratorStateOK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/updateOrchestratorState][%d] updateOrchestratorStateOK %s", 200, payload) } -func (o *UpdateOrchestratorStateOK) GetPayload() models.UpdateOrchestratorStateResponse { +func (o *UpdateOrchestratorStateOK) GetPayload() *models.UpdateOrchestratorStateResponse { return o.Payload } func (o *UpdateOrchestratorStateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateOrchestratorStateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v1_responses.go b/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v1_responses.go index 41a290e1..dfbe2a85 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v1_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v1_responses.go @@ -53,7 +53,7 @@ UpdateToAwsImdsV1OK describes a response with status code 200, with default head Expected response to a valid request. */ type UpdateToAwsImdsV1OK struct { - Payload models.UpdateToAwsImdsV1Response + Payload *models.UpdateToAwsImdsV1Response } // IsSuccess returns true when this update to aws imds v1 o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateToAwsImdsV1OK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/updateToAwsImdsV1][%d] updateToAwsImdsV1OK %s", 200, payload) } -func (o *UpdateToAwsImdsV1OK) GetPayload() models.UpdateToAwsImdsV1Response { +func (o *UpdateToAwsImdsV1OK) GetPayload() *models.UpdateToAwsImdsV1Response { return o.Payload } func (o *UpdateToAwsImdsV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateToAwsImdsV1Response) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v2_responses.go b/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v2_responses.go index ef5515f3..9840b6f6 100644 --- a/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v2_responses.go +++ b/cdp-sdk-go/gen/datalake/client/operations/update_to_aws_imds_v2_responses.go @@ -53,7 +53,7 @@ UpdateToAwsImdsV2OK describes a response with status code 200, with default head Expected response to a valid request. */ type UpdateToAwsImdsV2OK struct { - Payload models.UpdateToAwsImdsV2Response + Payload *models.UpdateToAwsImdsV2Response } // IsSuccess returns true when this update to aws imds v2 o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateToAwsImdsV2OK) String() string { return fmt.Sprintf("[POST /api/v1/datalake/updateToAwsImdsV2][%d] updateToAwsImdsV2OK %s", 200, payload) } -func (o *UpdateToAwsImdsV2OK) GetPayload() models.UpdateToAwsImdsV2Response { +func (o *UpdateToAwsImdsV2OK) GetPayload() *models.UpdateToAwsImdsV2Response { return o.Payload } func (o *UpdateToAwsImdsV2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateToAwsImdsV2Response) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/datalake/models/collect_cm_diagnostics_response.go b/cdp-sdk-go/gen/datalake/models/collect_cm_diagnostics_response.go index b492a2e9..a54727c0 100644 --- a/cdp-sdk-go/gen/datalake/models/collect_cm_diagnostics_response.go +++ b/cdp-sdk-go/gen/datalake/models/collect_cm_diagnostics_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // CollectCmDiagnosticsResponse Response object for collecting DataLake diagnostics. // // swagger:model CollectCmDiagnosticsResponse -type CollectCmDiagnosticsResponse interface{} +type CollectCmDiagnosticsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this collect cm diagnostics response +func (m *CollectCmDiagnosticsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this collect cm diagnostics response based on context it is used +func (m *CollectCmDiagnosticsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *CollectCmDiagnosticsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CollectCmDiagnosticsResponse) UnmarshalBinary(b []byte) error { + var res CollectCmDiagnosticsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_response.go b/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_response.go index e37c912f..f6332daf 100644 --- a/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_response.go +++ b/cdp-sdk-go/gen/datalake/models/collect_datalake_diagnostics_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // CollectDatalakeDiagnosticsResponse Response object for collecting DataLake diagnostics. // // swagger:model CollectDatalakeDiagnosticsResponse -type CollectDatalakeDiagnosticsResponse interface{} +type CollectDatalakeDiagnosticsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this collect datalake diagnostics response +func (m *CollectDatalakeDiagnosticsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this collect datalake diagnostics response based on context it is used +func (m *CollectDatalakeDiagnosticsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *CollectDatalakeDiagnosticsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CollectDatalakeDiagnosticsResponse) UnmarshalBinary(b []byte) error { + var res CollectDatalakeDiagnosticsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 126764dd..a3f12d61 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 @@ -61,6 +61,9 @@ type CreateAWSDatalakeRequest struct { // The scale of the datalake. Allowed values are "LIGHT_DUTY" or "MEDIUM_DUTY_HA". Defaults to "LIGHT_DUTY" if not set. Scale DatalakeScaleType `json:"scale,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // Tags to be added to Data Lake related resources. Tags []*DatalakeResourceTagRequest `json:"tags"` } @@ -97,6 +100,10 @@ func (m *CreateAWSDatalakeRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -241,6 +248,25 @@ func (m *CreateAWSDatalakeRequest) validateScale(formats strfmt.Registry) error return nil } +func (m *CreateAWSDatalakeRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSDatalakeRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -291,6 +317,10 @@ func (m *CreateAWSDatalakeRequest) ContextValidate(ctx context.Context, formats res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -407,6 +437,27 @@ func (m *CreateAWSDatalakeRequest) contextValidateScale(ctx context.Context, for return nil } +func (m *CreateAWSDatalakeRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSDatalakeRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); 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 2460cd76..048338a6 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 @@ -22,6 +22,9 @@ type CreateAWSDatalakeResponse struct { // The datalake. // Required: true Datalake *Datalake `json:"datalake"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create a w s datalake response diff --git a/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_request.go b/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_request.go index 27d6e93d..1df4b951 100644 --- a/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_request.go +++ b/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_request.go @@ -58,6 +58,9 @@ type CreateAWSGovCloudDatalakeRequest struct { // The scale of the datalake. Allowed values are "LIGHT_DUTY" or "MEDIUM_DUTY_HA". Defaults to "LIGHT_DUTY" if not set. Scale DatalakeScaleType `json:"scale,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // Tags to be added to Data Lake related resources. Tags []*DatalakeResourceTagRequest `json:"tags"` } @@ -94,6 +97,10 @@ func (m *CreateAWSGovCloudDatalakeRequest) Validate(formats strfmt.Registry) err res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -238,6 +245,25 @@ func (m *CreateAWSGovCloudDatalakeRequest) validateScale(formats strfmt.Registry return nil } +func (m *CreateAWSGovCloudDatalakeRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSGovCloudDatalakeRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -288,6 +314,10 @@ func (m *CreateAWSGovCloudDatalakeRequest) ContextValidate(ctx context.Context, res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -404,6 +434,27 @@ func (m *CreateAWSGovCloudDatalakeRequest) contextValidateScale(ctx context.Cont return nil } +func (m *CreateAWSGovCloudDatalakeRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSGovCloudDatalakeRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { diff --git a/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_response.go b/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_response.go index 6b8a0fc5..4b3b9db8 100644 --- a/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/create_a_w_s_gov_cloud_datalake_response.go @@ -22,6 +22,9 @@ type CreateAWSGovCloudDatalakeResponse struct { // The Data Lake. // Required: true Datalake *Datalake `json:"datalake"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create a w s gov cloud datalake response 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 3e6dd2bc..a183a9b4 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 @@ -69,6 +69,9 @@ type CreateAzureDatalakeRequest struct { // The scale of the datalake. Allowed values are "LIGHT_DUTY" or "MEDIUM_DUTY_HA". Defaults to "LIGHT_DUTY" if not set. Scale DatalakeScaleType `json:"scale,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // Tags to be added to Data Lake related resources. Tags []*DatalakeResourceTagRequest `json:"tags"` } @@ -113,6 +116,10 @@ func (m *CreateAzureDatalakeRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -316,6 +323,25 @@ func (m *CreateAzureDatalakeRequest) validateScale(formats strfmt.Registry) erro return nil } +func (m *CreateAzureDatalakeRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAzureDatalakeRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -370,6 +396,10 @@ func (m *CreateAzureDatalakeRequest) ContextValidate(ctx context.Context, format res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -504,6 +534,27 @@ func (m *CreateAzureDatalakeRequest) contextValidateScale(ctx context.Context, f return nil } +func (m *CreateAzureDatalakeRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAzureDatalakeRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); 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 bd4db425..54b8045f 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 @@ -22,6 +22,9 @@ type CreateAzureDatalakeResponse struct { // The datalake. // Required: true Datalake *Datalake `json:"datalake"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create azure datalake response 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 eefbc61b..54ffc166 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 @@ -46,6 +46,9 @@ type CreateGCPDatalakeRequest struct { // Configure the major version of Java on the cluster. JavaVersion int32 `json:"javaVersion,omitempty"` + // Creates CDP datalake distributed across multiple availability zones in GCP region. + MultiAz *bool `json:"multiAz,omitempty"` + // Additional recipes that will be attached on the datalake instances (by instance groups, most common ones are like 'master' or 'idbroker'). Recipes []*InstanceGroupRecipeRequest `json:"recipes"` @@ -55,6 +58,9 @@ type CreateGCPDatalakeRequest struct { // The scale of the datalake. Allowed values are "LIGHT_DUTY" or "MEDIUM_DUTY_HA". Defaults to "LIGHT_DUTY" if not set. Scale DatalakeScaleType `json:"scale,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // 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. Tags []*DatalakeResourceGCPTagRequest `json:"tags"` } @@ -91,6 +97,10 @@ func (m *CreateGCPDatalakeRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -235,6 +245,25 @@ func (m *CreateGCPDatalakeRequest) validateScale(formats strfmt.Registry) error return nil } +func (m *CreateGCPDatalakeRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateGCPDatalakeRequest) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -285,6 +314,10 @@ func (m *CreateGCPDatalakeRequest) ContextValidate(ctx context.Context, formats res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -401,6 +434,27 @@ func (m *CreateGCPDatalakeRequest) contextValidateScale(ctx context.Context, for return nil } +func (m *CreateGCPDatalakeRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateGCPDatalakeRequest) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); 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 51685eb9..36e7dc28 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 @@ -22,6 +22,9 @@ type CreateGCPDatalakeResponse struct { // The datalake. // Required: true Datalake *Datalake `json:"datalake"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this create g c p datalake response diff --git a/cdp-sdk-go/gen/datalake/models/datalake.go b/cdp-sdk-go/gen/datalake/models/datalake.go index 1ee7dbf3..7f7cca65 100644 --- a/cdp-sdk-go/gen/datalake/models/datalake.go +++ b/cdp-sdk-go/gen/datalake/models/datalake.go @@ -46,6 +46,9 @@ type Datalake struct { // Flag which marks that the datalake is deployed in a multi-availability zone way or not. MultiAz bool `json:"multiAz,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityResponse `json:"security,omitempty"` + // The status of the datalake. Status string `json:"status,omitempty"` @@ -76,6 +79,10 @@ func (m *Datalake) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -158,6 +165,25 @@ func (m *Datalake) validateDatalakeName(formats strfmt.Registry) error { return nil } +func (m *Datalake) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *Datalake) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -188,6 +214,10 @@ func (m *Datalake) validateTags(formats strfmt.Registry) error { func (m *Datalake) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -198,6 +228,27 @@ func (m *Datalake) ContextValidate(ctx context.Context, formats strfmt.Registry) return nil } +func (m *Datalake) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *Datalake) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { diff --git a/cdp-sdk-go/gen/datalake/models/delete_datalake_response.go b/cdp-sdk-go/gen/datalake/models/delete_datalake_response.go index b2f23094..f615cf3d 100644 --- a/cdp-sdk-go/gen/datalake/models/delete_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/delete_datalake_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // DeleteDatalakeResponse Response object for delete datalake request. // // swagger:model DeleteDatalakeResponse -type DeleteDatalakeResponse interface{} +type DeleteDatalakeResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this delete datalake response +func (m *DeleteDatalakeResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this delete datalake response based on context it is used +func (m *DeleteDatalakeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *DeleteDatalakeResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *DeleteDatalakeResponse) UnmarshalBinary(b []byte) error { + var res DeleteDatalakeResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/get_operation_request.go b/cdp-sdk-go/gen/datalake/models/get_operation_request.go new file mode 100644 index 00000000..d8aa60b4 --- /dev/null +++ b/cdp-sdk-go/gen/datalake/models/get_operation_request.go @@ -0,0 +1,74 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// GetOperationRequest Request object for tracking the latest (current/last) operation on the datalake resource. +// +// swagger:model GetOperationRequest +type GetOperationRequest struct { + + // CRN of the datalake resource. + // Required: true + Crn *string `json:"crn"` + + // Filter by operation id. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this get operation request +func (m *GetOperationRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCrn(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *GetOperationRequest) validateCrn(formats strfmt.Registry) error { + + if err := validate.Required("crn", "body", m.Crn); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this get operation request based on context it is used +func (m *GetOperationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *GetOperationRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *GetOperationRequest) UnmarshalBinary(b []byte) error { + var res GetOperationRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/get_operation_response.go b/cdp-sdk-go/gen/datalake/models/get_operation_response.go new file mode 100644 index 00000000..797d0068 --- /dev/null +++ b/cdp-sdk-go/gen/datalake/models/get_operation_response.go @@ -0,0 +1,160 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// GetOperationResponse Response object for tracking the latest (current/last) operation on the datalake resource. +// +// swagger:model GetOperationResponse +type GetOperationResponse struct { + + // End time of the operation. + // Format: date-time + Ended strfmt.DateTime `json:"ended,omitempty"` + + // Identifier of the operation. + OperationID string `json:"operationId,omitempty"` + + // Name of the operation. + OperationName string `json:"operationName,omitempty"` + + // Status of the operation. + // Enum: ["UNKNOWN","RUNNING","FAILED","FINISHED","CANCELLED"] + OperationStatus string `json:"operationStatus,omitempty"` + + // Start time of the operation. + // Format: date-time + Started strfmt.DateTime `json:"started,omitempty"` +} + +// Validate validates this get operation response +func (m *GetOperationResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateEnded(formats); err != nil { + res = append(res, err) + } + + if err := m.validateOperationStatus(formats); err != nil { + res = append(res, err) + } + + if err := m.validateStarted(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *GetOperationResponse) validateEnded(formats strfmt.Registry) error { + if swag.IsZero(m.Ended) { // not required + return nil + } + + if err := validate.FormatOf("ended", "body", "date-time", m.Ended.String(), formats); err != nil { + return err + } + + return nil +} + +var getOperationResponseTypeOperationStatusPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["UNKNOWN","RUNNING","FAILED","FINISHED","CANCELLED"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + getOperationResponseTypeOperationStatusPropEnum = append(getOperationResponseTypeOperationStatusPropEnum, v) + } +} + +const ( + + // GetOperationResponseOperationStatusUNKNOWN captures enum value "UNKNOWN" + GetOperationResponseOperationStatusUNKNOWN string = "UNKNOWN" + + // GetOperationResponseOperationStatusRUNNING captures enum value "RUNNING" + GetOperationResponseOperationStatusRUNNING string = "RUNNING" + + // GetOperationResponseOperationStatusFAILED captures enum value "FAILED" + GetOperationResponseOperationStatusFAILED string = "FAILED" + + // GetOperationResponseOperationStatusFINISHED captures enum value "FINISHED" + GetOperationResponseOperationStatusFINISHED string = "FINISHED" + + // GetOperationResponseOperationStatusCANCELLED captures enum value "CANCELLED" + GetOperationResponseOperationStatusCANCELLED string = "CANCELLED" +) + +// prop value enum +func (m *GetOperationResponse) validateOperationStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, getOperationResponseTypeOperationStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *GetOperationResponse) validateOperationStatus(formats strfmt.Registry) error { + if swag.IsZero(m.OperationStatus) { // not required + return nil + } + + // value enum + if err := m.validateOperationStatusEnum("operationStatus", "body", m.OperationStatus); err != nil { + return err + } + + return nil +} + +func (m *GetOperationResponse) validateStarted(formats strfmt.Registry) error { + if swag.IsZero(m.Started) { // not required + return nil + } + + if err := validate.FormatOf("started", "body", "date-time", m.Started.String(), formats); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this get operation response based on context it is used +func (m *GetOperationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *GetOperationResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *GetOperationResponse) UnmarshalBinary(b []byte) error { + var res GetOperationResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 5744ff60..f89d3e56 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 @@ -22,6 +22,9 @@ type PrepareDatalakeUpgradeResponse struct { // Information about the current image Current *ImageInfo `json:"current,omitempty"` + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The reason why upgrade is not possible Reason string `json:"reason,omitempty"` diff --git a/cdp-sdk-go/gen/datalake/models/recover_datalake_response.go b/cdp-sdk-go/gen/datalake/models/recover_datalake_response.go index 0f53a269..e978dc99 100644 --- a/cdp-sdk-go/gen/datalake/models/recover_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/recover_datalake_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RecoverDatalakeResponse Datalake recover response. // // swagger:model RecoverDatalakeResponse -type RecoverDatalakeResponse interface{} +type RecoverDatalakeResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this recover datalake response +func (m *RecoverDatalakeResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this recover datalake response based on context it is used +func (m *RecoverDatalakeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RecoverDatalakeResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RecoverDatalakeResponse) UnmarshalBinary(b []byte) error { + var res RecoverDatalakeResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/renew_certificate_response.go b/cdp-sdk-go/gen/datalake/models/renew_certificate_response.go index 77de435d..c955d53d 100644 --- a/cdp-sdk-go/gen/datalake/models/renew_certificate_response.go +++ b/cdp-sdk-go/gen/datalake/models/renew_certificate_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RenewCertificateResponse Response object for renew certificate request, deprecated. // // swagger:model RenewCertificateResponse -type RenewCertificateResponse interface{} +type RenewCertificateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this renew certificate response +func (m *RenewCertificateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this renew certificate response based on context it is used +func (m *RenewCertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RenewCertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RenewCertificateResponse) UnmarshalBinary(b []byte) error { + var res RenewCertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/renew_public_certificate_response.go b/cdp-sdk-go/gen/datalake/models/renew_public_certificate_response.go index 651f2831..57f7a0d2 100644 --- a/cdp-sdk-go/gen/datalake/models/renew_public_certificate_response.go +++ b/cdp-sdk-go/gen/datalake/models/renew_public_certificate_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RenewPublicCertificateResponse Response object for renew public certificate request. // // swagger:model RenewPublicCertificateResponse -type RenewPublicCertificateResponse interface{} +type RenewPublicCertificateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this renew public certificate response +func (m *RenewPublicCertificateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this renew public certificate response based on context it is used +func (m *RenewPublicCertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RenewPublicCertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RenewPublicCertificateResponse) UnmarshalBinary(b []byte) error { + var res RenewPublicCertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/repair_datalake_response.go b/cdp-sdk-go/gen/datalake/models/repair_datalake_response.go index 7e70a205..55ade13e 100644 --- a/cdp-sdk-go/gen/datalake/models/repair_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/repair_datalake_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RepairDatalakeResponse Response object for repair datalake request. // // swagger:model RepairDatalakeResponse -type RepairDatalakeResponse interface{} +type RepairDatalakeResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this repair datalake response +func (m *RepairDatalakeResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this repair datalake response based on context it is used +func (m *RepairDatalakeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RepairDatalakeResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RepairDatalakeResponse) UnmarshalBinary(b []byte) error { + var res RepairDatalakeResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/resize_datalake_response.go b/cdp-sdk-go/gen/datalake/models/resize_datalake_response.go index b2479e4c..b32e2398 100644 --- a/cdp-sdk-go/gen/datalake/models/resize_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/resize_datalake_response.go @@ -31,6 +31,9 @@ type ResizeDatalakeResponse struct { // The CRN of the environment the datalake is attached to. This will remain the same for the datalake created by the resize process. EnvironmentCrn string `json:"environmentCrn,omitempty"` + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The runtime of the datalake. This will remain the same for the datalake created by the resize process. Runtime string `json:"runtime,omitempty"` diff --git a/cdp-sdk-go/gen/datalake/models/restart_datalake_instances_response.go b/cdp-sdk-go/gen/datalake/models/restart_datalake_instances_response.go index 64d2f0e9..82fbae76 100644 --- a/cdp-sdk-go/gen/datalake/models/restart_datalake_instances_response.go +++ b/cdp-sdk-go/gen/datalake/models/restart_datalake_instances_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RestartDatalakeInstancesResponse Response object for restart datalake instances request. // // swagger:model RestartDatalakeInstancesResponse -type RestartDatalakeInstancesResponse interface{} +type RestartDatalakeInstancesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this restart datalake instances response +func (m *RestartDatalakeInstancesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this restart datalake instances response based on context it is used +func (m *RestartDatalakeInstancesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RestartDatalakeInstancesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RestartDatalakeInstancesResponse) UnmarshalBinary(b []byte) error { + var res RestartDatalakeInstancesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/retry_datalake_response.go b/cdp-sdk-go/gen/datalake/models/retry_datalake_response.go index bc96a50f..a440ec1c 100644 --- a/cdp-sdk-go/gen/datalake/models/retry_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/retry_datalake_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RetryDatalakeResponse Response object for retry datalake request. // // swagger:model RetryDatalakeResponse -type RetryDatalakeResponse interface{} +type RetryDatalakeResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this retry datalake response +func (m *RetryDatalakeResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this retry datalake response based on context it is used +func (m *RetryDatalakeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RetryDatalakeResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RetryDatalakeResponse) UnmarshalBinary(b []byte) error { + var res RetryDatalakeResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/rotate_auto_tls_certificates_response.go b/cdp-sdk-go/gen/datalake/models/rotate_auto_tls_certificates_response.go index 74267cd4..35fd41f3 100644 --- a/cdp-sdk-go/gen/datalake/models/rotate_auto_tls_certificates_response.go +++ b/cdp-sdk-go/gen/datalake/models/rotate_auto_tls_certificates_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotateAutoTLSCertificatesResponse Response object to rotate autotls certificates on datalake's hosts, deprecated. // // swagger:model RotateAutoTlsCertificatesResponse -type RotateAutoTLSCertificatesResponse interface{} +type RotateAutoTLSCertificatesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate auto Tls certificates response +func (m *RotateAutoTLSCertificatesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate auto Tls certificates response based on context it is used +func (m *RotateAutoTLSCertificatesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateAutoTLSCertificatesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateAutoTLSCertificatesResponse) UnmarshalBinary(b []byte) error { + var res RotateAutoTLSCertificatesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/rotate_db_certificate_response.go b/cdp-sdk-go/gen/datalake/models/rotate_db_certificate_response.go index cd233118..7cb1cd5c 100644 --- a/cdp-sdk-go/gen/datalake/models/rotate_db_certificate_response.go +++ b/cdp-sdk-go/gen/datalake/models/rotate_db_certificate_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotateDbCertificateResponse Response object to rotate ssl certificate a datalake. // // swagger:model RotateDbCertificateResponse -type RotateDbCertificateResponse interface{} +type RotateDbCertificateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate db certificate response +func (m *RotateDbCertificateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate db certificate response based on context it is used +func (m *RotateDbCertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateDbCertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateDbCertificateResponse) UnmarshalBinary(b []byte) error { + var res RotateDbCertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/rotate_private_certificates_response.go b/cdp-sdk-go/gen/datalake/models/rotate_private_certificates_response.go index 832ecd4c..3ef15bed 100644 --- a/cdp-sdk-go/gen/datalake/models/rotate_private_certificates_response.go +++ b/cdp-sdk-go/gen/datalake/models/rotate_private_certificates_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotatePrivateCertificatesResponse Response object to rotate private certificates on datalake's hosts. // // swagger:model RotatePrivateCertificatesResponse -type RotatePrivateCertificatesResponse interface{} +type RotatePrivateCertificatesResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate private certificates response +func (m *RotatePrivateCertificatesResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate private certificates response based on context it is used +func (m *RotatePrivateCertificatesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotatePrivateCertificatesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotatePrivateCertificatesResponse) UnmarshalBinary(b []byte) error { + var res RotatePrivateCertificatesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/rotate_salt_password_request.go b/cdp-sdk-go/gen/datalake/models/rotate_salt_password_request.go index ea433da9..efe00a34 100644 --- a/cdp-sdk-go/gen/datalake/models/rotate_salt_password_request.go +++ b/cdp-sdk-go/gen/datalake/models/rotate_salt_password_request.go @@ -14,7 +14,7 @@ import ( "github.com/go-openapi/validate" ) -// RotateSaltPasswordRequest Request object for rotating SaltStack user password on DataLake instances. +// RotateSaltPasswordRequest Request object for rotating SaltStack user password on DataLake instances (Deprecated). // // swagger:model RotateSaltPasswordRequest type RotateSaltPasswordRequest struct { diff --git a/cdp-sdk-go/gen/datalake/models/rotate_salt_password_response.go b/cdp-sdk-go/gen/datalake/models/rotate_salt_password_response.go index 165bbcbd..8c82027d 100644 --- a/cdp-sdk-go/gen/datalake/models/rotate_salt_password_response.go +++ b/cdp-sdk-go/gen/datalake/models/rotate_salt_password_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command -// RotateSaltPasswordResponse Response object for rotating SaltStack user password on DataLake instances. +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// RotateSaltPasswordResponse Response object for rotating SaltStack user password on DataLake instances (Deprecated). // // swagger:model RotateSaltPasswordResponse -type RotateSaltPasswordResponse interface{} +type RotateSaltPasswordResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate salt password response +func (m *RotateSaltPasswordResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate salt password response based on context it is used +func (m *RotateSaltPasswordResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateSaltPasswordResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateSaltPasswordResponse) UnmarshalBinary(b []byte) error { + var res RotateSaltPasswordResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/rotate_secrets_response.go b/cdp-sdk-go/gen/datalake/models/rotate_secrets_response.go index d3560672..a72d3b59 100644 --- a/cdp-sdk-go/gen/datalake/models/rotate_secrets_response.go +++ b/cdp-sdk-go/gen/datalake/models/rotate_secrets_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotateSecretsResponse Response object for rotating secrets. // // swagger:model RotateSecretsResponse -type RotateSecretsResponse interface{} +type RotateSecretsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate secrets response +func (m *RotateSecretsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate secrets response based on context it is used +func (m *RotateSecretsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateSecretsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateSecretsResponse) UnmarshalBinary(b []byte) error { + var res RotateSecretsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/scale_horizontally_response.go b/cdp-sdk-go/gen/datalake/models/scale_horizontally_response.go index 74035d25..f6bbefed 100644 --- a/cdp-sdk-go/gen/datalake/models/scale_horizontally_response.go +++ b/cdp-sdk-go/gen/datalake/models/scale_horizontally_response.go @@ -19,6 +19,9 @@ type ScaleHorizontallyResponse struct { // The name of the datalake. DatalakeName string `json:"datalakeName,omitempty"` + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` } // Validate validates this scale horizontally response diff --git a/cdp-sdk-go/gen/datalake/models/security_request.go b/cdp-sdk-go/gen/datalake/models/security_request.go new file mode 100644 index 00000000..6b5c561a --- /dev/null +++ b/cdp-sdk-go/gen/datalake/models/security_request.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// SecurityRequest Security related configuration for Data Hub cluster. +// +// swagger:model SecurityRequest +type SecurityRequest struct { + + // Override default SELinux configuration which is PERMISSIVE by default + // Enum: ["PERMISSIVE","ENFORCING"] + SeLinux string `json:"seLinux,omitempty"` +} + +// Validate validates this security request +func (m *SecurityRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var securityRequestTypeSeLinuxPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["PERMISSIVE","ENFORCING"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + securityRequestTypeSeLinuxPropEnum = append(securityRequestTypeSeLinuxPropEnum, v) + } +} + +const ( + + // SecurityRequestSeLinuxPERMISSIVE captures enum value "PERMISSIVE" + SecurityRequestSeLinuxPERMISSIVE string = "PERMISSIVE" + + // SecurityRequestSeLinuxENFORCING captures enum value "ENFORCING" + SecurityRequestSeLinuxENFORCING string = "ENFORCING" +) + +// prop value enum +func (m *SecurityRequest) validateSeLinuxEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, securityRequestTypeSeLinuxPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *SecurityRequest) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + // value enum + if err := m.validateSeLinuxEnum("seLinux", "body", m.SeLinux); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this security request based on context it is used +func (m *SecurityRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityRequest) UnmarshalBinary(b []byte) error { + var res SecurityRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/security_response.go b/cdp-sdk-go/gen/datalake/models/security_response.go new file mode 100644 index 00000000..b023cf70 --- /dev/null +++ b/cdp-sdk-go/gen/datalake/models/security_response.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// SecurityResponse Security related configuration for Data Hub cluster. +// +// swagger:model SecurityResponse +type SecurityResponse struct { + + // Override default SELinux configuration which is PERMISSIVE by default + // Enum: ["PERMISSIVE","ENFORCING"] + SeLinux string `json:"seLinux,omitempty"` +} + +// Validate validates this security response +func (m *SecurityResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var securityResponseTypeSeLinuxPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["PERMISSIVE","ENFORCING"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + securityResponseTypeSeLinuxPropEnum = append(securityResponseTypeSeLinuxPropEnum, v) + } +} + +const ( + + // SecurityResponseSeLinuxPERMISSIVE captures enum value "PERMISSIVE" + SecurityResponseSeLinuxPERMISSIVE string = "PERMISSIVE" + + // SecurityResponseSeLinuxENFORCING captures enum value "ENFORCING" + SecurityResponseSeLinuxENFORCING string = "ENFORCING" +) + +// prop value enum +func (m *SecurityResponse) validateSeLinuxEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, securityResponseTypeSeLinuxPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *SecurityResponse) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + // value enum + if err := m.validateSeLinuxEnum("seLinux", "body", m.SeLinux); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this security response based on context it is used +func (m *SecurityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityResponse) UnmarshalBinary(b []byte) error { + var res SecurityResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/set_default_java_version_request.go b/cdp-sdk-go/gen/datalake/models/set_default_java_version_request.go index aa8dd9b3..e1ec35e2 100644 --- a/cdp-sdk-go/gen/datalake/models/set_default_java_version_request.go +++ b/cdp-sdk-go/gen/datalake/models/set_default_java_version_request.go @@ -26,6 +26,9 @@ type SetDefaultJavaVersionRequest struct { // The default Java version to be set on the Data Lake cluster. // Required: true JavaVersion *string `json:"javaVersion"` + + // If set to true Cloudera Manager will use Rolling Restart to restart services running on the cluster. This operation can take a long time. Default value is false. + RollingRestart *bool `json:"rollingRestart,omitempty"` } // Validate validates this set default java version request diff --git a/cdp-sdk-go/gen/datalake/models/start_database_upgrade_response.go b/cdp-sdk-go/gen/datalake/models/start_database_upgrade_response.go index 8b2858c6..0a22eb4a 100644 --- a/cdp-sdk-go/gen/datalake/models/start_database_upgrade_response.go +++ b/cdp-sdk-go/gen/datalake/models/start_database_upgrade_response.go @@ -17,6 +17,9 @@ import ( // swagger:model StartDatabaseUpgradeResponse type StartDatabaseUpgradeResponse struct { + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The database engine major version to upgrade to. TargetVersion string `json:"targetVersion,omitempty"` } diff --git a/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_response.go b/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_response.go index 07717528..6b43af57 100644 --- a/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_response.go +++ b/cdp-sdk-go/gen/datalake/models/start_datalake_vertical_scaling_response.go @@ -17,6 +17,9 @@ import ( // swagger:model StartDatalakeVerticalScalingResponse type StartDatalakeVerticalScalingResponse struct { + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The result of the operation. Result string `json:"result,omitempty"` } diff --git a/cdp-sdk-go/gen/datalake/models/sync_component_versions_from_cm_response.go b/cdp-sdk-go/gen/datalake/models/sync_component_versions_from_cm_response.go index 45c6bca1..39917c6c 100644 --- a/cdp-sdk-go/gen/datalake/models/sync_component_versions_from_cm_response.go +++ b/cdp-sdk-go/gen/datalake/models/sync_component_versions_from_cm_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // SyncComponentVersionsFromCmResponse Datalake sync CM component versions response. // // swagger:model SyncComponentVersionsFromCmResponse -type SyncComponentVersionsFromCmResponse interface{} +type SyncComponentVersionsFromCmResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this sync component versions from cm response +func (m *SyncComponentVersionsFromCmResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this sync component versions from cm response based on context it is used +func (m *SyncComponentVersionsFromCmResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SyncComponentVersionsFromCmResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SyncComponentVersionsFromCmResponse) UnmarshalBinary(b []byte) error { + var res SyncComponentVersionsFromCmResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/update_orchestrator_state_response.go b/cdp-sdk-go/gen/datalake/models/update_orchestrator_state_response.go index 5025895e..f7271d6c 100644 --- a/cdp-sdk-go/gen/datalake/models/update_orchestrator_state_response.go +++ b/cdp-sdk-go/gen/datalake/models/update_orchestrator_state_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateOrchestratorStateResponse Response object for running orchestrator engine state update on the Data Lake cluster. // // swagger:model UpdateOrchestratorStateResponse -type UpdateOrchestratorStateResponse interface{} +type UpdateOrchestratorStateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update orchestrator state response +func (m *UpdateOrchestratorStateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update orchestrator state response based on context it is used +func (m *UpdateOrchestratorStateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateOrchestratorStateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateOrchestratorStateResponse) UnmarshalBinary(b []byte) error { + var res UpdateOrchestratorStateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v1_response.go b/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v1_response.go index 26a46b6b..dbf45d6e 100644 --- a/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v1_response.go +++ b/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v1_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateToAwsImdsV1Response Response object for updating Data Lake to AWS IMDSv1. // // swagger:model UpdateToAwsImdsV1Response -type UpdateToAwsImdsV1Response interface{} +type UpdateToAwsImdsV1Response struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update to aws imds v1 response +func (m *UpdateToAwsImdsV1Response) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update to aws imds v1 response based on context it is used +func (m *UpdateToAwsImdsV1Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateToAwsImdsV1Response) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateToAwsImdsV1Response) UnmarshalBinary(b []byte) error { + var res UpdateToAwsImdsV1Response + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v2_response.go b/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v2_response.go index da047df9..65489ae4 100644 --- a/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v2_response.go +++ b/cdp-sdk-go/gen/datalake/models/update_to_aws_imds_v2_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateToAwsImdsV2Response Response object for updating Data Lake to AWS IMDSv2. // // swagger:model UpdateToAwsImdsV2Response -type UpdateToAwsImdsV2Response interface{} +type UpdateToAwsImdsV2Response struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update to aws imds v2 response +func (m *UpdateToAwsImdsV2Response) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update to aws imds v2 response based on context it is used +func (m *UpdateToAwsImdsV2Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateToAwsImdsV2Response) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateToAwsImdsV2Response) UnmarshalBinary(b []byte) error { + var res UpdateToAwsImdsV2Response + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 71099174..96a7337e 100644 --- a/cdp-sdk-go/gen/datalake/models/upgrade_datalake_response.go +++ b/cdp-sdk-go/gen/datalake/models/upgrade_datalake_response.go @@ -22,6 +22,9 @@ type UpgradeDatalakeResponse struct { // Information about the current image Current *ImageInfo `json:"current,omitempty"` + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The reason why upgrade is not possible Reason string `json:"reason,omitempty"` diff --git a/cdp-sdk-go/gen/dw/client/operations/operations_client.go b/cdp-sdk-go/gen/dw/client/operations/operations_client.go index f29e73e4..5f9a2d7c 100644 --- a/cdp-sdk-go/gen/dw/client/operations/operations_client.go +++ b/cdp-sdk-go/gen/dw/client/operations/operations_client.go @@ -190,6 +190,8 @@ type ClientService interface { RenewCertificates(params *RenewCertificatesParams, opts ...ClientOption) (*RenewCertificatesOK, error) + ResetServerSettings(params *ResetServerSettingsParams, opts ...ClientOption) (*ResetServerSettingsOK, error) + RestartDbc(params *RestartDbcParams, opts ...ClientOption) (*RestartDbcOK, error) RestartVw(params *RestartVwParams, opts ...ClientOption) (*RestartVwOK, error) @@ -2893,6 +2895,45 @@ func (a *Client) RenewCertificates(params *RenewCertificatesParams, opts ...Clie return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +ResetServerSettings restores the d w x server settings to the default values + +Restores the DWX server settings to the default values. Some settings need further actions to be taken (e.g. recreating a Virtual Warehouse), this is indicated in the server settings list returned by the describeServerSetting functionality. +*/ +func (a *Client) ResetServerSettings(params *ResetServerSettingsParams, opts ...ClientOption) (*ResetServerSettingsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewResetServerSettingsParams() + } + op := &runtime.ClientOperation{ + ID: "resetServerSettings", + Method: "POST", + PathPattern: "/api/v1/dw/resetServerSettings", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &ResetServerSettingsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ResetServerSettingsOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*ResetServerSettingsDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* RestartDbc restarts a database catalog diff --git a/cdp-sdk-go/gen/dw/client/operations/reset_server_settings_parameters.go b/cdp-sdk-go/gen/dw/client/operations/reset_server_settings_parameters.go new file mode 100644 index 00000000..fbe574e8 --- /dev/null +++ b/cdp-sdk-go/gen/dw/client/operations/reset_server_settings_parameters.go @@ -0,0 +1,150 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/dw/models" +) + +// NewResetServerSettingsParams creates a new ResetServerSettingsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewResetServerSettingsParams() *ResetServerSettingsParams { + return &ResetServerSettingsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewResetServerSettingsParamsWithTimeout creates a new ResetServerSettingsParams object +// with the ability to set a timeout on a request. +func NewResetServerSettingsParamsWithTimeout(timeout time.Duration) *ResetServerSettingsParams { + return &ResetServerSettingsParams{ + timeout: timeout, + } +} + +// NewResetServerSettingsParamsWithContext creates a new ResetServerSettingsParams object +// with the ability to set a context for a request. +func NewResetServerSettingsParamsWithContext(ctx context.Context) *ResetServerSettingsParams { + return &ResetServerSettingsParams{ + Context: ctx, + } +} + +// NewResetServerSettingsParamsWithHTTPClient creates a new ResetServerSettingsParams object +// with the ability to set a custom HTTPClient for a request. +func NewResetServerSettingsParamsWithHTTPClient(client *http.Client) *ResetServerSettingsParams { + return &ResetServerSettingsParams{ + HTTPClient: client, + } +} + +/* +ResetServerSettingsParams contains all the parameters to send to the API endpoint + + for the reset server settings operation. + + Typically these are written to a http.Request. +*/ +type ResetServerSettingsParams struct { + + // Input. + Input models.ResetServerSettingsRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the reset server settings params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ResetServerSettingsParams) WithDefaults() *ResetServerSettingsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the reset server settings params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ResetServerSettingsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the reset server settings params +func (o *ResetServerSettingsParams) WithTimeout(timeout time.Duration) *ResetServerSettingsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the reset server settings params +func (o *ResetServerSettingsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the reset server settings params +func (o *ResetServerSettingsParams) WithContext(ctx context.Context) *ResetServerSettingsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the reset server settings params +func (o *ResetServerSettingsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the reset server settings params +func (o *ResetServerSettingsParams) WithHTTPClient(client *http.Client) *ResetServerSettingsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the reset server settings params +func (o *ResetServerSettingsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithInput adds the input to the reset server settings params +func (o *ResetServerSettingsParams) WithInput(input models.ResetServerSettingsRequest) *ResetServerSettingsParams { + o.SetInput(input) + return o +} + +// SetInput adds the input to the reset server settings params +func (o *ResetServerSettingsParams) SetInput(input models.ResetServerSettingsRequest) { + o.Input = input +} + +// WriteToRequest writes these params to a swagger request +func (o *ResetServerSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Input != nil { + if err := r.SetBodyParam(o.Input); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/cdp-sdk-go/gen/dw/client/operations/reset_server_settings_responses.go b/cdp-sdk-go/gen/dw/client/operations/reset_server_settings_responses.go new file mode 100644 index 00000000..33c51abe --- /dev/null +++ b/cdp-sdk-go/gen/dw/client/operations/reset_server_settings_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/dw/models" +) + +// ResetServerSettingsReader is a Reader for the ResetServerSettings structure. +type ResetServerSettingsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ResetServerSettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewResetServerSettingsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewResetServerSettingsDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewResetServerSettingsOK creates a ResetServerSettingsOK with default headers values +func NewResetServerSettingsOK() *ResetServerSettingsOK { + return &ResetServerSettingsOK{} +} + +/* +ResetServerSettingsOK describes a response with status code 200, with default header values. + +Expected response to a valid request. +*/ +type ResetServerSettingsOK struct { + Payload *models.ResetServerSettingsResponse +} + +// IsSuccess returns true when this reset server settings o k response has a 2xx status code +func (o *ResetServerSettingsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this reset server settings o k response has a 3xx status code +func (o *ResetServerSettingsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this reset server settings o k response has a 4xx status code +func (o *ResetServerSettingsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this reset server settings o k response has a 5xx status code +func (o *ResetServerSettingsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this reset server settings o k response a status code equal to that given +func (o *ResetServerSettingsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the reset server settings o k response +func (o *ResetServerSettingsOK) Code() int { + return 200 +} + +func (o *ResetServerSettingsOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/dw/resetServerSettings][%d] resetServerSettingsOK %s", 200, payload) +} + +func (o *ResetServerSettingsOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/dw/resetServerSettings][%d] resetServerSettingsOK %s", 200, payload) +} + +func (o *ResetServerSettingsOK) GetPayload() *models.ResetServerSettingsResponse { + return o.Payload +} + +func (o *ResetServerSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ResetServerSettingsResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewResetServerSettingsDefault creates a ResetServerSettingsDefault with default headers values +func NewResetServerSettingsDefault(code int) *ResetServerSettingsDefault { + return &ResetServerSettingsDefault{ + _statusCode: code, + } +} + +/* +ResetServerSettingsDefault describes a response with status code -1, with default header values. + +The default response on an error. +*/ +type ResetServerSettingsDefault struct { + _statusCode int + + Payload *models.Error +} + +// IsSuccess returns true when this reset server settings default response has a 2xx status code +func (o *ResetServerSettingsDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this reset server settings default response has a 3xx status code +func (o *ResetServerSettingsDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this reset server settings default response has a 4xx status code +func (o *ResetServerSettingsDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this reset server settings default response has a 5xx status code +func (o *ResetServerSettingsDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this reset server settings default response a status code equal to that given +func (o *ResetServerSettingsDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the reset server settings default response +func (o *ResetServerSettingsDefault) Code() int { + return o._statusCode +} + +func (o *ResetServerSettingsDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/dw/resetServerSettings][%d] resetServerSettings default %s", o._statusCode, payload) +} + +func (o *ResetServerSettingsDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/dw/resetServerSettings][%d] resetServerSettings default %s", o._statusCode, payload) +} + +func (o *ResetServerSettingsDefault) GetPayload() *models.Error { + return o.Payload +} + +func (o *ResetServerSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cdp-sdk-go/gen/dw/models/application_resources_breakdown.go b/cdp-sdk-go/gen/dw/models/application_resources_breakdown.go index 190e914d..57ed5c5a 100644 --- a/cdp-sdk-go/gen/dw/models/application_resources_breakdown.go +++ b/cdp-sdk-go/gen/dw/models/application_resources_breakdown.go @@ -17,15 +17,9 @@ import ( // swagger:model ApplicationResourcesBreakdown type ApplicationResourcesBreakdown struct { - // DEPRECATED: Java VM configuration for -Xmx (maximum heap size).Java VM overhead for Garbage Collector structures, metaspace, etc., and a safety margin to avoid out-of-memory issues. - Headroom *string `json:"headroom,omitempty"` - // Java VM configuration for -XX:MaxDirectMemorySize (limit for Direct Byte Buffers). MaxDirectMemorySize *string `json:"maxDirectMemorySize,omitempty"` - // DEPRECATED: Set the hive.query.isolation.slots.per.node configuration value instead. Overhead buffer for hive.query.isolation.slots.per.node. The total number of concurrent tasks the Hive query executor can process is the sum of the available CPU cores and the value you specify in this field. - WaitQueueSize *int32 `json:"waitQueueSize,omitempty"` - // Java VM configuration for -Xms (initial and minimum heap size). Xms *string `json:"xms,omitempty"` diff --git a/cdp-sdk-go/gen/dw/models/aws_activation_options.go b/cdp-sdk-go/gen/dw/models/aws_activation_options.go index e1f0c616..540c7ded 100644 --- a/cdp-sdk-go/gen/dw/models/aws_activation_options.go +++ b/cdp-sdk-go/gen/dw/models/aws_activation_options.go @@ -17,7 +17,7 @@ import ( // swagger:model AwsActivationOptions type AwsActivationOptions struct { - // NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. + // DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. ComputeInstanceTypes []string `json:"computeInstanceTypes"` // Custom AMI ID. diff --git a/cdp-sdk-go/gen/dw/models/azure_activation_options.go b/cdp-sdk-go/gen/dw/models/azure_activation_options.go index 71c629cd..ffb93f98 100644 --- a/cdp-sdk-go/gen/dw/models/azure_activation_options.go +++ b/cdp-sdk-go/gen/dw/models/azure_activation_options.go @@ -26,7 +26,7 @@ type AzureActivationOptions struct { // Enable AKS VNet Azure Virtual Network (VNet) integration by specifying the delegated subnet name. An Azure Kubernetes Service (AKS) cluster configured with API Server VNet Integration projects the API server endpoint directly into a delegated subnet in the VNet where AKS is deployed. API Server VNet Integration enables network communication between the API server and the cluster nodes without requiring a private link or tunnel. AksVNetIntegrationSubnetName string `json:"aksVNetIntegrationSubnetName,omitempty"` - // NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. + // DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. ComputeInstanceTypes []string `json:"computeInstanceTypes"` // Enables Azure Availability Zones for the cluster deployment. 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 4a27b49c..5a62e1c2 100644 --- a/cdp-sdk-go/gen/dw/models/cluster_summary_response.go +++ b/cdp-sdk-go/gen/dw/models/cluster_summary_response.go @@ -29,7 +29,7 @@ type ClusterSummaryResponse struct { // The cloud platform of the environment that was used to create this cluster. CloudPlatform string `json:"cloudPlatform,omitempty"` - // NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. Compute instance types that the environment is restricted to use. This affects the creation of the virtual warehouses where this restriction will apply. + // DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. Compute instance types that the environment is restricted to use. This affects the creation of the virtual warehouses where this restriction will apply. ComputeInstanceTypes []string `json:"computeInstanceTypes"` // Creation date of cluster. diff --git a/cdp-sdk-go/gen/dw/models/create_application_resources_breakdown.go b/cdp-sdk-go/gen/dw/models/create_application_resources_breakdown.go index 436224eb..465d25ef 100644 --- a/cdp-sdk-go/gen/dw/models/create_application_resources_breakdown.go +++ b/cdp-sdk-go/gen/dw/models/create_application_resources_breakdown.go @@ -17,15 +17,9 @@ import ( // swagger:model CreateApplicationResourcesBreakdown type CreateApplicationResourcesBreakdown struct { - // DEPRECATED: Java VM configuration for -Xmx (maximum heap size).Java VM overhead for Garbage Collector structures, metaspace, etc., and a safety margin to avoid out-of-memory issues. - Headroom *string `json:"headroom,omitempty"` - // Java VM configuration for -XX:MaxDirectMemorySize (limit for Direct Byte Buffers). MaxDirectMemorySize *string `json:"maxDirectMemorySize,omitempty"` - // DEPRECATED: Set the hive.query.isolation.slots.per.node configuration value instead. Overhead buffer for hive.query.isolation.slots.per.node. The total number of concurrent tasks the Hive query executor can process is the sum of the available CPU cores and the value you specify in this field. - WaitQueueSize *int32 `json:"waitQueueSize,omitempty"` - // Java VM configuration for -Xms (initial and minimum heap size). Xms *string `json:"xms,omitempty"` diff --git a/cdp-sdk-go/gen/dw/models/create_aws_cluster_request.go b/cdp-sdk-go/gen/dw/models/create_aws_cluster_request.go index d5cf27e3..c5526984 100644 --- a/cdp-sdk-go/gen/dw/models/create_aws_cluster_request.go +++ b/cdp-sdk-go/gen/dw/models/create_aws_cluster_request.go @@ -19,7 +19,7 @@ import ( // swagger:model CreateAwsClusterRequest type CreateAwsClusterRequest struct { - // NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. + // DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. ComputeInstanceTypes []string `json:"computeInstanceTypes"` // Custom AMI ID. diff --git a/cdp-sdk-go/gen/dw/models/create_azure_cluster_request.go b/cdp-sdk-go/gen/dw/models/create_azure_cluster_request.go index 7657a423..fc407751 100644 --- a/cdp-sdk-go/gen/dw/models/create_azure_cluster_request.go +++ b/cdp-sdk-go/gen/dw/models/create_azure_cluster_request.go @@ -26,7 +26,7 @@ type CreateAzureClusterRequest struct { // Enable AKS VNet Azure Virtual Network (VNet) integration by specifying the delegated subnet name. An Azure Kubernetes Service (AKS) cluster configured with API Server VNet Integration projects the API server endpoint directly into a delegated subnet in the VNet where AKS is deployed. API Server VNet Integration enables network communication between the API server and the cluster nodes without requiring a private link or tunnel. AksVNETIntegrationSubnetName string `json:"aksVNETIntegrationSubnetName,omitempty"` - // NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. + // DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. ComputeInstanceTypes []string `json:"computeInstanceTypes"` // Options for custom ACR/ECR registries. 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 82f40b09..459d715c 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 @@ -35,9 +35,6 @@ type CreateClusterDiagnosticDataJobRequest struct { // Enum: ["UPLOAD_TO_CLOUDERA","DOWNLOAD"] Destination *string `json:"destination"` - // DEPRECATED: All logs are included by default. No need to specify options - DownloadOptions *ClusterCreateDiagnosticDataDownloadOptions `json:"downloadOptions,omitempty"` - // 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. // Format: date-time EndTime strfmt.DateTime `json:"endTime,omitempty"` @@ -62,10 +59,6 @@ func (m *CreateClusterDiagnosticDataJobRequest) Validate(formats strfmt.Registry res = append(res, err) } - if err := m.validateDownloadOptions(formats); err != nil { - res = append(res, err) - } - if err := m.validateEndTime(formats); err != nil { res = append(res, err) } @@ -132,25 +125,6 @@ func (m *CreateClusterDiagnosticDataJobRequest) validateDestination(formats strf return nil } -func (m *CreateClusterDiagnosticDataJobRequest) validateDownloadOptions(formats strfmt.Registry) error { - if swag.IsZero(m.DownloadOptions) { // not required - return nil - } - - if m.DownloadOptions != nil { - if err := m.DownloadOptions.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("downloadOptions") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("downloadOptions") - } - return err - } - } - - return nil -} - func (m *CreateClusterDiagnosticDataJobRequest) validateEndTime(formats strfmt.Registry) error { if swag.IsZero(m.EndTime) { // not required return nil @@ -175,38 +149,8 @@ func (m *CreateClusterDiagnosticDataJobRequest) validateStartTime(formats strfmt return nil } -// ContextValidate validate this create cluster diagnostic data job request based on the context it is used +// ContextValidate validates this create cluster diagnostic data job request based on context it is used func (m *CreateClusterDiagnosticDataJobRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := m.contextValidateDownloadOptions(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -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") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("downloadOptions") - } - return err - } - } - return nil } 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 afc4aa84..90698804 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 @@ -39,9 +39,6 @@ type CreateDbcDiagnosticDataJobRequest struct { // Enum: ["UPLOAD_TO_CLOUDERA","DOWNLOAD"] Destination *string `json:"destination"` - // DEPRECATED: All logs are included by default - DownloadOptions *DBCCreateDiagnosticDataDownloadOptions `json:"downloadOptions,omitempty"` - // 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. // Format: date-time EndTime strfmt.DateTime `json:"endTime,omitempty"` @@ -70,10 +67,6 @@ func (m *CreateDbcDiagnosticDataJobRequest) Validate(formats strfmt.Registry) er res = append(res, err) } - if err := m.validateDownloadOptions(formats); err != nil { - res = append(res, err) - } - if err := m.validateEndTime(formats); err != nil { res = append(res, err) } @@ -149,25 +142,6 @@ func (m *CreateDbcDiagnosticDataJobRequest) validateDestination(formats strfmt.R return nil } -func (m *CreateDbcDiagnosticDataJobRequest) validateDownloadOptions(formats strfmt.Registry) error { - if swag.IsZero(m.DownloadOptions) { // not required - return nil - } - - if m.DownloadOptions != nil { - if err := m.DownloadOptions.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("downloadOptions") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("downloadOptions") - } - return err - } - } - - return nil -} - func (m *CreateDbcDiagnosticDataJobRequest) validateEndTime(formats strfmt.Registry) error { if swag.IsZero(m.EndTime) { // not required return nil @@ -192,38 +166,8 @@ func (m *CreateDbcDiagnosticDataJobRequest) validateStartTime(formats strfmt.Reg return nil } -// ContextValidate validate this create dbc diagnostic data job request based on the context it is used +// ContextValidate validates this create dbc diagnostic data job request based on context it is used func (m *CreateDbcDiagnosticDataJobRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := m.contextValidateDownloadOptions(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -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") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("downloadOptions") - } - return err - } - } - return nil } diff --git a/cdp-sdk-go/gen/dw/models/create_dbc_request.go b/cdp-sdk-go/gen/dw/models/create_dbc_request.go index ad0db6d8..e3c76328 100644 --- a/cdp-sdk-go/gen/dw/models/create_dbc_request.go +++ b/cdp-sdk-go/gen/dw/models/create_dbc_request.go @@ -42,13 +42,16 @@ type CreateDbcRequest struct { // Load demo data into the Database Catalog? LoadDemoData bool `json:"loadDemoData,omitempty"` - // Set Metastore container memory size. If not provided, small will apply. + // DEPRECATED: resourceTemplateId field is replacing this one. Set Metastore container memory size. The small size will apply as default if neither the resourceTemplateId field nor this field is provided. // Enum: ["small","medium","large"] MemorySize string `json:"memorySize,omitempty"` // Name of the Database Catalog. // Required: true Name *string `json:"name"` + + // The resource template of the Database Catalog. + ResourceTemplateID string `json:"resourceTemplateId,omitempty"` } // Validate validates this create dbc request 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 61ac51f2..88dcc2e7 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 @@ -42,12 +42,6 @@ type CreateVwDiagnosticDataJobRequest struct { // Forced recreation of the diagnostic job. Force *bool `json:"force,omitempty"` - // DEPRECATED: All logs are included by default - HiveDownloadOptions *HiveCreateDiagnosticDataDownloadOptions `json:"hiveDownloadOptions,omitempty"` - - // DEPRECATED: All logs are included by default - ImpalaDownloadOptions *ImpalaCreateDiagnosticDataDownloadOptions `json:"impalaDownloadOptions,omitempty"` - // 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. // Format: date-time StartTime strfmt.DateTime `json:"startTime,omitempty"` @@ -73,14 +67,6 @@ func (m *CreateVwDiagnosticDataJobRequest) Validate(formats strfmt.Registry) err res = append(res, err) } - if err := m.validateHiveDownloadOptions(formats); err != nil { - res = append(res, err) - } - - if err := m.validateImpalaDownloadOptions(formats); err != nil { - res = append(res, err) - } - if err := m.validateStartTime(formats); err != nil { res = append(res, err) } @@ -159,44 +145,6 @@ func (m *CreateVwDiagnosticDataJobRequest) validateEndTime(formats strfmt.Regist return nil } -func (m *CreateVwDiagnosticDataJobRequest) validateHiveDownloadOptions(formats strfmt.Registry) error { - if swag.IsZero(m.HiveDownloadOptions) { // not required - return nil - } - - if m.HiveDownloadOptions != nil { - if err := m.HiveDownloadOptions.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("hiveDownloadOptions") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("hiveDownloadOptions") - } - return err - } - } - - return nil -} - -func (m *CreateVwDiagnosticDataJobRequest) validateImpalaDownloadOptions(formats strfmt.Registry) error { - if swag.IsZero(m.ImpalaDownloadOptions) { // not required - return nil - } - - if m.ImpalaDownloadOptions != nil { - if err := m.ImpalaDownloadOptions.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("impalaDownloadOptions") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("impalaDownloadOptions") - } - return err - } - } - - return nil -} - func (m *CreateVwDiagnosticDataJobRequest) validateStartTime(formats strfmt.Registry) error { if swag.IsZero(m.StartTime) { // not required return nil @@ -218,63 +166,8 @@ func (m *CreateVwDiagnosticDataJobRequest) validateVwID(formats strfmt.Registry) return nil } -// ContextValidate validate this create vw diagnostic data job request based on the context it is used +// ContextValidate validates this create vw diagnostic data job request based on context it is used func (m *CreateVwDiagnosticDataJobRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := m.contextValidateHiveDownloadOptions(ctx, formats); err != nil { - res = append(res, err) - } - - if err := m.contextValidateImpalaDownloadOptions(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -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") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("hiveDownloadOptions") - } - return err - } - } - - return nil -} - -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") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("impalaDownloadOptions") - } - return err - } - } - return nil } diff --git a/cdp-sdk-go/gen/dw/models/dbc_summary.go b/cdp-sdk-go/gen/dw/models/dbc_summary.go index e1d7e197..e780e537 100644 --- a/cdp-sdk-go/gen/dw/models/dbc_summary.go +++ b/cdp-sdk-go/gen/dw/models/dbc_summary.go @@ -32,7 +32,7 @@ type DbcSummary struct { // The ID of the Database Catalog. ID string `json:"id,omitempty"` - // Metastore container memory size. + // DEPRECATED: resourceTemplateId field is replacing this one. Metastore container memory size. MemorySize string `json:"memorySize,omitempty"` // The name of the Database Catalog. @@ -41,6 +41,9 @@ type DbcSummary struct { // The name of the Resource Pool the Database Catalog is in. ResourcePool string `json:"resourcePool,omitempty"` + // The resource template of the Database Catalog. + ResourceTemplateID string `json:"resourceTemplateId,omitempty"` + // The actual resources used by the Database Catalog. Resources map[string]ApplicationResources `json:"resources,omitempty"` diff --git a/cdp-sdk-go/gen/dw/models/list_backups_request.go b/cdp-sdk-go/gen/dw/models/list_backups_request.go index 53a9c939..31427c5c 100644 --- a/cdp-sdk-go/gen/dw/models/list_backups_request.go +++ b/cdp-sdk-go/gen/dw/models/list_backups_request.go @@ -20,6 +20,9 @@ type ListBackupsRequest struct { // Specified name for the backup. If not present, this filter is not used. BackupName string `json:"backupName,omitempty"` + // Decides whether automatic (system-generated) backups should be listed or not. Value is true by default. + IncludeAutomaticBackups bool `json:"includeAutomaticBackups,omitempty"` + // The job states we need to filter by. If not present, this filter is not used. JobStates []string `json:"jobStates"` } diff --git a/cdp-sdk-go/gen/dw/models/reset_server_settings_request.go b/cdp-sdk-go/gen/dw/models/reset_server_settings_request.go new file mode 100644 index 00000000..8a512a12 --- /dev/null +++ b/cdp-sdk-go/gen/dw/models/reset_server_settings_request.go @@ -0,0 +1,11 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// ResetServerSettingsRequest Request object for the resetServerSettings method. +// +// swagger:model ResetServerSettingsRequest +type ResetServerSettingsRequest interface{} diff --git a/cdp-sdk-go/gen/dw/models/reset_server_settings_response.go b/cdp-sdk-go/gen/dw/models/reset_server_settings_response.go new file mode 100644 index 00000000..734e61b6 --- /dev/null +++ b/cdp-sdk-go/gen/dw/models/reset_server_settings_response.go @@ -0,0 +1,50 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResetServerSettingsResponse Response object for the resetServerSettings method. +// +// swagger:model ResetServerSettingsResponse +type ResetServerSettingsResponse struct { + + // Reset status. + Status string `json:"status,omitempty"` +} + +// Validate validates this reset server settings response +func (m *ResetServerSettingsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this reset server settings response based on context it is used +func (m *ResetServerSettingsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ResetServerSettingsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResetServerSettingsResponse) UnmarshalBinary(b []byte) error { + var res ResetServerSettingsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/dw/models/update_application_resources_breakdown.go b/cdp-sdk-go/gen/dw/models/update_application_resources_breakdown.go index 6abee006..383f1b99 100644 --- a/cdp-sdk-go/gen/dw/models/update_application_resources_breakdown.go +++ b/cdp-sdk-go/gen/dw/models/update_application_resources_breakdown.go @@ -17,15 +17,9 @@ import ( // swagger:model UpdateApplicationResourcesBreakdown type UpdateApplicationResourcesBreakdown struct { - // DEPRECATED: Java VM configuration for -Xmx (maximum heap size).Java VM overhead for Garbage Collector structures, metaspace, etc., and a safety margin to avoid out-of-memory issues. - Headroom *string `json:"headroom,omitempty"` - // Java VM configuration for -XX:MaxDirectMemorySize (limit for Direct Byte Buffers). MaxDirectMemorySize *string `json:"maxDirectMemorySize,omitempty"` - // DEPRECATED: Set the hive.query.isolation.slots.per.node configuration value instead. Overhead buffer for hive.query.isolation.slots.per.node. The total number of concurrent tasks the Hive query executor can process is the sum of the available CPU cores and the value you specify in this field. - WaitQueueSize *int32 `json:"waitQueueSize,omitempty"` - // Java VM configuration for -Xms (initial and minimum heap size). Xms *string `json:"xms,omitempty"` 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 8af74621..b6bfcc3b 100644 --- a/cdp-sdk-go/gen/dw/models/update_dbc_request.go +++ b/cdp-sdk-go/gen/dw/models/update_dbc_request.go @@ -31,9 +31,12 @@ type UpdateDbcRequest struct { // Required: true DbcID *string `json:"dbcId"` - // Set Metastore container memory size. If not provided, small will apply. + // DEPRECATED: resourceTemplateId field is replacing this one. Set Metastore container memory size. The small size will apply as default if neither the resourceTemplateId field nor this field is provided. // Enum: ["small","medium","large"] MemorySize string `json:"memorySize,omitempty"` + + // The resource template of the Database Catalog. + ResourceTemplateID string `json:"resourceTemplateId,omitempty"` } // Validate validates this update dbc request diff --git a/cdp-sdk-go/gen/environments/client/operations/collect_freeipa_diagnostics_responses.go b/cdp-sdk-go/gen/environments/client/operations/collect_freeipa_diagnostics_responses.go index ef538204..092a389b 100644 --- a/cdp-sdk-go/gen/environments/client/operations/collect_freeipa_diagnostics_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/collect_freeipa_diagnostics_responses.go @@ -53,7 +53,7 @@ CollectFreeipaDiagnosticsOK describes a response with status code 200, with defa Expected response to a valid request. */ type CollectFreeipaDiagnosticsOK struct { - Payload models.CollectFreeipaDiagnosticsResponse + Payload *models.CollectFreeipaDiagnosticsResponse } // IsSuccess returns true when this collect freeipa diagnostics o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *CollectFreeipaDiagnosticsOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/collectFreeipaDiagnostics][%d] collectFreeipaDiagnosticsOK %s", 200, payload) } -func (o *CollectFreeipaDiagnosticsOK) GetPayload() models.CollectFreeipaDiagnosticsResponse { +func (o *CollectFreeipaDiagnosticsOK) GetPayload() *models.CollectFreeipaDiagnosticsResponse { return o.Payload } func (o *CollectFreeipaDiagnosticsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.CollectFreeipaDiagnosticsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/operations_client.go b/cdp-sdk-go/gen/environments/client/operations/operations_client.go index 023b8754..5bc5a465 100644 --- a/cdp-sdk-go/gen/environments/client/operations/operations_client.go +++ b/cdp-sdk-go/gen/environments/client/operations/operations_client.go @@ -234,6 +234,8 @@ type ClientService interface { UpdateFreeipaToAwsImdsV2(params *UpdateFreeipaToAwsImdsV2Params, opts ...ClientOption) (*UpdateFreeipaToAwsImdsV2OK, error) + UpdateGcpAvailabilityZones(params *UpdateGcpAvailabilityZonesParams, opts ...ClientOption) (*UpdateGcpAvailabilityZonesOK, error) + UpdateOrchestratorState(params *UpdateOrchestratorStateParams, opts ...ClientOption) (*UpdateOrchestratorStateOK, error) UpdateProxyConfig(params *UpdateProxyConfigParams, opts ...ClientOption) (*UpdateProxyConfigOK, error) @@ -2522,7 +2524,7 @@ func (a *Client) RotateFreeipaSecrets(params *RotateFreeipaSecretsParams, opts . /* RotateSaltPassword rotates salt stack user password on free IP a instances -Rotate SaltStack user password on FreeIPA instances. +Deprecated, please use rotateFreeipaSecrets with SALT_PASSWORD secretType instead. */ func (a *Client) RotateSaltPassword(params *RotateSaltPasswordParams, opts ...ClientOption) (*RotateSaltPasswordOK, error) { // TODO: Validate the params before sending @@ -3767,6 +3769,45 @@ func (a *Client) UpdateFreeipaToAwsImdsV2(params *UpdateFreeipaToAwsImdsV2Params return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +UpdateGcpAvailabilityZones updates the availability zones for the g c p environment + +Updates the Availability Zones for the GCP environment. +*/ +func (a *Client) UpdateGcpAvailabilityZones(params *UpdateGcpAvailabilityZonesParams, opts ...ClientOption) (*UpdateGcpAvailabilityZonesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateGcpAvailabilityZonesParams() + } + op := &runtime.ClientOperation{ + ID: "updateGcpAvailabilityZones", + Method: "POST", + PathPattern: "/api/v1/environments2/updateGcpAvailabilityZones", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &UpdateGcpAvailabilityZonesReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateGcpAvailabilityZonesOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*UpdateGcpAvailabilityZonesDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* UpdateOrchestratorState runs orchestrator engine state update on the free IP a cluster diff --git a/cdp-sdk-go/gen/environments/client/operations/retry_freeipa_responses.go b/cdp-sdk-go/gen/environments/client/operations/retry_freeipa_responses.go index b094348e..22e4d903 100644 --- a/cdp-sdk-go/gen/environments/client/operations/retry_freeipa_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/retry_freeipa_responses.go @@ -53,7 +53,7 @@ RetryFreeipaOK describes a response with status code 200, with default header va Expected response to a valid request. */ type RetryFreeipaOK struct { - Payload models.RetryFreeipaResponse + Payload *models.RetryFreeipaResponse } // IsSuccess returns true when this retry freeipa o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RetryFreeipaOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/retryFreeipa][%d] retryFreeipaOK %s", 200, payload) } -func (o *RetryFreeipaOK) GetPayload() models.RetryFreeipaResponse { +func (o *RetryFreeipaOK) GetPayload() *models.RetryFreeipaResponse { return o.Payload } func (o *RetryFreeipaOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RetryFreeipaResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/rotate_freeipa_secrets_responses.go b/cdp-sdk-go/gen/environments/client/operations/rotate_freeipa_secrets_responses.go index cd918524..73812c0d 100644 --- a/cdp-sdk-go/gen/environments/client/operations/rotate_freeipa_secrets_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/rotate_freeipa_secrets_responses.go @@ -53,7 +53,7 @@ RotateFreeipaSecretsOK describes a response with status code 200, with default h Expected response to a valid request. */ type RotateFreeipaSecretsOK struct { - Payload models.RotateFreeipaSecretsResponse + Payload *models.RotateFreeipaSecretsResponse } // IsSuccess returns true when this rotate freeipa secrets o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateFreeipaSecretsOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/rotateFreeipaSecrets][%d] rotateFreeipaSecretsOK %s", 200, payload) } -func (o *RotateFreeipaSecretsOK) GetPayload() models.RotateFreeipaSecretsResponse { +func (o *RotateFreeipaSecretsOK) GetPayload() *models.RotateFreeipaSecretsResponse { return o.Payload } func (o *RotateFreeipaSecretsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateFreeipaSecretsResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/rotate_salt_password_responses.go b/cdp-sdk-go/gen/environments/client/operations/rotate_salt_password_responses.go index 3faa3fba..e6711bf6 100644 --- a/cdp-sdk-go/gen/environments/client/operations/rotate_salt_password_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/rotate_salt_password_responses.go @@ -53,7 +53,7 @@ RotateSaltPasswordOK describes a response with status code 200, with default hea Expected response to a valid request. */ type RotateSaltPasswordOK struct { - Payload models.RotateSaltPasswordResponse + Payload *models.RotateSaltPasswordResponse } // IsSuccess returns true when this rotate salt password o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *RotateSaltPasswordOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/rotateSaltPassword][%d] rotateSaltPasswordOK %s", 200, payload) } -func (o *RotateSaltPasswordOK) GetPayload() models.RotateSaltPasswordResponse { +func (o *RotateSaltPasswordOK) GetPayload() *models.RotateSaltPasswordResponse { return o.Payload } func (o *RotateSaltPasswordOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.RotateSaltPasswordResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/set_endpoint_access_gateway_responses.go b/cdp-sdk-go/gen/environments/client/operations/set_endpoint_access_gateway_responses.go index aa1d7cb0..4405011f 100644 --- a/cdp-sdk-go/gen/environments/client/operations/set_endpoint_access_gateway_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/set_endpoint_access_gateway_responses.go @@ -53,7 +53,7 @@ SetEndpointAccessGatewayOK describes a response with status code 200, with defau Expected response to a valid request. */ type SetEndpointAccessGatewayOK struct { - Payload models.SetEndpointAccessGatewayResponse + Payload *models.SetEndpointAccessGatewayResponse } // IsSuccess returns true when this set endpoint access gateway o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *SetEndpointAccessGatewayOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/setEndpointAccessGateway][%d] setEndpointAccessGatewayOK %s", 200, payload) } -func (o *SetEndpointAccessGatewayOK) GetPayload() models.SetEndpointAccessGatewayResponse { +func (o *SetEndpointAccessGatewayOK) GetPayload() *models.SetEndpointAccessGatewayResponse { return o.Payload } func (o *SetEndpointAccessGatewayOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.SetEndpointAccessGatewayResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/start_environment_responses.go b/cdp-sdk-go/gen/environments/client/operations/start_environment_responses.go index 3eca63ca..434b0cdd 100644 --- a/cdp-sdk-go/gen/environments/client/operations/start_environment_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/start_environment_responses.go @@ -53,7 +53,7 @@ StartEnvironmentOK describes a response with status code 200, with default heade Expected response to a valid request. */ type StartEnvironmentOK struct { - Payload models.StartEnvironmentResponse + Payload *models.StartEnvironmentResponse } // IsSuccess returns true when this start environment o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *StartEnvironmentOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/startEnvironment][%d] startEnvironmentOK %s", 200, payload) } -func (o *StartEnvironmentOK) GetPayload() models.StartEnvironmentResponse { +func (o *StartEnvironmentOK) GetPayload() *models.StartEnvironmentResponse { return o.Payload } func (o *StartEnvironmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.StartEnvironmentResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/stop_environment_responses.go b/cdp-sdk-go/gen/environments/client/operations/stop_environment_responses.go index f3db9f6d..89ea59b7 100644 --- a/cdp-sdk-go/gen/environments/client/operations/stop_environment_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/stop_environment_responses.go @@ -53,7 +53,7 @@ StopEnvironmentOK describes a response with status code 200, with default header Expected response to a valid request. */ type StopEnvironmentOK struct { - Payload models.StopEnvironmentResponse + Payload *models.StopEnvironmentResponse } // IsSuccess returns true when this stop environment o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *StopEnvironmentOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/stopEnvironment][%d] stopEnvironmentOK %s", 200, payload) } -func (o *StopEnvironmentOK) GetPayload() models.StopEnvironmentResponse { +func (o *StopEnvironmentOK) GetPayload() *models.StopEnvironmentResponse { return o.Payload } func (o *StopEnvironmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.StopEnvironmentResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v1_responses.go b/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v1_responses.go index 6ab5e88f..a9a5838d 100644 --- a/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v1_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v1_responses.go @@ -53,7 +53,7 @@ UpdateFreeipaToAwsImdsV1OK describes a response with status code 200, with defau Expected response to a valid request. */ type UpdateFreeipaToAwsImdsV1OK struct { - Payload models.UpdateFreeipaToAwsImdsV1Response + Payload *models.UpdateFreeipaToAwsImdsV1Response } // IsSuccess returns true when this update freeipa to aws imds v1 o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateFreeipaToAwsImdsV1OK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/updateFreeipaToAwsImdsV1][%d] updateFreeipaToAwsImdsV1OK %s", 200, payload) } -func (o *UpdateFreeipaToAwsImdsV1OK) GetPayload() models.UpdateFreeipaToAwsImdsV1Response { +func (o *UpdateFreeipaToAwsImdsV1OK) GetPayload() *models.UpdateFreeipaToAwsImdsV1Response { return o.Payload } func (o *UpdateFreeipaToAwsImdsV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateFreeipaToAwsImdsV1Response) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v2_responses.go b/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v2_responses.go index a1084ea4..6f39628d 100644 --- a/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v2_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/update_freeipa_to_aws_imds_v2_responses.go @@ -53,7 +53,7 @@ UpdateFreeipaToAwsImdsV2OK describes a response with status code 200, with defau Expected response to a valid request. */ type UpdateFreeipaToAwsImdsV2OK struct { - Payload models.UpdateFreeipaToAwsImdsV2Response + Payload *models.UpdateFreeipaToAwsImdsV2Response } // IsSuccess returns true when this update freeipa to aws imds v2 o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateFreeipaToAwsImdsV2OK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/updateFreeipaToAwsImdsV2][%d] updateFreeipaToAwsImdsV2OK %s", 200, payload) } -func (o *UpdateFreeipaToAwsImdsV2OK) GetPayload() models.UpdateFreeipaToAwsImdsV2Response { +func (o *UpdateFreeipaToAwsImdsV2OK) GetPayload() *models.UpdateFreeipaToAwsImdsV2Response { return o.Payload } func (o *UpdateFreeipaToAwsImdsV2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateFreeipaToAwsImdsV2Response) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/update_gcp_availability_zones_parameters.go b/cdp-sdk-go/gen/environments/client/operations/update_gcp_availability_zones_parameters.go new file mode 100644 index 00000000..9182f893 --- /dev/null +++ b/cdp-sdk-go/gen/environments/client/operations/update_gcp_availability_zones_parameters.go @@ -0,0 +1,150 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/environments/models" +) + +// NewUpdateGcpAvailabilityZonesParams creates a new UpdateGcpAvailabilityZonesParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateGcpAvailabilityZonesParams() *UpdateGcpAvailabilityZonesParams { + return &UpdateGcpAvailabilityZonesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateGcpAvailabilityZonesParamsWithTimeout creates a new UpdateGcpAvailabilityZonesParams object +// with the ability to set a timeout on a request. +func NewUpdateGcpAvailabilityZonesParamsWithTimeout(timeout time.Duration) *UpdateGcpAvailabilityZonesParams { + return &UpdateGcpAvailabilityZonesParams{ + timeout: timeout, + } +} + +// NewUpdateGcpAvailabilityZonesParamsWithContext creates a new UpdateGcpAvailabilityZonesParams object +// with the ability to set a context for a request. +func NewUpdateGcpAvailabilityZonesParamsWithContext(ctx context.Context) *UpdateGcpAvailabilityZonesParams { + return &UpdateGcpAvailabilityZonesParams{ + Context: ctx, + } +} + +// NewUpdateGcpAvailabilityZonesParamsWithHTTPClient creates a new UpdateGcpAvailabilityZonesParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateGcpAvailabilityZonesParamsWithHTTPClient(client *http.Client) *UpdateGcpAvailabilityZonesParams { + return &UpdateGcpAvailabilityZonesParams{ + HTTPClient: client, + } +} + +/* +UpdateGcpAvailabilityZonesParams contains all the parameters to send to the API endpoint + + for the update gcp availability zones operation. + + Typically these are written to a http.Request. +*/ +type UpdateGcpAvailabilityZonesParams struct { + + // Input. + Input *models.UpdateGcpAvailabilityZonesRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update gcp availability zones params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateGcpAvailabilityZonesParams) WithDefaults() *UpdateGcpAvailabilityZonesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update gcp availability zones params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateGcpAvailabilityZonesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) WithTimeout(timeout time.Duration) *UpdateGcpAvailabilityZonesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) WithContext(ctx context.Context) *UpdateGcpAvailabilityZonesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) WithHTTPClient(client *http.Client) *UpdateGcpAvailabilityZonesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithInput adds the input to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) WithInput(input *models.UpdateGcpAvailabilityZonesRequest) *UpdateGcpAvailabilityZonesParams { + o.SetInput(input) + return o +} + +// SetInput adds the input to the update gcp availability zones params +func (o *UpdateGcpAvailabilityZonesParams) SetInput(input *models.UpdateGcpAvailabilityZonesRequest) { + o.Input = input +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateGcpAvailabilityZonesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Input != nil { + if err := r.SetBodyParam(o.Input); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/cdp-sdk-go/gen/environments/client/operations/update_gcp_availability_zones_responses.go b/cdp-sdk-go/gen/environments/client/operations/update_gcp_availability_zones_responses.go new file mode 100644 index 00000000..89105918 --- /dev/null +++ b/cdp-sdk-go/gen/environments/client/operations/update_gcp_availability_zones_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/environments/models" +) + +// UpdateGcpAvailabilityZonesReader is a Reader for the UpdateGcpAvailabilityZones structure. +type UpdateGcpAvailabilityZonesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateGcpAvailabilityZonesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateGcpAvailabilityZonesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewUpdateGcpAvailabilityZonesDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewUpdateGcpAvailabilityZonesOK creates a UpdateGcpAvailabilityZonesOK with default headers values +func NewUpdateGcpAvailabilityZonesOK() *UpdateGcpAvailabilityZonesOK { + return &UpdateGcpAvailabilityZonesOK{} +} + +/* +UpdateGcpAvailabilityZonesOK describes a response with status code 200, with default header values. + +Expected response to a valid request. +*/ +type UpdateGcpAvailabilityZonesOK struct { + Payload *models.UpdateGcpAvailabilityZonesResponse +} + +// IsSuccess returns true when this update gcp availability zones o k response has a 2xx status code +func (o *UpdateGcpAvailabilityZonesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update gcp availability zones o k response has a 3xx status code +func (o *UpdateGcpAvailabilityZonesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update gcp availability zones o k response has a 4xx status code +func (o *UpdateGcpAvailabilityZonesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update gcp availability zones o k response has a 5xx status code +func (o *UpdateGcpAvailabilityZonesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update gcp availability zones o k response a status code equal to that given +func (o *UpdateGcpAvailabilityZonesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update gcp availability zones o k response +func (o *UpdateGcpAvailabilityZonesOK) Code() int { + return 200 +} + +func (o *UpdateGcpAvailabilityZonesOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/environments2/updateGcpAvailabilityZones][%d] updateGcpAvailabilityZonesOK %s", 200, payload) +} + +func (o *UpdateGcpAvailabilityZonesOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/environments2/updateGcpAvailabilityZones][%d] updateGcpAvailabilityZonesOK %s", 200, payload) +} + +func (o *UpdateGcpAvailabilityZonesOK) GetPayload() *models.UpdateGcpAvailabilityZonesResponse { + return o.Payload +} + +func (o *UpdateGcpAvailabilityZonesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.UpdateGcpAvailabilityZonesResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUpdateGcpAvailabilityZonesDefault creates a UpdateGcpAvailabilityZonesDefault with default headers values +func NewUpdateGcpAvailabilityZonesDefault(code int) *UpdateGcpAvailabilityZonesDefault { + return &UpdateGcpAvailabilityZonesDefault{ + _statusCode: code, + } +} + +/* +UpdateGcpAvailabilityZonesDefault describes a response with status code -1, with default header values. + +The default response on an error. +*/ +type UpdateGcpAvailabilityZonesDefault struct { + _statusCode int + + Payload *models.Error +} + +// IsSuccess returns true when this update gcp availability zones default response has a 2xx status code +func (o *UpdateGcpAvailabilityZonesDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this update gcp availability zones default response has a 3xx status code +func (o *UpdateGcpAvailabilityZonesDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this update gcp availability zones default response has a 4xx status code +func (o *UpdateGcpAvailabilityZonesDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this update gcp availability zones default response has a 5xx status code +func (o *UpdateGcpAvailabilityZonesDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this update gcp availability zones default response a status code equal to that given +func (o *UpdateGcpAvailabilityZonesDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the update gcp availability zones default response +func (o *UpdateGcpAvailabilityZonesDefault) Code() int { + return o._statusCode +} + +func (o *UpdateGcpAvailabilityZonesDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/environments2/updateGcpAvailabilityZones][%d] updateGcpAvailabilityZones default %s", o._statusCode, payload) +} + +func (o *UpdateGcpAvailabilityZonesDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /api/v1/environments2/updateGcpAvailabilityZones][%d] updateGcpAvailabilityZones default %s", o._statusCode, payload) +} + +func (o *UpdateGcpAvailabilityZonesDefault) GetPayload() *models.Error { + return o.Payload +} + +func (o *UpdateGcpAvailabilityZonesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cdp-sdk-go/gen/environments/client/operations/update_orchestrator_state_responses.go b/cdp-sdk-go/gen/environments/client/operations/update_orchestrator_state_responses.go index 6adf6ac5..69021eb2 100644 --- a/cdp-sdk-go/gen/environments/client/operations/update_orchestrator_state_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/update_orchestrator_state_responses.go @@ -53,7 +53,7 @@ UpdateOrchestratorStateOK describes a response with status code 200, with defaul Expected response to a valid request. */ type UpdateOrchestratorStateOK struct { - Payload models.UpdateOrchestratorStateResponse + Payload *models.UpdateOrchestratorStateResponse } // IsSuccess returns true when this update orchestrator state o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpdateOrchestratorStateOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/updateOrchestratorState][%d] updateOrchestratorStateOK %s", 200, payload) } -func (o *UpdateOrchestratorStateOK) GetPayload() models.UpdateOrchestratorStateResponse { +func (o *UpdateOrchestratorStateOK) GetPayload() *models.UpdateOrchestratorStateResponse { return o.Payload } func (o *UpdateOrchestratorStateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpdateOrchestratorStateResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/client/operations/upgrade_ccm_responses.go b/cdp-sdk-go/gen/environments/client/operations/upgrade_ccm_responses.go index 06f4d88c..8be0d691 100644 --- a/cdp-sdk-go/gen/environments/client/operations/upgrade_ccm_responses.go +++ b/cdp-sdk-go/gen/environments/client/operations/upgrade_ccm_responses.go @@ -53,7 +53,7 @@ UpgradeCcmOK describes a response with status code 200, with default header valu Expected response to a valid request. */ type UpgradeCcmOK struct { - Payload models.UpgradeCcmResponse + Payload *models.UpgradeCcmResponse } // IsSuccess returns true when this upgrade ccm o k response has a 2xx status code @@ -96,14 +96,16 @@ func (o *UpgradeCcmOK) String() string { return fmt.Sprintf("[POST /api/v1/environments2/upgradeCcm][%d] upgradeCcmOK %s", 200, payload) } -func (o *UpgradeCcmOK) GetPayload() models.UpgradeCcmResponse { +func (o *UpgradeCcmOK) GetPayload() *models.UpgradeCcmResponse { return o.Payload } func (o *UpgradeCcmOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(models.UpgradeCcmResponse) + // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } diff --git a/cdp-sdk-go/gen/environments/models/azure_resource_encryption_parameters.go b/cdp-sdk-go/gen/environments/models/azure_resource_encryption_parameters.go index 4ce92971..f94bcd23 100644 --- a/cdp-sdk-go/gen/environments/models/azure_resource_encryption_parameters.go +++ b/cdp-sdk-go/gen/environments/models/azure_resource_encryption_parameters.go @@ -28,9 +28,6 @@ type AzureResourceEncryptionParameters struct { // User managed identity for encryption. EncryptionUserManagedIdentity string `json:"encryptionUserManagedIdentity,omitempty"` - - // User managed identity for encryption. (deprecated) - UserManagedIdentity string `json:"userManagedIdentity,omitempty"` } // Validate validates this azure resource encryption parameters diff --git a/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_response.go b/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_response.go index b81c1f09..7ce2f997 100644 --- a/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_response.go +++ b/cdp-sdk-go/gen/environments/models/collect_freeipa_diagnostics_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // CollectFreeipaDiagnosticsResponse Response object for collecting FreeIPA diagnostics. // // swagger:model CollectFreeipaDiagnosticsResponse -type CollectFreeipaDiagnosticsResponse interface{} +type CollectFreeipaDiagnosticsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this collect freeipa diagnostics response +func (m *CollectFreeipaDiagnosticsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this collect freeipa diagnostics response based on context it is used +func (m *CollectFreeipaDiagnosticsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *CollectFreeipaDiagnosticsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CollectFreeipaDiagnosticsResponse) UnmarshalBinary(b []byte) error { + var res CollectFreeipaDiagnosticsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 4733fd03..d01d79c2 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 @@ -84,12 +84,15 @@ type CreateAWSEnvironmentRequest struct { // Required: true Region *string `json:"region"` - // When true, this will report additional diagnostic information back to Cloudera. - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] When true, this will report additional diagnostic information back to Cloudera. + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // Deprecated. S3Guard was used to ensure consistent S3 updates when S3 was still eventually consistent. With the introduction of Consistent S3, the goal and usage of S3 Guard have become superfluous and defunct. S3GuardTableName string `json:"s3GuardTableName,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // Security control for FreeIPA and Data Lake deployment. // Required: true SecurityAccess *SecurityAccessRequest `json:"securityAccess"` @@ -152,6 +155,10 @@ func (m *CreateAWSEnvironmentRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateSecurityAccess(formats); err != nil { res = append(res, err) } @@ -355,6 +362,25 @@ func (m *CreateAWSEnvironmentRequest) validateRegion(formats strfmt.Registry) er return nil } +func (m *CreateAWSEnvironmentRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSEnvironmentRequest) validateSecurityAccess(formats strfmt.Registry) error { if err := validate.Required("securityAccess", "body", m.SecurityAccess); err != nil { @@ -441,6 +467,10 @@ func (m *CreateAWSEnvironmentRequest) ContextValidate(ctx context.Context, forma res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSecurityAccess(ctx, formats); err != nil { res = append(res, err) } @@ -573,6 +603,27 @@ func (m *CreateAWSEnvironmentRequest) contextValidateLogStorage(ctx context.Cont return nil } +func (m *CreateAWSEnvironmentRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSEnvironmentRequest) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { diff --git a/cdp-sdk-go/gen/environments/models/create_a_w_s_gov_cloud_environment_request.go b/cdp-sdk-go/gen/environments/models/create_a_w_s_gov_cloud_environment_request.go index 165ebb88..b1e84e6d 100644 --- a/cdp-sdk-go/gen/environments/models/create_a_w_s_gov_cloud_environment_request.go +++ b/cdp-sdk-go/gen/environments/models/create_a_w_s_gov_cloud_environment_request.go @@ -78,12 +78,15 @@ type CreateAWSGovCloudEnvironmentRequest struct { // Required: true Region *string `json:"region"` - // When true, this will report additional diagnostic information back to Cloudera. - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] When true, this will report additional diagnostic information back to Cloudera. + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // Deprecated. S3Guard was used to ensure consistent S3 updates when S3 was still eventually consistent. With the introduction of Consistent S3, the goal and usage of S3 Guard have become superfluous and defunct. S3GuardTableName string `json:"s3GuardTableName,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // Security control for FreeIPA and Data Lake deployment. // Required: true SecurityAccess *SecurityAccessRequest `json:"securityAccess"` @@ -142,6 +145,10 @@ func (m *CreateAWSGovCloudEnvironmentRequest) Validate(formats strfmt.Registry) res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateSecurityAccess(formats); err != nil { res = append(res, err) } @@ -326,6 +333,25 @@ func (m *CreateAWSGovCloudEnvironmentRequest) validateRegion(formats strfmt.Regi return nil } +func (m *CreateAWSGovCloudEnvironmentRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSGovCloudEnvironmentRequest) validateSecurityAccess(formats strfmt.Registry) error { if err := validate.Required("securityAccess", "body", m.SecurityAccess); err != nil { @@ -408,6 +434,10 @@ func (m *CreateAWSGovCloudEnvironmentRequest) ContextValidate(ctx context.Contex res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSecurityAccess(ctx, formats); err != nil { res = append(res, err) } @@ -519,6 +549,27 @@ func (m *CreateAWSGovCloudEnvironmentRequest) contextValidateLogStorage(ctx cont return nil } +func (m *CreateAWSGovCloudEnvironmentRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAWSGovCloudEnvironmentRequest) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { 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 6ef7963a..803c9a48 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 @@ -105,12 +105,15 @@ type CreateAzureEnvironmentRequest struct { // Required: true Region *string `json:"region"` - // When true, this will report additional diagnostic information back to Cloudera. - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] When true, this will report additional diagnostic information back to Cloudera. + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // 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. ResourceGroupName string `json:"resourceGroupName,omitempty"` + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` + // Security control for FreeIPA and Data Lake deployment. // Required: true SecurityAccess *SecurityAccessRequest `json:"securityAccess"` @@ -185,6 +188,10 @@ func (m *CreateAzureEnvironmentRequest) Validate(formats strfmt.Registry) error res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateSecurityAccess(formats); err != nil { res = append(res, err) } @@ -434,6 +441,25 @@ func (m *CreateAzureEnvironmentRequest) validateRegion(formats strfmt.Registry) return nil } +func (m *CreateAzureEnvironmentRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAzureEnvironmentRequest) validateSecurityAccess(formats strfmt.Registry) error { if err := validate.Required("securityAccess", "body", m.SecurityAccess); err != nil { @@ -525,6 +551,10 @@ func (m *CreateAzureEnvironmentRequest) ContextValidate(ctx context.Context, for res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSecurityAccess(ctx, formats); err != nil { res = append(res, err) } @@ -703,6 +733,27 @@ func (m *CreateAzureEnvironmentRequest) contextValidateNewNetworkParams(ctx cont return nil } +func (m *CreateAzureEnvironmentRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateAzureEnvironmentRequest) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { 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 c2467d65..3937599d 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 @@ -72,8 +72,11 @@ type CreateGCPEnvironmentRequest struct { // Required: true Region *string `json:"region"` - // When true, this will report additional diagnostic information back to Cloudera. - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] When true, this will report additional diagnostic information back to Cloudera. + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` + + // Security related configurations for Data Hub clusters. + Security *SecurityRequest `json:"security,omitempty"` // Firewall rules for FreeIPA, Data Lake and Data Hub deployment. SecurityAccess *GcpSecurityAccessRequest `json:"securityAccess,omitempty"` @@ -129,6 +132,10 @@ func (m *CreateGCPEnvironmentRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateSecurityAccess(formats); err != nil { res = append(res, err) } @@ -302,6 +309,25 @@ func (m *CreateGCPEnvironmentRequest) validateRegion(formats strfmt.Registry) er return nil } +func (m *CreateGCPEnvironmentRequest) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateGCPEnvironmentRequest) validateSecurityAccess(formats strfmt.Registry) error { if swag.IsZero(m.SecurityAccess) { // not required return nil @@ -376,6 +402,10 @@ func (m *CreateGCPEnvironmentRequest) ContextValidate(ctx context.Context, forma res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSecurityAccess(ctx, formats); err != nil { res = append(res, err) } @@ -470,6 +500,27 @@ func (m *CreateGCPEnvironmentRequest) contextValidateLogStorage(ctx context.Cont return nil } +func (m *CreateGCPEnvironmentRequest) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *CreateGCPEnvironmentRequest) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { diff --git a/cdp-sdk-go/gen/environments/models/environment.go b/cdp-sdk-go/gen/environments/models/environment.go index 172b0753..270fa13f 100644 --- a/cdp-sdk-go/gen/environments/models/environment.go +++ b/cdp-sdk-go/gen/environments/models/environment.go @@ -93,8 +93,11 @@ type Environment struct { // Required: true Region *string `json:"region"` - // When true, this will report additional diagnostic information back to Cloudera. - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] When true, this will report additional diagnostic information back to Cloudera. + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` + + // Security related configurations for Data Hub clusters. + Security *SecurityResponse `json:"security,omitempty"` // Security control for FreeIPA and Data Lake deployment. SecurityAccess *SecurityAccess `json:"securityAccess,omitempty"` @@ -199,6 +202,10 @@ func (m *Environment) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurity(formats); err != nil { + res = append(res, err) + } + if err := m.validateSecurityAccess(formats); err != nil { res = append(res, err) } @@ -527,6 +534,25 @@ func (m *Environment) validateRegion(formats strfmt.Registry) error { return nil } +func (m *Environment) validateSecurity(formats strfmt.Registry) error { + if swag.IsZero(m.Security) { // not required + return nil + } + + if m.Security != nil { + if err := m.Security.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *Environment) validateSecurityAccess(formats strfmt.Registry) error { if swag.IsZero(m.SecurityAccess) { // not required return nil @@ -647,6 +673,10 @@ func (m *Environment) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := m.contextValidateSecurity(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSecurityAccess(ctx, formats); err != nil { res = append(res, err) } @@ -930,6 +960,27 @@ func (m *Environment) contextValidateProxyConfig(ctx context.Context, formats st return nil } +func (m *Environment) contextValidateSecurity(ctx context.Context, formats strfmt.Registry) error { + + if m.Security != nil { + + if swag.IsZero(m.Security) { // not required + return nil + } + + if err := m.Security.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("security") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("security") + } + return err + } + } + + return nil +} + func (m *Environment) contextValidateSecurityAccess(ctx context.Context, formats strfmt.Registry) error { if m.SecurityAccess != nil { diff --git a/cdp-sdk-go/gen/environments/models/g_c_p_free_ipa_creation_request.go b/cdp-sdk-go/gen/environments/models/g_c_p_free_ipa_creation_request.go index fdc2e2b5..4dbc1cbc 100644 --- a/cdp-sdk-go/gen/environments/models/g_c_p_free_ipa_creation_request.go +++ b/cdp-sdk-go/gen/environments/models/g_c_p_free_ipa_creation_request.go @@ -23,6 +23,9 @@ type GCPFreeIpaCreationRequest struct { // Custom instance type of FreeIPA instances. InstanceType string `json:"instanceType,omitempty"` + // Flag that enables deployment of the FreeIPA in a multi-availability zone. + MultiAz *bool `json:"multiAz,omitempty"` + // The recipes for the FreeIPA cluster. Recipes []string `json:"recipes"` } 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 a656b283..9846fe79 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 @@ -19,8 +19,8 @@ import ( // swagger:model GetAccountTelemetryDefaultResponse type GetAccountTelemetryDefaultResponse struct { - // Flag to enable account level deployment log collection. (that will be used as a default for environment) - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] Flag to enable account level deployment log collection. (that will be used as a default for environment) + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // List of anonymization rules that are applied on logs that are shipped to Cloudera Rules []*AnonymizationRuleResponse `json:"rules"` 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 933e650b..4c1af358 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 @@ -19,8 +19,8 @@ import ( // swagger:model GetAccountTelemetryResponse type GetAccountTelemetryResponse struct { - // Flag to enable account level deployment log collection. (that will be used as a default for environment) - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] Flag to enable account level deployment log collection. (that will be used as a default for environment) + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // List of anonymization rules that are applied on logs that are shipped to Cloudera Rules []*AnonymizationRuleResponse `json:"rules"` diff --git a/cdp-sdk-go/gen/environments/models/get_operation_request.go b/cdp-sdk-go/gen/environments/models/get_operation_request.go index cda7ce77..99cdcff0 100644 --- a/cdp-sdk-go/gen/environments/models/get_operation_request.go +++ b/cdp-sdk-go/gen/environments/models/get_operation_request.go @@ -22,6 +22,9 @@ type GetOperationRequest struct { // Name of the environment resource. // Required: true EnvironmentName *string `json:"environmentName"` + + // Filter by operation id. + OperationID string `json:"operationId,omitempty"` } // Validate validates this get operation request diff --git a/cdp-sdk-go/gen/environments/models/get_operation_response.go b/cdp-sdk-go/gen/environments/models/get_operation_response.go index 3257da2b..3c50ea77 100644 --- a/cdp-sdk-go/gen/environments/models/get_operation_response.go +++ b/cdp-sdk-go/gen/environments/models/get_operation_response.go @@ -20,34 +20,59 @@ import ( // swagger:model GetOperationResponse type GetOperationResponse struct { + // End time of the operation. + // Format: date-time + Ended strfmt.DateTime `json:"ended,omitempty"` + // Identifier of the operation. OperationID string `json:"operationId,omitempty"` + // Name of the operation. + OperationName string `json:"operationName,omitempty"` + // Status of the operation. // Enum: ["UNKNOWN","RUNNING","FAILED","FINISHED","CANCELLED"] OperationStatus string `json:"operationStatus,omitempty"` - // Type of the operation. - OperationType string `json:"operationType,omitempty"` - - // Progress percentage of the operation. - Progress int32 `json:"progress,omitempty"` + // Start time of the operation. + // Format: date-time + Started strfmt.DateTime `json:"started,omitempty"` } // Validate validates this get operation response func (m *GetOperationResponse) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateEnded(formats); err != nil { + res = append(res, err) + } + if err := m.validateOperationStatus(formats); err != nil { res = append(res, err) } + if err := m.validateStarted(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } +func (m *GetOperationResponse) validateEnded(formats strfmt.Registry) error { + if swag.IsZero(m.Ended) { // not required + return nil + } + + if err := validate.FormatOf("ended", "body", "date-time", m.Ended.String(), formats); err != nil { + return err + } + + return nil +} + var getOperationResponseTypeOperationStatusPropEnum []interface{} func init() { @@ -99,6 +124,18 @@ func (m *GetOperationResponse) validateOperationStatus(formats strfmt.Registry) return nil } +func (m *GetOperationResponse) validateStarted(formats strfmt.Registry) error { + if swag.IsZero(m.Started) { // not required + return nil + } + + if err := validate.FormatOf("started", "body", "date-time", m.Started.String(), formats); err != nil { + return err + } + + return nil +} + // ContextValidate validates this get operation response based on context it is used func (m *GetOperationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil diff --git a/cdp-sdk-go/gen/environments/models/last_sync_status_response.go b/cdp-sdk-go/gen/environments/models/last_sync_status_response.go index 496a57d9..47e8f0f8 100644 --- a/cdp-sdk-go/gen/environments/models/last_sync_status_response.go +++ b/cdp-sdk-go/gen/environments/models/last_sync_status_response.go @@ -30,7 +30,7 @@ type LastSyncStatusResponse struct { // List of sync operation details for all failed environments. Failure []*SyncOperationDetails `json:"failure"` - // UUID of the request for this operation. This Id can be used for geting status on the operation. + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. // Required: true OperationID *string `json:"operationId"` diff --git a/cdp-sdk-go/gen/environments/models/retry_freeipa_response.go b/cdp-sdk-go/gen/environments/models/retry_freeipa_response.go index c1be1880..201730c1 100644 --- a/cdp-sdk-go/gen/environments/models/retry_freeipa_response.go +++ b/cdp-sdk-go/gen/environments/models/retry_freeipa_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RetryFreeipaResponse Response object for retry FreeIPA operation on an environment. // // swagger:model RetryFreeipaResponse -type RetryFreeipaResponse interface{} +type RetryFreeipaResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this retry freeipa response +func (m *RetryFreeipaResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this retry freeipa response based on context it is used +func (m *RetryFreeipaResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RetryFreeipaResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RetryFreeipaResponse) UnmarshalBinary(b []byte) error { + var res RetryFreeipaResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/rotate_freeipa_secrets_response.go b/cdp-sdk-go/gen/environments/models/rotate_freeipa_secrets_response.go index 464a63d3..9bef220b 100644 --- a/cdp-sdk-go/gen/environments/models/rotate_freeipa_secrets_response.go +++ b/cdp-sdk-go/gen/environments/models/rotate_freeipa_secrets_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // RotateFreeipaSecretsResponse Response object for rotating secrets. // // swagger:model RotateFreeipaSecretsResponse -type RotateFreeipaSecretsResponse interface{} +type RotateFreeipaSecretsResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate freeipa secrets response +func (m *RotateFreeipaSecretsResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate freeipa secrets response based on context it is used +func (m *RotateFreeipaSecretsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateFreeipaSecretsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateFreeipaSecretsResponse) UnmarshalBinary(b []byte) error { + var res RotateFreeipaSecretsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/rotate_salt_password_request.go b/cdp-sdk-go/gen/environments/models/rotate_salt_password_request.go index 94ca3ac7..5eae1af0 100644 --- a/cdp-sdk-go/gen/environments/models/rotate_salt_password_request.go +++ b/cdp-sdk-go/gen/environments/models/rotate_salt_password_request.go @@ -14,7 +14,7 @@ import ( "github.com/go-openapi/validate" ) -// RotateSaltPasswordRequest Request object for rotating SaltStack user password on FreeIPA instances. +// RotateSaltPasswordRequest Request object for rotating SaltStack user password on FreeIPA instances (Deprecated). // // swagger:model RotateSaltPasswordRequest type RotateSaltPasswordRequest struct { diff --git a/cdp-sdk-go/gen/environments/models/rotate_salt_password_response.go b/cdp-sdk-go/gen/environments/models/rotate_salt_password_response.go index 9cff2f14..8b1631b2 100644 --- a/cdp-sdk-go/gen/environments/models/rotate_salt_password_response.go +++ b/cdp-sdk-go/gen/environments/models/rotate_salt_password_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command -// RotateSaltPasswordResponse Response object for rotating SaltStack user password on FreeIPA instances. +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// RotateSaltPasswordResponse Response object for rotating SaltStack user password on FreeIPA instances (Deprecated). // // swagger:model RotateSaltPasswordResponse -type RotateSaltPasswordResponse interface{} +type RotateSaltPasswordResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this rotate salt password response +func (m *RotateSaltPasswordResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this rotate salt password response based on context it is used +func (m *RotateSaltPasswordResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *RotateSaltPasswordResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *RotateSaltPasswordResponse) UnmarshalBinary(b []byte) error { + var res RotateSaltPasswordResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/security_request.go b/cdp-sdk-go/gen/environments/models/security_request.go new file mode 100644 index 00000000..6b5c561a --- /dev/null +++ b/cdp-sdk-go/gen/environments/models/security_request.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// SecurityRequest Security related configuration for Data Hub cluster. +// +// swagger:model SecurityRequest +type SecurityRequest struct { + + // Override default SELinux configuration which is PERMISSIVE by default + // Enum: ["PERMISSIVE","ENFORCING"] + SeLinux string `json:"seLinux,omitempty"` +} + +// Validate validates this security request +func (m *SecurityRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var securityRequestTypeSeLinuxPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["PERMISSIVE","ENFORCING"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + securityRequestTypeSeLinuxPropEnum = append(securityRequestTypeSeLinuxPropEnum, v) + } +} + +const ( + + // SecurityRequestSeLinuxPERMISSIVE captures enum value "PERMISSIVE" + SecurityRequestSeLinuxPERMISSIVE string = "PERMISSIVE" + + // SecurityRequestSeLinuxENFORCING captures enum value "ENFORCING" + SecurityRequestSeLinuxENFORCING string = "ENFORCING" +) + +// prop value enum +func (m *SecurityRequest) validateSeLinuxEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, securityRequestTypeSeLinuxPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *SecurityRequest) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + // value enum + if err := m.validateSeLinuxEnum("seLinux", "body", m.SeLinux); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this security request based on context it is used +func (m *SecurityRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityRequest) UnmarshalBinary(b []byte) error { + var res SecurityRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/security_response.go b/cdp-sdk-go/gen/environments/models/security_response.go new file mode 100644 index 00000000..b023cf70 --- /dev/null +++ b/cdp-sdk-go/gen/environments/models/security_response.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// SecurityResponse Security related configuration for Data Hub cluster. +// +// swagger:model SecurityResponse +type SecurityResponse struct { + + // Override default SELinux configuration which is PERMISSIVE by default + // Enum: ["PERMISSIVE","ENFORCING"] + SeLinux string `json:"seLinux,omitempty"` +} + +// Validate validates this security response +func (m *SecurityResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var securityResponseTypeSeLinuxPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["PERMISSIVE","ENFORCING"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + securityResponseTypeSeLinuxPropEnum = append(securityResponseTypeSeLinuxPropEnum, v) + } +} + +const ( + + // SecurityResponseSeLinuxPERMISSIVE captures enum value "PERMISSIVE" + SecurityResponseSeLinuxPERMISSIVE string = "PERMISSIVE" + + // SecurityResponseSeLinuxENFORCING captures enum value "ENFORCING" + SecurityResponseSeLinuxENFORCING string = "ENFORCING" +) + +// prop value enum +func (m *SecurityResponse) validateSeLinuxEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, securityResponseTypeSeLinuxPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *SecurityResponse) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + // value enum + if err := m.validateSeLinuxEnum("seLinux", "body", m.SeLinux); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this security response based on context it is used +func (m *SecurityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityResponse) UnmarshalBinary(b []byte) error { + var res SecurityResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 4774c38d..63f95100 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 @@ -19,8 +19,8 @@ import ( // swagger:model SetAccountTelemetryRequest type SetAccountTelemetryRequest struct { - // Flag to enable account level deployment log collection. (that will be used as a default for environment) - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] Flag to enable environment level deployment log collection. + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // List of anonymization rules that are applied on logs that are shipped to Cloudera Rules []*AnonymizationRuleRequest `json:"rules"` 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 a86ed45c..c4d22765 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 @@ -19,8 +19,8 @@ import ( // swagger:model SetAccountTelemetryResponse type SetAccountTelemetryResponse struct { - // Flag to enable account level deployment log collection. (that will be used as a default for environment) - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] Flag to enable account level deployment log collection. (that will be used as a default for environment) + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // List of anonymization rules that are applied on logs that are shipped to Cloudera Rules []*AnonymizationRuleResponse `json:"rules"` diff --git a/cdp-sdk-go/gen/environments/models/set_endpoint_access_gateway_response.go b/cdp-sdk-go/gen/environments/models/set_endpoint_access_gateway_response.go index 63e2efe6..2b0d619f 100644 --- a/cdp-sdk-go/gen/environments/models/set_endpoint_access_gateway_response.go +++ b/cdp-sdk-go/gen/environments/models/set_endpoint_access_gateway_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // SetEndpointAccessGatewayResponse Response object for set endpoint access gateway request. // // swagger:model SetEndpointAccessGatewayResponse -type SetEndpointAccessGatewayResponse interface{} +type SetEndpointAccessGatewayResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this set endpoint access gateway response +func (m *SetEndpointAccessGatewayResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this set endpoint access gateway response based on context it is used +func (m *SetEndpointAccessGatewayResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SetEndpointAccessGatewayResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SetEndpointAccessGatewayResponse) UnmarshalBinary(b []byte) error { + var res SetEndpointAccessGatewayResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 30a1465a..2646aca6 100644 --- a/cdp-sdk-go/gen/environments/models/set_password_response.go +++ b/cdp-sdk-go/gen/environments/models/set_password_response.go @@ -29,7 +29,7 @@ type SetPasswordResponse struct { // List of sync operation details for all failed envs. Failure []*SyncOperationDetails `json:"failure"` - // UUID of the request for this operation. This Id can be used for geting status on the operation. + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. // Required: true OperationID *string `json:"operationId"` diff --git a/cdp-sdk-go/gen/environments/models/set_telemetry_features_request.go b/cdp-sdk-go/gen/environments/models/set_telemetry_features_request.go index 574a616a..6397fbba 100644 --- a/cdp-sdk-go/gen/environments/models/set_telemetry_features_request.go +++ b/cdp-sdk-go/gen/environments/models/set_telemetry_features_request.go @@ -23,8 +23,8 @@ type SetTelemetryFeaturesRequest struct { // Required: true EnvironmentName *string `json:"environmentName"` - // Flag to enable environment level deployment log collection. - ReportDeploymentLogs bool `json:"reportDeploymentLogs,omitempty"` + // [Deprecated] Flag to enable environment level deployment log collection. + ReportDeploymentLogs *bool `json:"reportDeploymentLogs,omitempty"` // Flag to enable environment level workload analytics. WorkloadAnalytics bool `json:"workloadAnalytics,omitempty"` diff --git a/cdp-sdk-go/gen/environments/models/start_environment_response.go b/cdp-sdk-go/gen/environments/models/start_environment_response.go index 74554f44..98d1b736 100644 --- a/cdp-sdk-go/gen/environments/models/start_environment_response.go +++ b/cdp-sdk-go/gen/environments/models/start_environment_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // StartEnvironmentResponse Response object for a start environment request. // // swagger:model StartEnvironmentResponse -type StartEnvironmentResponse interface{} +type StartEnvironmentResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this start environment response +func (m *StartEnvironmentResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this start environment response based on context it is used +func (m *StartEnvironmentResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *StartEnvironmentResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *StartEnvironmentResponse) UnmarshalBinary(b []byte) error { + var res StartEnvironmentResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_response.go b/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_response.go index 9e924bcb..7c6e7e00 100644 --- a/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_response.go +++ b/cdp-sdk-go/gen/environments/models/start_free_ipa_vertical_scaling_response.go @@ -17,6 +17,9 @@ import ( // swagger:model StartFreeIpaVerticalScalingResponse type StartFreeIpaVerticalScalingResponse struct { + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` + // The result of the operation. Result string `json:"result,omitempty"` } diff --git a/cdp-sdk-go/gen/environments/models/stop_environment_response.go b/cdp-sdk-go/gen/environments/models/stop_environment_response.go index 6c5d79ef..8f5bb5b6 100644 --- a/cdp-sdk-go/gen/environments/models/stop_environment_response.go +++ b/cdp-sdk-go/gen/environments/models/stop_environment_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // StopEnvironmentResponse Response object for a stop environment request. // // swagger:model StopEnvironmentResponse -type StopEnvironmentResponse interface{} +type StopEnvironmentResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this stop environment response +func (m *StopEnvironmentResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this stop environment response based on context it is used +func (m *StopEnvironmentResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *StopEnvironmentResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *StopEnvironmentResponse) UnmarshalBinary(b []byte) error { + var res StopEnvironmentResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 90cfd5b6..be5413be 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 @@ -29,7 +29,7 @@ type SyncAllUsersResponse struct { // List of sync operation details for all failed envs. Failure []*SyncOperationDetails `json:"failure"` - // UUID of the request for this operation. This Id can be used for geting status on the operation. + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. // Required: true OperationID *string `json:"operationId"` 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 9a11f91e..18afac8e 100644 --- a/cdp-sdk-go/gen/environments/models/sync_status_response.go +++ b/cdp-sdk-go/gen/environments/models/sync_status_response.go @@ -29,7 +29,7 @@ type SyncStatusResponse struct { // List of sync operation details for all failed envs. Failure []*SyncOperationDetails `json:"failure"` - // UUID of the request for this operation. This Id can be used for geting status on the operation. + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. // Required: true OperationID *string `json:"operationId"` 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 c4ec5b6f..d783436e 100644 --- a/cdp-sdk-go/gen/environments/models/sync_user_response.go +++ b/cdp-sdk-go/gen/environments/models/sync_user_response.go @@ -29,7 +29,7 @@ type SyncUserResponse struct { // List of sync operation details for all failed envs. Failure []*SyncOperationDetails `json:"failure"` - // UUID of the request for this operation. This Id can be used for geting status on the operation. + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. // Required: true OperationID *string `json:"operationId"` diff --git a/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_request.go b/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_request.go index d6f5e463..77e51f5b 100644 --- a/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_request.go +++ b/cdp-sdk-go/gen/environments/models/update_azure_encryption_resources_request.go @@ -32,9 +32,6 @@ type UpdateAzureEncryptionResourcesRequest struct { // The name or CRN of the environment. // Required: true Environment *string `json:"environment"` - - // User managed identity for encryption. (deprecated) - UserManagedIdentity string `json:"userManagedIdentity,omitempty"` } // Validate validates this update azure encryption resources request diff --git a/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v1_response.go b/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v1_response.go index 9e492707..8f6ba3cc 100644 --- a/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v1_response.go +++ b/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v1_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateFreeipaToAwsImdsV1Response Response object for updating corresponding FreeIPA of the given environment to AWS IMDSv1. // // swagger:model UpdateFreeipaToAwsImdsV1Response -type UpdateFreeipaToAwsImdsV1Response interface{} +type UpdateFreeipaToAwsImdsV1Response struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update freeipa to aws imds v1 response +func (m *UpdateFreeipaToAwsImdsV1Response) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update freeipa to aws imds v1 response based on context it is used +func (m *UpdateFreeipaToAwsImdsV1Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateFreeipaToAwsImdsV1Response) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateFreeipaToAwsImdsV1Response) UnmarshalBinary(b []byte) error { + var res UpdateFreeipaToAwsImdsV1Response + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v2_response.go b/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v2_response.go index f4d5153d..58895ff1 100644 --- a/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v2_response.go +++ b/cdp-sdk-go/gen/environments/models/update_freeipa_to_aws_imds_v2_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateFreeipaToAwsImdsV2Response Response object for updating corresponding FreeIPA of the given environment to AWS IMDSv2. // // swagger:model UpdateFreeipaToAwsImdsV2Response -type UpdateFreeipaToAwsImdsV2Response interface{} +type UpdateFreeipaToAwsImdsV2Response struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update freeipa to aws imds v2 response +func (m *UpdateFreeipaToAwsImdsV2Response) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update freeipa to aws imds v2 response based on context it is used +func (m *UpdateFreeipaToAwsImdsV2Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateFreeipaToAwsImdsV2Response) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateFreeipaToAwsImdsV2Response) UnmarshalBinary(b []byte) error { + var res UpdateFreeipaToAwsImdsV2Response + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/update_gcp_availability_zones_request.go b/cdp-sdk-go/gen/environments/models/update_gcp_availability_zones_request.go new file mode 100644 index 00000000..0f9b08e1 --- /dev/null +++ b/cdp-sdk-go/gen/environments/models/update_gcp_availability_zones_request.go @@ -0,0 +1,88 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// UpdateGcpAvailabilityZonesRequest Request object to update Availability Zones for GCP environment. +// +// swagger:model UpdateGcpAvailabilityZonesRequest +type UpdateGcpAvailabilityZonesRequest struct { + + // List of availability zones for the environment. + // Required: true + AvailabilityZones []string `json:"availabilityZones"` + + // The name or CRN of the environment. + // Required: true + Environment *string `json:"environment"` +} + +// Validate validates this update gcp availability zones request +func (m *UpdateGcpAvailabilityZonesRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateAvailabilityZones(formats); err != nil { + res = append(res, err) + } + + if err := m.validateEnvironment(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *UpdateGcpAvailabilityZonesRequest) validateAvailabilityZones(formats strfmt.Registry) error { + + if err := validate.Required("availabilityZones", "body", m.AvailabilityZones); err != nil { + return err + } + + return nil +} + +func (m *UpdateGcpAvailabilityZonesRequest) validateEnvironment(formats strfmt.Registry) error { + + if err := validate.Required("environment", "body", m.Environment); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this update gcp availability zones request based on context it is used +func (m *UpdateGcpAvailabilityZonesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateGcpAvailabilityZonesRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateGcpAvailabilityZonesRequest) UnmarshalBinary(b []byte) error { + var res UpdateGcpAvailabilityZonesRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/update_gcp_availability_zones_response.go b/cdp-sdk-go/gen/environments/models/update_gcp_availability_zones_response.go new file mode 100644 index 00000000..7791e833 --- /dev/null +++ b/cdp-sdk-go/gen/environments/models/update_gcp_availability_zones_response.go @@ -0,0 +1,108 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// UpdateGcpAvailabilityZonesResponse Response object for a update GCP Availability Zones request. +// +// swagger:model UpdateGcpAvailabilityZonesResponse +type UpdateGcpAvailabilityZonesResponse struct { + + // The environment summary. + // Required: true + Environment *Environment `json:"environment"` +} + +// Validate validates this update gcp availability zones response +func (m *UpdateGcpAvailabilityZonesResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateEnvironment(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *UpdateGcpAvailabilityZonesResponse) validateEnvironment(formats strfmt.Registry) error { + + if err := validate.Required("environment", "body", m.Environment); err != nil { + return err + } + + if m.Environment != nil { + if err := m.Environment.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("environment") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environment") + } + return err + } + } + + return nil +} + +// ContextValidate validate this update gcp availability zones response based on the context it is used +func (m *UpdateGcpAvailabilityZonesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateEnvironment(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *UpdateGcpAvailabilityZonesResponse) 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") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environment") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateGcpAvailabilityZonesResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateGcpAvailabilityZonesResponse) UnmarshalBinary(b []byte) error { + var res UpdateGcpAvailabilityZonesResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/update_orchestrator_state_response.go b/cdp-sdk-go/gen/environments/models/update_orchestrator_state_response.go index 40f9ba56..432c612e 100644 --- a/cdp-sdk-go/gen/environments/models/update_orchestrator_state_response.go +++ b/cdp-sdk-go/gen/environments/models/update_orchestrator_state_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpdateOrchestratorStateResponse Response object for running orchestrator engine state update on the FreeIPA cluster. // // swagger:model UpdateOrchestratorStateResponse -type UpdateOrchestratorStateResponse interface{} +type UpdateOrchestratorStateResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this update orchestrator state response +func (m *UpdateOrchestratorStateResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this update orchestrator state response based on context it is used +func (m *UpdateOrchestratorStateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpdateOrchestratorStateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpdateOrchestratorStateResponse) UnmarshalBinary(b []byte) error { + var res UpdateOrchestratorStateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/environments/models/upgrade_ccm_response.go b/cdp-sdk-go/gen/environments/models/upgrade_ccm_response.go index 01bf9a13..69b1ad48 100644 --- a/cdp-sdk-go/gen/environments/models/upgrade_ccm_response.go +++ b/cdp-sdk-go/gen/environments/models/upgrade_ccm_response.go @@ -5,7 +5,46 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + // UpgradeCcmResponse Response object for upgrading Cluster Connectivity Manager request on an environment. // // swagger:model UpgradeCcmResponse -type UpgradeCcmResponse interface{} +type UpgradeCcmResponse struct { + + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. + OperationID string `json:"operationId,omitempty"` +} + +// Validate validates this upgrade ccm response +func (m *UpgradeCcmResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this upgrade ccm response based on context it is used +func (m *UpgradeCcmResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *UpgradeCcmResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *UpgradeCcmResponse) UnmarshalBinary(b []byte) error { + var res UpgradeCcmResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} 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 c373b7df..f1c4ea9c 100644 --- a/cdp-sdk-go/gen/environments/models/upgrade_freeipa_response.go +++ b/cdp-sdk-go/gen/environments/models/upgrade_freeipa_response.go @@ -18,7 +18,7 @@ import ( // swagger:model UpgradeFreeipaResponse type UpgradeFreeipaResponse struct { - // UUID of the request for this operation. This ID can be used for geting status on the operation. + // Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. OperationID string `json:"operationId,omitempty"` // Original, current image. diff --git a/cdp-sdk-go/gen/environments/models/upscale_freeipa_request.go b/cdp-sdk-go/gen/environments/models/upscale_freeipa_request.go index b668d8fd..b238b623 100644 --- a/cdp-sdk-go/gen/environments/models/upscale_freeipa_request.go +++ b/cdp-sdk-go/gen/environments/models/upscale_freeipa_request.go @@ -26,7 +26,7 @@ type UpscaleFreeipaRequest struct { // The target FreeIPA availability type. // Required: true - // Enum: ["HA"] + // Enum: ["TWO_NODE_BASED","HA"] TargetAvailabilityType *string `json:"targetAvailabilityType"` } @@ -61,7 +61,7 @@ var upscaleFreeipaRequestTypeTargetAvailabilityTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["HA"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["TWO_NODE_BASED","HA"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -71,6 +71,9 @@ func init() { const ( + // UpscaleFreeipaRequestTargetAvailabilityTypeTWONODEBASED captures enum value "TWO_NODE_BASED" + UpscaleFreeipaRequestTargetAvailabilityTypeTWONODEBASED string = "TWO_NODE_BASED" + // UpscaleFreeipaRequestTargetAvailabilityTypeHA captures enum value "HA" UpscaleFreeipaRequestTargetAvailabilityTypeHA string = "HA" ) diff --git a/cdp-sdk-go/gen/iam/client/operations/migrate_users_to_identity_provider_parameters.go b/cdp-sdk-go/gen/iam/client/operations/migrate_users_to_identity_provider_parameters.go new file mode 100644 index 00000000..22de0486 --- /dev/null +++ b/cdp-sdk-go/gen/iam/client/operations/migrate_users_to_identity_provider_parameters.go @@ -0,0 +1,150 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/iam/models" +) + +// NewMigrateUsersToIdentityProviderParams creates a new MigrateUsersToIdentityProviderParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewMigrateUsersToIdentityProviderParams() *MigrateUsersToIdentityProviderParams { + return &MigrateUsersToIdentityProviderParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewMigrateUsersToIdentityProviderParamsWithTimeout creates a new MigrateUsersToIdentityProviderParams object +// with the ability to set a timeout on a request. +func NewMigrateUsersToIdentityProviderParamsWithTimeout(timeout time.Duration) *MigrateUsersToIdentityProviderParams { + return &MigrateUsersToIdentityProviderParams{ + timeout: timeout, + } +} + +// NewMigrateUsersToIdentityProviderParamsWithContext creates a new MigrateUsersToIdentityProviderParams object +// with the ability to set a context for a request. +func NewMigrateUsersToIdentityProviderParamsWithContext(ctx context.Context) *MigrateUsersToIdentityProviderParams { + return &MigrateUsersToIdentityProviderParams{ + Context: ctx, + } +} + +// NewMigrateUsersToIdentityProviderParamsWithHTTPClient creates a new MigrateUsersToIdentityProviderParams object +// with the ability to set a custom HTTPClient for a request. +func NewMigrateUsersToIdentityProviderParamsWithHTTPClient(client *http.Client) *MigrateUsersToIdentityProviderParams { + return &MigrateUsersToIdentityProviderParams{ + HTTPClient: client, + } +} + +/* +MigrateUsersToIdentityProviderParams contains all the parameters to send to the API endpoint + + for the migrate users to identity provider operation. + + Typically these are written to a http.Request. +*/ +type MigrateUsersToIdentityProviderParams struct { + + // Input. + Input *models.MigrateUsersToIdentityProviderRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the migrate users to identity provider params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *MigrateUsersToIdentityProviderParams) WithDefaults() *MigrateUsersToIdentityProviderParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the migrate users to identity provider params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *MigrateUsersToIdentityProviderParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) WithTimeout(timeout time.Duration) *MigrateUsersToIdentityProviderParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) WithContext(ctx context.Context) *MigrateUsersToIdentityProviderParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) WithHTTPClient(client *http.Client) *MigrateUsersToIdentityProviderParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithInput adds the input to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) WithInput(input *models.MigrateUsersToIdentityProviderRequest) *MigrateUsersToIdentityProviderParams { + o.SetInput(input) + return o +} + +// SetInput adds the input to the migrate users to identity provider params +func (o *MigrateUsersToIdentityProviderParams) SetInput(input *models.MigrateUsersToIdentityProviderRequest) { + o.Input = input +} + +// WriteToRequest writes these params to a swagger request +func (o *MigrateUsersToIdentityProviderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Input != nil { + if err := r.SetBodyParam(o.Input); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/cdp-sdk-go/gen/iam/client/operations/migrate_users_to_identity_provider_responses.go b/cdp-sdk-go/gen/iam/client/operations/migrate_users_to_identity_provider_responses.go new file mode 100644 index 00000000..dc436656 --- /dev/null +++ b/cdp-sdk-go/gen/iam/client/operations/migrate_users_to_identity_provider_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/iam/models" +) + +// MigrateUsersToIdentityProviderReader is a Reader for the MigrateUsersToIdentityProvider structure. +type MigrateUsersToIdentityProviderReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *MigrateUsersToIdentityProviderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewMigrateUsersToIdentityProviderOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewMigrateUsersToIdentityProviderDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewMigrateUsersToIdentityProviderOK creates a MigrateUsersToIdentityProviderOK with default headers values +func NewMigrateUsersToIdentityProviderOK() *MigrateUsersToIdentityProviderOK { + return &MigrateUsersToIdentityProviderOK{} +} + +/* +MigrateUsersToIdentityProviderOK describes a response with status code 200, with default header values. + +Expected response to a valid request. +*/ +type MigrateUsersToIdentityProviderOK struct { + Payload *models.MigrateUsersToIdentityProviderResponse +} + +// IsSuccess returns true when this migrate users to identity provider o k response has a 2xx status code +func (o *MigrateUsersToIdentityProviderOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this migrate users to identity provider o k response has a 3xx status code +func (o *MigrateUsersToIdentityProviderOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this migrate users to identity provider o k response has a 4xx status code +func (o *MigrateUsersToIdentityProviderOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this migrate users to identity provider o k response has a 5xx status code +func (o *MigrateUsersToIdentityProviderOK) IsServerError() bool { + return false +} + +// IsCode returns true when this migrate users to identity provider o k response a status code equal to that given +func (o *MigrateUsersToIdentityProviderOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the migrate users to identity provider o k response +func (o *MigrateUsersToIdentityProviderOK) Code() int { + return 200 +} + +func (o *MigrateUsersToIdentityProviderOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /iam/migrateUsersToIdentityProvider][%d] migrateUsersToIdentityProviderOK %s", 200, payload) +} + +func (o *MigrateUsersToIdentityProviderOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /iam/migrateUsersToIdentityProvider][%d] migrateUsersToIdentityProviderOK %s", 200, payload) +} + +func (o *MigrateUsersToIdentityProviderOK) GetPayload() *models.MigrateUsersToIdentityProviderResponse { + return o.Payload +} + +func (o *MigrateUsersToIdentityProviderOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.MigrateUsersToIdentityProviderResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewMigrateUsersToIdentityProviderDefault creates a MigrateUsersToIdentityProviderDefault with default headers values +func NewMigrateUsersToIdentityProviderDefault(code int) *MigrateUsersToIdentityProviderDefault { + return &MigrateUsersToIdentityProviderDefault{ + _statusCode: code, + } +} + +/* +MigrateUsersToIdentityProviderDefault describes a response with status code -1, with default header values. + +The default response on an error. +*/ +type MigrateUsersToIdentityProviderDefault struct { + _statusCode int + + Payload *models.Error +} + +// IsSuccess returns true when this migrate users to identity provider default response has a 2xx status code +func (o *MigrateUsersToIdentityProviderDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this migrate users to identity provider default response has a 3xx status code +func (o *MigrateUsersToIdentityProviderDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this migrate users to identity provider default response has a 4xx status code +func (o *MigrateUsersToIdentityProviderDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this migrate users to identity provider default response has a 5xx status code +func (o *MigrateUsersToIdentityProviderDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this migrate users to identity provider default response a status code equal to that given +func (o *MigrateUsersToIdentityProviderDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the migrate users to identity provider default response +func (o *MigrateUsersToIdentityProviderDefault) Code() int { + return o._statusCode +} + +func (o *MigrateUsersToIdentityProviderDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /iam/migrateUsersToIdentityProvider][%d] migrateUsersToIdentityProvider default %s", o._statusCode, payload) +} + +func (o *MigrateUsersToIdentityProviderDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /iam/migrateUsersToIdentityProvider][%d] migrateUsersToIdentityProvider default %s", o._statusCode, payload) +} + +func (o *MigrateUsersToIdentityProviderDefault) GetPayload() *models.Error { + return o.Payload +} + +func (o *MigrateUsersToIdentityProviderDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/cdp-sdk-go/gen/iam/client/operations/operations_client.go b/cdp-sdk-go/gen/iam/client/operations/operations_client.go index 77cb8ce0..8977b341 100644 --- a/cdp-sdk-go/gen/iam/client/operations/operations_client.go +++ b/cdp-sdk-go/gen/iam/client/operations/operations_client.go @@ -164,6 +164,8 @@ type ClientService interface { ListUsers(params *ListUsersParams, opts ...ClientOption) (*ListUsersOK, error) + MigrateUsersToIdentityProvider(params *MigrateUsersToIdentityProviderParams, opts ...ClientOption) (*MigrateUsersToIdentityProviderOK, error) + RemoveMachineUserFromGroup(params *RemoveMachineUserFromGroupParams, opts ...ClientOption) (*RemoveMachineUserFromGroupOK, error) RemoveUserFromGroup(params *RemoveUserFromGroupParams, opts ...ClientOption) (*RemoveUserFromGroupOK, error) @@ -2358,6 +2360,45 @@ func (a *Client) ListUsers(params *ListUsersParams, opts ...ClientOption) (*List return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +MigrateUsersToIdentityProvider migrates all users from an identity provider connector to a different identity provider connector + +Allow existing users to be associated with a different identity provider connector. It is required that the identity provider user ID for each user be the same in both identity providers. This is expected to be used for migration from LDAP authentication to SAML authentication for the same physical IdP. A new SAML connector would be created in CDP, integrated with the same IdP as the original LDAP connector. First the LDAP mapping would be set to use the planned SAML name id mapping. Then this method can switch users created via LDAP login to be associated with the SAML connector and enable SAML authentication instead of LDAP authentication. +*/ +func (a *Client) MigrateUsersToIdentityProvider(params *MigrateUsersToIdentityProviderParams, opts ...ClientOption) (*MigrateUsersToIdentityProviderOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewMigrateUsersToIdentityProviderParams() + } + op := &runtime.ClientOperation{ + ID: "migrateUsersToIdentityProvider", + Method: "POST", + PathPattern: "/iam/migrateUsersToIdentityProvider", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &MigrateUsersToIdentityProviderReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*MigrateUsersToIdentityProviderOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*MigrateUsersToIdentityProviderDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* RemoveMachineUserFromGroup removes a machine user from a group diff --git a/cdp-sdk-go/gen/iam/models/migrate_users_to_identity_provider_request.go b/cdp-sdk-go/gen/iam/models/migrate_users_to_identity_provider_request.go new file mode 100644 index 00000000..7d586e6a --- /dev/null +++ b/cdp-sdk-go/gen/iam/models/migrate_users_to_identity_provider_request.go @@ -0,0 +1,88 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// MigrateUsersToIdentityProviderRequest Request object for migrating users from an Identity Provider Connector to a new one. +// +// swagger:model MigrateUsersToIdentityProviderRequest +type MigrateUsersToIdentityProviderRequest struct { + + // The name or CRN of the new IdP provider to migrate to. + // Required: true + NewProviderName *string `json:"newProviderName"` + + // The name or CRN of the original IdP provider to migrate from. + // Required: true + OriginalProviderName *string `json:"originalProviderName"` +} + +// Validate validates this migrate users to identity provider request +func (m *MigrateUsersToIdentityProviderRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateNewProviderName(formats); err != nil { + res = append(res, err) + } + + if err := m.validateOriginalProviderName(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *MigrateUsersToIdentityProviderRequest) validateNewProviderName(formats strfmt.Registry) error { + + if err := validate.Required("newProviderName", "body", m.NewProviderName); err != nil { + return err + } + + return nil +} + +func (m *MigrateUsersToIdentityProviderRequest) validateOriginalProviderName(formats strfmt.Registry) error { + + if err := validate.Required("originalProviderName", "body", m.OriginalProviderName); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this migrate users to identity provider request based on context it is used +func (m *MigrateUsersToIdentityProviderRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *MigrateUsersToIdentityProviderRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *MigrateUsersToIdentityProviderRequest) UnmarshalBinary(b []byte) error { + var res MigrateUsersToIdentityProviderRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/iam/models/migrate_users_to_identity_provider_response.go b/cdp-sdk-go/gen/iam/models/migrate_users_to_identity_provider_response.go new file mode 100644 index 00000000..38493b31 --- /dev/null +++ b/cdp-sdk-go/gen/iam/models/migrate_users_to_identity_provider_response.go @@ -0,0 +1,71 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// MigrateUsersToIdentityProviderResponse Response object for migrating users from old Identity Provider Connector to a new one. +// +// swagger:model MigrateUsersToIdentityProviderResponse +type MigrateUsersToIdentityProviderResponse struct { + + // The number of users that were migrated from the old IdP to the new one. + // Required: true + NumberOfUpdatedUsers *int32 `json:"numberOfUpdatedUsers"` +} + +// Validate validates this migrate users to identity provider response +func (m *MigrateUsersToIdentityProviderResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateNumberOfUpdatedUsers(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *MigrateUsersToIdentityProviderResponse) validateNumberOfUpdatedUsers(formats strfmt.Registry) error { + + if err := validate.Required("numberOfUpdatedUsers", "body", m.NumberOfUpdatedUsers); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this migrate users to identity provider response based on context it is used +func (m *MigrateUsersToIdentityProviderResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *MigrateUsersToIdentityProviderResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *MigrateUsersToIdentityProviderResponse) UnmarshalBinary(b []byte) error { + var res MigrateUsersToIdentityProviderResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/ml/models/create_model_registry_request.go b/cdp-sdk-go/gen/ml/models/create_model_registry_request.go index ae896028..7f5fcae2 100644 --- a/cdp-sdk-go/gen/ml/models/create_model_registry_request.go +++ b/cdp-sdk-go/gen/ml/models/create_model_registry_request.go @@ -67,7 +67,7 @@ type CreateModelRegistryRequest struct { // The boolean flag to request a public load balancer. By default, a private load balancer is used. UsePublicLoadBalancer bool `json:"usePublicLoadBalancer,omitempty"` - // Whether to whitelist only authorizedIPRanges given or all public IPs + // Whether to whitelist only authorizedIPRanges given or all public IPs. WhitelistAuthorizedIPRanges bool `json:"whitelistAuthorizedIPRanges,omitempty"` } 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 20f71f49..8cfeb918 100644 --- a/cdp-sdk-go/gen/ml/models/create_workspace_request.go +++ b/cdp-sdk-go/gen/ml/models/create_workspace_request.go @@ -63,6 +63,9 @@ type CreateWorkspaceRequest struct { // The request for Kubernetes workbench provision. Required in public cloud. ProvisionK8sRequest *ProvisionK8sRequest `json:"provisionK8sRequest,omitempty"` + // The resource pool configuration for quota management. + ResourcePoolConfig *ResourcePoolConfig `json:"resourcePoolConfig,omitempty"` + // Skip pre-flight validations if requested. SkipValidation bool `json:"skipValidation,omitempty"` @@ -103,6 +106,10 @@ func (m *CreateWorkspaceRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateResourcePoolConfig(formats); err != nil { + res = append(res, err) + } + if err := m.validateWorkspaceName(formats); err != nil { res = append(res, err) } @@ -181,6 +188,25 @@ func (m *CreateWorkspaceRequest) validateProvisionK8sRequest(formats strfmt.Regi return nil } +func (m *CreateWorkspaceRequest) validateResourcePoolConfig(formats strfmt.Registry) error { + if swag.IsZero(m.ResourcePoolConfig) { // not required + return nil + } + + if m.ResourcePoolConfig != nil { + if err := m.ResourcePoolConfig.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("resourcePoolConfig") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resourcePoolConfig") + } + return err + } + } + + return nil +} + func (m *CreateWorkspaceRequest) validateWorkspaceName(formats strfmt.Registry) error { if err := validate.Required("workspaceName", "body", m.WorkspaceName); err != nil { @@ -206,6 +232,10 @@ func (m *CreateWorkspaceRequest) ContextValidate(ctx context.Context, formats st res = append(res, err) } + if err := m.contextValidateResourcePoolConfig(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -276,6 +306,27 @@ func (m *CreateWorkspaceRequest) contextValidateProvisionK8sRequest(ctx context. return nil } +func (m *CreateWorkspaceRequest) contextValidateResourcePoolConfig(ctx context.Context, formats strfmt.Registry) error { + + if m.ResourcePoolConfig != nil { + + if swag.IsZero(m.ResourcePoolConfig) { // not required + return nil + } + + if err := m.ResourcePoolConfig.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("resourcePoolConfig") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("resourcePoolConfig") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *CreateWorkspaceRequest) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/cdp-sdk-go/gen/ml/models/delete_ml_serving_app_request.go b/cdp-sdk-go/gen/ml/models/delete_ml_serving_app_request.go index 46848bb3..0a8977a9 100644 --- a/cdp-sdk-go/gen/ml/models/delete_ml_serving_app_request.go +++ b/cdp-sdk-go/gen/ml/models/delete_ml_serving_app_request.go @@ -22,6 +22,9 @@ type DeleteMlServingAppRequest struct { // The CRN of the Cloudera AI Inference Service to be deleted. // Required: true AppCrn *string `json:"appCrn"` + + // Forcefully deletes the Cloudera AI Inference service, bypassing any errors encountered during the deletion process. Please note that using force delete removes the assurance that resources in your cloud account will be properly cleaned up. By default, force is set to false. + Force bool `json:"force,omitempty"` } // Validate validates this delete ml serving app request diff --git a/cdp-sdk-go/gen/ml/models/quota_config.go b/cdp-sdk-go/gen/ml/models/quota_config.go new file mode 100644 index 00000000..521d8bba --- /dev/null +++ b/cdp-sdk-go/gen/ml/models/quota_config.go @@ -0,0 +1,91 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// QuotaConfig Quota configuration for quota management. +// +// swagger:model QuotaConfig +type QuotaConfig struct { + + // The quota for CPU resource. + // Required: true + CPUQuota *string `json:"cpuQuota"` + + // The quota for gpu resource. + GpuQuota string `json:"gpuQuota,omitempty"` + + // The quota for memory resource. + // Required: true + MemoryQuota *string `json:"memoryQuota"` +} + +// Validate validates this quota config +func (m *QuotaConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCPUQuota(formats); err != nil { + res = append(res, err) + } + + if err := m.validateMemoryQuota(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *QuotaConfig) validateCPUQuota(formats strfmt.Registry) error { + + if err := validate.Required("cpuQuota", "body", m.CPUQuota); err != nil { + return err + } + + return nil +} + +func (m *QuotaConfig) validateMemoryQuota(formats strfmt.Registry) error { + + if err := validate.Required("memoryQuota", "body", m.MemoryQuota); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this quota config based on context it is used +func (m *QuotaConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *QuotaConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *QuotaConfig) UnmarshalBinary(b []byte) error { + var res QuotaConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/ml/models/resource_pool_config.go b/cdp-sdk-go/gen/ml/models/resource_pool_config.go new file mode 100644 index 00000000..f19ba3b8 --- /dev/null +++ b/cdp-sdk-go/gen/ml/models/resource_pool_config.go @@ -0,0 +1,112 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResourcePoolConfig Resource pool configuration for quota management. +// +// swagger:model ResourcePoolConfig +type ResourcePoolConfig struct { + + // The name of the parent resource pool. + ParentPoolName string `json:"parentPoolName,omitempty"` + + // The resource quota. + WorkspaceQuota *QuotaConfig `json:"workspaceQuota,omitempty"` +} + +// Validate validates this resource pool config +func (m *ResourcePoolConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateWorkspaceQuota(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResourcePoolConfig) validateWorkspaceQuota(formats strfmt.Registry) error { + if swag.IsZero(m.WorkspaceQuota) { // not required + return nil + } + + if m.WorkspaceQuota != nil { + if err := m.WorkspaceQuota.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("workspaceQuota") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("workspaceQuota") + } + return err + } + } + + return nil +} + +// ContextValidate validate this resource pool config based on the context it is used +func (m *ResourcePoolConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateWorkspaceQuota(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResourcePoolConfig) contextValidateWorkspaceQuota(ctx context.Context, formats strfmt.Registry) error { + + if m.WorkspaceQuota != nil { + + if swag.IsZero(m.WorkspaceQuota) { // not required + return nil + } + + if err := m.WorkspaceQuota.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("workspaceQuota") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("workspaceQuota") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ResourcePoolConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResourcePoolConfig) UnmarshalBinary(b []byte) error { + var res ResourcePoolConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/ml/models/resource_quota.go b/cdp-sdk-go/gen/ml/models/resource_quota.go new file mode 100644 index 00000000..218e8633 --- /dev/null +++ b/cdp-sdk-go/gen/ml/models/resource_quota.go @@ -0,0 +1,91 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// ResourceQuota Resource quota configuration for quota management. +// +// swagger:model ResourceQuota +type ResourceQuota struct { + + // The quota for CPU resource. + // Required: true + CPUQuota *string `json:"cpuQuota"` + + // The quota for gpu resource. + GpuQuota string `json:"gpuQuota,omitempty"` + + // The quota for memory resource. + // Required: true + MemoryQuota *string `json:"memoryQuota"` +} + +// Validate validates this resource quota +func (m *ResourceQuota) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCPUQuota(formats); err != nil { + res = append(res, err) + } + + if err := m.validateMemoryQuota(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResourceQuota) validateCPUQuota(formats strfmt.Registry) error { + + if err := validate.Required("cpuQuota", "body", m.CPUQuota); err != nil { + return err + } + + return nil +} + +func (m *ResourceQuota) validateMemoryQuota(formats strfmt.Registry) error { + + if err := validate.Required("memoryQuota", "body", m.MemoryQuota); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this resource quota based on context it is used +func (m *ResourceQuota) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ResourceQuota) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResourceQuota) UnmarshalBinary(b []byte) error { + var res ResourceQuota + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/ml/models/workspace.go b/cdp-sdk-go/gen/ml/models/workspace.go index 4e1b688a..6accb53a 100644 --- a/cdp-sdk-go/gen/ml/models/workspace.go +++ b/cdp-sdk-go/gen/ml/models/workspace.go @@ -23,6 +23,9 @@ type Workspace struct { // The whitelist of CIDR blocks which can access the API server. AuthorizedIPRanges []string `json:"authorizedIPRanges"` + // Available Quota for the workbench. + AvailableQuota *ResourceQuota `json:"availableQuota,omitempty"` + // The Backup MetaData for this workbench BackupMetadata *BackupMetadata `json:"backupMetadata,omitempty"` @@ -116,6 +119,15 @@ type Workspace struct { // NFS Version of the filesystem. NfsVersion string `json:"nfsVersion,omitempty"` + // Parent Resource Pool for the workbench. + ParentResourcePoolName string `json:"parentResourcePoolName,omitempty"` + + // Quota configured for the workbench. + Quota *ResourceQuota `json:"quota,omitempty"` + + // Resource Pool for the workbench. + ResourcePoolName string `json:"resourcePoolName,omitempty"` + // The subnets of the workbench. Subnets []string `json:"subnets"` @@ -141,6 +153,10 @@ type Workspace struct { func (m *Workspace) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateAvailableQuota(formats); err != nil { + res = append(res, err) + } + if err := m.validateBackupMetadata(formats); err != nil { res = append(res, err) } @@ -209,6 +225,10 @@ func (m *Workspace) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateQuota(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -227,6 +247,25 @@ func (m *Workspace) Validate(formats strfmt.Registry) error { return nil } +func (m *Workspace) validateAvailableQuota(formats strfmt.Registry) error { + if swag.IsZero(m.AvailableQuota) { // not required + return nil + } + + if m.AvailableQuota != nil { + if err := m.AvailableQuota.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("availableQuota") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("availableQuota") + } + return err + } + } + + return nil +} + func (m *Workspace) validateBackupMetadata(formats strfmt.Registry) error { if swag.IsZero(m.BackupMetadata) { // not required return nil @@ -428,6 +467,25 @@ func (m *Workspace) validateMonitoringEnabled(formats strfmt.Registry) error { return nil } +func (m *Workspace) validateQuota(formats strfmt.Registry) error { + if swag.IsZero(m.Quota) { // not required + return nil + } + + if m.Quota != nil { + if err := m.Quota.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("quota") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("quota") + } + return err + } + } + + return nil +} + func (m *Workspace) validateTags(formats strfmt.Registry) error { if err := validate.Required("tags", "body", m.Tags); err != nil { @@ -487,6 +545,10 @@ func (m *Workspace) validateVersion(formats strfmt.Registry) error { func (m *Workspace) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateAvailableQuota(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateBackupMetadata(ctx, formats); err != nil { res = append(res, err) } @@ -499,6 +561,10 @@ func (m *Workspace) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } + if err := m.contextValidateQuota(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -513,6 +579,27 @@ func (m *Workspace) ContextValidate(ctx context.Context, formats strfmt.Registry return nil } +func (m *Workspace) contextValidateAvailableQuota(ctx context.Context, formats strfmt.Registry) error { + + if m.AvailableQuota != nil { + + if swag.IsZero(m.AvailableQuota) { // not required + return nil + } + + if err := m.AvailableQuota.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("availableQuota") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("availableQuota") + } + return err + } + } + + return nil +} + func (m *Workspace) contextValidateBackupMetadata(ctx context.Context, formats strfmt.Registry) error { if m.BackupMetadata != nil { @@ -584,6 +671,27 @@ func (m *Workspace) contextValidateInstanceGroups(ctx context.Context, formats s return nil } +func (m *Workspace) contextValidateQuota(ctx context.Context, formats strfmt.Registry) error { + + if m.Quota != nil { + + if swag.IsZero(m.Quota) { // not required + return nil + } + + if err := m.Quota.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("quota") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("quota") + } + return err + } + } + + return nil +} + func (m *Workspace) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { 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 d0ffff97..22606024 100644 --- a/cdp-sdk-go/gen/ml/models/workspace_instance_group.go +++ b/cdp-sdk-go/gen/ml/models/workspace_instance_group.go @@ -53,6 +53,9 @@ type WorkspaceInstanceGroup struct { // Required: true MinInstances *int32 `json:"minInstances"` + // Root volume size in GiB attached to this instance type. + RootVolumeSize int64 `json:"rootVolumeSize,omitempty"` + // Tags are key/value pairs that are applied to all tag-able resources deployed in the workbench's cloud environment. // Required: true Tags []*Tag `json:"tags"` diff --git a/cdp-sdk-go/gen/opdb/models/create_database_request.go b/cdp-sdk-go/gen/opdb/models/create_database_request.go index a046c388..89b7f642 100644 --- a/cdp-sdk-go/gen/opdb/models/create_database_request.go +++ b/cdp-sdk-go/gen/opdb/models/create_database_request.go @@ -91,6 +91,9 @@ type CreateDatabaseRequest struct { // Optional tags to choose one of the predefined cluster sizes. ScaleType ScaleType `json:"scaleType,omitempty"` + // Specifies the Security related configuration of the cluster. + SecurityRequest *SecurityRequest `json:"securityRequest,omitempty"` + // Provide an optional external storage location for a non-CDP managed bucket as the HBase root. StorageLocation string `json:"storageLocation,omitempty"` @@ -148,6 +151,10 @@ func (m *CreateDatabaseRequest) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurityRequest(formats); err != nil { + res = append(res, err) + } + if err := m.validateStorageType(formats); err != nil { res = append(res, err) } @@ -342,6 +349,25 @@ func (m *CreateDatabaseRequest) validateScaleType(formats strfmt.Registry) error return nil } +func (m *CreateDatabaseRequest) validateSecurityRequest(formats strfmt.Registry) error { + if swag.IsZero(m.SecurityRequest) { // not required + return nil + } + + if m.SecurityRequest != nil { + if err := m.SecurityRequest.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("securityRequest") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("securityRequest") + } + return err + } + } + + return nil +} + func (m *CreateDatabaseRequest) validateStorageType(formats strfmt.Registry) error { if swag.IsZero(m.StorageType) { // not required return nil @@ -421,6 +447,10 @@ func (m *CreateDatabaseRequest) ContextValidate(ctx context.Context, formats str res = append(res, err) } + if err := m.contextValidateSecurityRequest(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateStorageType(ctx, formats); err != nil { res = append(res, err) } @@ -605,6 +635,27 @@ func (m *CreateDatabaseRequest) contextValidateScaleType(ctx context.Context, fo return nil } +func (m *CreateDatabaseRequest) contextValidateSecurityRequest(ctx context.Context, formats strfmt.Registry) error { + + if m.SecurityRequest != nil { + + if swag.IsZero(m.SecurityRequest) { // not required + return nil + } + + if err := m.SecurityRequest.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("securityRequest") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("securityRequest") + } + return err + } + } + + return nil +} + func (m *CreateDatabaseRequest) contextValidateStorageType(ctx context.Context, formats strfmt.Registry) error { if swag.IsZero(m.StorageType) { // not required diff --git a/cdp-sdk-go/gen/opdb/models/database_details.go b/cdp-sdk-go/gen/opdb/models/database_details.go index 1d3ca7fa..2a0d93ba 100644 --- a/cdp-sdk-go/gen/opdb/models/database_details.go +++ b/cdp-sdk-go/gen/opdb/models/database_details.go @@ -79,6 +79,9 @@ type DatabaseDetails struct { // The predetermined size of the cluster. ScaleType ScaleType `json:"scaleType,omitempty"` + // Specifies the Security related configuration of the cluster nodes. + SecurityResponse *SecurityResponse `json:"securityResponse,omitempty"` + // Status of the database creation Status StatusType `json:"status,omitempty"` @@ -124,6 +127,10 @@ func (m *DatabaseDetails) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSecurityResponse(formats); err != nil { + res = append(res, err) + } + if err := m.validateStatus(formats); err != nil { res = append(res, err) } @@ -231,6 +238,25 @@ func (m *DatabaseDetails) validateScaleType(formats strfmt.Registry) error { return nil } +func (m *DatabaseDetails) validateSecurityResponse(formats strfmt.Registry) error { + if swag.IsZero(m.SecurityResponse) { // not required + return nil + } + + if m.SecurityResponse != nil { + if err := m.SecurityResponse.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("securityResponse") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("securityResponse") + } + return err + } + } + + return nil +} + func (m *DatabaseDetails) validateStatus(formats strfmt.Registry) error { if swag.IsZero(m.Status) { // not required return nil @@ -290,6 +316,10 @@ func (m *DatabaseDetails) ContextValidate(ctx context.Context, formats strfmt.Re res = append(res, err) } + if err := m.contextValidateSecurityResponse(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateStatus(ctx, formats); err != nil { res = append(res, err) } @@ -361,6 +391,27 @@ func (m *DatabaseDetails) contextValidateScaleType(ctx context.Context, formats return nil } +func (m *DatabaseDetails) contextValidateSecurityResponse(ctx context.Context, formats strfmt.Registry) error { + + if m.SecurityResponse != nil { + + if swag.IsZero(m.SecurityResponse) { // not required + return nil + } + + if err := m.SecurityResponse.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("securityResponse") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("securityResponse") + } + return err + } + } + + return nil +} + func (m *DatabaseDetails) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if swag.IsZero(m.Status) { // not required diff --git a/cdp-sdk-go/gen/opdb/models/s_e_linux_swagger.go b/cdp-sdk-go/gen/opdb/models/s_e_linux_swagger.go new file mode 100644 index 00000000..4d0be5f0 --- /dev/null +++ b/cdp-sdk-go/gen/opdb/models/s_e_linux_swagger.go @@ -0,0 +1,80 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/validate" +) + +// SELinux SELinux configurations for the cluster +// +// `PERMISSIVE` - PERMISSIVE policy is used for the cluster. `ENFORCING` - ENFORCING policy is used for the cluster. +// +// swagger:model SELinux +type SELinux string + +func NewSELinux(value SELinux) *SELinux { + return &value +} + +// Pointer returns a pointer to a freshly-allocated SELinux. +func (m SELinux) Pointer() *SELinux { + return &m +} + +const ( + + // SELinuxPERMISSIVE captures enum value "PERMISSIVE" + SELinuxPERMISSIVE SELinux = "PERMISSIVE" + + // SELinuxENFORCING captures enum value "ENFORCING" + SELinuxENFORCING SELinux = "ENFORCING" +) + +// for schema +var sELinuxEnum []interface{} + +func init() { + var res []SELinux + if err := json.Unmarshal([]byte(`["PERMISSIVE","ENFORCING"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + sELinuxEnum = append(sELinuxEnum, v) + } +} + +func (m SELinux) validateSELinuxEnum(path, location string, value SELinux) error { + if err := validate.EnumCase(path, location, value, sELinuxEnum, true); err != nil { + return err + } + return nil +} + +// Validate validates this s e linux +func (m SELinux) Validate(formats strfmt.Registry) error { + var res []error + + // value enum + if err := m.validateSELinuxEnum("", "body", m); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +// ContextValidate validates this s e linux based on context it is used +func (m SELinux) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} diff --git a/cdp-sdk-go/gen/opdb/models/security_request.go b/cdp-sdk-go/gen/opdb/models/security_request.go new file mode 100644 index 00000000..8b230f1b --- /dev/null +++ b/cdp-sdk-go/gen/opdb/models/security_request.go @@ -0,0 +1,104 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecurityRequest Security related configurations for the clusters. +// +// swagger:model SecurityRequest +type SecurityRequest struct { + + // SELinux enforcement policy, can be PERMISSIVE or ENFORCING + SeLinux SELinux `json:"seLinux,omitempty"` +} + +// Validate validates this security request +func (m *SecurityRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecurityRequest) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + if err := m.SeLinux.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("seLinux") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("seLinux") + } + return err + } + + return nil +} + +// ContextValidate validate this security request based on the context it is used +func (m *SecurityRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateSeLinux(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecurityRequest) contextValidateSeLinux(ctx context.Context, formats strfmt.Registry) error { + + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + if err := m.SeLinux.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("seLinux") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("seLinux") + } + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityRequest) UnmarshalBinary(b []byte) error { + var res SecurityRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/opdb/models/security_response.go b/cdp-sdk-go/gen/opdb/models/security_response.go new file mode 100644 index 00000000..cab772ab --- /dev/null +++ b/cdp-sdk-go/gen/opdb/models/security_response.go @@ -0,0 +1,104 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecurityResponse Security related configurations for the clusters. +// +// swagger:model SecurityResponse +type SecurityResponse struct { + + // SELinux enforcement policy, can be PERMISSIVE or ENFORCING + SeLinux SELinux `json:"seLinux,omitempty"` +} + +// Validate validates this security response +func (m *SecurityResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSeLinux(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecurityResponse) validateSeLinux(formats strfmt.Registry) error { + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + if err := m.SeLinux.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("seLinux") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("seLinux") + } + return err + } + + return nil +} + +// ContextValidate validate this security response based on the context it is used +func (m *SecurityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateSeLinux(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecurityResponse) contextValidateSeLinux(ctx context.Context, formats strfmt.Registry) error { + + if swag.IsZero(m.SeLinux) { // not required + return nil + } + + if err := m.SeLinux.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("seLinux") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("seLinux") + } + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SecurityResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecurityResponse) UnmarshalBinary(b []byte) error { + var res SecurityResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/cdp-sdk-go/gen/opdb/models/storage_type.go b/cdp-sdk-go/gen/opdb/models/storage_type.go index 9aed2ed6..be977f15 100644 --- a/cdp-sdk-go/gen/opdb/models/storage_type.go +++ b/cdp-sdk-go/gen/opdb/models/storage_type.go @@ -16,7 +16,7 @@ import ( // StorageType Storage type for clusters. // -// `CLOUD_WITH_EPHEMERAL` - Cloud with ephemeral storage. `CLOUD` - Cloud storage without ephemeral storage. `HDFS` - HDFS storage. `CLOUD_WITH_EPHEMERAL_DATATIERING` - Cloud with Ephemeral Storage and Datatiering. +// `CLOUD_WITH_EPHEMERAL` - Cloud with ephemeral storage. `CLOUD` - Cloud storage without ephemeral storage. `HDFS` - HDFS storage. // // swagger:model StorageType type StorageType string diff --git a/cdp-sdk-go/resources/swagger/datahub.yaml b/cdp-sdk-go/resources/swagger/datahub.yaml index a61cd788..4e35a7e3 100644 --- a/cdp-sdk-go/resources/swagger/datahub.yaml +++ b/cdp-sdk-go/resources/swagger/datahub.yaml @@ -6,7 +6,7 @@ x-form-factors: public x-cdp-releases: PUBLIC x-audit: true info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Cloudera Data hub Service license: name: Apache 2.0 @@ -1333,7 +1333,6 @@ paths: description: Get the latest (in progress or finished) operation for the datahub cluster. operationId: getOperation x-mutating: false - x-no-compatibility-guarantee: true parameters: - name: input in: body @@ -1416,10 +1415,10 @@ paths: /api/v1/datahub/rotateSaltPassword: post: summary: Rotate SaltStack user password on Data Hub instances. - description: Rotate SaltStack user password on Data Hub instances. + description: Deprecated, please use rotateSecrets with SALT_PASSWORD secretType instead. operationId: rotateSaltPassword x-mutating: true - x-entitlement: CDP_ROTATE_SALTUSER_PASSWORD + x-deprecated: true parameters: - name: input in: body @@ -1631,6 +1630,10 @@ definitions: default: false 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. + security: + $ref: '#/definitions/SecurityResponse' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true ClusterExtension: type: object description: Cluster extensions for Data Hub cluster. @@ -1707,6 +1710,9 @@ definitions: result: type: string description: The result of the operation. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. InstanceTemplate: type: object description: Instance template configuration(s). @@ -2193,6 +2199,9 @@ definitions: cluster: $ref: '#/definitions/Cluster' description: The cluster. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ListClusterLifecycleEventsRequest: type: object description: Request object for listing cluster events. @@ -2743,6 +2752,11 @@ definitions: recoveryMode: type: string description: Recovery mode for the instance group. + availabilityZones: + type: array + items: + type: string + description: List of availability zones that this instance group is associated with. DatahubDatabaseType: type: string description: 'Database type for datahub. Currently supported values: NONE, NON_HA, HA' @@ -2831,6 +2845,10 @@ definitions: type: integer format: int32 description: Configure the major version of Java on the cluster. + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateAWSClusterResponse: type: object description: Response object for create AWS cluster request. @@ -2840,6 +2858,9 @@ definitions: cluster: $ref: '#/definitions/Cluster' description: The cluster. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CreateAWSGovCloudClusterRequest: type: object description: Request object for creating AWS Data Hub cluster request on GovCloud. @@ -2899,6 +2920,10 @@ definitions: type: integer format: int32 description: Configure the major version of Java on the cluster. + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateAWSGovCloudClusterResponse: type: object description: Response object for create AWS cluster request on GovCloud. @@ -2908,6 +2933,9 @@ definitions: cluster: $ref: '#/definitions/Cluster' description: The cluster. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CreateAzureClusterRequest: type: object description: Request object for create Azure cluster request. @@ -2978,6 +3006,10 @@ definitions: type: integer format: int32 description: Configure the major version of Java on the cluster. + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateAzureClusterResponse: type: object description: Response object for create Azure cluster request. @@ -2987,6 +3019,9 @@ definitions: cluster: $ref: '#/definitions/Cluster' description: The cluster. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CreateGCPClusterRequest: type: object description: Request object for create GCP cluster request. @@ -3038,6 +3073,14 @@ definitions: type: integer format: int32 description: Configure the major version of Java on the cluster. + multiAz: + default: false + type: boolean + description: Creates CDP Data Hub distributed across multiple availability zones in GCP region + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateGCPClusterResponse: type: object description: Response object for create GCP cluster request. @@ -3047,6 +3090,9 @@ definitions: cluster: $ref: '#/definitions/Cluster' description: The cluster. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DeleteClusterRequest: type: object description: Request object for delete cluster request. @@ -3062,6 +3108,10 @@ definitions: DeleteClusterResponse: type: object description: Response object for delete cluster request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DescribeClusterRequest: type: object description: Request object for describe cluster request. @@ -3173,6 +3223,10 @@ definitions: RotateDbCertificateResponse: type: object description: Response object to rotate ssl certificate a datahub. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RepairInstancesRequest: type: object description: Details for repair instances. @@ -3197,6 +3251,10 @@ definitions: StartClusterResponse: type: object description: Response object for start cluster request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. StopClusterRequest: type: object description: Request object for stop cluster request. @@ -3209,6 +3267,10 @@ definitions: StopClusterResponse: type: object description: Response object for stop cluster request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RetryClusterRequest: type: object description: Request object for retry cluster request. @@ -3254,6 +3316,10 @@ definitions: RepairClusterResponse: type: object description: Response object for repair cluster request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RestartClusterInstancesRequest: type: object description: Request object for restart cluster instances request. @@ -3272,6 +3338,10 @@ definitions: RestartClusterInstancesResponse: type: object description: Response object for restart cluster instances request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. SyncClusterRequest: type: object description: Request object for sync cluster request. @@ -3305,6 +3375,10 @@ definitions: ScaleClusterResponse: type: object description: Response object for scale cluster request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CreateRecipeRequest: type: object description: Request object for create recipe request. @@ -4301,6 +4375,10 @@ definitions: CollectDatahubDiagnosticsResponse: type: object description: Response object for collecting DataHub diagnostics. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ListDatahubDiagnosticsRequest: type: object description: Request object for listing recent Datahub diagnostics collections. @@ -4444,6 +4522,10 @@ definitions: CollectCmDiagnosticsResponse: type: object description: Response object for collecting Datahub diagnostics. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. GetCmRolesRequest: type: object description: Request object for obtaining Cloudera Manger roles. (that can be used for filtering in CM based diagnostics collection) @@ -4522,7 +4604,6 @@ definitions: description: JSON string with metadata as key value pairs. GetOperationRequest: type: object - x-no-compatibility-guarantee: true description: Request object for tracking the latest (current/last) operation on the datahub resource. required: - crn @@ -4533,18 +4614,16 @@ definitions: operationId: type: string description: Filter by operation id. - x-no-compatibility-guarantee: true GetOperationResponse: type: object - x-no-compatibility-guarantee: true description: Response object for tracking the latest (current/last) operation on the datahub resource. properties: operationId: type: string description: Identifier of the operation. - operationType: + operationName: type: string - description: Type of the operation. + description: Name of the operation. operationStatus: type: string description: Status of the operation. @@ -4554,10 +4633,14 @@ definitions: - FAILED - FINISHED - CANCELLED - progress: - type: integer - format: int32 - description: Progress percentage of the operation. + started: + type: string + format: date-time + description: Start time of the operation. + ended: + type: string + format: date-time + description: End time of the operation. RotateSecretsRequest: type: object description: Request object for starting secret rotation for datahub. @@ -4576,6 +4659,10 @@ definitions: RotateSecretsResponse: type: object description: Response object for rotating secrets. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ListDatahubSecretTypesRequest: type: object description: Request for listing possible secret values for Datahub. @@ -4620,10 +4707,18 @@ definitions: type: object description: Response object to rotate autotls certificates on datahub's hosts, deprecated. x-deprecated: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RenewCertificateResponse: type: object description: Response object for renew certificate request, deprecated. x-deprecated: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ImageComponentVersions: type: object description: Versions of the image components. @@ -4706,6 +4801,9 @@ definitions: reason: type: string description: The reason why upgrade is not possible. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. 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. @@ -4737,6 +4835,9 @@ definitions: reason: type: string description: The reason why upgrade is not possible. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. StartDatabaseUpgradeRequest: type: object description: Request object for Data Hub database upgrade. @@ -4762,6 +4863,9 @@ definitions: targetVersion: type: string description: The database engine major version to upgrade to. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DescribeDatabaseServerRequest: x-no-compatibility-guarantee: true type: object @@ -4899,6 +5003,10 @@ definitions: SyncComponentVersionsFromCmResponse: type: object description: Datahub sync CM component versions response. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RotatePrivateCertificatesRequest: type: object description: Request object to rotate private certificates on the hosts of Datahub. @@ -4911,6 +5019,10 @@ definitions: RotatePrivateCertificatesResponse: type: object description: Response object to rotate private certificates on the hosts of Datahub. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RenewPublicCertificateRequest: type: object description: Request object for renewing the Datahub public certificate. @@ -4923,6 +5035,10 @@ definitions: RenewPublicCertificateResponse: type: object description: Response object for renew public certificate request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. StartInstancesRequest: type: object description: Request object to start instances of a host group on a Data Hub. @@ -4943,6 +5059,10 @@ definitions: StartInstancesResponse: type: object description: Response object to start instances of a host group on Data Hub. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. StopInstancesRequest: type: object description: Request object to stop instances of a host group on a Data Hub. @@ -4964,9 +5084,14 @@ definitions: StopInstancesResponse: type: object description: Response object to a stop instances of a host group on a Data Hub. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RotateSaltPasswordRequest: type: object - description: Request object for rotating SaltStack user password on Data Hub instances. + description: Request object for rotating SaltStack user password on Data Hub instances (Deprecated). + x-deprecated: true required: - cluster properties: @@ -4975,7 +5100,12 @@ definitions: description: The name or CRN of the cluster. RotateSaltPasswordResponse: type: object - description: Response object for rotating SaltStack user password on Data Hub instances. + description: Response object for rotating SaltStack user password on Data Hub instances (Deprecated). + x-deprecated: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpdateOrchestratorStateRequest: type: object description: Request object for running orchestrator engine state update on the Data Hub cluster. @@ -4988,6 +5118,10 @@ definitions: UpdateOrchestratorStateResponse: type: object description: Response object for running orchestrator engine state update on the Data Hub cluster. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpdateToAwsImdsV2Request: description: Request object for updating Data Hub to use AWS IMDSv2. type: object @@ -5000,6 +5134,10 @@ definitions: UpdateToAwsImdsV2Response: type: object description: Response object for updating Data Hub to AWS IMDSv2. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpdateToAwsImdsV1Request: description: Request object for updating Data Hub to use AWS IMDSv1. type: object @@ -5012,6 +5150,10 @@ definitions: UpdateToAwsImdsV1Response: type: object description: Response object for updating Data Hub to AWS IMDSv1. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. SetDefaultJavaVersionRequest: type: object description: Request object for setting the default Java version on the Data Hub cluster. @@ -5025,6 +5167,10 @@ definitions: javaVersion: type: string description: The Java version to set as default. + rollingRestart: + default: false + type: boolean + description: If set to true Cloudera Manager will use Rolling Restart to restart services running on the cluster. This operation can take a long time. Default value is false. SetDefaultJavaVersionResponse: type: object description: Response object for setting the default Java version on the Data Hub cluster. @@ -5032,3 +5178,25 @@ definitions: operationId: type: string description: The id of the related operation. + SecurityRequest: + type: object + description: Security related configuration for Data Hub cluster. + properties: + seLinux: + x-entitlement: CDP_SECURITY_ENFORCING_SELINUX + type: string + description: Override default SELinux configuration which is PERMISSIVE by default + enum: + - PERMISSIVE + - ENFORCING + SecurityResponse: + type: object + description: Security related configuration for Data Hub cluster. + properties: + seLinux: + x-entitlement: CDP_SECURITY_ENFORCING_SELINUX + type: string + description: Override default SELinux configuration which is PERMISSIVE by default + enum: + - PERMISSIVE + - ENFORCING diff --git a/cdp-sdk-go/resources/swagger/datalake.yaml b/cdp-sdk-go/resources/swagger/datalake.yaml index 45db138f..6359e4e4 100644 --- a/cdp-sdk-go/resources/swagger/datalake.yaml +++ b/cdp-sdk-go/resources/swagger/datalake.yaml @@ -6,7 +6,7 @@ x-form-factors: public x-cdp-releases: PUBLIC x-audit: true info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Cloudera Datalake Service license: name: Apache 2.0 @@ -820,6 +820,27 @@ paths: description: The default response on an error. schema: $ref: '#/definitions/Error' + /api/v1/datalake/getOperation: + post: + summary: Used for retrieving operation status for the datalake cluster, defaulting to the most recent operation. Provide an operationId to view details of a specific historical operation. + description: Used for retrieving operation status for the datalake cluster, defaulting to the most recent operation. Provide an operationId to view details of a specific historical operation. + operationId: getOperation + x-mutating: false + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/GetOperationRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/GetOperationResponse' + 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 @@ -1056,10 +1077,10 @@ paths: /api/v1/datalake/rotateSaltPassword: post: summary: Rotate SaltStack user password on DataLake instances. - description: Rotate SaltStack user password on DataLake instances. + description: Deprecated, please use rotateSecrets with SALT_PASSWORD secretType instead. operationId: rotateSaltPassword x-mutating: true - x-entitlement: CDP_ROTATE_SALTUSER_PASSWORD + x-deprecated: true parameters: - name: input in: body @@ -1246,6 +1267,9 @@ definitions: result: type: string description: The result of the operation. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. InstanceTemplate: type: object description: Instance template that specifies the core information for the vertical scale. @@ -1583,6 +1607,10 @@ definitions: description: Datalake tags object containing the tag values defined for the datalake. items: $ref: '#/definitions/DatalakeResourceTag' + security: + $ref: '#/definitions/SecurityResponse' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true DatalakeResourceTagRequest: type: object description: Tag for a datalake resource. @@ -1745,6 +1773,10 @@ definitions: type: integer format: int32 description: Configure the major version of Java on the cluster. + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateAWSDatalakeResponse: type: object description: Response object for create AWS datalake request. @@ -1754,6 +1786,9 @@ definitions: datalake: $ref: '#/definitions/Datalake' description: The datalake. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CreateAWSGovCloudDatalakeRequest: type: object description: Request object for createing AWS Data Lake request on GovCloud. @@ -1808,6 +1843,10 @@ definitions: type: integer format: int32 description: Configure the major version of Java on the cluster. + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateAWSGovCloudDatalakeResponse: type: object description: Response object for creating AWS Data Lake request on GovCloud. @@ -1817,6 +1856,9 @@ definitions: datalake: $ref: '#/definitions/Datalake' description: The Data Lake. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CreateAzureDatalakeRequest: type: object description: Request object for create Azure datalake request. @@ -1884,6 +1926,10 @@ definitions: type: boolean default: false description: Creates CDP datalake distributed across multiple availability zones in an Azure region. + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateAzureDatalakeResponse: type: object description: Response object for create Azure datalake request. @@ -1893,6 +1939,9 @@ definitions: datalake: $ref: '#/definitions/Datalake' description: The datalake. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CreateGCPDatalakeRequest: type: object description: Request object for create GCP Data Lake request. @@ -1944,6 +1993,14 @@ definitions: type: integer format: int32 description: Configure the major version of Java on the cluster. + multiAz: + type: boolean + default: false + description: Creates CDP datalake distributed across multiple availability zones in GCP region. + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateGCPDatalakeResponse: type: object description: Response object for create GCP Data Lake request. @@ -1953,6 +2010,9 @@ definitions: datalake: $ref: '#/definitions/Datalake' description: The datalake. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DatalakeScaleType: type: string description: Represents the available datalake scales. Defaults to LIGHT_DUTY if not set. @@ -2003,9 +2063,17 @@ definitions: DeleteDatalakeResponse: type: object description: Response object for delete datalake request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RetryDatalakeResponse: type: object description: Response object for retry datalake request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RetryDatalakeRequest: type: object description: Request object for retry datalake request. @@ -2066,6 +2134,10 @@ definitions: RepairDatalakeResponse: type: object description: Response object for repair datalake request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RepairInstancesRequest: type: object description: Details for repair instances. @@ -2093,6 +2165,10 @@ definitions: RestartDatalakeInstancesResponse: type: object description: Response object for restart datalake instances request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. GetClusterServiceStatusRequest: type: object description: Request object to get service status. @@ -2200,6 +2276,10 @@ definitions: RotateDbCertificateResponse: type: object description: Response object to rotate ssl certificate a datalake. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. StopDatalakeRequest: type: object description: Request object to stop a datalake, deprecated. @@ -2859,6 +2939,9 @@ definitions: reason: type: string description: The reason why upgrade is not possible + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. 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. @@ -2890,6 +2973,9 @@ definitions: reason: type: string description: The reason why upgrade is not possible + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. StartDatabaseUpgradeRequest: type: object description: Request object for Data Lake database upgrade. @@ -2915,6 +3001,9 @@ definitions: targetVersion: type: string description: The database engine major version to upgrade to. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DatalakeVmLogRequest: type: object description: Log descriptor, contains a path and label pair. Used for diagnostics collections. @@ -3023,6 +3112,10 @@ definitions: CollectDatalakeDiagnosticsResponse: type: object description: Response object for collecting DataLake diagnostics. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ListDatalakeDiagnosticsRequest: type: object description: Request object for listing recent Datalake diagnostics collections. @@ -3163,6 +3256,10 @@ definitions: CollectCmDiagnosticsResponse: type: object description: Response object for collecting DataLake diagnostics. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. GetCmRolesRequest: type: object description: Request object for obtaining Cloudera Manger roles. (that can be used for filtering in CM based diagnostics collection) @@ -3193,6 +3290,45 @@ definitions: description: Array of log descriptors. (useful for diagnostics collection filtering) items: $ref: '#/definitions/DatalakeVmLogResponse' + GetOperationRequest: + type: object + description: Request object for tracking the latest (current/last) operation on the datalake resource. + required: + - crn + properties: + crn: + type: string + description: CRN of the datalake resource. + operationId: + type: string + description: Filter by operation id. + GetOperationResponse: + type: object + description: Response object for tracking the latest (current/last) operation on the datalake resource. + properties: + operationId: + type: string + description: Identifier of the operation. + operationName: + type: string + description: Name of the operation. + operationStatus: + type: string + description: Status of the operation. + enum: + - UNKNOWN + - RUNNING + - FAILED + - FINISHED + - CANCELLED + started: + type: string + format: date-time + description: Start time of the operation. + ended: + type: string + format: date-time + description: End time of the operation. RotateAutoTlsCertificatesRequest: type: object description: Request object to rotate autotls certificates on datalake's hosts, deprecated. @@ -3207,10 +3343,18 @@ definitions: type: object description: Response object to rotate autotls certificates on datalake's hosts, deprecated. x-deprecated: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RenewCertificateResponse: type: object description: Response object for renew certificate request, deprecated. x-deprecated: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DescribeDatabaseServerRequest: type: object description: Request object for obtaining Database Server details. @@ -3500,6 +3644,9 @@ definitions: description: Datalake tags object containing the tag values defined for the datalake. items: $ref: '#/definitions/DatalakeResourceTag' + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ScaleHorizontallyRequest: type: object description: Data Lake horizontal scaling request. @@ -3533,6 +3680,9 @@ definitions: datalakeName: type: string description: The name of the datalake. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ReplaceRecipesRequest: type: object description: The request for replacing recipes. @@ -3580,6 +3730,10 @@ definitions: RotateSecretsResponse: type: object description: Response object for rotating secrets. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ListDatalakeSecretTypesRequest: type: object description: Request for listing possible secret values for Datalake. @@ -3659,6 +3813,10 @@ definitions: RecoverDatalakeResponse: type: object description: Datalake recover response. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. SetCatalogRequest: type: object description: The request object to set catalog for a DataLake. @@ -3689,6 +3847,10 @@ definitions: x-no-compatibility-guarantee: true type: object description: Datalake sync CM component versions response. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. EnableRangerRazRequest: type: object description: The enable Ranger Raz request. @@ -3713,6 +3875,10 @@ definitions: RotatePrivateCertificatesResponse: type: object description: Response object to rotate private certificates on datalake's hosts. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RenewPublicCertificateRequest: type: object description: Request object to renew the public certificate for Datalake. @@ -3725,6 +3891,10 @@ definitions: RenewPublicCertificateResponse: type: object description: Response object for renew public certificate request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. SdxInstanceGroupRequest: description: Request object for host group level custom configurations. type: object @@ -3739,7 +3909,8 @@ definitions: description: Cloud provider instance type to create instances with. RotateSaltPasswordRequest: type: object - description: Request object for rotating SaltStack user password on DataLake instances. + description: Request object for rotating SaltStack user password on DataLake instances (Deprecated). + x-deprecated: true required: - datalake properties: @@ -3748,7 +3919,12 @@ definitions: description: The name or CRN of the datalake. RotateSaltPasswordResponse: type: object - description: Response object for rotating SaltStack user password on DataLake instances. + description: Response object for rotating SaltStack user password on DataLake instances (Deprecated). + x-deprecated: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpdateOrchestratorStateRequest: type: object description: Request object for running orchestrator engine state update on the Data Lake cluster. @@ -3761,6 +3937,10 @@ definitions: UpdateOrchestratorStateResponse: type: object description: Response object for running orchestrator engine state update on the Data Lake cluster. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpdateToAwsImdsV2Request: description: Request object for updating Data Lake to use AWS IMDSv2. type: object @@ -3773,6 +3953,10 @@ definitions: UpdateToAwsImdsV2Response: type: object description: Response object for updating Data Lake to AWS IMDSv2. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpdateToAwsImdsV1Request: description: Request object for updating Data Lake to use AWS IMDSv1. type: object @@ -3785,6 +3969,10 @@ definitions: UpdateToAwsImdsV1Response: type: object description: Response object for updating Data Lake to AWS IMDSv1. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. CustomInstanceType: type: object description: Request object for modified instance type. @@ -3830,6 +4018,10 @@ definitions: javaVersion: type: string description: The default Java version to be set on the Data Lake cluster. + rollingRestart: + default: false + type: boolean + description: If set to true Cloudera Manager will use Rolling Restart to restart services running on the cluster. This operation can take a long time. Default value is false. SetDefaultJavaVersionResponse: type: object description: Response object for setting the default Java version on the Data Lake cluster. @@ -3837,3 +4029,25 @@ definitions: operationId: type: string description: The id of the related operation. + SecurityRequest: + type: object + description: Security related configuration for Data Hub cluster. + properties: + seLinux: + x-entitlement: CDP_SECURITY_ENFORCING_SELINUX + type: string + description: Override default SELinux configuration which is PERMISSIVE by default + enum: + - PERMISSIVE + - ENFORCING + SecurityResponse: + type: object + description: Security related configuration for Data Hub cluster. + properties: + seLinux: + x-entitlement: CDP_SECURITY_ENFORCING_SELINUX + type: string + description: Override default SELinux configuration which is PERMISSIVE by default + enum: + - PERMISSIVE + - ENFORCING diff --git a/cdp-sdk-go/resources/swagger/de.yaml b/cdp-sdk-go/resources/swagger/de.yaml index 714741a1..1df89fa7 100644 --- a/cdp-sdk-go/resources/swagger/de.yaml +++ b/cdp-sdk-go/resources/swagger/de.yaml @@ -5,7 +5,7 @@ x-form-factors: public,private x-cdp-releases: PUBLIC x-audit: true info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Cloudera Data Engineering license: name: Apache 2.0 diff --git a/cdp-sdk-go/resources/swagger/dw.yaml b/cdp-sdk-go/resources/swagger/dw.yaml index 876586fe..4a2c18c3 100644 --- a/cdp-sdk-go/resources/swagger/dw.yaml +++ b/cdp-sdk-go/resources/swagger/dw.yaml @@ -4,7 +4,7 @@ x-products: CDP x-form-factors: public,private x-cdp-releases: PUBLIC info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Cloudera Data Warehouse [EXPERIMENTAL] license: name: Apache 2.0 @@ -238,6 +238,28 @@ paths: schema: $ref: '#/definitions/Error' x-mutating: true + /api/v1/dw/resetServerSettings: + post: + x-form-factors: private + summary: Restores the DWX server settings to the default values. + description: Restores the DWX server settings to the default values. Some settings need further actions to be taken (e.g. recreating a Virtual Warehouse), this is indicated in the server settings list returned by the describeServerSetting functionality. + operationId: resetServerSettings + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/ResetServerSettingsRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/ResetServerSettingsResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' + x-mutating: true /api/v1/dw/listEvents: post: x-form-factors: public,private @@ -2231,6 +2253,18 @@ definitions: status: type: string description: Update status. + ResetServerSettingsRequest: + type: object + description: Request object for the resetServerSettings method. + x-form-factors: private + ResetServerSettingsResponse: + type: object + description: Response object for the resetServerSettings method. + x-form-factors: private + properties: + status: + type: string + description: Reset status. UpdateServerSettingItem: type: object description: A DWX server setting update. @@ -2480,10 +2514,11 @@ definitions: 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: + x-deprecated: true type: array items: type: string - description: 'NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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.' + description: 'DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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.' CreateAzureClusterRequest: type: object description: Request object for the createAzureCluster method. @@ -2548,10 +2583,11 @@ definitions: description: Whether to enable spot instances for Virtual warehouses. It cannot be updated later. Defaults to false. default: false computeInstanceTypes: + x-deprecated: true type: array items: type: string - description: 'NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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.' + description: 'DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. @@ -2784,10 +2820,11 @@ definitions: 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: + x-deprecated: true type: array items: type: string - description: 'NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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.' + description: 'DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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.' AzureActivationOptions: type: object description: Options for activating an Azure environment. @@ -2806,10 +2843,11 @@ definitions: 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: + x-deprecated: true type: array items: type: string - description: 'NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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.' + description: 'DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. 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. @@ -3294,9 +3332,14 @@ definitions: description: Version of the Database Catalog. default: '' x-form-factors: public + resourceTemplateId: + type: string + description: The resource template of the Database Catalog. memorySize: type: string - description: Set Metastore container memory size. If not provided, small will apply. + x-no-compatibility-guarantee: true + x-deprecated: true + description: 'DEPRECATED: resourceTemplateId field is replacing this one. Set Metastore container memory size. The small size will apply as default if neither the resourceTemplateId field nor this field is provided.' enum: - small - medium @@ -3361,10 +3404,6 @@ definitions: type: boolean default: false description: Forced recreation of the diagnostic job. - downloadOptions: - x-deprecated: true - description: 'DEPRECATED: All logs are included by default. No need to specify options' - $ref: '#/definitions/ClusterCreateDiagnosticDataDownloadOptions' CreateClusterDiagnosticDataJobResponse: type: object description: Response object for the createClusterDiagnosticDataJob method. @@ -3531,10 +3570,6 @@ definitions: type: boolean default: false description: Forced recreation of the diagnostic job. - downloadOptions: - x-deprecated: true - description: 'DEPRECATED: All logs are included by default' - $ref: '#/definitions/DBCCreateDiagnosticDataDownloadOptions' CreateDbcDiagnosticDataJobResponse: type: object description: Response object for the createDbcDiagnosticDataJob method. @@ -4616,14 +4651,6 @@ definitions: type: boolean default: false description: Forced recreation of the diagnostic job. - hiveDownloadOptions: - x-deprecated: true - description: 'DEPRECATED: All logs are included by default' - $ref: '#/definitions/HiveCreateDiagnosticDataDownloadOptions' - impalaDownloadOptions: - x-deprecated: true - description: 'DEPRECATED: All logs are included by default' - $ref: '#/definitions/ImpalaCreateDiagnosticDataDownloadOptions' CreateVwDiagnosticDataJobResponse: type: object description: Response object for the createVwDiagnosticDataJob method. @@ -4791,120 +4818,6 @@ definitions: description: The list of the events belonging to the particular Virtual Warehouse items: $ref: '#/definitions/EventResponse' - HiveCreateDiagnosticDataDownloadOptions: - x-deprecated: true - type: object - description: 'DEPRECATED: Included by default, no need to specify' - x-form-factors: public - properties: - includeHms: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeErrordump: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeGclogs: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeHeapdump: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeLogs: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeComputeResourceInfo: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeKubernetesResourceInfo: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - ImpalaCreateDiagnosticDataDownloadOptions: - x-deprecated: true - type: object - description: 'DEPRECATED: Included by default, no need to specify' - x-form-factors: public - properties: - includeHms: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeMinidump: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeProfile: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeSidecar: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeWorkload: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeKubernetesResourceInfo: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - DBCCreateDiagnosticDataDownloadOptions: - x-deprecated: true - type: object - description: 'DEPRECATED: Included by default, no need to specify' - x-form-factors: public - properties: - includeKubernetesResourceInfo: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - ClusterCreateDiagnosticDataDownloadOptions: - type: object - x-form-factors: public - x-deprecated: true - description: 'DEPRECATED: Included by default, no need to specify' - properties: - includeClusterInfo: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeIstioSystem: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeSharedServices: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' - includeKubeSystem: - x-deprecated: true - type: boolean - default: false - description: 'DEPRECATED: Included by default, no need to specify' ExternalBucket: type: object description: External bucket details. @@ -4968,10 +4881,11 @@ definitions: format: int32 description: DEPRECATED - will be removed in future releases. Number of additional reserved nodes for other services in the cluster. computeInstanceTypes: + x-deprecated: true type: array items: type: string - description: 'NOTE: The cluster level instance type selection will be replaced by virtual warehouse level selection. Compute instance types that the environment is restricted to use. This affects the creation of the virtual warehouses where this restriction will apply.' + description: 'DEPRECATED: The cluster level instance type selection will be replaced by virtual warehouse level selection. Compute instance types that the environment is restricted to use. This affects the creation of the virtual warehouses where this restriction will apply.' awsOptions: $ref: '#/definitions/AwsOptionsResponse' description: Response object of AWS related cluster options. @@ -5070,9 +4984,14 @@ definitions: name: type: string description: The name of the Database Catalog. + resourceTemplateId: + type: string + description: The resource template of the Database Catalog. memorySize: type: string - description: Metastore container memory size. + x-no-compatibility-guarantee: true + x-deprecated: true + description: 'DEPRECATED: resourceTemplateId field is replacing this one. Metastore container memory size.' 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.' @@ -5568,9 +5487,14 @@ definitions: dbcId: type: string description: ID of the Database Catalog. + resourceTemplateId: + type: string + description: The resource template of the Database Catalog. memorySize: type: string - description: Set Metastore container memory size. If not provided, small will apply. + x-no-compatibility-guarantee: true + x-deprecated: true + description: 'DEPRECATED: resourceTemplateId field is replacing this one. Set Metastore container memory size. The small size will apply as default if neither the resourceTemplateId field nor this field is provided.' enum: - small - medium @@ -6335,6 +6259,9 @@ definitions: items: type: string description: The job states we need to filter by. If not present, this filter is not used. + includeAutomaticBackups: + type: boolean + description: Decides whether automatic (system-generated) backups should be listed or not. Value is true by default. ListBackupsResponse: type: object x-form-factors: private @@ -6728,11 +6655,6 @@ definitions: xmx: type: string description: Java VM configuration for -Xmx (maximum heap size). - headroom: - type: string - description: 'DEPRECATED: Java VM configuration for -Xmx (maximum heap size).Java VM overhead for Garbage Collector structures, metaspace, etc., and a safety margin to avoid out-of-memory issues.' - x-nullable: true - x-deprecated: true xss: type: string description: Java VM configuration for -Xss (thread stack size). @@ -6741,12 +6663,6 @@ definitions: type: string description: Java VM configuration for -XX:MaxDirectMemorySize (limit for Direct Byte Buffers). x-nullable: true - waitQueueSize: - type: integer - format: int32 - description: 'DEPRECATED: Set the hive.query.isolation.slots.per.node configuration value instead. Overhead buffer for hive.query.isolation.slots.per.node. The total number of concurrent tasks the Hive query executor can process is the sum of the available CPU cores and the value you specify in this field.' - x-nullable: true - x-deprecated: true CreateApplicationResourcesLocalStorageSize: type: object description: Storage related information. @@ -6834,11 +6750,6 @@ definitions: xmx: type: string description: Java VM configuration for -Xmx (maximum heap size). - headroom: - type: string - description: 'DEPRECATED: Java VM configuration for -Xmx (maximum heap size).Java VM overhead for Garbage Collector structures, metaspace, etc., and a safety margin to avoid out-of-memory issues.' - x-nullable: true - x-deprecated: true xss: type: string description: Java VM configuration for -Xss (thread stack size). @@ -6847,12 +6758,6 @@ definitions: type: string description: Java VM configuration for -XX:MaxDirectMemorySize (limit for Direct Byte Buffers). x-nullable: true - waitQueueSize: - type: integer - format: int32 - description: 'DEPRECATED: Set the hive.query.isolation.slots.per.node configuration value instead. Overhead buffer for hive.query.isolation.slots.per.node. The total number of concurrent tasks the Hive query executor can process is the sum of the available CPU cores and the value you specify in this field.' - x-nullable: true - x-deprecated: true UpdateApplicationResourcesLocalStorageSize: type: object description: Storage related information. @@ -6932,11 +6837,6 @@ definitions: xmx: type: string description: Java VM configuration for -Xmx (maximum heap size). - headroom: - type: string - description: 'DEPRECATED: Java VM configuration for -Xmx (maximum heap size).Java VM overhead for Garbage Collector structures, metaspace, etc., and a safety margin to avoid out-of-memory issues.' - x-nullable: true - x-deprecated: true xss: type: string description: Java VM configuration for -Xss (thread stack size). @@ -6945,12 +6845,6 @@ definitions: type: string description: Java VM configuration for -XX:MaxDirectMemorySize (limit for Direct Byte Buffers). x-nullable: true - waitQueueSize: - type: integer - format: int32 - description: 'DEPRECATED: Set the hive.query.isolation.slots.per.node configuration value instead. Overhead buffer for hive.query.isolation.slots.per.node. The total number of concurrent tasks the Hive query executor can process is the sum of the available CPU cores and the value you specify in this field.' - x-nullable: true - x-deprecated: true ApplicationResourcesLocalStorageSize: type: object description: Storage related information. diff --git a/cdp-sdk-go/resources/swagger/environments.yaml b/cdp-sdk-go/resources/swagger/environments.yaml index 2b3efe15..a15c2e9b 100644 --- a/cdp-sdk-go/resources/swagger/environments.yaml +++ b/cdp-sdk-go/resources/swagger/environments.yaml @@ -6,7 +6,7 @@ x-form-factors: public,private x-cdp-releases: PUBLIC x-audit: true info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Cloudera Environments Service license: name: Apache 2.0 @@ -377,6 +377,27 @@ paths: description: The default response on an error. schema: $ref: '#/definitions/Error' + /api/v1/environments2/updateGcpAvailabilityZones: + post: + summary: Update the Availability Zones for the GCP environment. + description: Updates the Availability Zones for the GCP environment. + operationId: updateGcpAvailabilityZones + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/UpdateGcpAvailabilityZonesRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/UpdateGcpAvailabilityZonesResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' /api/v1/environments2/disableS3Guard: post: summary: Disable the S3Guard for an environment. @@ -1864,10 +1885,10 @@ paths: /api/v1/environments2/rotateSaltPassword: post: summary: Rotate SaltStack user password on FreeIPA instances. - description: Rotate SaltStack user password on FreeIPA instances. + description: Deprecated, please use rotateFreeipaSecrets with SALT_PASSWORD secretType instead. operationId: rotateSaltPassword x-mutating: true - x-entitlement: CDP_ROTATE_SALTUSER_PASSWORD + x-deprecated: true parameters: - name: input in: body @@ -2725,7 +2746,9 @@ definitions: 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. + default: false + x-deprecated: true + description: '[Deprecated] When true, this will report additional diagnostic information back to Cloudera.' freeIpa: $ref: '#/definitions/AWSFreeIpaCreationRequest' description: The FreeIPA creation request for the environment @@ -2752,6 +2775,10 @@ definitions: customDockerRegistry: description: Configures the desired custom docker registry for data services. $ref: '#/definitions/CustomDockerRegistryRequest' + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateAWSGovCloudEnvironmentRequest: type: object description: Request object for a create AWS GovCloud environment request. @@ -2826,10 +2853,16 @@ definitions: 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. + default: false + x-deprecated: true + description: '[Deprecated] When true, this will report additional diagnostic information back to Cloudera.' freeIpa: $ref: '#/definitions/AWSFreeIpaCreationRequest' description: The FreeIPA creation request for the environment + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true image: $ref: '#/definitions/FreeIpaImageRequest' description: The FreeIPA image request for the environment @@ -3293,7 +3326,9 @@ definitions: 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. + default: false + x-deprecated: true + description: '[Deprecated] When true, this will report additional diagnostic information back to Cloudera.' freeIpa: $ref: '#/definitions/AzureFreeIpaCreationRequest' description: The FreeIPA creation request for the environment @@ -3367,6 +3402,10 @@ definitions: customDockerRegistry: description: Configures the desired custom docker registry for data services. $ref: '#/definitions/CustomDockerRegistryRequest' + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true CreateGCPEnvironmentRequest: type: object description: Request object for a create GCP environment request. @@ -3414,7 +3453,9 @@ definitions: 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. + default: false + x-deprecated: true + description: '[Deprecated] When true, this will report additional diagnostic information back to Cloudera.' freeIpa: $ref: '#/definitions/GCPFreeIpaCreationRequest' description: The FreeIPA creation request for the environment @@ -3448,6 +3489,10 @@ definitions: customDockerRegistry: description: Configures the desired custom docker registry for data services. $ref: '#/definitions/CustomDockerRegistryRequest' + security: + $ref: '#/definitions/SecurityRequest' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true ExistingAzureNetworkRequest: type: object description: Request object for creating an Azure environment using existing VNet and subnets. @@ -3532,10 +3577,6 @@ definitions: 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. - userManagedIdentity: - type: string - description: User managed identity for encryption. (deprecated) - x-deprecated: true encryptionUserManagedIdentity: type: string description: User managed identity for encryption. @@ -3605,6 +3646,30 @@ definitions: environment: $ref: '#/definitions/Environment' description: The environment summary. + UpdateGcpAvailabilityZonesRequest: + type: object + description: Request object to update Availability Zones for GCP environment. + required: + - environment + - availabilityZones + properties: + environment: + type: string + description: The name or CRN of the environment. + availabilityZones: + type: array + items: + type: string + description: List of availability zones for the environment. + UpdateGcpAvailabilityZonesResponse: + type: object + description: Response object for a update GCP Availability Zones request. + required: + - environment + properties: + environment: + $ref: '#/definitions/Environment' + description: The environment summary. UpdateAwsDiskEncryptionParametersRequest: type: object description: Request object for updating AWS encryption parameters. @@ -3653,10 +3718,6 @@ definitions: 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. - userManagedIdentity: - type: string - description: User managed identity for encryption. (deprecated) - x-deprecated: true encryptionUserManagedIdentity: type: string description: User managed identity for encryption. @@ -3846,7 +3907,9 @@ definitions: 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. + default: false + x-deprecated: true + description: '[Deprecated] When true, this will report additional diagnostic information back to Cloudera.' freeipa: description: Details of FreeIPA instance associated with this environment. $ref: '#/definitions/FreeipaDetails' @@ -3871,6 +3934,10 @@ definitions: computeClusterEnabled: description: Compute clusters enabled type: boolean + security: + $ref: '#/definitions/SecurityResponse' + description: Security related configurations for Data Hub clusters. + x-no-compatibility-guarantee: true AuthenticationRequest: type: object description: Additional SSH key authentication configuration for accessing cluster node. @@ -4045,6 +4112,10 @@ definitions: StartEnvironmentResponse: type: object description: Response object for a start environment request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. StopEnvironmentRequest: type: object description: Request object for a stop environment request. @@ -4057,6 +4128,10 @@ definitions: StopEnvironmentResponse: type: object description: Response object for a stop environment request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DeleteCredentialRequest: type: object description: Request object for a delete credential request. @@ -4086,7 +4161,7 @@ definitions: properties: operationId: type: string - description: UUID of the request for this operation. This Id can be used for geting status on the operation. + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. operationType: description: Operation type, set password or user sync $ref: '#/definitions/OperationType' @@ -4123,7 +4198,7 @@ definitions: properties: operationId: type: string - description: UUID of the request for this operation. This Id can be used for geting status on the operation. + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. operationType: description: Operation type, set password or user sync $ref: '#/definitions/OperationType' @@ -4174,7 +4249,7 @@ definitions: properties: operationId: type: string - description: UUID of the request for this operation. This Id can be used for geting status on the operation. + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. operationType: description: Operation type, set password or user sync $ref: '#/definitions/OperationType' @@ -4217,7 +4292,7 @@ definitions: properties: operationId: type: string - description: UUID of the request for this operation. This Id can be used for geting status on the operation. + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. operationType: description: Operation type, set password or user sync $ref: '#/definitions/OperationType' @@ -4295,7 +4370,7 @@ definitions: properties: operationId: type: string - description: UUID of the request for this operation. This Id can be used for geting status on the operation. + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. operationType: description: Operation type, set password or user sync $ref: '#/definitions/OperationType' @@ -4668,6 +4743,9 @@ definitions: environmentName: type: string description: Name of the environment resource. + operationId: + type: string + description: Filter by operation id. GetOperationResponse: type: object description: Response object for tracking the latest (current/last) operation on the environment resource. @@ -4675,9 +4753,9 @@ definitions: operationId: type: string description: Identifier of the operation. - operationType: + operationName: type: string - description: Type of the operation. + description: Name of the operation. operationStatus: type: string description: Status of the operation. @@ -4687,10 +4765,14 @@ definitions: - FAILED - FINISHED - CANCELLED - progress: - type: integer - format: int32 - description: Progress percentage of the operation. + started: + type: string + format: date-time + description: Start time of the operation. + ended: + type: string + format: date-time + description: End time of the operation. ExposedService: x-form-factors: private description: Exposed CDP DC service object. @@ -5161,6 +5243,10 @@ definitions: instanceType: type: string description: Custom instance type of FreeIPA instances. + multiAz: + type: boolean + default: false + description: Flag that enables deployment of the FreeIPA in a multi-availability zone. FreeIpaImageRequest: description: Request object for FreeIPA image. type: object @@ -5510,7 +5596,9 @@ definitions: description: Flag to enable environment level workload analytics. reportDeploymentLogs: type: boolean - description: Flag to enable environment level deployment log collection. + default: false + x-deprecated: true + description: '[Deprecated] Flag to enable environment level deployment log collection.' SetTelemetryFeaturesResponse: type: object description: Response object to enable environment level telemetry features. @@ -5593,7 +5681,9 @@ definitions: 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) + default: false + x-deprecated: true + description: '[Deprecated] Flag to enable environment level deployment log collection.' rules: type: array description: List of anonymization rules that are applied on logs that are shipped to Cloudera @@ -5608,7 +5698,9 @@ definitions: 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) + default: false + x-deprecated: true + description: '[Deprecated] 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 @@ -5626,7 +5718,9 @@ definitions: 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) + default: false + x-deprecated: true + description: '[Deprecated] 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 @@ -5644,7 +5738,9 @@ definitions: 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) + default: false + x-deprecated: true + description: '[Deprecated] 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 @@ -5803,6 +5899,10 @@ definitions: CollectFreeipaDiagnosticsResponse: type: object description: Response object for collecting FreeIPA diagnostics. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ListFreeipaDiagnosticsRequest: type: object description: Request object for listing recent FreeIPA diagnostics collections. @@ -6117,6 +6217,10 @@ definitions: SetEndpointAccessGatewayResponse: type: object description: Response object for set endpoint access gateway request. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. LastAutomatedSyncDetails: type: object description: The details of the last sync performed by automated user sync. @@ -6245,7 +6349,7 @@ definitions: 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. + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. type: string GetFreeipaUpgradeOptionsRequest: type: object @@ -6287,6 +6391,7 @@ definitions: targetAvailabilityType: type: string enum: + - TWO_NODE_BASED - HA description: The target FreeIPA availability type. UpscaleFreeipaResponse: @@ -6365,6 +6470,9 @@ definitions: result: type: string description: The result of the operation. + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. InstanceTemplate: type: object description: Instance template that specifies the core information for the instances. @@ -6445,6 +6553,10 @@ definitions: RetryFreeipaResponse: type: object description: Response object for retry FreeIPA operation on an environment. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpgradeCcmRequest: type: object description: Request object for upgrading Cluster Connectivity Manager on an environment. @@ -6459,9 +6571,14 @@ definitions: type: object description: Response object for upgrading Cluster Connectivity Manager request on an environment. x-no-compatibility-guarantee: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RotateSaltPasswordRequest: type: object - description: Request object for rotating SaltStack user password on FreeIPA instances. + description: Request object for rotating SaltStack user password on FreeIPA instances (Deprecated). + x-deprecated: true required: - environment properties: @@ -6470,7 +6587,12 @@ definitions: description: The name or CRN of the environment. RotateSaltPasswordResponse: type: object - description: Response object for rotating SaltStack user password on FreeIPA instances. + description: Response object for rotating SaltStack user password on FreeIPA instances (Deprecated). + x-deprecated: true + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. RotateFreeipaSecretsRequest: type: object description: Request object for starting secret rotation for FreeIPA. @@ -6489,6 +6611,10 @@ definitions: RotateFreeipaSecretsResponse: type: object description: Response object for rotating secrets. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. ListFreeipaSecretTypesRequest: type: object description: Request for listing possible secret values for Freeipa. @@ -6550,6 +6676,10 @@ definitions: UpdateOrchestratorStateResponse: type: object description: Response object for running orchestrator engine state update on the FreeIPA cluster. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. DataServicesRequest: type: object description: Data Services parameters request of the environment. @@ -6656,6 +6786,10 @@ definitions: UpdateFreeipaToAwsImdsV2Response: type: object description: Response object for updating corresponding FreeIPA of the given environment to AWS IMDSv2. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. UpdateFreeipaToAwsImdsV1Request: description: The related environment where we update the corresponding FreeIPA to use AWS IMDSv1. type: object @@ -6668,6 +6802,10 @@ definitions: UpdateFreeipaToAwsImdsV1Response: type: object description: Response object for updating corresponding FreeIPA of the given environment to AWS IMDSv1. + properties: + operationId: + type: string + description: Unique operation ID assigned to this command execution. Use this identifier with 'get-operation' to track status and retrieve detailed results. OperationResponse: type: object description: Response object for a FreeIPA operation. @@ -6722,3 +6860,25 @@ definitions: message: type: string description: The detail of the success or failure. + SecurityRequest: + type: object + description: Security related configuration for Data Hub cluster. + properties: + seLinux: + x-entitlement: CDP_SECURITY_ENFORCING_SELINUX + type: string + description: Override default SELinux configuration which is PERMISSIVE by default + enum: + - PERMISSIVE + - ENFORCING + SecurityResponse: + type: object + description: Security related configuration for Data Hub cluster. + properties: + seLinux: + x-entitlement: CDP_SECURITY_ENFORCING_SELINUX + type: string + description: Override default SELinux configuration which is PERMISSIVE by default + enum: + - PERMISSIVE + - ENFORCING diff --git a/cdp-sdk-go/resources/swagger/iam.yaml b/cdp-sdk-go/resources/swagger/iam.yaml index 08b2aec9..211897fa 100644 --- a/cdp-sdk-go/resources/swagger/iam.yaml +++ b/cdp-sdk-go/resources/swagger/iam.yaml @@ -7,7 +7,7 @@ x-cdp-releases: PUBLIC x-audit: true x-extensions: pvcapipath info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Cloudera IAM Service license: name: Apache 2.0 @@ -1815,6 +1815,29 @@ paths: description: The default response on an error. schema: $ref: '#/definitions/Error' + /iam/migrateUsersToIdentityProvider: + post: + summary: Migrates all users from an identity provider connector to a different identity provider connector. + description: Allow existing users to be associated with a different identity provider connector. It is required that the identity provider user ID for each user be the same in both identity providers. This is expected to be used for migration from LDAP authentication to SAML authentication for the same physical IdP. A new SAML connector would be created in CDP, integrated with the same IdP as the original LDAP connector. First the LDAP mapping would be set to use the planned SAML name id mapping. Then this method can switch users created via LDAP login to be associated with the SAML connector and enable SAML authentication instead of LDAP authentication. + operationId: migrateUsersToIdentityProvider + x-form-factors: private + x-right: iam/migrateUsersToIdentityProvider + x-mutating: true + parameters: + - name: input + in: body + required: true + schema: + $ref: '#/definitions/MigrateUsersToIdentityProviderRequest' + responses: + 200: + description: Expected response to a valid request. + schema: + $ref: '#/definitions/MigrateUsersToIdentityProviderResponse' + default: + description: The default response on an error. + schema: + $ref: '#/definitions/Error' definitions: Error: type: object @@ -4180,3 +4203,28 @@ definitions: machineUser: $ref: '#/definitions/MachineUser' description: The unlocked machine user. + MigrateUsersToIdentityProviderRequest: + type: object + description: Request object for migrating users from an Identity Provider Connector to a new one. + x-form-factor: private + required: + - originalProviderName + - newProviderName + properties: + originalProviderName: + type: string + description: The name or CRN of the original IdP provider to migrate from. + newProviderName: + type: string + description: The name or CRN of the new IdP provider to migrate to. + MigrateUsersToIdentityProviderResponse: + type: object + description: Response object for migrating users from old Identity Provider Connector to a new one. + x-form-factor: private + required: + - numberOfUpdatedUsers + properties: + numberOfUpdatedUsers: + type: integer + format: int32 + description: The number of users that were migrated from the old IdP to the new one. diff --git a/cdp-sdk-go/resources/swagger/ml.yaml b/cdp-sdk-go/resources/swagger/ml.yaml index f4ba22e3..bd32446f 100644 --- a/cdp-sdk-go/resources/swagger/ml.yaml +++ b/cdp-sdk-go/resources/swagger/ml.yaml @@ -5,7 +5,7 @@ x-products: CDP x-form-factors: public,private x-cdp-releases: PUBLIC info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Cloudera AI license: name: Apache 2.0 @@ -1293,6 +1293,10 @@ definitions: memory: type: string description: Memory in GiB attached to this instance type. + rootVolumeSize: + type: integer + format: int64 + description: Root volume size in GiB attached to this instance type. Instance: type: object description: Represents each instance in an instance group. @@ -1515,6 +1519,9 @@ definitions: items: $ref: '#/definitions/OutboundTypes' description: Outbound Types provided for the workbench. + resourcePoolConfig: + description: The resource pool configuration for quota management. + $ref: '#/definitions/ResourcePoolConfig' OutboundTypes: type: string description: List of possible Outbound types. @@ -1876,6 +1883,18 @@ definitions: isPrivate: type: boolean description: The value to indicate if the cluster is private or not. + resourcePoolName: + type: string + description: Resource Pool for the workbench. + parentResourcePoolName: + type: string + description: Parent Resource Pool for the workbench. + quota: + description: Quota configured for the workbench. + $ref: '#/definitions/ResourceQuota' + availableQuota: + description: Available Quota for the workbench. + $ref: '#/definitions/ResourceQuota' isRestored: type: boolean description: The value to indicate if the workbench is restored one or not @@ -2409,7 +2428,7 @@ definitions: description: The CRN of the backup that this model registry is created from. whitelistAuthorizedIPRanges: type: boolean - description: Whether to whitelist only authorizedIPRanges given or all public IPs + description: Whether to whitelist only authorizedIPRanges given or all public IPs. authorizedIPRanges: type: array items: @@ -2544,6 +2563,48 @@ definitions: RefreshModelRegistryConfigmapResponse: type: object description: Response for refreshing workbench's model registry configmap. + ResourceQuota: + type: object + description: Resource quota configuration for quota management. + required: + - cpuQuota + - memoryQuota + properties: + cpuQuota: + type: string + description: The quota for CPU resource. + memoryQuota: + type: string + description: The quota for memory resource. + gpuQuota: + type: string + description: The quota for gpu resource. + ResourcePoolConfig: + type: object + description: Resource pool configuration for quota management. + properties: + parentPoolName: + type: string + description: The name of the parent resource pool. + workspaceQuota: + description: The resource quota. + $ref: '#/definitions/QuotaConfig' + QuotaConfig: + type: object + description: Quota configuration for quota management. + required: + - cpuQuota + - memoryQuota + properties: + cpuQuota: + type: string + description: The quota for CPU resource. + memoryQuota: + type: string + description: The quota for memory resource. + gpuQuota: + type: string + description: The quota for gpu resource. GrantModelRegistryAccessRequest: type: object description: Request object for the GrantModelRegistryAccess method. @@ -2664,6 +2725,9 @@ definitions: appCrn: type: string description: The CRN of the Cloudera AI Inference Service to be deleted. + force: + type: boolean + description: Forcefully deletes the Cloudera AI Inference service, bypassing any errors encountered during the deletion process. Please note that using force delete removes the assurance that resources in your cloud account will be properly cleaned up. By default, force is set to false. DeleteMlServingAppResponse: type: object description: Response object for the DeleteMlServingApp method. diff --git a/cdp-sdk-go/resources/swagger/opdb.yaml b/cdp-sdk-go/resources/swagger/opdb.yaml index f8bf35dc..bec37439 100644 --- a/cdp-sdk-go/resources/swagger/opdb.yaml +++ b/cdp-sdk-go/resources/swagger/opdb.yaml @@ -5,7 +5,7 @@ x-products: CDP x-form-factors: public x-cdp-releases: PUBLIC info: - version: 0.9.127 (BETA) + version: 0.9.131 (BETA) title: Operational Database service license: name: Apache 2.0 @@ -907,6 +907,9 @@ definitions: customInstanceTypes: description: Provide custom VM instance types for master, worker, gateway, leader, edge and compute groups. $ref: '#/definitions/CustomInstanceTypes' + securityRequest: + description: Specifies the Security related configuration of the cluster. + $ref: '#/definitions/SecurityRequest' CustomInstanceTypes: type: object description: Custom VM Instance Types. @@ -962,7 +965,7 @@ definitions: - HEAVY StorageType: type: string - description: "Storage type for clusters.\n `CLOUD_WITH_EPHEMERAL` - Cloud with ephemeral storage. `CLOUD` - Cloud storage without ephemeral storage. `HDFS` - HDFS storage. `CLOUD_WITH_EPHEMERAL_DATATIERING` - Cloud with Ephemeral Storage and Datatiering." + description: "Storage type for clusters.\n `CLOUD_WITH_EPHEMERAL` - Cloud with ephemeral storage. `CLOUD` - Cloud storage without ephemeral storage. `HDFS` - HDFS storage." enum: - CLOUD_WITH_EPHEMERAL - CLOUD @@ -973,6 +976,26 @@ definitions: enum: - X86_64 - ARM64 + SecurityRequest: + type: object + description: Security related configurations for the clusters. + properties: + seLinux: + description: SELinux enforcement policy, can be PERMISSIVE or ENFORCING + $ref: '#/definitions/SELinux' + SecurityResponse: + type: object + description: Security related configurations for the clusters. + properties: + seLinux: + description: SELinux enforcement policy, can be PERMISSIVE or ENFORCING + $ref: '#/definitions/SELinux' + SELinux: + type: string + description: "SELinux configurations for the cluster\n `PERMISSIVE` - PERMISSIVE policy is used for the cluster. `ENFORCING` - ENFORCING policy is used for the cluster." + enum: + - PERMISSIVE + - ENFORCING UpdateDatabaseRequest: type: object description: A request to update the database @@ -1421,6 +1444,9 @@ definitions: architecture: description: Specifies the architecture of the cluster nodes. $ref: '#/definitions/ArchitectureType' + securityResponse: + description: Specifies the Security related configuration of the cluster nodes. + $ref: '#/definitions/SecurityResponse' StorageDetailsForWorker: type: object description: Storage details for the worker node for AWS, Azure, and GCP cloud providers. diff --git a/go.mod b/go.mod index 09659b6c..a9c3a930 100644 --- a/go.mod +++ b/go.mod @@ -41,15 +41,20 @@ require ( github.com/cloudflare/circl v1.3.7 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fatih/color v1.16.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/go-logr/logr v1.4.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-openapi/analysis v0.23.0 // indirect + github.com/go-openapi/inflect v0.21.0 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.21.0 // indirect github.com/go-openapi/loads v0.22.0 // indirect github.com/go-openapi/spec v0.21.0 // indirect + github.com/go-swagger/go-swagger v0.31.0 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/go-cmp v0.6.0 // indirect + github.com/gorilla/handlers v1.5.2 // 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 @@ -60,6 +65,7 @@ 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.6.3 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/hcl/v2 v2.20.0 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.20.0 // indirect @@ -69,7 +75,11 @@ require ( github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/xstrings v1.4.0 // indirect github.com/imdario/mergo v0.3.16 // 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.7 // 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.20 // indirect @@ -82,13 +92,22 @@ 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/v2 v2.1.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/posener/complete v1.2.3 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.11.0 // indirect github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.18.2 // indirect github.com/stretchr/objx v0.5.2 // indirect + github.com/subosito/gotenv v1.6.0 // indirect + github.com/toqueteos/webbrowser v1.2.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect @@ -97,6 +116,8 @@ require ( go.opentelemetry.io/otel v1.24.0 // indirect go.opentelemetry.io/otel/metric v1.24.0 // indirect go.opentelemetry.io/otel/trace v1.24.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect golang.org/x/mod v0.17.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect @@ -105,5 +126,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect google.golang.org/grpc v1.67.1 // indirect google.golang.org/protobuf v1.35.1 // 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 de6afa13..f0dc5a1d 100644 --- a/go.sum +++ b/go.sum @@ -29,6 +29,7 @@ github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZ github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -41,8 +42,12 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= @@ -58,6 +63,8 @@ github.com/go-openapi/analysis v0.23.0 h1:aGday7OWupfMs+LbmLZG4k0MYXIANxcuBTYUC0 github.com/go-openapi/analysis v0.23.0/go.mod h1:9mz9ZWaSlV8TvjQHLl2mUW2PbZtemkE8yA5v22ohupo= github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w= github.com/go-openapi/errors v0.22.0/go.mod h1:J3DmZScxCDufmIMsdOuDHxJbdOGC0xtUynjIx092vXE= +github.com/go-openapi/inflect v0.21.0 h1:FoBjBTQEcbg2cJUWX6uwL9OyIW8eqc9k4KhN4lfbeYk= +github.com/go-openapi/inflect v0.21.0/go.mod h1:INezMuUu7SJQc2AyR3WO0DqqYUJSj8Kb4hBd7WtjlAw= github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ= @@ -74,6 +81,8 @@ github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+Gr github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-openapi/validate v0.24.0 h1:LdfDKwNbpB6Vn40xhTdNZAnfLECL81w+VX3BumrGD58= github.com/go-openapi/validate v0.24.0/go.mod h1:iyeX1sEufmv3nPbBdX3ieNviWnOZaJ1+zquzJEf2BAQ= +github.com/go-swagger/go-swagger v0.31.0 h1:H8eOYQnY2u7vNKWDNykv2xJP3pBhRG/R+SOCAmKrLlc= +github.com/go-swagger/go-swagger v0.31.0/go.mod h1:WSigRRWEig8zV6t6Sm8Y+EmUjlzA/HoaZJ5edupq7po= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= @@ -91,6 +100,8 @@ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= +github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= 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= @@ -115,6 +126,8 @@ github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mO github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/hc-install v0.6.3 h1:yE/r1yJvWbtrJ0STwScgEnCanb0U9v7zp0Gbkmcoxqs= github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= +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.20.0 h1:l++cRs/5jQOiKVvqXZm/P1ZEfVXJmvLS9WSVxkaeTb4= github.com/hashicorp/hcl/v2 v2.20.0/go.mod h1:WmcD/Ym72MDOOx5F62Ly+leloeu6H7m0pG7VBiU6pQk= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= @@ -155,6 +168,8 @@ github.com/jarcoal/httpmock v1.3.1 h1:iUx3whfZWVf3jT01hQTO/Eo5sAYtB2/rqaUuOtpInw github.com/jarcoal/httpmock v1.3.1/go.mod h1:3yb8rc4BI7TCBhFY8ng0gjuLKJNquuDNiPaZjnENuYg= 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.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= @@ -170,6 +185,8 @@ 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 v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= @@ -207,8 +224,11 @@ github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= 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/v2 v2.1.1 h1:LWAJwfNvjQZCFIDKWYQaM62NcYeYViCmWIwmOStowAI= +github.com/pelletier/go-toml/v2 v2.1.1/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -217,10 +237,15 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH 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/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -228,10 +253,20 @@ github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5g github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ= github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +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.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= @@ -239,9 +274,16 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +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.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +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= @@ -264,6 +306,8 @@ go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucg go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg= go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -271,6 +315,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ= +golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= @@ -291,6 +337,7 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/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= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -343,6 +390,8 @@ gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/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= diff --git a/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/dw/client/operations/MockDwClientService.go b/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/dw/client/operations/MockDwClientService.go index 1a47a235..e4aebcbd 100644 --- a/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/dw/client/operations/MockDwClientService.go +++ b/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/dw/client/operations/MockDwClientService.go @@ -4985,6 +4985,79 @@ func (_c *MockDwClientService_RenewCertificates_Call) RunAndReturn(run func(*ope return _c } +// ResetServerSettings provides a mock function with given fields: params, opts +func (_m *MockDwClientService) ResetServerSettings(params *operations.ResetServerSettingsParams, opts ...operations.ClientOption) (*operations.ResetServerSettingsOK, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ResetServerSettings") + } + + var r0 *operations.ResetServerSettingsOK + var r1 error + if rf, ok := ret.Get(0).(func(*operations.ResetServerSettingsParams, ...operations.ClientOption) (*operations.ResetServerSettingsOK, error)); ok { + return rf(params, opts...) + } + if rf, ok := ret.Get(0).(func(*operations.ResetServerSettingsParams, ...operations.ClientOption) *operations.ResetServerSettingsOK); ok { + r0 = rf(params, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*operations.ResetServerSettingsOK) + } + } + + if rf, ok := ret.Get(1).(func(*operations.ResetServerSettingsParams, ...operations.ClientOption) error); ok { + r1 = rf(params, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockDwClientService_ResetServerSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetServerSettings' +type MockDwClientService_ResetServerSettings_Call struct { + *mock.Call +} + +// ResetServerSettings is a helper method to define mock.On call +// - params *operations.ResetServerSettingsParams +// - opts ...operations.ClientOption +func (_e *MockDwClientService_Expecter) ResetServerSettings(params interface{}, opts ...interface{}) *MockDwClientService_ResetServerSettings_Call { + return &MockDwClientService_ResetServerSettings_Call{Call: _e.mock.On("ResetServerSettings", + append([]interface{}{params}, opts...)...)} +} + +func (_c *MockDwClientService_ResetServerSettings_Call) Run(run func(params *operations.ResetServerSettingsParams, opts ...operations.ClientOption)) *MockDwClientService_ResetServerSettings_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]operations.ClientOption, len(args)-1) + for i, a := range args[1:] { + if a != nil { + variadicArgs[i] = a.(operations.ClientOption) + } + } + run(args[0].(*operations.ResetServerSettingsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockDwClientService_ResetServerSettings_Call) Return(_a0 *operations.ResetServerSettingsOK, _a1 error) *MockDwClientService_ResetServerSettings_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockDwClientService_ResetServerSettings_Call) RunAndReturn(run func(*operations.ResetServerSettingsParams, ...operations.ClientOption) (*operations.ResetServerSettingsOK, error)) *MockDwClientService_ResetServerSettings_Call { + _c.Call.Return(run) + return _c +} + // RestartDbc provides a mock function with given fields: params, opts func (_m *MockDwClientService) RestartDbc(params *operations.RestartDbcParams, opts ...operations.ClientOption) (*operations.RestartDbcOK, error) { _va := make([]interface{}, len(opts)) @@ -5379,7 +5452,7 @@ func (_c *MockDwClientService_SetTransport_Call) Return() *MockDwClientService_S } func (_c *MockDwClientService_SetTransport_Call) RunAndReturn(run func(runtime.ClientTransport)) *MockDwClientService_SetTransport_Call { - _c.Run(run) + _c.Call.Return(run) return _c } diff --git a/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/environments/client/operations/MockEnvironmentClientService.go b/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/environments/client/operations/MockEnvironmentClientService.go index 553f2a2f..beb93033 100644 --- a/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/environments/client/operations/MockEnvironmentClientService.go +++ b/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/environments/client/operations/MockEnvironmentClientService.go @@ -5160,7 +5160,7 @@ func (_c *MockEnvironmentClientService_SetTransport_Call) Return() *MockEnvironm } func (_c *MockEnvironmentClientService_SetTransport_Call) RunAndReturn(run func(runtime.ClientTransport)) *MockEnvironmentClientService_SetTransport_Call { - _c.Run(run) + _c.Call.Return(run) return _c } @@ -6624,6 +6624,79 @@ func (_c *MockEnvironmentClientService_UpdateFreeipaToAwsImdsV2_Call) RunAndRetu return _c } +// UpdateGcpAvailabilityZones provides a mock function with given fields: params, opts +func (_m *MockEnvironmentClientService) UpdateGcpAvailabilityZones(params *operations.UpdateGcpAvailabilityZonesParams, opts ...operations.ClientOption) (*operations.UpdateGcpAvailabilityZonesOK, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateGcpAvailabilityZones") + } + + var r0 *operations.UpdateGcpAvailabilityZonesOK + var r1 error + if rf, ok := ret.Get(0).(func(*operations.UpdateGcpAvailabilityZonesParams, ...operations.ClientOption) (*operations.UpdateGcpAvailabilityZonesOK, error)); ok { + return rf(params, opts...) + } + if rf, ok := ret.Get(0).(func(*operations.UpdateGcpAvailabilityZonesParams, ...operations.ClientOption) *operations.UpdateGcpAvailabilityZonesOK); ok { + r0 = rf(params, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*operations.UpdateGcpAvailabilityZonesOK) + } + } + + if rf, ok := ret.Get(1).(func(*operations.UpdateGcpAvailabilityZonesParams, ...operations.ClientOption) error); ok { + r1 = rf(params, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateGcpAvailabilityZones' +type MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call struct { + *mock.Call +} + +// UpdateGcpAvailabilityZones is a helper method to define mock.On call +// - params *operations.UpdateGcpAvailabilityZonesParams +// - opts ...operations.ClientOption +func (_e *MockEnvironmentClientService_Expecter) UpdateGcpAvailabilityZones(params interface{}, opts ...interface{}) *MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call { + return &MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call{Call: _e.mock.On("UpdateGcpAvailabilityZones", + append([]interface{}{params}, opts...)...)} +} + +func (_c *MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call) Run(run func(params *operations.UpdateGcpAvailabilityZonesParams, opts ...operations.ClientOption)) *MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]operations.ClientOption, len(args)-1) + for i, a := range args[1:] { + if a != nil { + variadicArgs[i] = a.(operations.ClientOption) + } + } + run(args[0].(*operations.UpdateGcpAvailabilityZonesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call) Return(_a0 *operations.UpdateGcpAvailabilityZonesOK, _a1 error) *MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call) RunAndReturn(run func(*operations.UpdateGcpAvailabilityZonesParams, ...operations.ClientOption) (*operations.UpdateGcpAvailabilityZonesOK, error)) *MockEnvironmentClientService_UpdateGcpAvailabilityZones_Call { + _c.Call.Return(run) + return _c +} + // UpdateOrchestratorState provides a mock function with given fields: params, opts func (_m *MockEnvironmentClientService) UpdateOrchestratorState(params *operations.UpdateOrchestratorStateParams, opts ...operations.ClientOption) (*operations.UpdateOrchestratorStateOK, error) { _va := make([]interface{}, len(opts)) diff --git a/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/iam/client/operations/MockIamClientService.go b/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/iam/client/operations/MockIamClientService.go index fe2a8052..0d01aa06 100644 --- a/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/iam/client/operations/MockIamClientService.go +++ b/mocks/github.com/cloudera/terraform-provider-cdp/cdp-sdk-go/gen/iam/client/operations/MockIamClientService.go @@ -4036,6 +4036,79 @@ func (_c *MockIamClientService_ListUsers_Call) RunAndReturn(run func(*operations return _c } +// MigrateUsersToIdentityProvider provides a mock function with given fields: params, opts +func (_m *MockIamClientService) MigrateUsersToIdentityProvider(params *operations.MigrateUsersToIdentityProviderParams, opts ...operations.ClientOption) (*operations.MigrateUsersToIdentityProviderOK, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for MigrateUsersToIdentityProvider") + } + + var r0 *operations.MigrateUsersToIdentityProviderOK + var r1 error + if rf, ok := ret.Get(0).(func(*operations.MigrateUsersToIdentityProviderParams, ...operations.ClientOption) (*operations.MigrateUsersToIdentityProviderOK, error)); ok { + return rf(params, opts...) + } + if rf, ok := ret.Get(0).(func(*operations.MigrateUsersToIdentityProviderParams, ...operations.ClientOption) *operations.MigrateUsersToIdentityProviderOK); ok { + r0 = rf(params, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*operations.MigrateUsersToIdentityProviderOK) + } + } + + if rf, ok := ret.Get(1).(func(*operations.MigrateUsersToIdentityProviderParams, ...operations.ClientOption) error); ok { + r1 = rf(params, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockIamClientService_MigrateUsersToIdentityProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MigrateUsersToIdentityProvider' +type MockIamClientService_MigrateUsersToIdentityProvider_Call struct { + *mock.Call +} + +// MigrateUsersToIdentityProvider is a helper method to define mock.On call +// - params *operations.MigrateUsersToIdentityProviderParams +// - opts ...operations.ClientOption +func (_e *MockIamClientService_Expecter) MigrateUsersToIdentityProvider(params interface{}, opts ...interface{}) *MockIamClientService_MigrateUsersToIdentityProvider_Call { + return &MockIamClientService_MigrateUsersToIdentityProvider_Call{Call: _e.mock.On("MigrateUsersToIdentityProvider", + append([]interface{}{params}, opts...)...)} +} + +func (_c *MockIamClientService_MigrateUsersToIdentityProvider_Call) Run(run func(params *operations.MigrateUsersToIdentityProviderParams, opts ...operations.ClientOption)) *MockIamClientService_MigrateUsersToIdentityProvider_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]operations.ClientOption, len(args)-1) + for i, a := range args[1:] { + if a != nil { + variadicArgs[i] = a.(operations.ClientOption) + } + } + run(args[0].(*operations.MigrateUsersToIdentityProviderParams), variadicArgs...) + }) + return _c +} + +func (_c *MockIamClientService_MigrateUsersToIdentityProvider_Call) Return(_a0 *operations.MigrateUsersToIdentityProviderOK, _a1 error) *MockIamClientService_MigrateUsersToIdentityProvider_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockIamClientService_MigrateUsersToIdentityProvider_Call) RunAndReturn(run func(*operations.MigrateUsersToIdentityProviderParams, ...operations.ClientOption) (*operations.MigrateUsersToIdentityProviderOK, error)) *MockIamClientService_MigrateUsersToIdentityProvider_Call { + _c.Call.Return(run) + return _c +} + // RemoveMachineUserFromGroup provides a mock function with given fields: params, opts func (_m *MockIamClientService) RemoveMachineUserFromGroup(params *operations.RemoveMachineUserFromGroupParams, opts ...operations.ClientOption) (*operations.RemoveMachineUserFromGroupOK, error) { _va := make([]interface{}, len(opts)) @@ -4430,7 +4503,7 @@ func (_c *MockIamClientService_SetTransport_Call) Return() *MockIamClientService } func (_c *MockIamClientService_SetTransport_Call) RunAndReturn(run func(runtime.ClientTransport)) *MockIamClientService_SetTransport_Call { - _c.Run(run) + _c.Call.Return(run) return _c } diff --git a/resources/environments/converter_gcp_test.go b/resources/environments/converter_gcp_test.go index 1950b845..e2348b4e 100644 --- a/resources/environments/converter_gcp_test.go +++ b/resources/environments/converter_gcp_test.go @@ -174,6 +174,7 @@ func createFilledGcpEnvironmentResourceModel() *gcpEnvironmentResourceModel { } func createFilledEnvironment() *environmentsmodels.Environment { + falseVal := false return &environmentsmodels.Environment{ Authentication: &environmentsmodels.Authentication{ LoginUserName: "someLoginUserName", @@ -289,7 +290,7 @@ func createFilledEnvironment() *environmentsmodels.Environment { User: "someUser", }, Region: func(s string) *string { return &s }("someRegion"), - ReportDeploymentLogs: true, + ReportDeploymentLogs: &falseVal, SecurityAccess: &environmentsmodels.SecurityAccess{ Cidr: "someCidr", DefaultSecurityGroupID: "someDefaultSecurityGroupID", diff --git a/resources/environments/data_source_environment_config_test.go b/resources/environments/data_source_environment_config_test.go index a594c5eb..bcaa2db5 100644 --- a/resources/environments/data_source_environment_config_test.go +++ b/resources/environments/data_source_environment_config_test.go @@ -99,6 +99,7 @@ func TestCloudPlatformIsNilAddsError(t *testing.T) { func createEnvironmentTestModel(cloudPlatform *string) *models.Environment { status := "ACTIVE" + falseVal := false env := &models.Environment{ Authentication: nil, AwsComputeClusterConfiguration: nil, @@ -122,7 +123,7 @@ func createEnvironmentTestModel(cloudPlatform *string) *models.Environment { Network: nil, ProxyConfig: nil, Region: nil, - ReportDeploymentLogs: false, + ReportDeploymentLogs: &falseVal, SecurityAccess: nil, Status: &status, StatusReason: "",