diff --git a/go.mod b/go.mod index 23a373212aa..552c5ad9ca6 100644 --- a/go.mod +++ b/go.mod @@ -68,6 +68,6 @@ require ( ) // Uncomment this line to get OCI Go SDK from local source instead of github -replace github.com/oracle/oci-go-sdk/v65 v65.76.0 => ./vendor/github.com/oracle/oci-go-sdk +//replace github.com/oracle/oci-go-sdk/v65 v65.76.0 => ./vendor/github.com/oracle/oci-go-sdk go 1.21 diff --git a/go.sum b/go.sum index 1cccc9418da..bffe12df610 100644 --- a/go.sum +++ b/go.sum @@ -140,6 +140,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/oracle/oci-go-sdk/v65 v65.76.0 h1:mecdD9at/CMaQNEkcC5aMUR9aBF3brdiEyVkDRu/qVc= +github.com/oracle/oci-go-sdk/v65 v65.76.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/internal/client/certificates_clients.go b/internal/client/certificates_clients.go new file mode 100644 index 00000000000..3956410e043 --- /dev/null +++ b/internal/client/certificates_clients.go @@ -0,0 +1,33 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package client + +import ( + oci_certificates "github.com/oracle/oci-go-sdk/v65/certificates" + oci_common "github.com/oracle/oci-go-sdk/v65/common" +) + +func init() { + RegisterOracleClient("oci_certificates.CertificatesClient", &OracleClient{InitClientFn: initCertificatesCertificatesClient}) +} + +func initCertificatesCertificatesClient(configProvider oci_common.ConfigurationProvider, configureClient ConfigureClient, serviceClientOverrides ServiceClientOverrides) (interface{}, error) { + client, err := oci_certificates.NewCertificatesClientWithConfigurationProvider(configProvider) + if err != nil { + return nil, err + } + err = configureClient(&client.BaseClient) + if err != nil { + return nil, err + } + + if serviceClientOverrides.HostUrlOverride != "" { + client.Host = serviceClientOverrides.HostUrlOverride + } + return &client, nil +} + +func (m *OracleClients) CertificatesClient() *oci_certificates.CertificatesClient { + return m.GetClient("oci_certificates.CertificatesClient").(*oci_certificates.CertificatesClient) +} diff --git a/internal/integrationtest/certificates_certificate_authority_bundle_test.go b/internal/integrationtest/certificates_certificate_authority_bundle_test.go new file mode 100644 index 00000000000..fd5356f6033 --- /dev/null +++ b/internal/integrationtest/certificates_certificate_authority_bundle_test.go @@ -0,0 +1,61 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + CertificatesCertificateAuthorityBundleSingularDataSourceRepresentation = map[string]interface{}{ + "certificate_authority_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_certificates_management_certificate_authority.test_certificate_authority.id}`}, + "stage": acctest.Representation{RepType: acctest.Optional, Create: `CURRENT`}, + } + + CertificatesCertificateAuthorityBundleResourceConfig = acctest.GenerateResourceFromRepresentationMap("oci_certificates_management_certificate_authority", "test_certificate_authority", acctest.Required, acctest.Create, certificateAuthorityRepresentation) +) + +// issue-routing-tag: certificates/default +func TestCertificatesCertificateAuthorityBundleResource_basic(t *testing.T) { + httpreplay.SetScenario("TestCertificatesCertificateAuthorityBundleResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + singularDatasourceName := "data.oci_certificates_certificate_authority_bundle.test_certificate_authority_bundle" + + acctest.SaveConfigContent("", "", "", t) + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_certificates_certificate_authority_bundle", "test_certificate_authority_bundle", acctest.Optional, acctest.Create, CertificatesCertificateAuthorityBundleSingularDataSourceRepresentation) + + compartmentIdVariableStr + CertificatesCertificateAuthorityBundleResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "cert_chain_pem"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "certificate_authority_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "certificate_authority_name"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "certificate_pem"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "serial_number"), + resource.TestCheckResourceAttr(singularDatasourceName, "stages.#", "2"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttr(singularDatasourceName, "validity.#", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "validity.0.time_of_validity_not_before"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "validity.0.time_of_validity_not_after"), + resource.TestCheckResourceAttr(singularDatasourceName, "version_number", "1"), + ), + }, + }) +} diff --git a/internal/integrationtest/certificates_certificate_bundle_test.go b/internal/integrationtest/certificates_certificate_bundle_test.go new file mode 100644 index 00000000000..d8aae41c73a --- /dev/null +++ b/internal/integrationtest/certificates_certificate_bundle_test.go @@ -0,0 +1,64 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + CertificatesCertificateBundleSingularDataSourceRepresentation = map[string]interface{}{ + "certificate_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_certificates_management_certificate.test_certificate.id}`}, + "certificate_bundle_type": acctest.Representation{RepType: acctest.Optional, Create: `CERTIFICATE_CONTENT_WITH_PRIVATE_KEY`}, + "stage": acctest.Representation{RepType: acctest.Optional, Create: `CURRENT`}, + } + + CertificatesCertificateBundleResourceConfig = acctest.GenerateResourceFromRepresentationMap("oci_certificates_management_certificate", "test_certificate", acctest.Required, acctest.Create, certificatesManagementCertificateRepresentation) +) + +// issue-routing-tag: certificates/default +func TestCertificatesCertificateBundleResource_basic(t *testing.T) { + httpreplay.SetScenario("TestCertificatesCertificateBundleResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + singularDatasourceName := "data.oci_certificates_certificate_bundle.test_certificate_bundle" + + acctest.SaveConfigContent("", "", "", t) + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_certificates_certificate_bundle", "test_certificate_bundle", acctest.Optional, acctest.Create, CertificatesCertificateBundleSingularDataSourceRepresentation) + + compartmentIdVariableStr + CertificatesCertificateBundleResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "cert_chain_pem"), + resource.TestCheckResourceAttr(singularDatasourceName, "certificate_bundle_type", "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "certificate_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "certificate_name"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "certificate_pem"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "private_key_pem"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "serial_number"), + resource.TestCheckResourceAttr(singularDatasourceName, "stages.#", "2"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttr(singularDatasourceName, "validity.#", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "validity.0.time_of_validity_not_before"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "validity.0.time_of_validity_not_after"), + resource.TestCheckResourceAttr(singularDatasourceName, "version_number", "1"), + ), + }, + }) +} diff --git a/internal/provider/register_datasource.go b/internal/provider/register_datasource.go index 3932fa23fc9..b6272e82f1f 100644 --- a/internal/provider/register_datasource.go +++ b/internal/provider/register_datasource.go @@ -26,6 +26,7 @@ import ( tf_blockchain "github.com/oracle/terraform-provider-oci/internal/service/blockchain" tf_budget "github.com/oracle/terraform-provider-oci/internal/service/budget" tf_capacity_management "github.com/oracle/terraform-provider-oci/internal/service/capacity_management" + tf_certificates "github.com/oracle/terraform-provider-oci/internal/service/certificates" tf_certificates_management "github.com/oracle/terraform-provider-oci/internal/service/certificates_management" tf_cloud_bridge "github.com/oracle/terraform-provider-oci/internal/service/cloud_bridge" tf_cloud_guard "github.com/oracle/terraform-provider-oci/internal/service/cloud_guard" @@ -194,6 +195,9 @@ func init() { if common.CheckForEnabledServices("capacitymanagement") { tf_capacity_management.RegisterDatasource() } + if common.CheckForEnabledServices("certificates") { + tf_certificates.RegisterDatasource() + } if common.CheckForEnabledServices("certificatesmanagement") { tf_certificates_management.RegisterDatasource() } @@ -500,5 +504,4 @@ func init() { if common.CheckForEnabledServices("zpr") { tf_zpr.RegisterDatasource() } - } diff --git a/internal/service/certificates/certificates_certificate_authority_bundle_data_source.go b/internal/service/certificates/certificates_certificate_authority_bundle_data_source.go new file mode 100644 index 00000000000..40e665b2268 --- /dev/null +++ b/internal/service/certificates/certificates_certificate_authority_bundle_data_source.go @@ -0,0 +1,224 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package certificates + +import ( + "context" + "fmt" + "strconv" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + oci_certificates "github.com/oracle/oci-go-sdk/v65/certificates" + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func CertificatesCertificateAuthorityBundleDataSource() *schema.Resource { + return &schema.Resource{ + Read: readCertificatesCertificateAuthorityBundle, + Schema: map[string]*schema.Schema{ + "cert_chain_pem": { + Type: schema.TypeString, + Computed: true, + }, + "certificate_authority_id": { + Type: schema.TypeString, + Required: true, + }, + "certificate_authority_name": { + Type: schema.TypeString, + Computed: true, + }, + "certificate_pem": { + Type: schema.TypeString, + Computed: true, + }, + "certificate_authority_version_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "revocation_status": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "time_revoked": { + Type: schema.TypeString, + Required: true, + }, + "revocation_reason": { + Type: schema.TypeString, + Required: true, + }, + }, + }, + }, + "serial_number": { + Type: schema.TypeString, + Computed: true, + }, + "stage": { + Type: schema.TypeString, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "CURRENT", + "PENDING", + "LATEST", + "PREVIOUS", + "DEPRECATED", + }, true), + Optional: true, + }, + "stages": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "validity": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "time_of_validity_not_before": { + Type: schema.TypeString, + Required: true, + }, + "time_of_validity_not_after": { + Type: schema.TypeString, + Required: true, + }, + }, + }, + }, + "version_name": { + Type: schema.TypeString, + Computed: true, + }, + "version_number": { + Type: schema.TypeString, + Computed: true, + Optional: true, + }, + }, + } +} + +func readCertificatesCertificateAuthorityBundle(d *schema.ResourceData, m interface{}) error { + sync := &CertificatesCertificateAuthorityBundleDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).CertificatesClient() + + return tfresource.ReadResource(sync) +} + +type CertificatesCertificateAuthorityBundleDataSourceCrud struct { + D *schema.ResourceData + Client *oci_certificates.CertificatesClient + Res *oci_certificates.GetCertificateAuthorityBundleResponse +} + +func (s *CertificatesCertificateAuthorityBundleDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *CertificatesCertificateAuthorityBundleDataSourceCrud) Get() error { + request := oci_certificates.GetCertificateAuthorityBundleRequest{} + + if certificateAuthorityId, ok := s.D.GetOkExists("certificate_authority_id"); ok { + tmp := certificateAuthorityId.(string) + request.CertificateAuthorityId = &tmp + } + + if versionNumber, ok := s.D.GetOkExists("version_number"); ok { + tmp := versionNumber.(string) + tmpInt64, err := strconv.ParseInt(tmp, 10, 64) + if err != nil { + return fmt.Errorf("unable to convert versionNumber string: %s to an int64 and encountered error: %v", tmp, err) + } + request.VersionNumber = &tmpInt64 + } + + if certificateAuthorityVersionName, ok := s.D.GetOkExists("certificate_authority_version_name"); ok { + tmp := certificateAuthorityVersionName.(string) + request.CertificateAuthorityVersionName = &tmp + } + + if stage, ok := s.D.GetOkExists("stage"); ok { + request.Stage = oci_certificates.GetCertificateAuthorityBundleStageEnum(stage.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "certificates") + + response, err := s.Client.GetCertificateAuthorityBundle(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *CertificatesCertificateAuthorityBundleDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.CertificateAuthorityId) + + if s.Res.CertChainPem != nil { + s.D.Set("cert_chain_pem", *s.Res.CertChainPem) + } + + if s.Res.CertificateAuthorityName != nil { + s.D.Set("certificate_authority_name", *s.Res.CertificateAuthorityName) + } + + if s.Res.CertificatePem != nil { + s.D.Set("certificate_pem", *s.Res.CertificatePem) + } + + if s.Res.RevocationStatus != nil { + s.D.Set("revocation_status", []interface{}{revocationStatusToMap(s.Res.RevocationStatus)}) + } else { + s.D.Set("revocation_status", nil) + } + + if s.Res.SerialNumber != nil { + s.D.Set("serial_number", *s.Res.SerialNumber) + } + + stages := []interface{}{} + for _, item := range s.Res.Stages { + stages = append(stages, item) + } + s.D.Set("stages", stages) + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.Validity != nil { + s.D.Set("validity", []interface{}{validityToMap(s.Res.Validity)}) + } else { + s.D.Set("validity", nil) + } + + if s.Res.VersionName != nil { + s.D.Set("version_name", *s.Res.VersionName) + } + + if s.Res.VersionNumber != nil { + s.D.Set("version_number", strconv.FormatInt(*s.Res.VersionNumber, 10)) + } + + return nil +} diff --git a/internal/service/certificates/certificates_certificate_bundle_data_source.go b/internal/service/certificates/certificates_certificate_bundle_data_source.go new file mode 100644 index 00000000000..bca920315fe --- /dev/null +++ b/internal/service/certificates/certificates_certificate_bundle_data_source.go @@ -0,0 +1,272 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package certificates + +import ( + "context" + "fmt" + "strconv" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + oci_certificates "github.com/oracle/oci-go-sdk/v65/certificates" + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func CertificatesCertificateBundleDataSource() *schema.Resource { + return &schema.Resource{ + Read: readCertificatesCertificateBundle, + Schema: map[string]*schema.Schema{ + "cert_chain_pem": { + Type: schema.TypeString, + Computed: true, + }, + "certificate_bundle_type": { + Type: schema.TypeString, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "CERTIFICATE_CONTENT_PUBLIC_ONLY", + "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY", + }, true), + Optional: true, + Computed: true, + }, + "certificate_id": { + Type: schema.TypeString, + Required: true, + }, + "certificate_name": { + Type: schema.TypeString, + Computed: true, + }, + "certificate_pem": { + Type: schema.TypeString, + Computed: true, + }, + "certificate_version_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "private_key_pem": { + Type: schema.TypeString, + Computed: true, + }, + "private_key_pem_passphrase": { + Type: schema.TypeString, + Computed: true, + }, + "revocation_status": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "time_revoked": { + Type: schema.TypeString, + Required: true, + }, + "revocation_reason": { + Type: schema.TypeString, + Required: true, + }, + }, + }, + }, + "serial_number": { + Type: schema.TypeString, + Computed: true, + }, + "stage": { + Type: schema.TypeString, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "CURRENT", + "PENDING", + "LATEST", + "PREVIOUS", + "DEPRECATED", + }, true), + Optional: true, + }, + "stages": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "validity": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "time_of_validity_not_before": { + Type: schema.TypeString, + Required: true, + }, + "time_of_validity_not_after": { + Type: schema.TypeString, + Required: true, + }, + }, + }, + }, + "version_number": { + Type: schema.TypeString, + Computed: true, + Optional: true, + }, + }, + } +} + +func readCertificatesCertificateBundle(d *schema.ResourceData, m interface{}) error { + sync := &CertificatesCertificateBundleDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).CertificatesClient() + + return tfresource.ReadResource(sync) +} + +type CertificatesCertificateBundleDataSourceCrud struct { + D *schema.ResourceData + Client *oci_certificates.CertificatesClient + Res *oci_certificates.GetCertificateBundleResponse +} + +func (s *CertificatesCertificateBundleDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *CertificatesCertificateBundleDataSourceCrud) Get() error { + request := oci_certificates.GetCertificateBundleRequest{} + + if certificateId, ok := s.D.GetOkExists("certificate_id"); ok { + tmp := certificateId.(string) + request.CertificateId = &tmp + } + + if versionNumber, ok := s.D.GetOkExists("version_number"); ok { + tmp := versionNumber.(string) + tmpInt64, err := strconv.ParseInt(tmp, 10, 64) + if err != nil { + return fmt.Errorf("unable to convert versionNumber string: %s to an int64 and encountered error: %v", tmp, err) + } + request.VersionNumber = &tmpInt64 + } + + if certificateVersionName, ok := s.D.GetOkExists("certificate_version_name"); ok { + tmp := certificateVersionName.(string) + request.CertificateVersionName = &tmp + } + + if stage, ok := s.D.GetOkExists("stage"); ok { + request.Stage = oci_certificates.GetCertificateBundleStageEnum(stage.(string)) + } + + if certificateBundleType, ok := s.D.GetOkExists("certificate_bundle_type"); ok { + request.CertificateBundleType = oci_certificates.GetCertificateBundleCertificateBundleTypeEnum(certificateBundleType.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "certificates") + + response, err := s.Client.GetCertificateBundle(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *CertificatesCertificateBundleDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.GetCertificateId()) + + if s.Res.GetCertificateName() != nil { + s.D.Set("certificate_name", *s.Res.GetCertificateName()) + } + + if s.Res.GetVersionNumber() != nil { + s.D.Set("version_number", strconv.FormatInt(*s.Res.GetVersionNumber(), 10)) + } + + if s.Res.GetSerialNumber() != nil { + s.D.Set("serial_number", *s.Res.GetSerialNumber()) + } + + if s.Res.GetTimeCreated() != nil { + s.D.Set("time_created", s.Res.GetTimeCreated().String()) + } + + if s.Res.GetValidity() != nil { + s.D.Set("validity", []interface{}{validityToMap(s.Res.GetValidity())}) + } else { + s.D.Set("validity", nil) + } + + stages := []interface{}{} + for _, item := range s.Res.GetStages() { + stages = append(stages, item) + } + s.D.Set("stages", stages) + + if s.Res.GetCertificatePem() != nil { + s.D.Set("certificate_pem", *s.Res.GetCertificatePem()) + } + + if s.Res.GetCertChainPem() != nil { + s.D.Set("cert_chain_pem", *s.Res.GetCertChainPem()) + } + + if s.Res.GetVersionName() != nil { + s.D.Set("version_name", *s.Res.GetVersionName()) + } + + if s.Res.GetRevocationStatus() != nil { + s.D.Set("revocation_status", []interface{}{revocationStatusToMap(s.Res.GetRevocationStatus())}) + } else { + s.D.Set("revocation_status", nil) + } + + if bundle, ok := s.Res.CertificateBundle.(oci_certificates.CertificateBundleWithPrivateKey); ok { + if bundle.PrivateKeyPem != nil { + s.D.Set("private_key_pem", *bundle.PrivateKeyPem) + } + if bundle.PrivateKeyPemPassphrase != nil { + s.D.Set("private_key_passphrase", *bundle.PrivateKeyPemPassphrase) + } + s.D.Set("certificate_bundle_type", "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY") + } else { + s.D.Set("certificate_bundle_type", "CERTIFICATE_CONTENT_PUBLIC_ONLY") + } + + return nil +} + +func validityToMap(obj *oci_certificates.Validity) map[string]interface{} { + result := map[string]interface{}{ + "time_of_validity_not_before": obj.TimeOfValidityNotBefore.String(), + "time_of_validity_not_after": obj.TimeOfValidityNotAfter.String(), + } + + return result +} + +func revocationStatusToMap(obj *oci_certificates.RevocationStatus) map[string]interface{} { + result := map[string]interface{}{ + "time_revoked": obj.TimeRevoked.String(), + "revocation_reason": obj.RevocationReason, + } + + return result +} diff --git a/internal/service/certificates/register_datasource.go b/internal/service/certificates/register_datasource.go new file mode 100644 index 00000000000..cde593914c8 --- /dev/null +++ b/internal/service/certificates/register_datasource.go @@ -0,0 +1,11 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package certificates + +import "github.com/oracle/terraform-provider-oci/internal/tfresource" + +func RegisterDatasource() { + tfresource.RegisterDatasource("oci_certificates_certificate_bundle", CertificatesCertificateBundleDataSource()) + tfresource.RegisterDatasource("oci_certificates_certificate_authority_bundle", CertificatesCertificateAuthorityBundleDataSource()) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/config_association_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go similarity index 52% rename from vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/config_association_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go index ba034a0467e..0428309c885 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/config_association_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go @@ -2,12 +2,12 @@ // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. -// Fleet Application Management Service API +// Certificates Service Retrieval API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// API for retrieving certificates. // -package fleetappsmanagement +package certificates import ( "fmt" @@ -15,26 +15,27 @@ import ( "strings" ) -// ConfigAssociationDetails Associated Configuration details. -type ConfigAssociationDetails struct { +// CaBundle The contents of the CA bundle (root and intermediate certificates), properties of the CA bundle, and user-provided contextual metadata for the CA bundle. +type CaBundle struct { - // The OCID of the resource. + // The OCID of the CA bundle. Id *string `mandatory:"true" json:"id"` - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"false" json:"displayName"` + // A user-friendly name for the CA bundle. Names are unique within a compartment. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods. + Name *string `mandatory:"true" json:"name"` + + // Certificates (in PEM format) in the CA bundle. Can be of arbitrary length. + CaBundlePem *string `mandatory:"true" json:"caBundlePem"` } -func (m ConfigAssociationDetails) String() string { +func (m CaBundle) String() string { return common.PointerString(m) } // ValidateEnumValue returns an error when providing an unsupported enum value // This function is being called during constructing API request process // Not recommended for calling this function directly -func (m ConfigAssociationDetails) ValidateEnumValue() (bool, error) { +func (m CaBundle) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go new file mode 100644 index 00000000000..123002d4df8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CertificateAuthorityBundle The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate. +type CertificateAuthorityBundle struct { + + // The OCID of the certificate authority (CA). + CertificateAuthorityId *string `mandatory:"true" json:"certificateAuthorityId"` + + // The name of the CA. + CertificateAuthorityName *string `mandatory:"true" json:"certificateAuthorityName"` + + // A unique certificate identifier used in certificate revocation tracking, formatted as octets. + // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` + SerialNumber *string `mandatory:"true" json:"serialNumber"` + + // The certificate (in PEM format) for this CA version. + CertificatePem *string `mandatory:"true" json:"certificatePem"` + + // A property indicating when the CA was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The version number of the CA. + VersionNumber *int64 `mandatory:"true" json:"versionNumber"` + + Validity *Validity `mandatory:"true" json:"validity"` + + // A list of rotation states for this CA. + Stages []VersionStageEnum `mandatory:"true" json:"stages"` + + // The certificate chain (in PEM format) for this CA version. + CertChainPem *string `mandatory:"false" json:"certChainPem"` + + // The name of the CA. + VersionName *string `mandatory:"false" json:"versionName"` + + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` +} + +func (m CertificateAuthorityBundle) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CertificateAuthorityBundle) ValidateEnumValue() (bool, error) { + errMessage := []string{} + for _, val := range m.Stages { + if _, ok := GetMappingVersionStageEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stages: %s. Supported values are: %s.", val, strings.Join(GetVersionStageEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go similarity index 57% rename from vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_collection.go rename to vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go index 29455abdde2..882a9ecf379 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go @@ -2,12 +2,12 @@ // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. -// Fleet Application Management Service API +// Certificates Service Retrieval API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// API for retrieving certificates. // -package fleetappsmanagement +package certificates import ( "fmt" @@ -15,21 +15,21 @@ import ( "strings" ) -// PatchCollection Results of a patch search. Contains both PatchSummary items and other information, such as metadata. -type PatchCollection struct { +// CertificateAuthorityBundleVersionCollection The results of a certificate authority (CA) version search. Results contain CA version summary objects and other data. +type CertificateAuthorityBundleVersionCollection struct { - // List of patches. - Items []PatchSummary `mandatory:"true" json:"items"` + // A list of CA version summary objects. + Items []CertificateAuthorityBundleVersionSummary `mandatory:"true" json:"items"` } -func (m PatchCollection) String() string { +func (m CertificateAuthorityBundleVersionCollection) String() string { return common.PointerString(m) } // ValidateEnumValue returns an error when providing an unsupported enum value // This function is being called during constructing API request process // Not recommended for calling this function directly -func (m PatchCollection) ValidateEnumValue() (bool, error) { +func (m CertificateAuthorityBundleVersionCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_summary.go new file mode 100644 index 00000000000..f7d5c8fe5ed --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_summary.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CertificateAuthorityBundleVersionSummary The properties of a version of a bundle for a certificate authority (CA). Certificate authority bundle version summary objects do not include the actual contents of the certificate. +type CertificateAuthorityBundleVersionSummary struct { + + // The OCID of the certificate authority (CA). + CertificateAuthorityId *string `mandatory:"true" json:"certificateAuthorityId"` + + // An optional property indicating when the CA version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The version number of the CA. + VersionNumber *int64 `mandatory:"true" json:"versionNumber"` + + // The name of the CA. + CertificateAuthorityName *string `mandatory:"true" json:"certificateAuthorityName"` + + // A list of rotation states for this CA version. + Stages []VersionStageEnum `mandatory:"true" json:"stages"` + + // A unique certificate identifier used in certificate revocation tracking, formatted as octets. + // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` + SerialNumber *string `mandatory:"false" json:"serialNumber"` + + // The name of the CA version. When this value is not null, the name is unique across CA versions for a given CA. + VersionName *string `mandatory:"false" json:"versionName"` + + // An optional property indicating when to delete the CA version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` + + Validity *Validity `mandatory:"false" json:"validity"` + + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` +} + +func (m CertificateAuthorityBundleVersionSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CertificateAuthorityBundleVersionSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + for _, val := range m.Stages { + if _, ok := GetMappingVersionStageEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stages: %s. Supported values are: %s.", val, strings.Join(GetVersionStageEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle.go new file mode 100644 index 00000000000..a5c9cf785b5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle.go @@ -0,0 +1,238 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CertificateBundle The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate. +type CertificateBundle interface { + + // The OCID of the certificate. + GetCertificateId() *string + + // The name of the certificate. + GetCertificateName() *string + + // The version number of the certificate. + GetVersionNumber() *int64 + + // A unique certificate identifier used in certificate revocation tracking, formatted as octets. + // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` + GetSerialNumber() *string + + // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + GetTimeCreated() *common.SDKTime + + GetValidity() *Validity + + // A list of rotation states for the certificate bundle. + GetStages() []VersionStageEnum + + // The certificate in PEM format. + GetCertificatePem() *string + + // The certificate chain (in PEM format) for the certificate bundle. + GetCertChainPem() *string + + // The name of the certificate version. + GetVersionName() *string + + GetRevocationStatus() *RevocationStatus +} + +type certificatebundle struct { + JsonData []byte + CertificatePem *string `mandatory:"false" json:"certificatePem"` + CertChainPem *string `mandatory:"false" json:"certChainPem"` + VersionName *string `mandatory:"false" json:"versionName"` + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` + CertificateId *string `mandatory:"true" json:"certificateId"` + CertificateName *string `mandatory:"true" json:"certificateName"` + VersionNumber *int64 `mandatory:"true" json:"versionNumber"` + SerialNumber *string `mandatory:"true" json:"serialNumber"` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + Validity *Validity `mandatory:"true" json:"validity"` + Stages []VersionStageEnum `mandatory:"true" json:"stages"` + CertificateBundleType string `json:"certificateBundleType"` +} + +// UnmarshalJSON unmarshals json +func (m *certificatebundle) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalercertificatebundle certificatebundle + s := struct { + Model Unmarshalercertificatebundle + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CertificateId = s.Model.CertificateId + m.CertificateName = s.Model.CertificateName + m.VersionNumber = s.Model.VersionNumber + m.SerialNumber = s.Model.SerialNumber + m.TimeCreated = s.Model.TimeCreated + m.Validity = s.Model.Validity + m.Stages = s.Model.Stages + m.CertificatePem = s.Model.CertificatePem + m.CertChainPem = s.Model.CertChainPem + m.VersionName = s.Model.VersionName + m.RevocationStatus = s.Model.RevocationStatus + m.CertificateBundleType = s.Model.CertificateBundleType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *certificatebundle) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.CertificateBundleType { + case "CERTIFICATE_CONTENT_PUBLIC_ONLY": + mm := CertificateBundlePublicOnly{} + err = json.Unmarshal(data, &mm) + return mm, err + case "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY": + mm := CertificateBundleWithPrivateKey{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for CertificateBundle: %s.", m.CertificateBundleType) + return *m, nil + } +} + +// GetCertificatePem returns CertificatePem +func (m certificatebundle) GetCertificatePem() *string { + return m.CertificatePem +} + +// GetCertChainPem returns CertChainPem +func (m certificatebundle) GetCertChainPem() *string { + return m.CertChainPem +} + +// GetVersionName returns VersionName +func (m certificatebundle) GetVersionName() *string { + return m.VersionName +} + +// GetRevocationStatus returns RevocationStatus +func (m certificatebundle) GetRevocationStatus() *RevocationStatus { + return m.RevocationStatus +} + +// GetCertificateId returns CertificateId +func (m certificatebundle) GetCertificateId() *string { + return m.CertificateId +} + +// GetCertificateName returns CertificateName +func (m certificatebundle) GetCertificateName() *string { + return m.CertificateName +} + +// GetVersionNumber returns VersionNumber +func (m certificatebundle) GetVersionNumber() *int64 { + return m.VersionNumber +} + +// GetSerialNumber returns SerialNumber +func (m certificatebundle) GetSerialNumber() *string { + return m.SerialNumber +} + +// GetTimeCreated returns TimeCreated +func (m certificatebundle) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +// GetValidity returns Validity +func (m certificatebundle) GetValidity() *Validity { + return m.Validity +} + +// GetStages returns Stages +func (m certificatebundle) GetStages() []VersionStageEnum { + return m.Stages +} + +func (m certificatebundle) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m certificatebundle) ValidateEnumValue() (bool, error) { + errMessage := []string{} + for _, val := range m.Stages { + if _, ok := GetMappingVersionStageEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stages: %s. Supported values are: %s.", val, strings.Join(GetVersionStageEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CertificateBundleCertificateBundleTypeEnum Enum with underlying type: string +type CertificateBundleCertificateBundleTypeEnum string + +// Set of constants representing the allowable values for CertificateBundleCertificateBundleTypeEnum +const ( + CertificateBundleCertificateBundleTypePublicOnly CertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_PUBLIC_ONLY" + CertificateBundleCertificateBundleTypeWithPrivateKey CertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY" +) + +var mappingCertificateBundleCertificateBundleTypeEnum = map[string]CertificateBundleCertificateBundleTypeEnum{ + "CERTIFICATE_CONTENT_PUBLIC_ONLY": CertificateBundleCertificateBundleTypePublicOnly, + "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY": CertificateBundleCertificateBundleTypeWithPrivateKey, +} + +var mappingCertificateBundleCertificateBundleTypeEnumLowerCase = map[string]CertificateBundleCertificateBundleTypeEnum{ + "certificate_content_public_only": CertificateBundleCertificateBundleTypePublicOnly, + "certificate_content_with_private_key": CertificateBundleCertificateBundleTypeWithPrivateKey, +} + +// GetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for CertificateBundleCertificateBundleTypeEnum +func GetCertificateBundleCertificateBundleTypeEnumValues() []CertificateBundleCertificateBundleTypeEnum { + values := make([]CertificateBundleCertificateBundleTypeEnum, 0) + for _, v := range mappingCertificateBundleCertificateBundleTypeEnum { + values = append(values, v) + } + return values +} + +// GetCertificateBundleCertificateBundleTypeEnumStringValues Enumerates the set of values in String for CertificateBundleCertificateBundleTypeEnum +func GetCertificateBundleCertificateBundleTypeEnumStringValues() []string { + return []string{ + "CERTIFICATE_CONTENT_PUBLIC_ONLY", + "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY", + } +} + +// GetMappingCertificateBundleCertificateBundleTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCertificateBundleCertificateBundleTypeEnum(val string) (CertificateBundleCertificateBundleTypeEnum, bool) { + enum, ok := mappingCertificateBundleCertificateBundleTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_public_only.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_public_only.go new file mode 100644 index 00000000000..d85860f0dd1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_public_only.go @@ -0,0 +1,145 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CertificateBundlePublicOnly A certificate bundle, not including the private key. +type CertificateBundlePublicOnly struct { + + // The OCID of the certificate. + CertificateId *string `mandatory:"true" json:"certificateId"` + + // The name of the certificate. + CertificateName *string `mandatory:"true" json:"certificateName"` + + // The version number of the certificate. + VersionNumber *int64 `mandatory:"true" json:"versionNumber"` + + // A unique certificate identifier used in certificate revocation tracking, formatted as octets. + // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` + SerialNumber *string `mandatory:"true" json:"serialNumber"` + + // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + Validity *Validity `mandatory:"true" json:"validity"` + + // The certificate in PEM format. + CertificatePem *string `mandatory:"false" json:"certificatePem"` + + // The certificate chain (in PEM format) for the certificate bundle. + CertChainPem *string `mandatory:"false" json:"certChainPem"` + + // The name of the certificate version. + VersionName *string `mandatory:"false" json:"versionName"` + + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` + + // A list of rotation states for the certificate bundle. + Stages []VersionStageEnum `mandatory:"true" json:"stages"` +} + +// GetCertificateId returns CertificateId +func (m CertificateBundlePublicOnly) GetCertificateId() *string { + return m.CertificateId +} + +// GetCertificateName returns CertificateName +func (m CertificateBundlePublicOnly) GetCertificateName() *string { + return m.CertificateName +} + +// GetVersionNumber returns VersionNumber +func (m CertificateBundlePublicOnly) GetVersionNumber() *int64 { + return m.VersionNumber +} + +// GetSerialNumber returns SerialNumber +func (m CertificateBundlePublicOnly) GetSerialNumber() *string { + return m.SerialNumber +} + +// GetCertificatePem returns CertificatePem +func (m CertificateBundlePublicOnly) GetCertificatePem() *string { + return m.CertificatePem +} + +// GetCertChainPem returns CertChainPem +func (m CertificateBundlePublicOnly) GetCertChainPem() *string { + return m.CertChainPem +} + +// GetTimeCreated returns TimeCreated +func (m CertificateBundlePublicOnly) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +// GetValidity returns Validity +func (m CertificateBundlePublicOnly) GetValidity() *Validity { + return m.Validity +} + +// GetVersionName returns VersionName +func (m CertificateBundlePublicOnly) GetVersionName() *string { + return m.VersionName +} + +// GetStages returns Stages +func (m CertificateBundlePublicOnly) GetStages() []VersionStageEnum { + return m.Stages +} + +// GetRevocationStatus returns RevocationStatus +func (m CertificateBundlePublicOnly) GetRevocationStatus() *RevocationStatus { + return m.RevocationStatus +} + +func (m CertificateBundlePublicOnly) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CertificateBundlePublicOnly) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.Stages { + if _, ok := GetMappingVersionStageEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stages: %s. Supported values are: %s.", val, strings.Join(GetVersionStageEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m CertificateBundlePublicOnly) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCertificateBundlePublicOnly CertificateBundlePublicOnly + s := struct { + DiscriminatorParam string `json:"certificateBundleType"` + MarshalTypeCertificateBundlePublicOnly + }{ + "CERTIFICATE_CONTENT_PUBLIC_ONLY", + (MarshalTypeCertificateBundlePublicOnly)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go similarity index 59% rename from vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_type.go rename to vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go index 7d04b7822e1..f453c0b78d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go @@ -2,12 +2,12 @@ // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. -// Fleet Application Management Service API +// Certificates Service Retrieval API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// API for retrieving certificates. // -package fleetappsmanagement +package certificates import ( "fmt" @@ -15,21 +15,21 @@ import ( "strings" ) -// PatchType Patch Type -type PatchType struct { +// CertificateBundleVersionCollection The results of a certificate bundle versions search. Results contain certificate bundle version summary objects. +type CertificateBundleVersionCollection struct { - // PlatformConfiguration Id corresponding to the Patch Type - PlatformConfigurationId *string `mandatory:"true" json:"platformConfigurationId"` + // A list of certificate bundle version summary objects. + Items []CertificateBundleVersionSummary `mandatory:"true" json:"items"` } -func (m PatchType) String() string { +func (m CertificateBundleVersionCollection) String() string { return common.PointerString(m) } // ValidateEnumValue returns an error when providing an unsupported enum value // This function is being called during constructing API request process // Not recommended for calling this function directly -func (m PatchType) ValidateEnumValue() (bool, error) { +func (m CertificateBundleVersionCollection) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_summary.go new file mode 100644 index 00000000000..3e9672a51ad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_summary.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CertificateBundleVersionSummary The properties of the certificate bundle. Certificate bundle version summary objects do not include the actual contents of the certificate. +type CertificateBundleVersionSummary struct { + + // The OCID of the certificate. + CertificateId *string `mandatory:"true" json:"certificateId"` + + // The name of the certificate. + CertificateName *string `mandatory:"true" json:"certificateName"` + + // The version number of the certificate. + VersionNumber *int64 `mandatory:"true" json:"versionNumber"` + + // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A list of rotation states for this certificate bundle version. + Stages []VersionStageEnum `mandatory:"true" json:"stages"` + + // A unique certificate identifier used in certificate revocation tracking, formatted as octets. + // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` + SerialNumber *string `mandatory:"false" json:"serialNumber"` + + // The name of the certificate version. + VersionName *string `mandatory:"false" json:"versionName"` + + Validity *Validity `mandatory:"false" json:"validity"` + + // An optional property indicating when to delete the certificate version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` + + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` +} + +func (m CertificateBundleVersionSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CertificateBundleVersionSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + for _, val := range m.Stages { + if _, ok := GetMappingVersionStageEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stages: %s. Supported values are: %s.", val, strings.Join(GetVersionStageEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_with_private_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_with_private_key.go new file mode 100644 index 00000000000..dba68197fb8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_with_private_key.go @@ -0,0 +1,151 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CertificateBundleWithPrivateKey A certificate bundle, including the private key. +type CertificateBundleWithPrivateKey struct { + + // The OCID of the certificate. + CertificateId *string `mandatory:"true" json:"certificateId"` + + // The name of the certificate. + CertificateName *string `mandatory:"true" json:"certificateName"` + + // The version number of the certificate. + VersionNumber *int64 `mandatory:"true" json:"versionNumber"` + + // A unique certificate identifier used in certificate revocation tracking, formatted as octets. + // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF` + SerialNumber *string `mandatory:"true" json:"serialNumber"` + + // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + Validity *Validity `mandatory:"true" json:"validity"` + + // The private key (in PEM format) for the certificate. + PrivateKeyPem *string `mandatory:"true" json:"privateKeyPem"` + + // The certificate in PEM format. + CertificatePem *string `mandatory:"false" json:"certificatePem"` + + // The certificate chain (in PEM format) for the certificate bundle. + CertChainPem *string `mandatory:"false" json:"certChainPem"` + + // The name of the certificate version. + VersionName *string `mandatory:"false" json:"versionName"` + + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` + + // An optional passphrase for the private key. + PrivateKeyPemPassphrase *string `mandatory:"false" json:"privateKeyPemPassphrase"` + + // A list of rotation states for the certificate bundle. + Stages []VersionStageEnum `mandatory:"true" json:"stages"` +} + +// GetCertificateId returns CertificateId +func (m CertificateBundleWithPrivateKey) GetCertificateId() *string { + return m.CertificateId +} + +// GetCertificateName returns CertificateName +func (m CertificateBundleWithPrivateKey) GetCertificateName() *string { + return m.CertificateName +} + +// GetVersionNumber returns VersionNumber +func (m CertificateBundleWithPrivateKey) GetVersionNumber() *int64 { + return m.VersionNumber +} + +// GetSerialNumber returns SerialNumber +func (m CertificateBundleWithPrivateKey) GetSerialNumber() *string { + return m.SerialNumber +} + +// GetCertificatePem returns CertificatePem +func (m CertificateBundleWithPrivateKey) GetCertificatePem() *string { + return m.CertificatePem +} + +// GetCertChainPem returns CertChainPem +func (m CertificateBundleWithPrivateKey) GetCertChainPem() *string { + return m.CertChainPem +} + +// GetTimeCreated returns TimeCreated +func (m CertificateBundleWithPrivateKey) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +// GetValidity returns Validity +func (m CertificateBundleWithPrivateKey) GetValidity() *Validity { + return m.Validity +} + +// GetVersionName returns VersionName +func (m CertificateBundleWithPrivateKey) GetVersionName() *string { + return m.VersionName +} + +// GetStages returns Stages +func (m CertificateBundleWithPrivateKey) GetStages() []VersionStageEnum { + return m.Stages +} + +// GetRevocationStatus returns RevocationStatus +func (m CertificateBundleWithPrivateKey) GetRevocationStatus() *RevocationStatus { + return m.RevocationStatus +} + +func (m CertificateBundleWithPrivateKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CertificateBundleWithPrivateKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.Stages { + if _, ok := GetMappingVersionStageEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stages: %s. Supported values are: %s.", val, strings.Join(GetVersionStageEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m CertificateBundleWithPrivateKey) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCertificateBundleWithPrivateKey CertificateBundleWithPrivateKey + s := struct { + DiscriminatorParam string `json:"certificateBundleType"` + MarshalTypeCertificateBundleWithPrivateKey + }{ + "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY", + (MarshalTypeCertificateBundleWithPrivateKey)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificates_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificates_client.go new file mode 100644 index 00000000000..a7f290397a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificates_client.go @@ -0,0 +1,381 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// CertificatesClient a client for Certificates +type CertificatesClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewCertificatesClientWithConfigurationProvider Creates a new default Certificates client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewCertificatesClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CertificatesClient, err error) { + if enabled := common.CheckForEnabledServices("certificates"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newCertificatesClientFromBaseClient(baseClient, provider) +} + +// NewCertificatesClientWithOboToken Creates a new default Certificates client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// +// as well as reading the region +func NewCertificatesClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CertificatesClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newCertificatesClientFromBaseClient(baseClient, configProvider) +} + +func newCertificatesClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client CertificatesClient, err error) { + // Certificates service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Certificates")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = CertificatesClient{BaseClient: baseClient} + client.BasePath = "20210224" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *CertificatesClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("certificates", "https://certificates.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *CertificatesClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *CertificatesClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// GetCaBundle Gets a ca-bundle bundle. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/GetCaBundle.go.html to see an example of how to use GetCaBundle API. +func (client CertificatesClient) GetCaBundle(ctx context.Context, request GetCaBundleRequest) (response GetCaBundleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getCaBundle, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetCaBundleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetCaBundleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetCaBundleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetCaBundleResponse") + } + return +} + +// getCaBundle implements the OCIOperation interface (enables retrying operations) +func (client CertificatesClient) getCaBundle(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/caBundles/{caBundleId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetCaBundleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/certificates/20210224/CaBundle/GetCaBundle" + err = common.PostProcessServiceError(err, "Certificates", "GetCaBundle", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetCertificateAuthorityBundle Gets a certificate authority bundle that matches either the specified `stage`, `name`, or `versionNumber` parameter. +// If none of these parameters are provided, the bundle for the certificate authority version marked as `CURRENT` will be returned. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/GetCertificateAuthorityBundle.go.html to see an example of how to use GetCertificateAuthorityBundle API. +func (client CertificatesClient) GetCertificateAuthorityBundle(ctx context.Context, request GetCertificateAuthorityBundleRequest) (response GetCertificateAuthorityBundleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getCertificateAuthorityBundle, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetCertificateAuthorityBundleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetCertificateAuthorityBundleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetCertificateAuthorityBundleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetCertificateAuthorityBundleResponse") + } + return +} + +// getCertificateAuthorityBundle implements the OCIOperation interface (enables retrying operations) +func (client CertificatesClient) getCertificateAuthorityBundle(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/certificateAuthorityBundles/{certificateAuthorityId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetCertificateAuthorityBundleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/certificates/20210224/CertificateAuthorityBundle/GetCertificateAuthorityBundle" + err = common.PostProcessServiceError(err, "Certificates", "GetCertificateAuthorityBundle", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetCertificateBundle Gets a certificate bundle that matches either the specified `stage`, `versionName`, or `versionNumber` parameter. +// If none of these parameters are provided, the bundle for the certificate version marked as `CURRENT` will be returned. +// By default, the private key is not included in the query result, and a CertificateBundlePublicOnly is returned. +// If the private key is needed, use the CertificateBundleTypeQueryParam parameter to get a CertificateBundleWithPrivateKey response. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/GetCertificateBundle.go.html to see an example of how to use GetCertificateBundle API. +func (client CertificatesClient) GetCertificateBundle(ctx context.Context, request GetCertificateBundleRequest) (response GetCertificateBundleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getCertificateBundle, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetCertificateBundleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetCertificateBundleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetCertificateBundleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetCertificateBundleResponse") + } + return +} + +// getCertificateBundle implements the OCIOperation interface (enables retrying operations) +func (client CertificatesClient) getCertificateBundle(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/certificateBundles/{certificateId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetCertificateBundleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/certificates/20210224/CertificateBundle/GetCertificateBundle" + err = common.PostProcessServiceError(err, "Certificates", "GetCertificateBundle", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &certificatebundle{}) + return response, err +} + +// ListCertificateAuthorityBundleVersions Lists all certificate authority bundle versions for the specified certificate authority. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/ListCertificateAuthorityBundleVersions.go.html to see an example of how to use ListCertificateAuthorityBundleVersions API. +func (client CertificatesClient) ListCertificateAuthorityBundleVersions(ctx context.Context, request ListCertificateAuthorityBundleVersionsRequest) (response ListCertificateAuthorityBundleVersionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listCertificateAuthorityBundleVersions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListCertificateAuthorityBundleVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListCertificateAuthorityBundleVersionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListCertificateAuthorityBundleVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListCertificateAuthorityBundleVersionsResponse") + } + return +} + +// listCertificateAuthorityBundleVersions implements the OCIOperation interface (enables retrying operations) +func (client CertificatesClient) listCertificateAuthorityBundleVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/certificateAuthorityBundles/{certificateAuthorityId}/versions", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListCertificateAuthorityBundleVersionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/certificates/20210224/CertificateAuthorityBundleVersionSummary/ListCertificateAuthorityBundleVersions" + err = common.PostProcessServiceError(err, "Certificates", "ListCertificateAuthorityBundleVersions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListCertificateBundleVersions Lists all certificate bundle versions for the specified certificate. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/ListCertificateBundleVersions.go.html to see an example of how to use ListCertificateBundleVersions API. +func (client CertificatesClient) ListCertificateBundleVersions(ctx context.Context, request ListCertificateBundleVersionsRequest) (response ListCertificateBundleVersionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listCertificateBundleVersions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListCertificateBundleVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListCertificateBundleVersionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListCertificateBundleVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListCertificateBundleVersionsResponse") + } + return +} + +// listCertificateBundleVersions implements the OCIOperation interface (enables retrying operations) +func (client CertificatesClient) listCertificateBundleVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/certificateBundles/{certificateId}/versions", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListCertificateBundleVersionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/certificates/20210224/CertificateBundleVersionSummary/ListCertificateBundleVersions" + err = common.PostProcessServiceError(err, "Certificates", "ListCertificateBundleVersions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go similarity index 62% rename from vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_patch_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go index d568c9fc6c5..d8143c6a6c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_patch_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go @@ -2,7 +2,7 @@ // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. -package fleetappsmanagement +package certificates import ( "fmt" @@ -11,17 +11,18 @@ import ( "strings" ) -// GetPatchRequest wrapper for the GetPatch operation +// GetCaBundleRequest wrapper for the GetCaBundle operation // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetPatch.go.html to see an example of how to use GetPatchRequest. -type GetPatchRequest struct { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/GetCaBundle.go.html to see an example of how to use GetCaBundleRequest. +type GetCaBundleRequest struct { - // unique Patch identifier - PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` + // The OCID of the CA bundle. + CaBundleId *string `mandatory:"true" contributesTo:"path" name:"caBundleId"` - // The client request ID for tracing. + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but @@ -29,12 +30,12 @@ type GetPatchRequest struct { RequestMetadata common.RequestMetadata } -func (request GetPatchRequest) String() string { +func (request GetCaBundleRequest) String() string { return common.PointerString(request) } // HTTPRequest implements the OCIRequest interface -func (request GetPatchRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { +func (request GetCaBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { _, err := request.ValidateEnumValue() if err != nil { @@ -44,21 +45,21 @@ func (request GetPatchRequest) HTTPRequest(method, path string, binaryRequestBod } // BinaryRequestBody implements the OCIRequest interface -func (request GetPatchRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { +func (request GetCaBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { return nil, false } // RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetPatchRequest) RetryPolicy() *common.RetryPolicy { +func (request GetCaBundleRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } // ValidateEnumValue returns an error when providing an unsupported enum value // This function is being called during constructing API request process // Not recommended for calling this function directly -func (request GetPatchRequest) ValidateEnumValue() (bool, error) { +func (request GetCaBundleRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) @@ -66,28 +67,27 @@ func (request GetPatchRequest) ValidateEnumValue() (bool, error) { return false, nil } -// GetPatchResponse wrapper for the GetPatch operation -type GetPatchResponse struct { +// GetCaBundleResponse wrapper for the GetCaBundle operation +type GetCaBundleResponse struct { // The underlying http response RawResponse *http.Response - // The Patch instance - Patch `presentIn:"body"` + // The CaBundle instance + CaBundle `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } -func (response GetPatchResponse) String() string { +func (response GetCaBundleResponse) String() string { return common.PointerString(response) } // HTTPResponse implements the OCIResponse interface -func (response GetPatchResponse) HTTPResponse() *http.Response { +func (response GetCaBundleResponse) HTTPResponse() *http.Response { return response.RawResponse } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_authority_bundle_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_authority_bundle_request_response.go new file mode 100644 index 00000000000..0ec3ede49e3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_authority_bundle_request_response.go @@ -0,0 +1,159 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCertificateAuthorityBundleRequest wrapper for the GetCertificateAuthorityBundle operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/GetCertificateAuthorityBundle.go.html to see an example of how to use GetCertificateAuthorityBundleRequest. +type GetCertificateAuthorityBundleRequest struct { + + // The OCID of the certificate authority (CA). + CertificateAuthorityId *string `mandatory:"true" contributesTo:"path" name:"certificateAuthorityId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The version number of the certificate authority (CA). + VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"` + + // The name of the certificate authority (CA). (This might be referred to as the name of the CA version, as every CA consists of at least one version.) Names are unique across versions of a given CA. + CertificateAuthorityVersionName *string `mandatory:"false" contributesTo:"query" name:"certificateAuthorityVersionName"` + + // The rotation state of the certificate version. + Stage GetCertificateAuthorityBundleStageEnum `mandatory:"false" contributesTo:"query" name:"stage" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCertificateAuthorityBundleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCertificateAuthorityBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetCertificateAuthorityBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCertificateAuthorityBundleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCertificateAuthorityBundleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetCertificateAuthorityBundleStageEnum(string(request.Stage)); !ok && request.Stage != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stage: %s. Supported values are: %s.", request.Stage, strings.Join(GetGetCertificateAuthorityBundleStageEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCertificateAuthorityBundleResponse wrapper for the GetCertificateAuthorityBundle operation +type GetCertificateAuthorityBundleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CertificateAuthorityBundle instance + CertificateAuthorityBundle `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetCertificateAuthorityBundleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCertificateAuthorityBundleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetCertificateAuthorityBundleStageEnum Enum with underlying type: string +type GetCertificateAuthorityBundleStageEnum string + +// Set of constants representing the allowable values for GetCertificateAuthorityBundleStageEnum +const ( + GetCertificateAuthorityBundleStageCurrent GetCertificateAuthorityBundleStageEnum = "CURRENT" + GetCertificateAuthorityBundleStagePending GetCertificateAuthorityBundleStageEnum = "PENDING" + GetCertificateAuthorityBundleStageLatest GetCertificateAuthorityBundleStageEnum = "LATEST" + GetCertificateAuthorityBundleStagePrevious GetCertificateAuthorityBundleStageEnum = "PREVIOUS" + GetCertificateAuthorityBundleStageDeprecated GetCertificateAuthorityBundleStageEnum = "DEPRECATED" +) + +var mappingGetCertificateAuthorityBundleStageEnum = map[string]GetCertificateAuthorityBundleStageEnum{ + "CURRENT": GetCertificateAuthorityBundleStageCurrent, + "PENDING": GetCertificateAuthorityBundleStagePending, + "LATEST": GetCertificateAuthorityBundleStageLatest, + "PREVIOUS": GetCertificateAuthorityBundleStagePrevious, + "DEPRECATED": GetCertificateAuthorityBundleStageDeprecated, +} + +var mappingGetCertificateAuthorityBundleStageEnumLowerCase = map[string]GetCertificateAuthorityBundleStageEnum{ + "current": GetCertificateAuthorityBundleStageCurrent, + "pending": GetCertificateAuthorityBundleStagePending, + "latest": GetCertificateAuthorityBundleStageLatest, + "previous": GetCertificateAuthorityBundleStagePrevious, + "deprecated": GetCertificateAuthorityBundleStageDeprecated, +} + +// GetGetCertificateAuthorityBundleStageEnumValues Enumerates the set of values for GetCertificateAuthorityBundleStageEnum +func GetGetCertificateAuthorityBundleStageEnumValues() []GetCertificateAuthorityBundleStageEnum { + values := make([]GetCertificateAuthorityBundleStageEnum, 0) + for _, v := range mappingGetCertificateAuthorityBundleStageEnum { + values = append(values, v) + } + return values +} + +// GetGetCertificateAuthorityBundleStageEnumStringValues Enumerates the set of values in String for GetCertificateAuthorityBundleStageEnum +func GetGetCertificateAuthorityBundleStageEnumStringValues() []string { + return []string{ + "CURRENT", + "PENDING", + "LATEST", + "PREVIOUS", + "DEPRECATED", + } +} + +// GetMappingGetCertificateAuthorityBundleStageEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetCertificateAuthorityBundleStageEnum(val string) (GetCertificateAuthorityBundleStageEnum, bool) { + enum, ok := mappingGetCertificateAuthorityBundleStageEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_bundle_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_bundle_request_response.go new file mode 100644 index 00000000000..80b02130431 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_bundle_request_response.go @@ -0,0 +1,207 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCertificateBundleRequest wrapper for the GetCertificateBundle operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/GetCertificateBundle.go.html to see an example of how to use GetCertificateBundleRequest. +type GetCertificateBundleRequest struct { + + // The OCID of the certificate. + CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The version number of the certificate. The default value is 0, which means that this query parameter is ignored. + VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"` + + // The name of the certificate. (This might be referred to as the name of the certificate version, as every certificate consists of at least one version.) Names are unique across versions of a given certificate. + CertificateVersionName *string `mandatory:"false" contributesTo:"query" name:"certificateVersionName"` + + // The rotation state of the certificate version. + Stage GetCertificateBundleStageEnum `mandatory:"false" contributesTo:"query" name:"stage" omitEmpty:"true"` + + // The type of certificate bundle. By default, the private key fields are not returned. When querying for certificate bundles, to return results with certificate contents, the private key in PEM format, and the private key passphrase, specify the value of this parameter as `CERTIFICATE_CONTENT_WITH_PRIVATE_KEY`. + CertificateBundleType GetCertificateBundleCertificateBundleTypeEnum `mandatory:"false" contributesTo:"query" name:"certificateBundleType" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCertificateBundleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCertificateBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetCertificateBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCertificateBundleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCertificateBundleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetCertificateBundleStageEnum(string(request.Stage)); !ok && request.Stage != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Stage: %s. Supported values are: %s.", request.Stage, strings.Join(GetGetCertificateBundleStageEnumStringValues(), ","))) + } + if _, ok := GetMappingGetCertificateBundleCertificateBundleTypeEnum(string(request.CertificateBundleType)); !ok && request.CertificateBundleType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CertificateBundleType: %s. Supported values are: %s.", request.CertificateBundleType, strings.Join(GetGetCertificateBundleCertificateBundleTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCertificateBundleResponse wrapper for the GetCertificateBundle operation +type GetCertificateBundleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CertificateBundle instance + CertificateBundle `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetCertificateBundleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCertificateBundleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetCertificateBundleStageEnum Enum with underlying type: string +type GetCertificateBundleStageEnum string + +// Set of constants representing the allowable values for GetCertificateBundleStageEnum +const ( + GetCertificateBundleStageCurrent GetCertificateBundleStageEnum = "CURRENT" + GetCertificateBundleStagePending GetCertificateBundleStageEnum = "PENDING" + GetCertificateBundleStageLatest GetCertificateBundleStageEnum = "LATEST" + GetCertificateBundleStagePrevious GetCertificateBundleStageEnum = "PREVIOUS" + GetCertificateBundleStageDeprecated GetCertificateBundleStageEnum = "DEPRECATED" +) + +var mappingGetCertificateBundleStageEnum = map[string]GetCertificateBundleStageEnum{ + "CURRENT": GetCertificateBundleStageCurrent, + "PENDING": GetCertificateBundleStagePending, + "LATEST": GetCertificateBundleStageLatest, + "PREVIOUS": GetCertificateBundleStagePrevious, + "DEPRECATED": GetCertificateBundleStageDeprecated, +} + +var mappingGetCertificateBundleStageEnumLowerCase = map[string]GetCertificateBundleStageEnum{ + "current": GetCertificateBundleStageCurrent, + "pending": GetCertificateBundleStagePending, + "latest": GetCertificateBundleStageLatest, + "previous": GetCertificateBundleStagePrevious, + "deprecated": GetCertificateBundleStageDeprecated, +} + +// GetGetCertificateBundleStageEnumValues Enumerates the set of values for GetCertificateBundleStageEnum +func GetGetCertificateBundleStageEnumValues() []GetCertificateBundleStageEnum { + values := make([]GetCertificateBundleStageEnum, 0) + for _, v := range mappingGetCertificateBundleStageEnum { + values = append(values, v) + } + return values +} + +// GetGetCertificateBundleStageEnumStringValues Enumerates the set of values in String for GetCertificateBundleStageEnum +func GetGetCertificateBundleStageEnumStringValues() []string { + return []string{ + "CURRENT", + "PENDING", + "LATEST", + "PREVIOUS", + "DEPRECATED", + } +} + +// GetMappingGetCertificateBundleStageEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetCertificateBundleStageEnum(val string) (GetCertificateBundleStageEnum, bool) { + enum, ok := mappingGetCertificateBundleStageEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// GetCertificateBundleCertificateBundleTypeEnum Enum with underlying type: string +type GetCertificateBundleCertificateBundleTypeEnum string + +// Set of constants representing the allowable values for GetCertificateBundleCertificateBundleTypeEnum +const ( + GetCertificateBundleCertificateBundleTypePublicOnly GetCertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_PUBLIC_ONLY" + GetCertificateBundleCertificateBundleTypeWithPrivateKey GetCertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY" +) + +var mappingGetCertificateBundleCertificateBundleTypeEnum = map[string]GetCertificateBundleCertificateBundleTypeEnum{ + "CERTIFICATE_CONTENT_PUBLIC_ONLY": GetCertificateBundleCertificateBundleTypePublicOnly, + "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY": GetCertificateBundleCertificateBundleTypeWithPrivateKey, +} + +var mappingGetCertificateBundleCertificateBundleTypeEnumLowerCase = map[string]GetCertificateBundleCertificateBundleTypeEnum{ + "certificate_content_public_only": GetCertificateBundleCertificateBundleTypePublicOnly, + "certificate_content_with_private_key": GetCertificateBundleCertificateBundleTypeWithPrivateKey, +} + +// GetGetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for GetCertificateBundleCertificateBundleTypeEnum +func GetGetCertificateBundleCertificateBundleTypeEnumValues() []GetCertificateBundleCertificateBundleTypeEnum { + values := make([]GetCertificateBundleCertificateBundleTypeEnum, 0) + for _, v := range mappingGetCertificateBundleCertificateBundleTypeEnum { + values = append(values, v) + } + return values +} + +// GetGetCertificateBundleCertificateBundleTypeEnumStringValues Enumerates the set of values in String for GetCertificateBundleCertificateBundleTypeEnum +func GetGetCertificateBundleCertificateBundleTypeEnumStringValues() []string { + return []string{ + "CERTIFICATE_CONTENT_PUBLIC_ONLY", + "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY", + } +} + +// GetMappingGetCertificateBundleCertificateBundleTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetCertificateBundleCertificateBundleTypeEnum(val string) (GetCertificateBundleCertificateBundleTypeEnum, bool) { + enum, ok := mappingGetCertificateBundleCertificateBundleTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_authority_bundle_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_authority_bundle_versions_request_response.go new file mode 100644 index 00000000000..458dc9f74d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_authority_bundle_versions_request_response.go @@ -0,0 +1,183 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCertificateAuthorityBundleVersionsRequest wrapper for the ListCertificateAuthorityBundleVersions operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/ListCertificateAuthorityBundleVersions.go.html to see an example of how to use ListCertificateAuthorityBundleVersionsRequest. +type ListCertificateAuthorityBundleVersionsRequest struct { + + // The OCID of the certificate authority (CA). + CertificateAuthorityId *string `mandatory:"true" contributesTo:"path" name:"certificateAuthorityId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can specify only one sort order. The default + // order for `VERSION_NUMBER` is ascending. + SortBy ListCertificateAuthorityBundleVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListCertificateAuthorityBundleVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCertificateAuthorityBundleVersionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCertificateAuthorityBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCertificateAuthorityBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCertificateAuthorityBundleVersionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCertificateAuthorityBundleVersionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCertificateAuthorityBundleVersionsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCertificateAuthorityBundleVersionsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListCertificateAuthorityBundleVersionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCertificateAuthorityBundleVersionsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCertificateAuthorityBundleVersionsResponse wrapper for the ListCertificateAuthorityBundleVersions operation +type ListCertificateAuthorityBundleVersionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CertificateAuthorityBundleVersionCollection instance + CertificateAuthorityBundleVersionCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListCertificateAuthorityBundleVersionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCertificateAuthorityBundleVersionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCertificateAuthorityBundleVersionsSortByEnum Enum with underlying type: string +type ListCertificateAuthorityBundleVersionsSortByEnum string + +// Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortByEnum +const ( + ListCertificateAuthorityBundleVersionsSortByVersionNumber ListCertificateAuthorityBundleVersionsSortByEnum = "VERSION_NUMBER" +) + +var mappingListCertificateAuthorityBundleVersionsSortByEnum = map[string]ListCertificateAuthorityBundleVersionsSortByEnum{ + "VERSION_NUMBER": ListCertificateAuthorityBundleVersionsSortByVersionNumber, +} + +var mappingListCertificateAuthorityBundleVersionsSortByEnumLowerCase = map[string]ListCertificateAuthorityBundleVersionsSortByEnum{ + "version_number": ListCertificateAuthorityBundleVersionsSortByVersionNumber, +} + +// GetListCertificateAuthorityBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortByEnum +func GetListCertificateAuthorityBundleVersionsSortByEnumValues() []ListCertificateAuthorityBundleVersionsSortByEnum { + values := make([]ListCertificateAuthorityBundleVersionsSortByEnum, 0) + for _, v := range mappingListCertificateAuthorityBundleVersionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListCertificateAuthorityBundleVersionsSortByEnumStringValues Enumerates the set of values in String for ListCertificateAuthorityBundleVersionsSortByEnum +func GetListCertificateAuthorityBundleVersionsSortByEnumStringValues() []string { + return []string{ + "VERSION_NUMBER", + } +} + +// GetMappingListCertificateAuthorityBundleVersionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCertificateAuthorityBundleVersionsSortByEnum(val string) (ListCertificateAuthorityBundleVersionsSortByEnum, bool) { + enum, ok := mappingListCertificateAuthorityBundleVersionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCertificateAuthorityBundleVersionsSortOrderEnum Enum with underlying type: string +type ListCertificateAuthorityBundleVersionsSortOrderEnum string + +// Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortOrderEnum +const ( + ListCertificateAuthorityBundleVersionsSortOrderAsc ListCertificateAuthorityBundleVersionsSortOrderEnum = "ASC" + ListCertificateAuthorityBundleVersionsSortOrderDesc ListCertificateAuthorityBundleVersionsSortOrderEnum = "DESC" +) + +var mappingListCertificateAuthorityBundleVersionsSortOrderEnum = map[string]ListCertificateAuthorityBundleVersionsSortOrderEnum{ + "ASC": ListCertificateAuthorityBundleVersionsSortOrderAsc, + "DESC": ListCertificateAuthorityBundleVersionsSortOrderDesc, +} + +var mappingListCertificateAuthorityBundleVersionsSortOrderEnumLowerCase = map[string]ListCertificateAuthorityBundleVersionsSortOrderEnum{ + "asc": ListCertificateAuthorityBundleVersionsSortOrderAsc, + "desc": ListCertificateAuthorityBundleVersionsSortOrderDesc, +} + +// GetListCertificateAuthorityBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortOrderEnum +func GetListCertificateAuthorityBundleVersionsSortOrderEnumValues() []ListCertificateAuthorityBundleVersionsSortOrderEnum { + values := make([]ListCertificateAuthorityBundleVersionsSortOrderEnum, 0) + for _, v := range mappingListCertificateAuthorityBundleVersionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCertificateAuthorityBundleVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListCertificateAuthorityBundleVersionsSortOrderEnum +func GetListCertificateAuthorityBundleVersionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCertificateAuthorityBundleVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCertificateAuthorityBundleVersionsSortOrderEnum(val string) (ListCertificateAuthorityBundleVersionsSortOrderEnum, bool) { + enum, ok := mappingListCertificateAuthorityBundleVersionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_bundle_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_bundle_versions_request_response.go new file mode 100644 index 00000000000..dca3618192e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_bundle_versions_request_response.go @@ -0,0 +1,183 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCertificateBundleVersionsRequest wrapper for the ListCertificateBundleVersions operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/certificates/ListCertificateBundleVersions.go.html to see an example of how to use ListCertificateBundleVersionsRequest. +type ListCertificateBundleVersionsRequest struct { + + // The OCID of the certificate. + CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can specify only one sort order. The default + // order for `VERSION_NUMBER` is ascending. + SortBy ListCertificateBundleVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListCertificateBundleVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCertificateBundleVersionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCertificateBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCertificateBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCertificateBundleVersionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCertificateBundleVersionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCertificateBundleVersionsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCertificateBundleVersionsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListCertificateBundleVersionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCertificateBundleVersionsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCertificateBundleVersionsResponse wrapper for the ListCertificateBundleVersions operation +type ListCertificateBundleVersionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CertificateBundleVersionCollection instance + CertificateBundleVersionCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListCertificateBundleVersionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCertificateBundleVersionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCertificateBundleVersionsSortByEnum Enum with underlying type: string +type ListCertificateBundleVersionsSortByEnum string + +// Set of constants representing the allowable values for ListCertificateBundleVersionsSortByEnum +const ( + ListCertificateBundleVersionsSortByVersionNumber ListCertificateBundleVersionsSortByEnum = "VERSION_NUMBER" +) + +var mappingListCertificateBundleVersionsSortByEnum = map[string]ListCertificateBundleVersionsSortByEnum{ + "VERSION_NUMBER": ListCertificateBundleVersionsSortByVersionNumber, +} + +var mappingListCertificateBundleVersionsSortByEnumLowerCase = map[string]ListCertificateBundleVersionsSortByEnum{ + "version_number": ListCertificateBundleVersionsSortByVersionNumber, +} + +// GetListCertificateBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortByEnum +func GetListCertificateBundleVersionsSortByEnumValues() []ListCertificateBundleVersionsSortByEnum { + values := make([]ListCertificateBundleVersionsSortByEnum, 0) + for _, v := range mappingListCertificateBundleVersionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListCertificateBundleVersionsSortByEnumStringValues Enumerates the set of values in String for ListCertificateBundleVersionsSortByEnum +func GetListCertificateBundleVersionsSortByEnumStringValues() []string { + return []string{ + "VERSION_NUMBER", + } +} + +// GetMappingListCertificateBundleVersionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCertificateBundleVersionsSortByEnum(val string) (ListCertificateBundleVersionsSortByEnum, bool) { + enum, ok := mappingListCertificateBundleVersionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCertificateBundleVersionsSortOrderEnum Enum with underlying type: string +type ListCertificateBundleVersionsSortOrderEnum string + +// Set of constants representing the allowable values for ListCertificateBundleVersionsSortOrderEnum +const ( + ListCertificateBundleVersionsSortOrderAsc ListCertificateBundleVersionsSortOrderEnum = "ASC" + ListCertificateBundleVersionsSortOrderDesc ListCertificateBundleVersionsSortOrderEnum = "DESC" +) + +var mappingListCertificateBundleVersionsSortOrderEnum = map[string]ListCertificateBundleVersionsSortOrderEnum{ + "ASC": ListCertificateBundleVersionsSortOrderAsc, + "DESC": ListCertificateBundleVersionsSortOrderDesc, +} + +var mappingListCertificateBundleVersionsSortOrderEnumLowerCase = map[string]ListCertificateBundleVersionsSortOrderEnum{ + "asc": ListCertificateBundleVersionsSortOrderAsc, + "desc": ListCertificateBundleVersionsSortOrderDesc, +} + +// GetListCertificateBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortOrderEnum +func GetListCertificateBundleVersionsSortOrderEnumValues() []ListCertificateBundleVersionsSortOrderEnum { + values := make([]ListCertificateBundleVersionsSortOrderEnum, 0) + for _, v := range mappingListCertificateBundleVersionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCertificateBundleVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListCertificateBundleVersionsSortOrderEnum +func GetListCertificateBundleVersionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCertificateBundleVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCertificateBundleVersionsSortOrderEnum(val string) (ListCertificateBundleVersionsSortOrderEnum, bool) { + enum, ok := mappingListCertificateBundleVersionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_reason.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_reason.go new file mode 100644 index 00000000000..d423fc36453 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_reason.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "strings" +) + +// RevocationReasonEnum Enum with underlying type: string +type RevocationReasonEnum string + +// Set of constants representing the allowable values for RevocationReasonEnum +const ( + RevocationReasonUnspecified RevocationReasonEnum = "UNSPECIFIED" + RevocationReasonKeyCompromise RevocationReasonEnum = "KEY_COMPROMISE" + RevocationReasonCaCompromise RevocationReasonEnum = "CA_COMPROMISE" + RevocationReasonAffiliationChanged RevocationReasonEnum = "AFFILIATION_CHANGED" + RevocationReasonSuperseded RevocationReasonEnum = "SUPERSEDED" + RevocationReasonCessationOfOperation RevocationReasonEnum = "CESSATION_OF_OPERATION" + RevocationReasonPrivilegeWithdrawn RevocationReasonEnum = "PRIVILEGE_WITHDRAWN" + RevocationReasonAaCompromise RevocationReasonEnum = "AA_COMPROMISE" +) + +var mappingRevocationReasonEnum = map[string]RevocationReasonEnum{ + "UNSPECIFIED": RevocationReasonUnspecified, + "KEY_COMPROMISE": RevocationReasonKeyCompromise, + "CA_COMPROMISE": RevocationReasonCaCompromise, + "AFFILIATION_CHANGED": RevocationReasonAffiliationChanged, + "SUPERSEDED": RevocationReasonSuperseded, + "CESSATION_OF_OPERATION": RevocationReasonCessationOfOperation, + "PRIVILEGE_WITHDRAWN": RevocationReasonPrivilegeWithdrawn, + "AA_COMPROMISE": RevocationReasonAaCompromise, +} + +var mappingRevocationReasonEnumLowerCase = map[string]RevocationReasonEnum{ + "unspecified": RevocationReasonUnspecified, + "key_compromise": RevocationReasonKeyCompromise, + "ca_compromise": RevocationReasonCaCompromise, + "affiliation_changed": RevocationReasonAffiliationChanged, + "superseded": RevocationReasonSuperseded, + "cessation_of_operation": RevocationReasonCessationOfOperation, + "privilege_withdrawn": RevocationReasonPrivilegeWithdrawn, + "aa_compromise": RevocationReasonAaCompromise, +} + +// GetRevocationReasonEnumValues Enumerates the set of values for RevocationReasonEnum +func GetRevocationReasonEnumValues() []RevocationReasonEnum { + values := make([]RevocationReasonEnum, 0) + for _, v := range mappingRevocationReasonEnum { + values = append(values, v) + } + return values +} + +// GetRevocationReasonEnumStringValues Enumerates the set of values in String for RevocationReasonEnum +func GetRevocationReasonEnumStringValues() []string { + return []string{ + "UNSPECIFIED", + "KEY_COMPROMISE", + "CA_COMPROMISE", + "AFFILIATION_CHANGED", + "SUPERSEDED", + "CESSATION_OF_OPERATION", + "PRIVILEGE_WITHDRAWN", + "AA_COMPROMISE", + } +} + +// GetMappingRevocationReasonEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRevocationReasonEnum(val string) (RevocationReasonEnum, bool) { + enum, ok := mappingRevocationReasonEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_dimension.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go similarity index 51% rename from vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_dimension.go rename to vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go index 1367be6f069..6a82a679f26 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_dimension.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go @@ -2,12 +2,12 @@ // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. -// Fleet Application Management Service API +// Certificates Service Retrieval API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// API for retrieving certificates. // -package fleetappsmanagement +package certificates import ( "fmt" @@ -15,24 +15,27 @@ import ( "strings" ) -// ManagedEntityDimension Aggregated summary information for ComplianceRecord -type ManagedEntityDimension struct { +// RevocationStatus The current revocation status of the certificate or certificate authority (CA). +type RevocationStatus struct { - // Level at which the compliance is calculated. - Entity ManagedEntityEnum `mandatory:"true" json:"entity"` + // The time when the certificate or CA was revoked. + TimeRevoked *common.SDKTime `mandatory:"true" json:"timeRevoked"` + + // The reason that the certificate or CA was revoked. + RevocationReason RevocationReasonEnum `mandatory:"true" json:"revocationReason"` } -func (m ManagedEntityDimension) String() string { +func (m RevocationStatus) String() string { return common.PointerString(m) } // ValidateEnumValue returns an error when providing an unsupported enum value // This function is being called during constructing API request process // Not recommended for calling this function directly -func (m ManagedEntityDimension) ValidateEnumValue() (bool, error) { +func (m RevocationStatus) ValidateEnumValue() (bool, error) { errMessage := []string{} - if _, ok := GetMappingManagedEntityEnum(string(m.Entity)); !ok && m.Entity != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Entity: %s. Supported values are: %s.", m.Entity, strings.Join(GetManagedEntityEnumStringValues(), ","))) + if _, ok := GetMappingRevocationReasonEnum(string(m.RevocationReason)); !ok && m.RevocationReason != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RevocationReason: %s. Supported values are: %s.", m.RevocationReason, strings.Join(GetRevocationReasonEnumStringValues(), ","))) } if len(errMessage) > 0 { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/validity.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/validity.go new file mode 100644 index 00000000000..a1d43dca42a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/validity.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Validity An object that describes a period of time during which an entity is valid. +type Validity struct { + + // The date on which the certificate validity period begins, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeOfValidityNotBefore *common.SDKTime `mandatory:"true" json:"timeOfValidityNotBefore"` + + // The date on which the certificate validity period ends, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2019-04-03T21:10:29.600Z` + TimeOfValidityNotAfter *common.SDKTime `mandatory:"true" json:"timeOfValidityNotAfter"` +} + +func (m Validity) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Validity) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/version_stage.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/version_stage.go new file mode 100644 index 00000000000..e9287a90be1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/version_stage.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Certificates Service Retrieval API +// +// API for retrieving certificates. +// + +package certificates + +import ( + "strings" +) + +// VersionStageEnum Enum with underlying type: string +type VersionStageEnum string + +// Set of constants representing the allowable values for VersionStageEnum +const ( + VersionStageCurrent VersionStageEnum = "CURRENT" + VersionStagePending VersionStageEnum = "PENDING" + VersionStageLatest VersionStageEnum = "LATEST" + VersionStagePrevious VersionStageEnum = "PREVIOUS" + VersionStageDeprecated VersionStageEnum = "DEPRECATED" + VersionStageFailed VersionStageEnum = "FAILED" +) + +var mappingVersionStageEnum = map[string]VersionStageEnum{ + "CURRENT": VersionStageCurrent, + "PENDING": VersionStagePending, + "LATEST": VersionStageLatest, + "PREVIOUS": VersionStagePrevious, + "DEPRECATED": VersionStageDeprecated, + "FAILED": VersionStageFailed, +} + +var mappingVersionStageEnumLowerCase = map[string]VersionStageEnum{ + "current": VersionStageCurrent, + "pending": VersionStagePending, + "latest": VersionStageLatest, + "previous": VersionStagePrevious, + "deprecated": VersionStageDeprecated, + "failed": VersionStageFailed, +} + +// GetVersionStageEnumValues Enumerates the set of values for VersionStageEnum +func GetVersionStageEnumValues() []VersionStageEnum { + values := make([]VersionStageEnum, 0) + for _, v := range mappingVersionStageEnum { + values = append(values, v) + } + return values +} + +// GetVersionStageEnumStringValues Enumerates the set of values in String for VersionStageEnum +func GetVersionStageEnumStringValues() []string { + return []string{ + "CURRENT", + "PENDING", + "LATEST", + "PREVIOUS", + "DEPRECATED", + "FAILED", + } +} + +// GetMappingVersionStageEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVersionStageEnum(val string) (VersionStageEnum, bool) { + enum, ok := mappingVersionStageEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go index 03a12a54e68..a49bbfdf19a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go @@ -12,7 +12,7 @@ import ( const ( major = "65" - minor = "77" + minor = "76" patch = "0" tag = "" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go index fc94e57af99..ff2e20351b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go @@ -142,7 +142,7 @@ func (client ContainerEngineClient) clusterMigrateToNativeVcn(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/ClusterMigrateToNativeVcn" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ClusterMigrateToNativeVcn", apiReferenceLink) return response, err } @@ -205,7 +205,7 @@ func (client ContainerEngineClient) completeCredentialRotation(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CompleteCredentialRotation" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "CompleteCredentialRotation", apiReferenceLink) return response, err } @@ -268,7 +268,7 @@ func (client ContainerEngineClient) createCluster(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateCluster" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "CreateCluster", apiReferenceLink) return response, err } @@ -325,7 +325,7 @@ func (client ContainerEngineClient) createKubeconfig(ctx context.Context, reques httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateKubeconfig" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "CreateKubeconfig", apiReferenceLink) return response, err } @@ -388,7 +388,7 @@ func (client ContainerEngineClient) createNodePool(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/CreateNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "CreateNodePool", apiReferenceLink) return response, err } @@ -451,7 +451,7 @@ func (client ContainerEngineClient) createVirtualNodePool(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/CreateVirtualNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "CreateVirtualNodePool", apiReferenceLink) return response, err } @@ -514,7 +514,7 @@ func (client ContainerEngineClient) createWorkloadMapping(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/CreateWorkloadMapping" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "CreateWorkloadMapping", apiReferenceLink) return response, err } @@ -572,7 +572,7 @@ func (client ContainerEngineClient) deleteCluster(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/DeleteCluster" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteCluster", apiReferenceLink) return response, err } @@ -630,7 +630,7 @@ func (client ContainerEngineClient) deleteNode(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNode" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteNode", apiReferenceLink) return response, err } @@ -688,7 +688,7 @@ func (client ContainerEngineClient) deleteNodePool(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteNodePool", apiReferenceLink) return response, err } @@ -746,7 +746,7 @@ func (client ContainerEngineClient) deleteVirtualNodePool(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/DeleteVirtualNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteVirtualNodePool", apiReferenceLink) return response, err } @@ -804,7 +804,7 @@ func (client ContainerEngineClient) deleteWorkRequest(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/DeleteWorkRequest" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteWorkRequest", apiReferenceLink) return response, err } @@ -862,7 +862,7 @@ func (client ContainerEngineClient) deleteWorkloadMapping(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/DeleteWorkloadMapping" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteWorkloadMapping", apiReferenceLink) return response, err } @@ -920,7 +920,7 @@ func (client ContainerEngineClient) disableAddon(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/DisableAddon" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "DisableAddon", apiReferenceLink) return response, err } @@ -978,7 +978,7 @@ func (client ContainerEngineClient) getAddon(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/GetAddon" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetAddon", apiReferenceLink) return response, err } @@ -1036,7 +1036,7 @@ func (client ContainerEngineClient) getCluster(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/GetCluster" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetCluster", apiReferenceLink) return response, err } @@ -1094,7 +1094,7 @@ func (client ContainerEngineClient) getClusterMigrateToNativeVcnStatus(ctx conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterMigrateToNativeVcnStatus/GetClusterMigrateToNativeVcnStatus" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetClusterMigrateToNativeVcnStatus", apiReferenceLink) return response, err } @@ -1152,7 +1152,7 @@ func (client ContainerEngineClient) getClusterOptions(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterOptions/GetClusterOptions" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetClusterOptions", apiReferenceLink) return response, err } @@ -1210,7 +1210,7 @@ func (client ContainerEngineClient) getCredentialRotationStatus(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/CredentialRotationStatus/GetCredentialRotationStatus" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetCredentialRotationStatus", apiReferenceLink) return response, err } @@ -1268,7 +1268,7 @@ func (client ContainerEngineClient) getNodePool(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/GetNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetNodePool", apiReferenceLink) return response, err } @@ -1326,7 +1326,7 @@ func (client ContainerEngineClient) getNodePoolOptions(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolOptions/GetNodePoolOptions" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetNodePoolOptions", apiReferenceLink) return response, err } @@ -1384,7 +1384,7 @@ func (client ContainerEngineClient) getVirtualNode(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNode" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetVirtualNode", apiReferenceLink) return response, err } @@ -1442,7 +1442,7 @@ func (client ContainerEngineClient) getVirtualNodePool(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetVirtualNodePool", apiReferenceLink) return response, err } @@ -1500,7 +1500,7 @@ func (client ContainerEngineClient) getWorkRequest(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/GetWorkRequest" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetWorkRequest", apiReferenceLink) return response, err } @@ -1558,7 +1558,7 @@ func (client ContainerEngineClient) getWorkloadMapping(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/GetWorkloadMapping" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "GetWorkloadMapping", apiReferenceLink) return response, err } @@ -1621,7 +1621,7 @@ func (client ContainerEngineClient) installAddon(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/InstallAddon" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "InstallAddon", apiReferenceLink) return response, err } @@ -1679,7 +1679,7 @@ func (client ContainerEngineClient) listAddonOptions(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/AddonOptionSummary/ListAddonOptions" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListAddonOptions", apiReferenceLink) return response, err } @@ -1737,7 +1737,7 @@ func (client ContainerEngineClient) listAddons(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/ListAddons" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListAddons", apiReferenceLink) return response, err } @@ -1795,7 +1795,7 @@ func (client ContainerEngineClient) listClusters(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterSummary/ListClusters" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListClusters", apiReferenceLink) return response, err } @@ -1853,7 +1853,7 @@ func (client ContainerEngineClient) listNodePools(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolSummary/ListNodePools" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListNodePools", apiReferenceLink) return response, err } @@ -1911,7 +1911,7 @@ func (client ContainerEngineClient) listPodShapes(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/PodShapeSummary/ListPodShapes" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListPodShapes", apiReferenceLink) return response, err } @@ -1969,7 +1969,7 @@ func (client ContainerEngineClient) listVirtualNodePools(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePoolSummary/ListVirtualNodePools" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListVirtualNodePools", apiReferenceLink) return response, err } @@ -2027,7 +2027,7 @@ func (client ContainerEngineClient) listVirtualNodes(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/ListVirtualNodes" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListVirtualNodes", apiReferenceLink) return response, err } @@ -2085,7 +2085,7 @@ func (client ContainerEngineClient) listWorkRequestErrors(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestError/ListWorkRequestErrors" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListWorkRequestErrors", apiReferenceLink) return response, err } @@ -2143,7 +2143,7 @@ func (client ContainerEngineClient) listWorkRequestLogs(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestLogEntry/ListWorkRequestLogs" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListWorkRequestLogs", apiReferenceLink) return response, err } @@ -2201,7 +2201,7 @@ func (client ContainerEngineClient) listWorkRequests(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestSummary/ListWorkRequests" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListWorkRequests", apiReferenceLink) return response, err } @@ -2259,7 +2259,7 @@ func (client ContainerEngineClient) listWorkloadMappings(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/ListWorkloadMappings" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "ListWorkloadMappings", apiReferenceLink) return response, err } @@ -2322,7 +2322,7 @@ func (client ContainerEngineClient) startCredentialRotation(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/StartCredentialRotation" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "StartCredentialRotation", apiReferenceLink) return response, err } @@ -2380,7 +2380,7 @@ func (client ContainerEngineClient) updateAddon(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateAddon" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateAddon", apiReferenceLink) return response, err } @@ -2438,7 +2438,7 @@ func (client ContainerEngineClient) updateCluster(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateCluster" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateCluster", apiReferenceLink) return response, err } @@ -2496,7 +2496,7 @@ func (client ContainerEngineClient) updateClusterEndpointConfig(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateClusterEndpointConfig" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateClusterEndpointConfig", apiReferenceLink) return response, err } @@ -2554,7 +2554,7 @@ func (client ContainerEngineClient) updateNodePool(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/UpdateNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateNodePool", apiReferenceLink) return response, err } @@ -2612,7 +2612,7 @@ func (client ContainerEngineClient) updateVirtualNodePool(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/UpdateVirtualNodePool" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateVirtualNodePool", apiReferenceLink) return response, err } @@ -2670,7 +2670,7 @@ func (client ContainerEngineClient) updateWorkloadMapping(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/UpdateWorkloadMapping" + apiReferenceLink := "" err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateWorkloadMapping", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go index 4fe7ad4787c..cd9a7669086 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/install_addon_details.go @@ -28,9 +28,6 @@ type InstallAddonDetails struct { // Addon configuration details. Configurations []AddonConfiguration `mandatory:"false" json:"configurations"` - - // Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details. - IsOverrideExisting *bool `mandatory:"false" json:"isOverrideExisting"` } func (m InstallAddonDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go index cab04c9cab9..43058ba70fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go @@ -164,8 +164,6 @@ type VirtualCircuit struct { // The layer 3 IP MTU to use on this virtual circuit. IpMtu VirtualCircuitIpMtuEnum `mandatory:"false" json:"ipMtu,omitempty"` - - VirtualCircuitRedundancyMetadata *VirtualCircuitRedundancyMetadata `mandatory:"false" json:"virtualCircuitRedundancyMetadata"` } func (m VirtualCircuit) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_redundancy_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_redundancy_metadata.go deleted file mode 100644 index ae667d46dc4..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_redundancy_metadata.go +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), -// compute instances, and block storage volumes. For more information, see the console -// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. -// The required permissions are documented in the -// Details for the Core Services (https://docs.cloud.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. -// - -package core - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// VirtualCircuitRedundancyMetadata Redundancy level details of the virtual circuit -type VirtualCircuitRedundancyMetadata struct { - - // The configured redundancy level of the virtual circuit - ConfiguredRedundancyLevel VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum `mandatory:"false" json:"configuredRedundancyLevel,omitempty"` - - // IPV4 BGP redundancy status indicates if the configured redundancy level is met - Ipv4bgpSessionRedundancyStatus VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum `mandatory:"false" json:"ipv4bgpSessionRedundancyStatus,omitempty"` - - // IPV6 BGP redundancy status indicates if the configured redundancy level is met - Ipv6bgpSessionRedundancyStatus VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum `mandatory:"false" json:"ipv6bgpSessionRedundancyStatus,omitempty"` -} - -func (m VirtualCircuitRedundancyMetadata) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m VirtualCircuitRedundancyMetadata) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum(string(m.ConfiguredRedundancyLevel)); !ok && m.ConfiguredRedundancyLevel != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConfiguredRedundancyLevel: %s. Supported values are: %s.", m.ConfiguredRedundancyLevel, strings.Join(GetVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnumStringValues(), ","))) - } - if _, ok := GetMappingVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum(string(m.Ipv4bgpSessionRedundancyStatus)); !ok && m.Ipv4bgpSessionRedundancyStatus != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Ipv4bgpSessionRedundancyStatus: %s. Supported values are: %s.", m.Ipv4bgpSessionRedundancyStatus, strings.Join(GetVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnumStringValues(), ","))) - } - if _, ok := GetMappingVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum(string(m.Ipv6bgpSessionRedundancyStatus)); !ok && m.Ipv6bgpSessionRedundancyStatus != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Ipv6bgpSessionRedundancyStatus: %s. Supported values are: %s.", m.Ipv6bgpSessionRedundancyStatus, strings.Join(GetVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum Enum with underlying type: string -type VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum string - -// Set of constants representing the allowable values for VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum -const ( - VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelDevice VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum = "DEVICE" - VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelPop VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum = "POP" - VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelRegion VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum = "REGION" - VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelNonRedundant VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum = "NON_REDUNDANT" - VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelPending VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum = "PENDING" -) - -var mappingVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum = map[string]VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum{ - "DEVICE": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelDevice, - "POP": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelPop, - "REGION": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelRegion, - "NON_REDUNDANT": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelNonRedundant, - "PENDING": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelPending, -} - -var mappingVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnumLowerCase = map[string]VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum{ - "device": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelDevice, - "pop": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelPop, - "region": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelRegion, - "non_redundant": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelNonRedundant, - "pending": VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelPending, -} - -// GetVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnumValues Enumerates the set of values for VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum -func GetVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnumValues() []VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum { - values := make([]VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum, 0) - for _, v := range mappingVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum { - values = append(values, v) - } - return values -} - -// GetVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnumStringValues Enumerates the set of values in String for VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum -func GetVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnumStringValues() []string { - return []string{ - "DEVICE", - "POP", - "REGION", - "NON_REDUNDANT", - "PENDING", - } -} - -// GetMappingVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum(val string) (VirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnum, bool) { - enum, ok := mappingVirtualCircuitRedundancyMetadataConfiguredRedundancyLevelEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum Enum with underlying type: string -type VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum string - -// Set of constants representing the allowable values for VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum -const ( - VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusConfigurationMatch VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum = "CONFIGURATION_MATCH" - VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusConfigurationMismatch VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum = "CONFIGURATION_MISMATCH" - VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusNotMetSla VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum = "NOT_MET_SLA" -) - -var mappingVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum = map[string]VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum{ - "CONFIGURATION_MATCH": VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusConfigurationMatch, - "CONFIGURATION_MISMATCH": VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusConfigurationMismatch, - "NOT_MET_SLA": VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusNotMetSla, -} - -var mappingVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnumLowerCase = map[string]VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum{ - "configuration_match": VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusConfigurationMatch, - "configuration_mismatch": VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusConfigurationMismatch, - "not_met_sla": VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusNotMetSla, -} - -// GetVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnumValues Enumerates the set of values for VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum -func GetVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnumValues() []VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum { - values := make([]VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum, 0) - for _, v := range mappingVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum { - values = append(values, v) - } - return values -} - -// GetVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnumStringValues Enumerates the set of values in String for VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum -func GetVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnumStringValues() []string { - return []string{ - "CONFIGURATION_MATCH", - "CONFIGURATION_MISMATCH", - "NOT_MET_SLA", - } -} - -// GetMappingVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum(val string) (VirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnum, bool) { - enum, ok := mappingVirtualCircuitRedundancyMetadataIpv4bgpSessionRedundancyStatusEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum Enum with underlying type: string -type VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum string - -// Set of constants representing the allowable values for VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum -const ( - VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusConfigurationMatch VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum = "CONFIGURATION_MATCH" - VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusConfigurationMismatch VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum = "CONFIGURATION_MISMATCH" - VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusNotMetSla VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum = "NOT_MET_SLA" -) - -var mappingVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum = map[string]VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum{ - "CONFIGURATION_MATCH": VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusConfigurationMatch, - "CONFIGURATION_MISMATCH": VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusConfigurationMismatch, - "NOT_MET_SLA": VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusNotMetSla, -} - -var mappingVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumLowerCase = map[string]VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum{ - "configuration_match": VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusConfigurationMatch, - "configuration_mismatch": VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusConfigurationMismatch, - "not_met_sla": VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusNotMetSla, -} - -// GetVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumValues Enumerates the set of values for VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum -func GetVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumValues() []VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum { - values := make([]VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum, 0) - for _, v := range mappingVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum { - values = append(values, v) - } - return values -} - -// GetVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumStringValues Enumerates the set of values in String for VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum -func GetVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumStringValues() []string { - return []string{ - "CONFIGURATION_MATCH", - "CONFIGURATION_MISMATCH", - "NOT_MET_SLA", - } -} - -// GetMappingVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum(val string) (VirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnum, bool) { - enum, ok := mappingVirtualCircuitRedundancyMetadataIpv6bgpSessionRedundancyStatusEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go index 7a8ef2dce9a..55301acaeaa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go @@ -10,7 +10,6 @@ package database import ( - "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -52,8 +51,6 @@ type AutonomousDatabase struct { // KMS key lifecycle details. KmsKeyLifecycleDetails *string `mandatory:"false" json:"kmsKeyLifecycleDetails"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. KmsKeyVersionId *string `mandatory:"false" json:"kmsKeyVersionId"` @@ -95,9 +92,6 @@ type AutonomousDatabase struct { // Key History Entry. KeyHistoryEntry []AutonomousDatabaseKeyHistoryEntry `mandatory:"false" json:"keyHistoryEntry"` - // Key History Entry. - EncryptionKeyHistoryEntry []AutonomousDatabaseEncryptionKeyHistoryEntry `mandatory:"false" json:"encryptionKeyHistoryEntry"` - // The number of CPU cores to be made available to the database. When the ECPU is selected, the value for cpuCoreCount is 0. For Autonomous Database on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `ocpuCount` parameter. CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` @@ -540,396 +534,6 @@ func (m AutonomousDatabase) ValidateEnumValue() (bool, error) { return false, nil } -// UnmarshalJSON unmarshals from json -func (m *AutonomousDatabase) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - LifecycleDetails *string `json:"lifecycleDetails"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - KmsKeyLifecycleDetails *string `json:"kmsKeyLifecycleDetails"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - KmsKeyVersionId *string `json:"kmsKeyVersionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - InMemoryAreaInGBs *int `json:"inMemoryAreaInGBs"` - NextLongTermBackupTimeStamp *common.SDKTime `json:"nextLongTermBackupTimeStamp"` - LongTermBackupSchedule *LongTermBackUpScheduleDetails `json:"longTermBackupSchedule"` - IsFreeTier *bool `json:"isFreeTier"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - TimeReclamationOfFreeAutonomousDatabase *common.SDKTime `json:"timeReclamationOfFreeAutonomousDatabase"` - TimeDeletionOfFreeAutonomousDatabase *common.SDKTime `json:"timeDeletionOfFreeAutonomousDatabase"` - BackupConfig *AutonomousDatabaseBackupConfig `json:"backupConfig"` - KeyHistoryEntry []AutonomousDatabaseKeyHistoryEntry `json:"keyHistoryEntry"` - EncryptionKeyHistoryEntry []AutonomousDatabaseEncryptionKeyHistoryEntry `json:"encryptionKeyHistoryEntry"` - CpuCoreCount *int `json:"cpuCoreCount"` - LocalAdgAutoFailoverMaxDataLossLimit *int `json:"localAdgAutoFailoverMaxDataLossLimit"` - ComputeModel AutonomousDatabaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - TotalBackupStorageSizeInGBs *float64 `json:"totalBackupStorageSizeInGBs"` - OcpuCount *float32 `json:"ocpuCount"` - ProvisionableCpus []float32 `json:"provisionableCpus"` - MemoryPerOracleComputeUnitInGBs *int `json:"memoryPerOracleComputeUnitInGBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - UsedDataStorageSizeInGBs *int `json:"usedDataStorageSizeInGBs"` - InfrastructureType AutonomousDatabaseInfrastructureTypeEnum `json:"infrastructureType"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - TimeUndeleted *common.SDKTime `json:"timeUndeleted"` - TimeCreated *common.SDKTime `json:"timeCreated"` - DisplayName *string `json:"displayName"` - ServiceConsoleUrl *string `json:"serviceConsoleUrl"` - ConnectionStrings *AutonomousDatabaseConnectionStrings `json:"connectionStrings"` - ConnectionUrls *AutonomousDatabaseConnectionUrls `json:"connectionUrls"` - PublicConnectionUrls *AutonomousDatabaseConnectionUrls `json:"publicConnectionUrls"` - LicenseModel AutonomousDatabaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - UsedDataStorageSizeInTBs *int `json:"usedDataStorageSizeInTBs"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpoint *string `json:"privateEndpoint"` - PublicEndpoint *string `json:"publicEndpoint"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - IsPreview *bool `json:"isPreview"` - DbWorkload AutonomousDatabaseDbWorkloadEnum `json:"dbWorkload"` - IsDevTier *bool `json:"isDevTier"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - ApexDetails *AutonomousDatabaseApex `json:"apexDetails"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - DataSafeStatus AutonomousDatabaseDataSafeStatusEnum `json:"dataSafeStatus"` - OperationsInsightsStatus AutonomousDatabaseOperationsInsightsStatusEnum `json:"operationsInsightsStatus"` - DatabaseManagementStatus AutonomousDatabaseDatabaseManagementStatusEnum `json:"databaseManagementStatus"` - TimeMaintenanceBegin *common.SDKTime `json:"timeMaintenanceBegin"` - TimeMaintenanceEnd *common.SDKTime `json:"timeMaintenanceEnd"` - IsRefreshableClone *bool `json:"isRefreshableClone"` - TimeOfLastRefresh *common.SDKTime `json:"timeOfLastRefresh"` - TimeOfLastRefreshPoint *common.SDKTime `json:"timeOfLastRefreshPoint"` - TimeOfNextRefresh *common.SDKTime `json:"timeOfNextRefresh"` - OpenMode AutonomousDatabaseOpenModeEnum `json:"openMode"` - RefreshableStatus AutonomousDatabaseRefreshableStatusEnum `json:"refreshableStatus"` - RefreshableMode AutonomousDatabaseRefreshableModeEnum `json:"refreshableMode"` - SourceId *string `json:"sourceId"` - PermissionLevel AutonomousDatabasePermissionLevelEnum `json:"permissionLevel"` - TimeOfLastSwitchover *common.SDKTime `json:"timeOfLastSwitchover"` - TimeOfLastFailover *common.SDKTime `json:"timeOfLastFailover"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - FailedDataRecoveryInSeconds *int `json:"failedDataRecoveryInSeconds"` - StandbyDb *AutonomousDatabaseStandbySummary `json:"standbyDb"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - IsRemoteDataGuardEnabled *bool `json:"isRemoteDataGuardEnabled"` - LocalStandbyDb *AutonomousDatabaseStandbySummary `json:"localStandbyDb"` - Role AutonomousDatabaseRoleEnum `json:"role"` - AvailableUpgradeVersions []string `json:"availableUpgradeVersions"` - KeyStoreId *string `json:"keyStoreId"` - KeyStoreWalletName *string `json:"keyStoreWalletName"` - AutoRefreshFrequencyInSeconds *int `json:"autoRefreshFrequencyInSeconds"` - AutoRefreshPointLagInSeconds *int `json:"autoRefreshPointLagInSeconds"` - TimeOfAutoRefreshStart *common.SDKTime `json:"timeOfAutoRefreshStart"` - SupportedRegionsToCloneTo []string `json:"supportedRegionsToCloneTo"` - CustomerContacts []CustomerContact `json:"customerContacts"` - TimeLocalDataGuardEnabled *common.SDKTime `json:"timeLocalDataGuardEnabled"` - DataguardRegionType AutonomousDatabaseDataguardRegionTypeEnum `json:"dataguardRegionType"` - TimeDataGuardRoleChanged *common.SDKTime `json:"timeDataGuardRoleChanged"` - PeerDbIds []string `json:"peerDbIds"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - TimeOfJoiningResourcePool *common.SDKTime `json:"timeOfJoiningResourcePool"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - IsReconnectCloneEnabled *bool `json:"isReconnectCloneEnabled"` - TimeUntilReconnectCloneEnabled *common.SDKTime `json:"timeUntilReconnectCloneEnabled"` - AutonomousMaintenanceScheduleType AutonomousDatabaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - AllocatedStorageSizeInTBs *float64 `json:"allocatedStorageSizeInTBs"` - ActualUsedDataStorageSizeInTBs *float64 `json:"actualUsedDataStorageSizeInTBs"` - DatabaseEdition AutonomousDatabaseDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - LocalDisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `json:"localDisasterRecoveryType"` - DisasterRecoveryRegionType AutonomousDatabaseDisasterRecoveryRegionTypeEnum `json:"disasterRecoveryRegionType"` - TimeDisasterRecoveryRoleChanged *common.SDKTime `json:"timeDisasterRecoveryRoleChanged"` - RemoteDisasterRecoveryConfiguration *DisasterRecoveryConfiguration `json:"remoteDisasterRecoveryConfiguration"` - NetServicesArchitecture AutonomousDatabaseNetServicesArchitectureEnum `json:"netServicesArchitecture"` - AvailabilityDomain *string `json:"availabilityDomain"` - ClusterPlacementGroupId *string `json:"clusterPlacementGroupId"` - Id *string `json:"id"` - CompartmentId *string `json:"compartmentId"` - LifecycleState AutonomousDatabaseLifecycleStateEnum `json:"lifecycleState"` - DbName *string `json:"dbName"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.LifecycleDetails = model.LifecycleDetails - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - m.KmsKeyLifecycleDetails = model.KmsKeyLifecycleDetails - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.KmsKeyVersionId = model.KmsKeyVersionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.InMemoryPercentage = model.InMemoryPercentage - - m.InMemoryAreaInGBs = model.InMemoryAreaInGBs - - m.NextLongTermBackupTimeStamp = model.NextLongTermBackupTimeStamp - - m.LongTermBackupSchedule = model.LongTermBackupSchedule - - m.IsFreeTier = model.IsFreeTier - - m.SystemTags = model.SystemTags - - m.TimeReclamationOfFreeAutonomousDatabase = model.TimeReclamationOfFreeAutonomousDatabase - - m.TimeDeletionOfFreeAutonomousDatabase = model.TimeDeletionOfFreeAutonomousDatabase - - m.BackupConfig = model.BackupConfig - - m.KeyHistoryEntry = make([]AutonomousDatabaseKeyHistoryEntry, len(model.KeyHistoryEntry)) - copy(m.KeyHistoryEntry, model.KeyHistoryEntry) - m.EncryptionKeyHistoryEntry = make([]AutonomousDatabaseEncryptionKeyHistoryEntry, len(model.EncryptionKeyHistoryEntry)) - copy(m.EncryptionKeyHistoryEntry, model.EncryptionKeyHistoryEntry) - m.CpuCoreCount = model.CpuCoreCount - - m.LocalAdgAutoFailoverMaxDataLossLimit = model.LocalAdgAutoFailoverMaxDataLossLimit - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.TotalBackupStorageSizeInGBs = model.TotalBackupStorageSizeInGBs - - m.OcpuCount = model.OcpuCount - - m.ProvisionableCpus = make([]float32, len(model.ProvisionableCpus)) - copy(m.ProvisionableCpus, model.ProvisionableCpus) - m.MemoryPerOracleComputeUnitInGBs = model.MemoryPerOracleComputeUnitInGBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.UsedDataStorageSizeInGBs = model.UsedDataStorageSizeInGBs - - m.InfrastructureType = model.InfrastructureType - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.TimeUndeleted = model.TimeUndeleted - - m.TimeCreated = model.TimeCreated - - m.DisplayName = model.DisplayName - - m.ServiceConsoleUrl = model.ServiceConsoleUrl - - m.ConnectionStrings = model.ConnectionStrings - - m.ConnectionUrls = model.ConnectionUrls - - m.PublicConnectionUrls = model.PublicConnectionUrls - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.UsedDataStorageSizeInTBs = model.UsedDataStorageSizeInTBs - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpoint = model.PrivateEndpoint - - m.PublicEndpoint = model.PublicEndpoint - - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.IsPreview = model.IsPreview - - m.DbWorkload = model.DbWorkload - - m.IsDevTier = model.IsDevTier - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.ApexDetails = model.ApexDetails - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.DataSafeStatus = model.DataSafeStatus - - m.OperationsInsightsStatus = model.OperationsInsightsStatus - - m.DatabaseManagementStatus = model.DatabaseManagementStatus - - m.TimeMaintenanceBegin = model.TimeMaintenanceBegin - - m.TimeMaintenanceEnd = model.TimeMaintenanceEnd - - m.IsRefreshableClone = model.IsRefreshableClone - - m.TimeOfLastRefresh = model.TimeOfLastRefresh - - m.TimeOfLastRefreshPoint = model.TimeOfLastRefreshPoint - - m.TimeOfNextRefresh = model.TimeOfNextRefresh - - m.OpenMode = model.OpenMode - - m.RefreshableStatus = model.RefreshableStatus - - m.RefreshableMode = model.RefreshableMode - - m.SourceId = model.SourceId - - m.PermissionLevel = model.PermissionLevel - - m.TimeOfLastSwitchover = model.TimeOfLastSwitchover - - m.TimeOfLastFailover = model.TimeOfLastFailover - - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.FailedDataRecoveryInSeconds = model.FailedDataRecoveryInSeconds - - m.StandbyDb = model.StandbyDb - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.IsRemoteDataGuardEnabled = model.IsRemoteDataGuardEnabled - - m.LocalStandbyDb = model.LocalStandbyDb - - m.Role = model.Role - - m.AvailableUpgradeVersions = make([]string, len(model.AvailableUpgradeVersions)) - copy(m.AvailableUpgradeVersions, model.AvailableUpgradeVersions) - m.KeyStoreId = model.KeyStoreId - - m.KeyStoreWalletName = model.KeyStoreWalletName - - m.AutoRefreshFrequencyInSeconds = model.AutoRefreshFrequencyInSeconds - - m.AutoRefreshPointLagInSeconds = model.AutoRefreshPointLagInSeconds - - m.TimeOfAutoRefreshStart = model.TimeOfAutoRefreshStart - - m.SupportedRegionsToCloneTo = make([]string, len(model.SupportedRegionsToCloneTo)) - copy(m.SupportedRegionsToCloneTo, model.SupportedRegionsToCloneTo) - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.TimeLocalDataGuardEnabled = model.TimeLocalDataGuardEnabled - - m.DataguardRegionType = model.DataguardRegionType - - m.TimeDataGuardRoleChanged = model.TimeDataGuardRoleChanged - - m.PeerDbIds = make([]string, len(model.PeerDbIds)) - copy(m.PeerDbIds, model.PeerDbIds) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.TimeOfJoiningResourcePool = model.TimeOfJoiningResourcePool - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.IsReconnectCloneEnabled = model.IsReconnectCloneEnabled - - m.TimeUntilReconnectCloneEnabled = model.TimeUntilReconnectCloneEnabled - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.AllocatedStorageSizeInTBs = model.AllocatedStorageSizeInTBs - - m.ActualUsedDataStorageSizeInTBs = model.ActualUsedDataStorageSizeInTBs - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.LocalDisasterRecoveryType = model.LocalDisasterRecoveryType - - m.DisasterRecoveryRegionType = model.DisasterRecoveryRegionType - - m.TimeDisasterRecoveryRoleChanged = model.TimeDisasterRecoveryRoleChanged - - m.RemoteDisasterRecoveryConfiguration = model.RemoteDisasterRecoveryConfiguration - - m.NetServicesArchitecture = model.NetServicesArchitecture - - m.AvailabilityDomain = model.AvailabilityDomain - - m.ClusterPlacementGroupId = model.ClusterPlacementGroupId - - m.Id = model.Id - - m.CompartmentId = model.CompartmentId - - m.LifecycleState = model.LifecycleState - - m.DbName = model.DbName - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - return -} - // AutonomousDatabaseLifecycleStateEnum Enum with underlying type: string type AutonomousDatabaseLifecycleStateEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_encryption_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_encryption_key_details.go deleted file mode 100644 index 84539b1e2ca..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_encryption_key_details.go +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). -// - -package database - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// AutonomousDatabaseEncryptionKeyDetails Details of the Autonomous Database encryption key. -type AutonomousDatabaseEncryptionKeyDetails interface { -} - -type autonomousdatabaseencryptionkeydetails struct { - JsonData []byte - Provider string `json:"provider"` -} - -// UnmarshalJSON unmarshals json -func (m *autonomousdatabaseencryptionkeydetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerautonomousdatabaseencryptionkeydetails autonomousdatabaseencryptionkeydetails - s := struct { - Model Unmarshalerautonomousdatabaseencryptionkeydetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Provider = s.Model.Provider - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *autonomousdatabaseencryptionkeydetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Provider { - case "OKV": - mm := OkvKeyDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AZURE": - mm := AzureKeyDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AWS": - mm := AwsKeyDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "OCI": - mm := OciKeyDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "ORACLE_MANAGED": - mm := OracleManagedKeyDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for AutonomousDatabaseEncryptionKeyDetails: %s.", m.Provider) - return *m, nil - } -} - -func (m autonomousdatabaseencryptionkeydetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m autonomousdatabaseencryptionkeydetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AutonomousDatabaseEncryptionKeyDetailsProviderEnum Enum with underlying type: string -type AutonomousDatabaseEncryptionKeyDetailsProviderEnum string - -// Set of constants representing the allowable values for AutonomousDatabaseEncryptionKeyDetailsProviderEnum -const ( - AutonomousDatabaseEncryptionKeyDetailsProviderAws AutonomousDatabaseEncryptionKeyDetailsProviderEnum = "AWS" - AutonomousDatabaseEncryptionKeyDetailsProviderAzure AutonomousDatabaseEncryptionKeyDetailsProviderEnum = "AZURE" - AutonomousDatabaseEncryptionKeyDetailsProviderOci AutonomousDatabaseEncryptionKeyDetailsProviderEnum = "OCI" - AutonomousDatabaseEncryptionKeyDetailsProviderOracleManaged AutonomousDatabaseEncryptionKeyDetailsProviderEnum = "ORACLE_MANAGED" - AutonomousDatabaseEncryptionKeyDetailsProviderOkv AutonomousDatabaseEncryptionKeyDetailsProviderEnum = "OKV" -) - -var mappingAutonomousDatabaseEncryptionKeyDetailsProviderEnum = map[string]AutonomousDatabaseEncryptionKeyDetailsProviderEnum{ - "AWS": AutonomousDatabaseEncryptionKeyDetailsProviderAws, - "AZURE": AutonomousDatabaseEncryptionKeyDetailsProviderAzure, - "OCI": AutonomousDatabaseEncryptionKeyDetailsProviderOci, - "ORACLE_MANAGED": AutonomousDatabaseEncryptionKeyDetailsProviderOracleManaged, - "OKV": AutonomousDatabaseEncryptionKeyDetailsProviderOkv, -} - -var mappingAutonomousDatabaseEncryptionKeyDetailsProviderEnumLowerCase = map[string]AutonomousDatabaseEncryptionKeyDetailsProviderEnum{ - "aws": AutonomousDatabaseEncryptionKeyDetailsProviderAws, - "azure": AutonomousDatabaseEncryptionKeyDetailsProviderAzure, - "oci": AutonomousDatabaseEncryptionKeyDetailsProviderOci, - "oracle_managed": AutonomousDatabaseEncryptionKeyDetailsProviderOracleManaged, - "okv": AutonomousDatabaseEncryptionKeyDetailsProviderOkv, -} - -// GetAutonomousDatabaseEncryptionKeyDetailsProviderEnumValues Enumerates the set of values for AutonomousDatabaseEncryptionKeyDetailsProviderEnum -func GetAutonomousDatabaseEncryptionKeyDetailsProviderEnumValues() []AutonomousDatabaseEncryptionKeyDetailsProviderEnum { - values := make([]AutonomousDatabaseEncryptionKeyDetailsProviderEnum, 0) - for _, v := range mappingAutonomousDatabaseEncryptionKeyDetailsProviderEnum { - values = append(values, v) - } - return values -} - -// GetAutonomousDatabaseEncryptionKeyDetailsProviderEnumStringValues Enumerates the set of values in String for AutonomousDatabaseEncryptionKeyDetailsProviderEnum -func GetAutonomousDatabaseEncryptionKeyDetailsProviderEnumStringValues() []string { - return []string{ - "AWS", - "AZURE", - "OCI", - "ORACLE_MANAGED", - "OKV", - } -} - -// GetMappingAutonomousDatabaseEncryptionKeyDetailsProviderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingAutonomousDatabaseEncryptionKeyDetailsProviderEnum(val string) (AutonomousDatabaseEncryptionKeyDetailsProviderEnum, bool) { - enum, ok := mappingAutonomousDatabaseEncryptionKeyDetailsProviderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_encryption_key_history_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_encryption_key_history_entry.go deleted file mode 100644 index 1918dfb2f52..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_encryption_key_history_entry.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). -// - -package database - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// AutonomousDatabaseEncryptionKeyHistoryEntry The Autonomous Database encryption key history entry. -type AutonomousDatabaseEncryptionKeyHistoryEntry struct { - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - - // The date and time the encryption key was activated. - TimeActivated *common.SDKTime `mandatory:"false" json:"timeActivated"` -} - -func (m AutonomousDatabaseEncryptionKeyHistoryEntry) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m AutonomousDatabaseEncryptionKeyHistoryEntry) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *AutonomousDatabaseEncryptionKeyHistoryEntry) UnmarshalJSON(data []byte) (e error) { - model := struct { - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - TimeActivated *common.SDKTime `json:"timeActivated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.TimeActivated = model.TimeActivated - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go index d155da96407..278e8a24732 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go @@ -10,7 +10,6 @@ package database import ( - "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -54,8 +53,6 @@ type AutonomousDatabaseSummary struct { // KMS key lifecycle details. KmsKeyLifecycleDetails *string `mandatory:"false" json:"kmsKeyLifecycleDetails"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. KmsKeyVersionId *string `mandatory:"false" json:"kmsKeyVersionId"` @@ -97,9 +94,6 @@ type AutonomousDatabaseSummary struct { // Key History Entry. KeyHistoryEntry []AutonomousDatabaseKeyHistoryEntry `mandatory:"false" json:"keyHistoryEntry"` - // Key History Entry. - EncryptionKeyHistoryEntry []AutonomousDatabaseEncryptionKeyHistoryEntry `mandatory:"false" json:"encryptionKeyHistoryEntry"` - // The number of CPU cores to be made available to the database. When the ECPU is selected, the value for cpuCoreCount is 0. For Autonomous Database on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `ocpuCount` parameter. CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` @@ -542,396 +536,6 @@ func (m AutonomousDatabaseSummary) ValidateEnumValue() (bool, error) { return false, nil } -// UnmarshalJSON unmarshals from json -func (m *AutonomousDatabaseSummary) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - LifecycleDetails *string `json:"lifecycleDetails"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - KmsKeyLifecycleDetails *string `json:"kmsKeyLifecycleDetails"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - KmsKeyVersionId *string `json:"kmsKeyVersionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - InMemoryAreaInGBs *int `json:"inMemoryAreaInGBs"` - NextLongTermBackupTimeStamp *common.SDKTime `json:"nextLongTermBackupTimeStamp"` - LongTermBackupSchedule *LongTermBackUpScheduleDetails `json:"longTermBackupSchedule"` - IsFreeTier *bool `json:"isFreeTier"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - TimeReclamationOfFreeAutonomousDatabase *common.SDKTime `json:"timeReclamationOfFreeAutonomousDatabase"` - TimeDeletionOfFreeAutonomousDatabase *common.SDKTime `json:"timeDeletionOfFreeAutonomousDatabase"` - BackupConfig *AutonomousDatabaseBackupConfig `json:"backupConfig"` - KeyHistoryEntry []AutonomousDatabaseKeyHistoryEntry `json:"keyHistoryEntry"` - EncryptionKeyHistoryEntry []AutonomousDatabaseEncryptionKeyHistoryEntry `json:"encryptionKeyHistoryEntry"` - CpuCoreCount *int `json:"cpuCoreCount"` - LocalAdgAutoFailoverMaxDataLossLimit *int `json:"localAdgAutoFailoverMaxDataLossLimit"` - ComputeModel AutonomousDatabaseSummaryComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - TotalBackupStorageSizeInGBs *float64 `json:"totalBackupStorageSizeInGBs"` - OcpuCount *float32 `json:"ocpuCount"` - ProvisionableCpus []float32 `json:"provisionableCpus"` - MemoryPerOracleComputeUnitInGBs *int `json:"memoryPerOracleComputeUnitInGBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - UsedDataStorageSizeInGBs *int `json:"usedDataStorageSizeInGBs"` - InfrastructureType AutonomousDatabaseSummaryInfrastructureTypeEnum `json:"infrastructureType"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - TimeUndeleted *common.SDKTime `json:"timeUndeleted"` - TimeCreated *common.SDKTime `json:"timeCreated"` - DisplayName *string `json:"displayName"` - ServiceConsoleUrl *string `json:"serviceConsoleUrl"` - ConnectionStrings *AutonomousDatabaseConnectionStrings `json:"connectionStrings"` - ConnectionUrls *AutonomousDatabaseConnectionUrls `json:"connectionUrls"` - PublicConnectionUrls *AutonomousDatabaseConnectionUrls `json:"publicConnectionUrls"` - LicenseModel AutonomousDatabaseSummaryLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - UsedDataStorageSizeInTBs *int `json:"usedDataStorageSizeInTBs"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpoint *string `json:"privateEndpoint"` - PublicEndpoint *string `json:"publicEndpoint"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - IsPreview *bool `json:"isPreview"` - DbWorkload AutonomousDatabaseSummaryDbWorkloadEnum `json:"dbWorkload"` - IsDevTier *bool `json:"isDevTier"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - ApexDetails *AutonomousDatabaseApex `json:"apexDetails"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - DataSafeStatus AutonomousDatabaseSummaryDataSafeStatusEnum `json:"dataSafeStatus"` - OperationsInsightsStatus AutonomousDatabaseSummaryOperationsInsightsStatusEnum `json:"operationsInsightsStatus"` - DatabaseManagementStatus AutonomousDatabaseSummaryDatabaseManagementStatusEnum `json:"databaseManagementStatus"` - TimeMaintenanceBegin *common.SDKTime `json:"timeMaintenanceBegin"` - TimeMaintenanceEnd *common.SDKTime `json:"timeMaintenanceEnd"` - IsRefreshableClone *bool `json:"isRefreshableClone"` - TimeOfLastRefresh *common.SDKTime `json:"timeOfLastRefresh"` - TimeOfLastRefreshPoint *common.SDKTime `json:"timeOfLastRefreshPoint"` - TimeOfNextRefresh *common.SDKTime `json:"timeOfNextRefresh"` - OpenMode AutonomousDatabaseSummaryOpenModeEnum `json:"openMode"` - RefreshableStatus AutonomousDatabaseSummaryRefreshableStatusEnum `json:"refreshableStatus"` - RefreshableMode AutonomousDatabaseSummaryRefreshableModeEnum `json:"refreshableMode"` - SourceId *string `json:"sourceId"` - PermissionLevel AutonomousDatabaseSummaryPermissionLevelEnum `json:"permissionLevel"` - TimeOfLastSwitchover *common.SDKTime `json:"timeOfLastSwitchover"` - TimeOfLastFailover *common.SDKTime `json:"timeOfLastFailover"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - FailedDataRecoveryInSeconds *int `json:"failedDataRecoveryInSeconds"` - StandbyDb *AutonomousDatabaseStandbySummary `json:"standbyDb"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - IsRemoteDataGuardEnabled *bool `json:"isRemoteDataGuardEnabled"` - LocalStandbyDb *AutonomousDatabaseStandbySummary `json:"localStandbyDb"` - Role AutonomousDatabaseSummaryRoleEnum `json:"role"` - AvailableUpgradeVersions []string `json:"availableUpgradeVersions"` - KeyStoreId *string `json:"keyStoreId"` - KeyStoreWalletName *string `json:"keyStoreWalletName"` - AutoRefreshFrequencyInSeconds *int `json:"autoRefreshFrequencyInSeconds"` - AutoRefreshPointLagInSeconds *int `json:"autoRefreshPointLagInSeconds"` - TimeOfAutoRefreshStart *common.SDKTime `json:"timeOfAutoRefreshStart"` - SupportedRegionsToCloneTo []string `json:"supportedRegionsToCloneTo"` - CustomerContacts []CustomerContact `json:"customerContacts"` - TimeLocalDataGuardEnabled *common.SDKTime `json:"timeLocalDataGuardEnabled"` - DataguardRegionType AutonomousDatabaseSummaryDataguardRegionTypeEnum `json:"dataguardRegionType"` - TimeDataGuardRoleChanged *common.SDKTime `json:"timeDataGuardRoleChanged"` - PeerDbIds []string `json:"peerDbIds"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - TimeOfJoiningResourcePool *common.SDKTime `json:"timeOfJoiningResourcePool"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - IsReconnectCloneEnabled *bool `json:"isReconnectCloneEnabled"` - TimeUntilReconnectCloneEnabled *common.SDKTime `json:"timeUntilReconnectCloneEnabled"` - AutonomousMaintenanceScheduleType AutonomousDatabaseSummaryAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - AllocatedStorageSizeInTBs *float64 `json:"allocatedStorageSizeInTBs"` - ActualUsedDataStorageSizeInTBs *float64 `json:"actualUsedDataStorageSizeInTBs"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - LocalDisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `json:"localDisasterRecoveryType"` - DisasterRecoveryRegionType AutonomousDatabaseSummaryDisasterRecoveryRegionTypeEnum `json:"disasterRecoveryRegionType"` - TimeDisasterRecoveryRoleChanged *common.SDKTime `json:"timeDisasterRecoveryRoleChanged"` - RemoteDisasterRecoveryConfiguration *DisasterRecoveryConfiguration `json:"remoteDisasterRecoveryConfiguration"` - NetServicesArchitecture AutonomousDatabaseSummaryNetServicesArchitectureEnum `json:"netServicesArchitecture"` - AvailabilityDomain *string `json:"availabilityDomain"` - ClusterPlacementGroupId *string `json:"clusterPlacementGroupId"` - Id *string `json:"id"` - CompartmentId *string `json:"compartmentId"` - LifecycleState AutonomousDatabaseSummaryLifecycleStateEnum `json:"lifecycleState"` - DbName *string `json:"dbName"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.LifecycleDetails = model.LifecycleDetails - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - m.KmsKeyLifecycleDetails = model.KmsKeyLifecycleDetails - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.KmsKeyVersionId = model.KmsKeyVersionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.InMemoryPercentage = model.InMemoryPercentage - - m.InMemoryAreaInGBs = model.InMemoryAreaInGBs - - m.NextLongTermBackupTimeStamp = model.NextLongTermBackupTimeStamp - - m.LongTermBackupSchedule = model.LongTermBackupSchedule - - m.IsFreeTier = model.IsFreeTier - - m.SystemTags = model.SystemTags - - m.TimeReclamationOfFreeAutonomousDatabase = model.TimeReclamationOfFreeAutonomousDatabase - - m.TimeDeletionOfFreeAutonomousDatabase = model.TimeDeletionOfFreeAutonomousDatabase - - m.BackupConfig = model.BackupConfig - - m.KeyHistoryEntry = make([]AutonomousDatabaseKeyHistoryEntry, len(model.KeyHistoryEntry)) - copy(m.KeyHistoryEntry, model.KeyHistoryEntry) - m.EncryptionKeyHistoryEntry = make([]AutonomousDatabaseEncryptionKeyHistoryEntry, len(model.EncryptionKeyHistoryEntry)) - copy(m.EncryptionKeyHistoryEntry, model.EncryptionKeyHistoryEntry) - m.CpuCoreCount = model.CpuCoreCount - - m.LocalAdgAutoFailoverMaxDataLossLimit = model.LocalAdgAutoFailoverMaxDataLossLimit - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.TotalBackupStorageSizeInGBs = model.TotalBackupStorageSizeInGBs - - m.OcpuCount = model.OcpuCount - - m.ProvisionableCpus = make([]float32, len(model.ProvisionableCpus)) - copy(m.ProvisionableCpus, model.ProvisionableCpus) - m.MemoryPerOracleComputeUnitInGBs = model.MemoryPerOracleComputeUnitInGBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.UsedDataStorageSizeInGBs = model.UsedDataStorageSizeInGBs - - m.InfrastructureType = model.InfrastructureType - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.TimeUndeleted = model.TimeUndeleted - - m.TimeCreated = model.TimeCreated - - m.DisplayName = model.DisplayName - - m.ServiceConsoleUrl = model.ServiceConsoleUrl - - m.ConnectionStrings = model.ConnectionStrings - - m.ConnectionUrls = model.ConnectionUrls - - m.PublicConnectionUrls = model.PublicConnectionUrls - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.UsedDataStorageSizeInTBs = model.UsedDataStorageSizeInTBs - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpoint = model.PrivateEndpoint - - m.PublicEndpoint = model.PublicEndpoint - - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.IsPreview = model.IsPreview - - m.DbWorkload = model.DbWorkload - - m.IsDevTier = model.IsDevTier - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.ApexDetails = model.ApexDetails - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.DataSafeStatus = model.DataSafeStatus - - m.OperationsInsightsStatus = model.OperationsInsightsStatus - - m.DatabaseManagementStatus = model.DatabaseManagementStatus - - m.TimeMaintenanceBegin = model.TimeMaintenanceBegin - - m.TimeMaintenanceEnd = model.TimeMaintenanceEnd - - m.IsRefreshableClone = model.IsRefreshableClone - - m.TimeOfLastRefresh = model.TimeOfLastRefresh - - m.TimeOfLastRefreshPoint = model.TimeOfLastRefreshPoint - - m.TimeOfNextRefresh = model.TimeOfNextRefresh - - m.OpenMode = model.OpenMode - - m.RefreshableStatus = model.RefreshableStatus - - m.RefreshableMode = model.RefreshableMode - - m.SourceId = model.SourceId - - m.PermissionLevel = model.PermissionLevel - - m.TimeOfLastSwitchover = model.TimeOfLastSwitchover - - m.TimeOfLastFailover = model.TimeOfLastFailover - - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.FailedDataRecoveryInSeconds = model.FailedDataRecoveryInSeconds - - m.StandbyDb = model.StandbyDb - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.IsRemoteDataGuardEnabled = model.IsRemoteDataGuardEnabled - - m.LocalStandbyDb = model.LocalStandbyDb - - m.Role = model.Role - - m.AvailableUpgradeVersions = make([]string, len(model.AvailableUpgradeVersions)) - copy(m.AvailableUpgradeVersions, model.AvailableUpgradeVersions) - m.KeyStoreId = model.KeyStoreId - - m.KeyStoreWalletName = model.KeyStoreWalletName - - m.AutoRefreshFrequencyInSeconds = model.AutoRefreshFrequencyInSeconds - - m.AutoRefreshPointLagInSeconds = model.AutoRefreshPointLagInSeconds - - m.TimeOfAutoRefreshStart = model.TimeOfAutoRefreshStart - - m.SupportedRegionsToCloneTo = make([]string, len(model.SupportedRegionsToCloneTo)) - copy(m.SupportedRegionsToCloneTo, model.SupportedRegionsToCloneTo) - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.TimeLocalDataGuardEnabled = model.TimeLocalDataGuardEnabled - - m.DataguardRegionType = model.DataguardRegionType - - m.TimeDataGuardRoleChanged = model.TimeDataGuardRoleChanged - - m.PeerDbIds = make([]string, len(model.PeerDbIds)) - copy(m.PeerDbIds, model.PeerDbIds) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.TimeOfJoiningResourcePool = model.TimeOfJoiningResourcePool - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.IsReconnectCloneEnabled = model.IsReconnectCloneEnabled - - m.TimeUntilReconnectCloneEnabled = model.TimeUntilReconnectCloneEnabled - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.AllocatedStorageSizeInTBs = model.AllocatedStorageSizeInTBs - - m.ActualUsedDataStorageSizeInTBs = model.ActualUsedDataStorageSizeInTBs - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.LocalDisasterRecoveryType = model.LocalDisasterRecoveryType - - m.DisasterRecoveryRegionType = model.DisasterRecoveryRegionType - - m.TimeDisasterRecoveryRoleChanged = model.TimeDisasterRecoveryRoleChanged - - m.RemoteDisasterRecoveryConfiguration = model.RemoteDisasterRecoveryConfiguration - - m.NetServicesArchitecture = model.NetServicesArchitecture - - m.AvailabilityDomain = model.AvailabilityDomain - - m.ClusterPlacementGroupId = model.ClusterPlacementGroupId - - m.Id = model.Id - - m.CompartmentId = model.CompartmentId - - m.LifecycleState = model.LifecycleState - - m.DbName = model.DbName - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - return -} - // AutonomousDatabaseSummaryLifecycleStateEnum Enum with underlying type: string type AutonomousDatabaseSummaryLifecycleStateEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/aws_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/aws_key_details.go deleted file mode 100644 index 12dab751f59..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/aws_key_details.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). -// - -package database - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// AwsKeyDetails Details for AWS encryption key. -type AwsKeyDetails struct { - - // AWS key service endpoint URI - ServiceEndpointUri *string `mandatory:"true" json:"serviceEndpointUri"` - - // AWS key ARN - KeyArn *string `mandatory:"true" json:"keyArn"` - - // AWS ARN role - ArnRole *string `mandatory:"false" json:"arnRole"` - - // AWS external ID - ExternalId *string `mandatory:"false" json:"externalId"` -} - -func (m AwsKeyDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m AwsKeyDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m AwsKeyDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAwsKeyDetails AwsKeyDetails - s := struct { - DiscriminatorParam string `json:"provider"` - MarshalTypeAwsKeyDetails - }{ - "AWS", - (MarshalTypeAwsKeyDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/azure_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/azure_key_details.go deleted file mode 100644 index 285c1c0e5b0..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/azure_key_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). -// - -package database - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// AzureKeyDetails Details for Azure encryption key. -type AzureKeyDetails struct { - - // Azure vault URI - VaultUri *string `mandatory:"true" json:"vaultUri"` - - // Azure key name - KeyName *string `mandatory:"true" json:"keyName"` -} - -func (m AzureKeyDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m AzureKeyDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m AzureKeyDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAzureKeyDetails AzureKeyDetails - s := struct { - DiscriminatorParam string `json:"provider"` - MarshalTypeAzureKeyDetails - }{ - "AZURE", - (MarshalTypeAzureKeyDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go index 5889b5c3f6c..7efd473816e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go @@ -97,8 +97,6 @@ type CreateAutonomousDatabaseBase interface { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. GetVaultId() *string - GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). GetAdminPassword() *string @@ -281,7 +279,6 @@ type createautonomousdatabasebase struct { IsFreeTier *bool `mandatory:"false" json:"isFreeTier"` KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `mandatory:"false" json:"encryptionKey"` AdminPassword *string `mandatory:"false" json:"adminPassword"` DisplayName *string `mandatory:"false" json:"displayName"` LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` @@ -348,7 +345,6 @@ func (m *createautonomousdatabasebase) UnmarshalJSON(data []byte) error { m.IsFreeTier = s.Model.IsFreeTier m.KmsKeyId = s.Model.KmsKeyId m.VaultId = s.Model.VaultId - m.EncryptionKey = s.Model.EncryptionKey m.AdminPassword = s.Model.AdminPassword m.DisplayName = s.Model.DisplayName m.LicenseModel = s.Model.LicenseModel @@ -515,11 +511,6 @@ func (m createautonomousdatabasebase) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m createautonomousdatabasebase) GetEncryptionKey() autonomousdatabaseencryptionkeydetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m createautonomousdatabasebase) GetAdminPassword() *string { return m.AdminPassword diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go index 60196b26027..825a697fbd8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go @@ -82,8 +82,6 @@ type CreateAutonomousDatabaseCloneDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -343,11 +341,6 @@ func (m CreateAutonomousDatabaseCloneDetails) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateAutonomousDatabaseCloneDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateAutonomousDatabaseCloneDetails) GetAdminPassword() *string { return m.AdminPassword @@ -571,189 +564,6 @@ func (m CreateAutonomousDatabaseCloneDetails) MarshalJSON() (buff []byte, e erro return json.Marshal(&s) } -// UnmarshalJSON unmarshals from json -func (m *CreateAutonomousDatabaseCloneDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - CompartmentId *string `json:"compartmentId"` - SourceId *string `json:"sourceId"` - CloneType CreateAutonomousDatabaseCloneDetailsCloneTypeEnum `json:"cloneType"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.CompartmentId = model.CompartmentId - - m.SourceId = model.SourceId - - m.CloneType = model.CloneType - - return -} - // CreateAutonomousDatabaseCloneDetailsCloneTypeEnum Enum with underlying type: string type CreateAutonomousDatabaseCloneDetailsCloneTypeEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go index f078203e8d8..6528f822aab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go @@ -79,8 +79,6 @@ type CreateAutonomousDatabaseDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -337,11 +335,6 @@ func (m CreateAutonomousDatabaseDetails) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateAutonomousDatabaseDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateAutonomousDatabaseDetails) GetAdminPassword() *string { return m.AdminPassword @@ -561,180 +554,3 @@ func (m CreateAutonomousDatabaseDetails) MarshalJSON() (buff []byte, e error) { return json.Marshal(&s) } - -// UnmarshalJSON unmarshals from json -func (m *CreateAutonomousDatabaseDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - CompartmentId *string `json:"compartmentId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.CompartmentId = model.CompartmentId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go index 041d7918dd7..f4eeda1ba62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go @@ -82,8 +82,6 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -343,11 +341,6 @@ func (m CreateAutonomousDatabaseFromBackupDetails) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateAutonomousDatabaseFromBackupDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateAutonomousDatabaseFromBackupDetails) GetAdminPassword() *string { return m.AdminPassword @@ -571,189 +564,6 @@ func (m CreateAutonomousDatabaseFromBackupDetails) MarshalJSON() (buff []byte, e return json.Marshal(&s) } -// UnmarshalJSON unmarshals from json -func (m *CreateAutonomousDatabaseFromBackupDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - CompartmentId *string `json:"compartmentId"` - AutonomousDatabaseBackupId *string `json:"autonomousDatabaseBackupId"` - CloneType CreateAutonomousDatabaseFromBackupDetailsCloneTypeEnum `json:"cloneType"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.CompartmentId = model.CompartmentId - - m.AutonomousDatabaseBackupId = model.AutonomousDatabaseBackupId - - m.CloneType = model.CloneType - - return -} - // CreateAutonomousDatabaseFromBackupDetailsCloneTypeEnum Enum with underlying type: string type CreateAutonomousDatabaseFromBackupDetailsCloneTypeEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go index acd7d4ed27d..cace4f81d82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go @@ -82,8 +82,6 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -349,11 +347,6 @@ func (m CreateAutonomousDatabaseFromBackupTimestampDetails) GetVaultId() *string return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateAutonomousDatabaseFromBackupTimestampDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateAutonomousDatabaseFromBackupTimestampDetails) GetAdminPassword() *string { return m.AdminPassword @@ -577,195 +570,6 @@ func (m CreateAutonomousDatabaseFromBackupTimestampDetails) MarshalJSON() (buff return json.Marshal(&s) } -// UnmarshalJSON unmarshals from json -func (m *CreateAutonomousDatabaseFromBackupTimestampDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - Timestamp *common.SDKTime `json:"timestamp"` - UseLatestAvailableBackupTimeStamp *bool `json:"useLatestAvailableBackupTimeStamp"` - CompartmentId *string `json:"compartmentId"` - AutonomousDatabaseId *string `json:"autonomousDatabaseId"` - CloneType CreateAutonomousDatabaseFromBackupTimestampDetailsCloneTypeEnum `json:"cloneType"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.Timestamp = model.Timestamp - - m.UseLatestAvailableBackupTimeStamp = model.UseLatestAvailableBackupTimeStamp - - m.CompartmentId = model.CompartmentId - - m.AutonomousDatabaseId = model.AutonomousDatabaseId - - m.CloneType = model.CloneType - - return -} - // CreateAutonomousDatabaseFromBackupTimestampDetailsCloneTypeEnum Enum with underlying type: string type CreateAutonomousDatabaseFromBackupTimestampDetailsCloneTypeEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go index c3f8fd869e3..0490f64b4e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go @@ -101,8 +101,6 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -359,11 +357,6 @@ func (m CreateCrossRegionAutonomousDatabaseDataGuardDetails) GetVaultId() *strin return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateCrossRegionAutonomousDatabaseDataGuardDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateCrossRegionAutonomousDatabaseDataGuardDetails) GetAdminPassword() *string { return m.AdminPassword @@ -583,183 +576,3 @@ func (m CreateCrossRegionAutonomousDatabaseDataGuardDetails) MarshalJSON() (buff return json.Marshal(&s) } - -// UnmarshalJSON unmarshals from json -func (m *CreateCrossRegionAutonomousDatabaseDataGuardDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - CompartmentId *string `json:"compartmentId"` - SourceId *string `json:"sourceId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.CompartmentId = model.CompartmentId - - m.SourceId = model.SourceId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go index 2f63588b30f..7e12dd6cc38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go @@ -103,8 +103,6 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -369,11 +367,6 @@ func (m CreateCrossRegionDisasterRecoveryDetails) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateCrossRegionDisasterRecoveryDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateCrossRegionDisasterRecoveryDetails) GetAdminPassword() *string { return m.AdminPassword @@ -596,189 +589,3 @@ func (m CreateCrossRegionDisasterRecoveryDetails) MarshalJSON() (buff []byte, e return json.Marshal(&s) } - -// UnmarshalJSON unmarshals from json -func (m *CreateCrossRegionDisasterRecoveryDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - IsReplicateAutomaticBackups *bool `json:"isReplicateAutomaticBackups"` - CompartmentId *string `json:"compartmentId"` - SourceId *string `json:"sourceId"` - RemoteDisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `json:"remoteDisasterRecoveryType"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.IsReplicateAutomaticBackups = model.IsReplicateAutomaticBackups - - m.CompartmentId = model.CompartmentId - - m.SourceId = model.SourceId - - m.RemoteDisasterRecoveryType = model.RemoteDisasterRecoveryType - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_tenancy_disaster_recovery_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_tenancy_disaster_recovery_details.go index 36d8b30a715..159ddf1844c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_tenancy_disaster_recovery_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_tenancy_disaster_recovery_details.go @@ -104,8 +104,6 @@ type CreateCrossTenancyDisasterRecoveryDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -370,11 +368,6 @@ func (m CreateCrossTenancyDisasterRecoveryDetails) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateCrossTenancyDisasterRecoveryDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateCrossTenancyDisasterRecoveryDetails) GetAdminPassword() *string { return m.AdminPassword @@ -597,189 +590,3 @@ func (m CreateCrossTenancyDisasterRecoveryDetails) MarshalJSON() (buff []byte, e return json.Marshal(&s) } - -// UnmarshalJSON unmarshals from json -func (m *CreateCrossTenancyDisasterRecoveryDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - IsReplicateAutomaticBackups *bool `json:"isReplicateAutomaticBackups"` - CompartmentId *string `json:"compartmentId"` - SourceId *string `json:"sourceId"` - DisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `json:"disasterRecoveryType"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.IsReplicateAutomaticBackups = model.IsReplicateAutomaticBackups - - m.CompartmentId = model.CompartmentId - - m.SourceId = model.SourceId - - m.DisasterRecoveryType = model.DisasterRecoveryType - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go index d4638ba78c5..569f506e945 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go @@ -82,8 +82,6 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -356,11 +354,6 @@ func (m CreateRefreshableAutonomousDatabaseCloneDetails) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m CreateRefreshableAutonomousDatabaseCloneDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m CreateRefreshableAutonomousDatabaseCloneDetails) GetAdminPassword() *string { return m.AdminPassword @@ -587,201 +580,6 @@ func (m CreateRefreshableAutonomousDatabaseCloneDetails) MarshalJSON() (buff []b return json.Marshal(&s) } -// UnmarshalJSON unmarshals from json -func (m *CreateRefreshableAutonomousDatabaseCloneDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - RefreshableMode CreateRefreshableAutonomousDatabaseCloneDetailsRefreshableModeEnum `json:"refreshableMode"` - AutoRefreshFrequencyInSeconds *int `json:"autoRefreshFrequencyInSeconds"` - AutoRefreshPointLagInSeconds *int `json:"autoRefreshPointLagInSeconds"` - TimeOfAutoRefreshStart *common.SDKTime `json:"timeOfAutoRefreshStart"` - OpenMode CreateRefreshableAutonomousDatabaseCloneDetailsOpenModeEnum `json:"openMode"` - CompartmentId *string `json:"compartmentId"` - SourceId *string `json:"sourceId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.RefreshableMode = model.RefreshableMode - - m.AutoRefreshFrequencyInSeconds = model.AutoRefreshFrequencyInSeconds - - m.AutoRefreshPointLagInSeconds = model.AutoRefreshPointLagInSeconds - - m.TimeOfAutoRefreshStart = model.TimeOfAutoRefreshStart - - m.OpenMode = model.OpenMode - - m.CompartmentId = model.CompartmentId - - m.SourceId = model.SourceId - - return -} - // CreateRefreshableAutonomousDatabaseCloneDetailsRefreshableModeEnum Enum with underlying type: string type CreateRefreshableAutonomousDatabaseCloneDetailsRefreshableModeEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/oci_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/oci_key_details.go deleted file mode 100644 index 940b9c5d116..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/oci_key_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). -// - -package database - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// OciKeyDetails Details for OCI encryption key. -type OciKeyDetails struct { - - // The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - KmsKeyId *string `mandatory:"true" json:"kmsKeyId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. - VaultId *string `mandatory:"true" json:"vaultId"` -} - -func (m OciKeyDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m OciKeyDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m OciKeyDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeOciKeyDetails OciKeyDetails - s := struct { - DiscriminatorParam string `json:"provider"` - MarshalTypeOciKeyDetails - }{ - "OCI", - (MarshalTypeOciKeyDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/okv_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/okv_key_details.go deleted file mode 100644 index 33fcfcc6f64..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/okv_key_details.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). -// - -package database - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// OkvKeyDetails Details for OKV encryption key. -type OkvKeyDetails struct { - - // URI of OKV server - OkvUri *string `mandatory:"true" json:"okvUri"` - - // UUID of OKV KMS Key - OkvKmsKey *string `mandatory:"true" json:"okvKmsKey"` - - // OKV wallet directory name - DirectoryName *string `mandatory:"true" json:"directoryName"` - - // OKV certificate directory name - CertificateDirectoryName *string `mandatory:"true" json:"certificateDirectoryName"` - - // OKV certificate id - CertificateId *string `mandatory:"false" json:"certificateId"` -} - -func (m OkvKeyDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m OkvKeyDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m OkvKeyDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeOkvKeyDetails OkvKeyDetails - s := struct { - DiscriminatorParam string `json:"provider"` - MarshalTypeOkvKeyDetails - }{ - "OKV", - (MarshalTypeOkvKeyDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/oracle_managed_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/oracle_managed_key_details.go deleted file mode 100644 index 0c602809423..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/oracle_managed_key_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Database Service API -// -// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). -// - -package database - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// OracleManagedKeyDetails Details for Oracle-managed encryption key. -type OracleManagedKeyDetails struct { -} - -func (m OracleManagedKeyDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m OracleManagedKeyDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m OracleManagedKeyDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeOracleManagedKeyDetails OracleManagedKeyDetails - s := struct { - DiscriminatorParam string `json:"provider"` - MarshalTypeOracleManagedKeyDetails - }{ - "ORACLE_MANAGED", - (MarshalTypeOracleManagedKeyDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/undelete_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/undelete_autonomous_database_details.go index ea58ddfe868..cdd4f58af0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/undelete_autonomous_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/undelete_autonomous_database_details.go @@ -82,8 +82,6 @@ type UndeleteAutonomousDatabaseDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. VaultId *string `mandatory:"false" json:"vaultId"` - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` - // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` @@ -340,11 +338,6 @@ func (m UndeleteAutonomousDatabaseDetails) GetVaultId() *string { return m.VaultId } -// GetEncryptionKey returns EncryptionKey -func (m UndeleteAutonomousDatabaseDetails) GetEncryptionKey() AutonomousDatabaseEncryptionKeyDetails { - return m.EncryptionKey -} - // GetAdminPassword returns AdminPassword func (m UndeleteAutonomousDatabaseDetails) GetAdminPassword() *string { return m.AdminPassword @@ -564,183 +557,3 @@ func (m UndeleteAutonomousDatabaseDetails) MarshalJSON() (buff []byte, e error) return json.Marshal(&s) } - -// UnmarshalJSON unmarshals from json -func (m *UndeleteAutonomousDatabaseDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubscriptionId *string `json:"subscriptionId"` - CharacterSet *string `json:"characterSet"` - NcharacterSet *string `json:"ncharacterSet"` - DbName *string `json:"dbName"` - CpuCoreCount *int `json:"cpuCoreCount"` - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel CreateAutonomousDatabaseBaseComputeModelEnum `json:"computeModel"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `json:"dbWorkload"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - IsFreeTier *bool `json:"isFreeTier"` - KmsKeyId *string `json:"kmsKeyId"` - VaultId *string `json:"vaultId"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - AdminPassword *string `json:"adminPassword"` - DisplayName *string `json:"displayName"` - LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsPreviewVersionWithServiceTermsAccepted *bool `json:"isPreviewVersionWithServiceTermsAccepted"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsDevTier *bool `json:"isDevTier"` - IsDedicated *bool `json:"isDedicated"` - AutonomousContainerDatabaseId *string `json:"autonomousContainerDatabaseId"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - SubnetId *string `json:"subnetId"` - NsgIds []string `json:"nsgIds"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - DbVersion *string `json:"dbVersion"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `json:"autonomousMaintenanceScheduleType"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - CompartmentId *string `json:"compartmentId"` - SourceId *string `json:"sourceId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubscriptionId = model.SubscriptionId - - m.CharacterSet = model.CharacterSet - - m.NcharacterSet = model.NcharacterSet - - m.DbName = model.DbName - - m.CpuCoreCount = model.CpuCoreCount - - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DbWorkload = model.DbWorkload - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.IsFreeTier = model.IsFreeTier - - m.KmsKeyId = model.KmsKeyId - - m.VaultId = model.VaultId - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - m.AdminPassword = model.AdminPassword - - m.DisplayName = model.DisplayName - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsPreviewVersionWithServiceTermsAccepted = model.IsPreviewVersionWithServiceTermsAccepted - - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsDevTier = model.IsDevTier - - m.IsDedicated = model.IsDedicated - - m.AutonomousContainerDatabaseId = model.AutonomousContainerDatabaseId - - m.InMemoryPercentage = model.InMemoryPercentage - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.SubnetId = model.SubnetId - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.DbVersion = model.DbVersion - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.AutonomousMaintenanceScheduleType = model.AutonomousMaintenanceScheduleType - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - m.CompartmentId = model.CompartmentId - - m.SourceId = model.SourceId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go index 6226e673e64..8927ff284a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go @@ -10,7 +10,6 @@ package database import ( - "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -272,8 +271,6 @@ type UpdateAutonomousDatabaseDetails struct { // The version of the vault secret. If no version is specified, the latest version will be used. SecretVersionNumber *int `mandatory:"false" json:"secretVersionNumber"` - - EncryptionKey AutonomousDatabaseEncryptionKeyDetails `mandatory:"false" json:"encryptionKey"` } func (m UpdateAutonomousDatabaseDetails) String() string { @@ -313,183 +310,6 @@ func (m UpdateAutonomousDatabaseDetails) ValidateEnumValue() (bool, error) { return false, nil } -// UnmarshalJSON unmarshals from json -func (m *UpdateAutonomousDatabaseDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - BackupRetentionPeriodInDays *int `json:"backupRetentionPeriodInDays"` - ComputeModel UpdateAutonomousDatabaseDetailsComputeModelEnum `json:"computeModel"` - InMemoryPercentage *int `json:"inMemoryPercentage"` - LocalAdgAutoFailoverMaxDataLossLimit *int `json:"localAdgAutoFailoverMaxDataLossLimit"` - CpuCoreCount *int `json:"cpuCoreCount"` - LongTermBackupSchedule *LongTermBackUpScheduleDetails `json:"longTermBackupSchedule"` - IsDevTier *bool `json:"isDevTier"` - ComputeCount *float32 `json:"computeCount"` - OcpuCount *float32 `json:"ocpuCount"` - DataStorageSizeInTBs *int `json:"dataStorageSizeInTBs"` - DataStorageSizeInGBs *int `json:"dataStorageSizeInGBs"` - DisplayName *string `json:"displayName"` - IsFreeTier *bool `json:"isFreeTier"` - AdminPassword *string `json:"adminPassword"` - DbName *string `json:"dbName"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SecurityAttributes map[string]map[string]interface{} `json:"securityAttributes"` - DbWorkload UpdateAutonomousDatabaseDetailsDbWorkloadEnum `json:"dbWorkload"` - LicenseModel UpdateAutonomousDatabaseDetailsLicenseModelEnum `json:"licenseModel"` - ByolComputeCountLimit *float32 `json:"byolComputeCountLimit"` - IsAccessControlEnabled *bool `json:"isAccessControlEnabled"` - WhitelistedIps []string `json:"whitelistedIps"` - ArePrimaryWhitelistedIpsUsed *bool `json:"arePrimaryWhitelistedIpsUsed"` - StandbyWhitelistedIps []string `json:"standbyWhitelistedIps"` - IsAutoScalingEnabled *bool `json:"isAutoScalingEnabled"` - IsRefreshableClone *bool `json:"isRefreshableClone"` - RefreshableMode UpdateAutonomousDatabaseDetailsRefreshableModeEnum `json:"refreshableMode"` - IsLocalDataGuardEnabled *bool `json:"isLocalDataGuardEnabled"` - IsDataGuardEnabled *bool `json:"isDataGuardEnabled"` - PeerDbId *string `json:"peerDbId"` - DbVersion *string `json:"dbVersion"` - OpenMode UpdateAutonomousDatabaseDetailsOpenModeEnum `json:"openMode"` - PermissionLevel UpdateAutonomousDatabaseDetailsPermissionLevelEnum `json:"permissionLevel"` - SubnetId *string `json:"subnetId"` - PrivateEndpointLabel *string `json:"privateEndpointLabel"` - PrivateEndpointIp *string `json:"privateEndpointIp"` - NsgIds []string `json:"nsgIds"` - AutoRefreshFrequencyInSeconds *int `json:"autoRefreshFrequencyInSeconds"` - AutoRefreshPointLagInSeconds *int `json:"autoRefreshPointLagInSeconds"` - TimeOfAutoRefreshStart *common.SDKTime `json:"timeOfAutoRefreshStart"` - CustomerContacts []CustomerContact `json:"customerContacts"` - IsMtlsConnectionRequired *bool `json:"isMtlsConnectionRequired"` - ResourcePoolLeaderId *string `json:"resourcePoolLeaderId"` - ResourcePoolSummary *ResourcePoolSummary `json:"resourcePoolSummary"` - ScheduledOperations []ScheduledOperationDetails `json:"scheduledOperations"` - IsAutoScalingForStorageEnabled *bool `json:"isAutoScalingForStorageEnabled"` - DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `json:"databaseEdition"` - DbToolsDetails []DatabaseTool `json:"dbToolsDetails"` - SecretId *string `json:"secretId"` - SecretVersionNumber *int `json:"secretVersionNumber"` - EncryptionKey autonomousdatabaseencryptionkeydetails `json:"encryptionKey"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.BackupRetentionPeriodInDays = model.BackupRetentionPeriodInDays - - m.ComputeModel = model.ComputeModel - - m.InMemoryPercentage = model.InMemoryPercentage - - m.LocalAdgAutoFailoverMaxDataLossLimit = model.LocalAdgAutoFailoverMaxDataLossLimit - - m.CpuCoreCount = model.CpuCoreCount - - m.LongTermBackupSchedule = model.LongTermBackupSchedule - - m.IsDevTier = model.IsDevTier - - m.ComputeCount = model.ComputeCount - - m.OcpuCount = model.OcpuCount - - m.DataStorageSizeInTBs = model.DataStorageSizeInTBs - - m.DataStorageSizeInGBs = model.DataStorageSizeInGBs - - m.DisplayName = model.DisplayName - - m.IsFreeTier = model.IsFreeTier - - m.AdminPassword = model.AdminPassword - - m.DbName = model.DbName - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SecurityAttributes = model.SecurityAttributes - - m.DbWorkload = model.DbWorkload - - m.LicenseModel = model.LicenseModel - - m.ByolComputeCountLimit = model.ByolComputeCountLimit - - m.IsAccessControlEnabled = model.IsAccessControlEnabled - - m.WhitelistedIps = make([]string, len(model.WhitelistedIps)) - copy(m.WhitelistedIps, model.WhitelistedIps) - m.ArePrimaryWhitelistedIpsUsed = model.ArePrimaryWhitelistedIpsUsed - - m.StandbyWhitelistedIps = make([]string, len(model.StandbyWhitelistedIps)) - copy(m.StandbyWhitelistedIps, model.StandbyWhitelistedIps) - m.IsAutoScalingEnabled = model.IsAutoScalingEnabled - - m.IsRefreshableClone = model.IsRefreshableClone - - m.RefreshableMode = model.RefreshableMode - - m.IsLocalDataGuardEnabled = model.IsLocalDataGuardEnabled - - m.IsDataGuardEnabled = model.IsDataGuardEnabled - - m.PeerDbId = model.PeerDbId - - m.DbVersion = model.DbVersion - - m.OpenMode = model.OpenMode - - m.PermissionLevel = model.PermissionLevel - - m.SubnetId = model.SubnetId - - m.PrivateEndpointLabel = model.PrivateEndpointLabel - - m.PrivateEndpointIp = model.PrivateEndpointIp - - m.NsgIds = make([]string, len(model.NsgIds)) - copy(m.NsgIds, model.NsgIds) - m.AutoRefreshFrequencyInSeconds = model.AutoRefreshFrequencyInSeconds - - m.AutoRefreshPointLagInSeconds = model.AutoRefreshPointLagInSeconds - - m.TimeOfAutoRefreshStart = model.TimeOfAutoRefreshStart - - m.CustomerContacts = make([]CustomerContact, len(model.CustomerContacts)) - copy(m.CustomerContacts, model.CustomerContacts) - m.IsMtlsConnectionRequired = model.IsMtlsConnectionRequired - - m.ResourcePoolLeaderId = model.ResourcePoolLeaderId - - m.ResourcePoolSummary = model.ResourcePoolSummary - - m.ScheduledOperations = make([]ScheduledOperationDetails, len(model.ScheduledOperations)) - copy(m.ScheduledOperations, model.ScheduledOperations) - m.IsAutoScalingForStorageEnabled = model.IsAutoScalingForStorageEnabled - - m.DatabaseEdition = model.DatabaseEdition - - m.DbToolsDetails = make([]DatabaseTool, len(model.DbToolsDetails)) - copy(m.DbToolsDetails, model.DbToolsDetails) - m.SecretId = model.SecretId - - m.SecretVersionNumber = model.SecretVersionNumber - - nn, e = model.EncryptionKey.UnmarshalPolymorphicJSON(model.EncryptionKey.JsonData) - if e != nil { - return - } - if nn != nil { - m.EncryptionKey = nn.(AutonomousDatabaseEncryptionKeyDetails) - } else { - m.EncryptionKey = nil - } - - return -} - // UpdateAutonomousDatabaseDetailsComputeModelEnum Enum with underlying type: string type UpdateAutonomousDatabaseDetailsComputeModelEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/backup_operation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/backup_operation_details.go deleted file mode 100644 index ab5d4b59897..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/backup_operation_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Data Science API -// -// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). -// - -package datascience - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// BackupOperationDetails Backup operation details of the model. -type BackupOperationDetails struct { - - // The backup status of the model. - BackupState ModelSettingActionStateEnum `mandatory:"true" json:"backupState"` - - // The backup execution status details of the model. - BackupStateDetails *string `mandatory:"true" json:"backupStateDetails"` - - // The last backup execution time of the model. - TimeLastBackup *common.SDKTime `mandatory:"false" json:"timeLastBackup"` -} - -func (m BackupOperationDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m BackupOperationDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingModelSettingActionStateEnum(string(m.BackupState)); !ok && m.BackupState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BackupState: %s. Supported values are: %s.", m.BackupState, strings.Join(GetModelSettingActionStateEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/backup_setting.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/backup_setting.go deleted file mode 100644 index 6c1a1356c8f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/backup_setting.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Data Science API -// -// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). -// - -package datascience - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// BackupSetting Back up setting details of the model. -type BackupSetting struct { - - // Boolean flag representing whether backup needs to be enabled/disabled for the model. - IsBackupEnabled *bool `mandatory:"true" json:"isBackupEnabled"` - - // OCI backup region for the model. - BackupRegion *string `mandatory:"true" json:"backupRegion"` - - // Customer notification on backup success/failure events. - CustomerNotificationType ModelSettingCustomerNotificationTypeEnum `mandatory:"false" json:"customerNotificationType,omitempty"` -} - -func (m BackupSetting) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m BackupSetting) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingModelSettingCustomerNotificationTypeEnum(string(m.CustomerNotificationType)); !ok && m.CustomerNotificationType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CustomerNotificationType: %s. Supported values are: %s.", m.CustomerNotificationType, strings.Join(GetModelSettingCustomerNotificationTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_model_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_model_details.go index cfa349c3809..5a5f6d1dd30 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_model_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_model_details.go @@ -56,10 +56,6 @@ type CreateModelDetails struct { // The version label can add an additional description of the lifecycle state of the model or the application using/training the model. VersionLabel *string `mandatory:"false" json:"versionLabel"` - - RetentionSetting *RetentionSetting `mandatory:"false" json:"retentionSetting"` - - BackupSetting *BackupSetting `mandatory:"false" json:"backupSetting"` } func (m CreateModelDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/datascience_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/datascience_client.go index fe51587d342..97240f17487 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/datascience_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/datascience_client.go @@ -4858,69 +4858,6 @@ func (client DataScienceClient) listWorkRequests(ctx context.Context, request co return response, err } -// RestoreArchivedModelArtifact Restore archived model artifact -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datascience/RestoreArchivedModelArtifact.go.html to see an example of how to use RestoreArchivedModelArtifact API. -// A default retry strategy applies to this operation RestoreArchivedModelArtifact() -func (client DataScienceClient) RestoreArchivedModelArtifact(ctx context.Context, request RestoreArchivedModelArtifactRequest) (response RestoreArchivedModelArtifactResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.restoreArchivedModelArtifact, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RestoreArchivedModelArtifactResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = RestoreArchivedModelArtifactResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(RestoreArchivedModelArtifactResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into RestoreArchivedModelArtifactResponse") - } - return -} - -// restoreArchivedModelArtifact implements the OCIOperation interface (enables retrying operations) -func (client DataScienceClient) restoreArchivedModelArtifact(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/models/{modelId}/actions/restore", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response RestoreArchivedModelArtifactResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/RestoreArchivedModelArtifact" - err = common.PostProcessServiceError(err, "DataScience", "RestoreArchivedModelArtifact", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // UpdateDataSciencePrivateEndpoint Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match // a previously defined private endpoint, then a 409 status code is returned. This indicates // that a conflict has been detected. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/list_work_requests_request_response.go index 2f86f26a1c9..a1e1dd9dbf6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/list_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/list_work_requests_request_response.go @@ -163,7 +163,6 @@ const ( ListWorkRequestsOperationTypePrivateEndpointDelete ListWorkRequestsOperationTypeEnum = "PRIVATE_ENDPOINT_DELETE" ListWorkRequestsOperationTypePrivateEndpointMove ListWorkRequestsOperationTypeEnum = "PRIVATE_ENDPOINT_MOVE" ListWorkRequestsOperationTypePrivateEndpointUpdate ListWorkRequestsOperationTypeEnum = "PRIVATE_ENDPOINT_UPDATE" - ListWorkRequestsOperationTypeRestoreArchivedModel ListWorkRequestsOperationTypeEnum = "RESTORE_ARCHIVED_MODEL" ) var mappingListWorkRequestsOperationTypeEnum = map[string]ListWorkRequestsOperationTypeEnum{ @@ -191,7 +190,6 @@ var mappingListWorkRequestsOperationTypeEnum = map[string]ListWorkRequestsOperat "PRIVATE_ENDPOINT_DELETE": ListWorkRequestsOperationTypePrivateEndpointDelete, "PRIVATE_ENDPOINT_MOVE": ListWorkRequestsOperationTypePrivateEndpointMove, "PRIVATE_ENDPOINT_UPDATE": ListWorkRequestsOperationTypePrivateEndpointUpdate, - "RESTORE_ARCHIVED_MODEL": ListWorkRequestsOperationTypeRestoreArchivedModel, } var mappingListWorkRequestsOperationTypeEnumLowerCase = map[string]ListWorkRequestsOperationTypeEnum{ @@ -219,7 +217,6 @@ var mappingListWorkRequestsOperationTypeEnumLowerCase = map[string]ListWorkReque "private_endpoint_delete": ListWorkRequestsOperationTypePrivateEndpointDelete, "private_endpoint_move": ListWorkRequestsOperationTypePrivateEndpointMove, "private_endpoint_update": ListWorkRequestsOperationTypePrivateEndpointUpdate, - "restore_archived_model": ListWorkRequestsOperationTypeRestoreArchivedModel, } // GetListWorkRequestsOperationTypeEnumValues Enumerates the set of values for ListWorkRequestsOperationTypeEnum @@ -258,7 +255,6 @@ func GetListWorkRequestsOperationTypeEnumStringValues() []string { "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", - "RESTORE_ARCHIVED_MODEL", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model.go index e3b1a84c3bf..eba9cd5b569 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model.go @@ -33,9 +33,6 @@ type Model struct { // The state of the model. LifecycleState ModelLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // Details about the lifecycle state of the model. - LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"` - // The date and time the resource was created in the timestamp format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: 2019-08-25T21:10:29.41Z TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` @@ -55,14 +52,6 @@ type Model struct { // The version label can add an additional description of the lifecycle state of the model or the application using and training the model. VersionLabel *string `mandatory:"true" json:"versionLabel"` - RetentionSetting *RetentionSetting `mandatory:"true" json:"retentionSetting"` - - BackupSetting *BackupSetting `mandatory:"true" json:"backupSetting"` - - RetentionOperationDetails *RetentionOperationDetails `mandatory:"true" json:"retentionOperationDetails"` - - BackupOperationDetails *BackupOperationDetails `mandatory:"true" json:"backupOperationDetails"` - // A short description of the model. Description *string `mandatory:"false" json:"description"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_setting_action_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_setting_action_state.go deleted file mode 100644 index 46613fce7d1..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_setting_action_state.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Data Science API -// -// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). -// - -package datascience - -import ( - "strings" -) - -// ModelSettingActionStateEnum Enum with underlying type: string -type ModelSettingActionStateEnum string - -// Set of constants representing the allowable values for ModelSettingActionStateEnum -const ( - ModelSettingActionStatePending ModelSettingActionStateEnum = "PENDING" - ModelSettingActionStateFailed ModelSettingActionStateEnum = "FAILED" - ModelSettingActionStateSucceeded ModelSettingActionStateEnum = "SUCCEEDED" -) - -var mappingModelSettingActionStateEnum = map[string]ModelSettingActionStateEnum{ - "PENDING": ModelSettingActionStatePending, - "FAILED": ModelSettingActionStateFailed, - "SUCCEEDED": ModelSettingActionStateSucceeded, -} - -var mappingModelSettingActionStateEnumLowerCase = map[string]ModelSettingActionStateEnum{ - "pending": ModelSettingActionStatePending, - "failed": ModelSettingActionStateFailed, - "succeeded": ModelSettingActionStateSucceeded, -} - -// GetModelSettingActionStateEnumValues Enumerates the set of values for ModelSettingActionStateEnum -func GetModelSettingActionStateEnumValues() []ModelSettingActionStateEnum { - values := make([]ModelSettingActionStateEnum, 0) - for _, v := range mappingModelSettingActionStateEnum { - values = append(values, v) - } - return values -} - -// GetModelSettingActionStateEnumStringValues Enumerates the set of values in String for ModelSettingActionStateEnum -func GetModelSettingActionStateEnumStringValues() []string { - return []string{ - "PENDING", - "FAILED", - "SUCCEEDED", - } -} - -// GetMappingModelSettingActionStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingModelSettingActionStateEnum(val string) (ModelSettingActionStateEnum, bool) { - enum, ok := mappingModelSettingActionStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_setting_customer_notification_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_setting_customer_notification_type.go deleted file mode 100644 index e2b714da50c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_setting_customer_notification_type.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Data Science API -// -// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). -// - -package datascience - -import ( - "strings" -) - -// ModelSettingCustomerNotificationTypeEnum Enum with underlying type: string -type ModelSettingCustomerNotificationTypeEnum string - -// Set of constants representing the allowable values for ModelSettingCustomerNotificationTypeEnum -const ( - ModelSettingCustomerNotificationTypeNone ModelSettingCustomerNotificationTypeEnum = "NONE" - ModelSettingCustomerNotificationTypeAll ModelSettingCustomerNotificationTypeEnum = "ALL" - ModelSettingCustomerNotificationTypeOnFailure ModelSettingCustomerNotificationTypeEnum = "ON_FAILURE" - ModelSettingCustomerNotificationTypeOnSuccess ModelSettingCustomerNotificationTypeEnum = "ON_SUCCESS" -) - -var mappingModelSettingCustomerNotificationTypeEnum = map[string]ModelSettingCustomerNotificationTypeEnum{ - "NONE": ModelSettingCustomerNotificationTypeNone, - "ALL": ModelSettingCustomerNotificationTypeAll, - "ON_FAILURE": ModelSettingCustomerNotificationTypeOnFailure, - "ON_SUCCESS": ModelSettingCustomerNotificationTypeOnSuccess, -} - -var mappingModelSettingCustomerNotificationTypeEnumLowerCase = map[string]ModelSettingCustomerNotificationTypeEnum{ - "none": ModelSettingCustomerNotificationTypeNone, - "all": ModelSettingCustomerNotificationTypeAll, - "on_failure": ModelSettingCustomerNotificationTypeOnFailure, - "on_success": ModelSettingCustomerNotificationTypeOnSuccess, -} - -// GetModelSettingCustomerNotificationTypeEnumValues Enumerates the set of values for ModelSettingCustomerNotificationTypeEnum -func GetModelSettingCustomerNotificationTypeEnumValues() []ModelSettingCustomerNotificationTypeEnum { - values := make([]ModelSettingCustomerNotificationTypeEnum, 0) - for _, v := range mappingModelSettingCustomerNotificationTypeEnum { - values = append(values, v) - } - return values -} - -// GetModelSettingCustomerNotificationTypeEnumStringValues Enumerates the set of values in String for ModelSettingCustomerNotificationTypeEnum -func GetModelSettingCustomerNotificationTypeEnumStringValues() []string { - return []string{ - "NONE", - "ALL", - "ON_FAILURE", - "ON_SUCCESS", - } -} - -// GetMappingModelSettingCustomerNotificationTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingModelSettingCustomerNotificationTypeEnum(val string) (ModelSettingCustomerNotificationTypeEnum, bool) { - enum, ok := mappingModelSettingCustomerNotificationTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_summary.go index 0fe7658dab3..44801bb3069 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/model_summary.go @@ -52,9 +52,6 @@ type ModelSummary struct { // The version label can add an additional description of the lifecycle state of the model or the application using and training the model. VersionLabel *string `mandatory:"true" json:"versionLabel"` - // Details about the lifecycle state of the model. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/restore_archived_model_artifact_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/restore_archived_model_artifact_request_response.go deleted file mode 100644 index 0670aee6290..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/restore_archived_model_artifact_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package datascience - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RestoreArchivedModelArtifactRequest wrapper for the RestoreArchivedModelArtifact operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datascience/RestoreArchivedModelArtifact.go.html to see an example of how to use RestoreArchivedModelArtifactRequest. -type RestoreArchivedModelArtifactRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the model. - ModelId *string `mandatory:"true" contributesTo:"path" name:"modelId"` - - // Duration in hours for which the archived model is available for access. - RestoreModelForHoursSpecified *int `mandatory:"false" contributesTo:"query" name:"restoreModelForHoursSpecified"` - - // Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource is updated or deleted only if the `etag` you - // provide matches the resource's current `etag` value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RestoreArchivedModelArtifactRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RestoreArchivedModelArtifactRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RestoreArchivedModelArtifactRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RestoreArchivedModelArtifactRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RestoreArchivedModelArtifactRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RestoreArchivedModelArtifactResponse wrapper for the RestoreArchivedModelArtifact operation -type RestoreArchivedModelArtifactResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle assigned identifier for the request. If you need to contact - // Oracle about a particular request, then provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RestoreArchivedModelArtifactResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RestoreArchivedModelArtifactResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/retention_operation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/retention_operation_details.go deleted file mode 100644 index 786088fbc90..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/retention_operation_details.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Data Science API -// -// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). -// - -package datascience - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RetentionOperationDetails Retention operation details for the model. -type RetentionOperationDetails struct { - - // The archival status of model. - ArchiveState ModelSettingActionStateEnum `mandatory:"true" json:"archiveState"` - - // The archival state details of the model. - ArchiveStateDetails *string `mandatory:"true" json:"archiveStateDetails"` - - // The estimated archival time of the model based on the provided retention setting. - TimeArchivalScheduled *common.SDKTime `mandatory:"true" json:"timeArchivalScheduled"` - - // The deletion status of the archived model. - DeleteState ModelSettingActionStateEnum `mandatory:"true" json:"deleteState"` - - // The deletion status details of the archived model. - DeleteStateDetails *string `mandatory:"true" json:"deleteStateDetails"` - - // The estimated deletion time of the model based on the provided retention setting. - TimeDeletionScheduled *common.SDKTime `mandatory:"true" json:"timeDeletionScheduled"` -} - -func (m RetentionOperationDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m RetentionOperationDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingModelSettingActionStateEnum(string(m.ArchiveState)); !ok && m.ArchiveState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ArchiveState: %s. Supported values are: %s.", m.ArchiveState, strings.Join(GetModelSettingActionStateEnumStringValues(), ","))) - } - if _, ok := GetMappingModelSettingActionStateEnum(string(m.DeleteState)); !ok && m.DeleteState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeleteState: %s. Supported values are: %s.", m.DeleteState, strings.Join(GetModelSettingActionStateEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/retention_setting.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/retention_setting.go deleted file mode 100644 index 2969680bea7..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/retention_setting.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Data Science API -// -// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). -// - -package datascience - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RetentionSetting Retention setting details of the model. -type RetentionSetting struct { - - // Number of days after which the model will be archived. - ArchiveAfterDays *int `mandatory:"true" json:"archiveAfterDays"` - - // Number of days after which the archived model will be deleted. - DeleteAfterDays *int `mandatory:"false" json:"deleteAfterDays"` - - // Customer notification options on success/failure of archival, deletion events. - CustomerNotificationType ModelSettingCustomerNotificationTypeEnum `mandatory:"false" json:"customerNotificationType,omitempty"` -} - -func (m RetentionSetting) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m RetentionSetting) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingModelSettingCustomerNotificationTypeEnum(string(m.CustomerNotificationType)); !ok && m.CustomerNotificationType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CustomerNotificationType: %s. Supported values are: %s.", m.CustomerNotificationType, strings.Join(GetModelSettingCustomerNotificationTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/update_model_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/update_model_details.go index e7aa158bed0..7b410665c92 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/update_model_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/update_model_details.go @@ -44,10 +44,6 @@ type UpdateModelDetails struct { // The version label can add an additional description of the lifecycle state of the model or the application using/training the model. VersionLabel *string `mandatory:"false" json:"versionLabel"` - - RetentionSetting *RetentionSetting `mandatory:"false" json:"retentionSetting"` - - BackupSetting *BackupSetting `mandatory:"false" json:"backupSetting"` } func (m UpdateModelDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/work_request_operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/work_request_operation_type.go index 10f6d7ddc5d..37af373115a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/work_request_operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/work_request_operation_type.go @@ -42,7 +42,6 @@ const ( WorkRequestOperationTypePrivateEndpointDelete WorkRequestOperationTypeEnum = "PRIVATE_ENDPOINT_DELETE" WorkRequestOperationTypePrivateEndpointMove WorkRequestOperationTypeEnum = "PRIVATE_ENDPOINT_MOVE" WorkRequestOperationTypePrivateEndpointUpdate WorkRequestOperationTypeEnum = "PRIVATE_ENDPOINT_UPDATE" - WorkRequestOperationTypeRestoreArchivedModel WorkRequestOperationTypeEnum = "RESTORE_ARCHIVED_MODEL" ) var mappingWorkRequestOperationTypeEnum = map[string]WorkRequestOperationTypeEnum{ @@ -70,7 +69,6 @@ var mappingWorkRequestOperationTypeEnum = map[string]WorkRequestOperationTypeEnu "PRIVATE_ENDPOINT_DELETE": WorkRequestOperationTypePrivateEndpointDelete, "PRIVATE_ENDPOINT_MOVE": WorkRequestOperationTypePrivateEndpointMove, "PRIVATE_ENDPOINT_UPDATE": WorkRequestOperationTypePrivateEndpointUpdate, - "RESTORE_ARCHIVED_MODEL": WorkRequestOperationTypeRestoreArchivedModel, } var mappingWorkRequestOperationTypeEnumLowerCase = map[string]WorkRequestOperationTypeEnum{ @@ -98,7 +96,6 @@ var mappingWorkRequestOperationTypeEnumLowerCase = map[string]WorkRequestOperati "private_endpoint_delete": WorkRequestOperationTypePrivateEndpointDelete, "private_endpoint_move": WorkRequestOperationTypePrivateEndpointMove, "private_endpoint_update": WorkRequestOperationTypePrivateEndpointUpdate, - "restore_archived_model": WorkRequestOperationTypeRestoreArchivedModel, } // GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum @@ -137,7 +134,6 @@ func GetWorkRequestOperationTypeEnumStringValues() []string { "PRIVATE_ENDPOINT_DELETE", "PRIVATE_ENDPOINT_MOVE", "PRIVATE_ENDPOINT_UPDATE", - "RESTORE_ARCHIVED_MODEL", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_export_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_export_lock_request_response.go deleted file mode 100644 index 42c4cd60dde..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_export_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// AddExportLockRequest wrapper for the AddExportLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddExportLock.go.html to see an example of how to use AddExportLockRequest. -type AddExportLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. - ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` - - // The details to be updated for the AddLock. - AddExportLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request AddExportLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request AddExportLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request AddExportLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request AddExportLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request AddExportLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AddExportLockResponse wrapper for the AddExportLock operation -type AddExportLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Export instance - Export `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response AddExportLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response AddExportLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_file_system_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_file_system_lock_request_response.go deleted file mode 100644 index 6de74b469cc..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_file_system_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// AddFileSystemLockRequest wrapper for the AddFileSystemLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFileSystemLock.go.html to see an example of how to use AddFileSystemLockRequest. -type AddFileSystemLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. - FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` - - // The details to be updated for the AddLock. - AddFileSystemLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request AddFileSystemLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request AddFileSystemLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request AddFileSystemLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request AddFileSystemLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request AddFileSystemLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AddFileSystemLockResponse wrapper for the AddFileSystemLock operation -type AddFileSystemLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The FileSystem instance - FileSystem `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response AddFileSystemLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response AddFileSystemLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_filesystem_snapshot_policy_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_filesystem_snapshot_policy_lock_request_response.go deleted file mode 100644 index f6591745079..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_filesystem_snapshot_policy_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// AddFilesystemSnapshotPolicyLockRequest wrapper for the AddFilesystemSnapshotPolicyLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.go.html to see an example of how to use AddFilesystemSnapshotPolicyLockRequest. -type AddFilesystemSnapshotPolicyLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. - FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` - - // The details to be updated for the AddLock. - AddFilesystemSnapshotPolicyLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request AddFilesystemSnapshotPolicyLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request AddFilesystemSnapshotPolicyLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request AddFilesystemSnapshotPolicyLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request AddFilesystemSnapshotPolicyLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request AddFilesystemSnapshotPolicyLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AddFilesystemSnapshotPolicyLockResponse wrapper for the AddFilesystemSnapshotPolicyLock operation -type AddFilesystemSnapshotPolicyLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The FilesystemSnapshotPolicy instance - FilesystemSnapshotPolicy `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response AddFilesystemSnapshotPolicyLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response AddFilesystemSnapshotPolicyLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_mount_target_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_mount_target_lock_request_response.go deleted file mode 100644 index 2077500374a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_mount_target_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// AddMountTargetLockRequest wrapper for the AddMountTargetLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddMountTargetLock.go.html to see an example of how to use AddMountTargetLockRequest. -type AddMountTargetLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. - MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` - - // The details to be updated for the AddLock. - AddMountTargetLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request AddMountTargetLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request AddMountTargetLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request AddMountTargetLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request AddMountTargetLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request AddMountTargetLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AddMountTargetLockResponse wrapper for the AddMountTargetLock operation -type AddMountTargetLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The MountTarget instance - MountTarget `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response AddMountTargetLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response AddMountTargetLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_outbound_connector_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_outbound_connector_lock_request_response.go deleted file mode 100644 index e046726c21f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_outbound_connector_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// AddOutboundConnectorLockRequest wrapper for the AddOutboundConnectorLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddOutboundConnectorLock.go.html to see an example of how to use AddOutboundConnectorLockRequest. -type AddOutboundConnectorLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. - OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` - - // The details to be updated for the AddLock. - AddOutboundConnectorLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request AddOutboundConnectorLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request AddOutboundConnectorLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request AddOutboundConnectorLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request AddOutboundConnectorLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request AddOutboundConnectorLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AddOutboundConnectorLockResponse wrapper for the AddOutboundConnectorLock operation -type AddOutboundConnectorLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OutboundConnector instance - OutboundConnector `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response AddOutboundConnectorLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response AddOutboundConnectorLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_replication_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_replication_lock_request_response.go deleted file mode 100644 index ba5ed042956..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_replication_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// AddReplicationLockRequest wrapper for the AddReplicationLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddReplicationLock.go.html to see an example of how to use AddReplicationLockRequest. -type AddReplicationLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. - ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` - - // The details to be updated for the AddLock. - AddReplicationLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request AddReplicationLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request AddReplicationLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request AddReplicationLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request AddReplicationLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request AddReplicationLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AddReplicationLockResponse wrapper for the AddReplicationLock operation -type AddReplicationLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Replication instance - Replication `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response AddReplicationLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response AddReplicationLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_snapshot_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_snapshot_lock_request_response.go deleted file mode 100644 index b77cf237047..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/add_snapshot_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// AddSnapshotLockRequest wrapper for the AddSnapshotLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddSnapshotLock.go.html to see an example of how to use AddSnapshotLockRequest. -type AddSnapshotLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. - SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` - - // The details to be updated for the AddLock. - AddSnapshotLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request AddSnapshotLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request AddSnapshotLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request AddSnapshotLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request AddSnapshotLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request AddSnapshotLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// AddSnapshotLockResponse wrapper for the AddSnapshotLock operation -type AddSnapshotLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Snapshot instance - Snapshot `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response AddSnapshotLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response AddSnapshotLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_request_response.go index 6cbea7b402d..ef85c53df39 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_request_response.go @@ -35,9 +35,6 @@ type ChangeFileSystemCompartmentRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go index d85de64c02b..4d021eeaf1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go @@ -35,9 +35,6 @@ type ChangeFilesystemSnapshotPolicyCompartmentRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_request_response.go index e0e735268a9..a051cf04a78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_request_response.go @@ -35,9 +35,6 @@ type ChangeMountTargetCompartmentRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_request_response.go index 8d70d5087ef..bf9c9508ee8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_request_response.go @@ -35,9 +35,6 @@ type ChangeOutboundConnectorCompartmentRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go index f9410eda974..cbbd7231645 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go @@ -35,9 +35,6 @@ type ChangeReplicationCompartmentRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go index dcdbfd2f3b4..34c0f0b7712 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go @@ -58,9 +58,6 @@ type CreateExportDetails struct { // using the `UpdateExport` operation. ExportOptions []ClientOptions `mandatory:"false" json:"exportOptions"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Whether or not the export should use ID mapping for Unix groups rather than the group list provided within an NFS request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable, or cannot be used to determine a list of secondary groups then an empty secondary group list is used for authorization. If the number of groups exceeds the limit of 256 groups, the list retrieved from LDAP is truncated to the first 256 groups read. IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go index bd5a52473df..362f3ba8366 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go @@ -42,9 +42,6 @@ type CreateFileSystemDetails struct { // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key used to encrypt the encryption keys associated with this file system. KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go index 829b2f0e47f..ed3f3b99850 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go @@ -53,9 +53,6 @@ type CreateFilesystemSnapshotPolicyDetails struct { // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` } func (m CreateFilesystemSnapshotPolicyDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go index 9198fc3ebd1..2b62c21ae38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go @@ -50,9 +50,6 @@ type CreateLdapBindAccountDetails struct { // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the password for the LDAP bind account in the Vault. PasswordSecretId *string `mandatory:"false" json:"passwordSecretId"` @@ -85,11 +82,6 @@ func (m CreateLdapBindAccountDetails) GetDefinedTags() map[string]map[string]int return m.DefinedTags } -// GetLocks returns Locks -func (m CreateLdapBindAccountDetails) GetLocks() []ResourceLock { - return m.Locks -} - func (m CreateLdapBindAccountDetails) String() string { return common.PointerString(m) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go index 87ef6b28160..b68de5fe948 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go @@ -83,9 +83,6 @@ type CreateMountTargetDetails struct { // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Throughput for mount target in Gbps. Currently only 1 Gbps of requestedThroughput is supported during create MountTarget. // Available shapes and corresponding throughput are listed at Mount Target Performance (https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). RequestedThroughput *int64 `mandatory:"false" json:"requestedThroughput"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go index a35cd4dffed..c7776ac9d03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go @@ -32,9 +32,6 @@ type CreateMountTargetRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go index 60a04b8b1de..5260610b6d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go @@ -43,9 +43,6 @@ type CreateOutboundConnectorDetails interface { // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` GetDefinedTags() map[string]map[string]interface{} - - // Locks associated with this resource. - GetLocks() []ResourceLock } type createoutboundconnectordetails struct { @@ -53,7 +50,6 @@ type createoutboundconnectordetails struct { DisplayName *string `mandatory:"false" json:"displayName"` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - Locks []ResourceLock `mandatory:"false" json:"locks"` AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` CompartmentId *string `mandatory:"true" json:"compartmentId"` ConnectorType string `json:"connectorType"` @@ -75,7 +71,6 @@ func (m *createoutboundconnectordetails) UnmarshalJSON(data []byte) error { m.DisplayName = s.Model.DisplayName m.FreeformTags = s.Model.FreeformTags m.DefinedTags = s.Model.DefinedTags - m.Locks = s.Model.Locks m.ConnectorType = s.Model.ConnectorType return err @@ -115,11 +110,6 @@ func (m createoutboundconnectordetails) GetDefinedTags() map[string]map[string]i return m.DefinedTags } -// GetLocks returns Locks -func (m createoutboundconnectordetails) GetLocks() []ResourceLock { - return m.Locks -} - // GetAvailabilityDomain returns AvailabilityDomain func (m createoutboundconnectordetails) GetAvailabilityDomain() *string { return m.AvailabilityDomain diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go index 516114bf1fd..81196e01f57 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go @@ -47,9 +47,6 @@ type CreateReplicationDetails struct { // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` } func (m CreateReplicationDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go index b1529cdd413..60b7618b442 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go @@ -42,9 +42,6 @@ type CreateSnapshotDetails struct { // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` } func (m CreateSnapshotDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go index cedba5807ad..6b25690849e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go @@ -32,9 +32,6 @@ type DeleteExportRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go index 85293a1630c..434675c8c9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go @@ -32,9 +32,6 @@ type DeleteFileSystemRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // If the value is set to true, then the file system will be deleted by detaching its child file system, turning // the child file system into an independent File System. CanDetachChildFileSystem *bool `mandatory:"false" contributesTo:"query" name:"canDetachChildFileSystem"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go index 55ac5578a1a..6e95027d67d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go @@ -32,9 +32,6 @@ type DeleteFilesystemSnapshotPolicyRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go index 48fb9a77eb1..667ba676b56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go @@ -32,9 +32,6 @@ type DeleteMountTargetRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go index 92327b0cd0e..a4439dad71f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go @@ -32,9 +32,6 @@ type DeleteOutboundConnectorRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go index afe8e9c8d35..2bce158f799 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go @@ -38,9 +38,6 @@ type DeleteReplicationRequest struct { // - `FINISH_CYCLE_IF_APPLYING` Before deleting, finish applying. If cycle is idle or capturing, delete immediately. Fastest option. DeleteMode DeleteReplicationDeleteModeEnum `mandatory:"false" contributesTo:"query" name:"deleteMode" omitEmpty:"true"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go index 16aa15b76c6..67807a31f3f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go @@ -32,9 +32,6 @@ type DeleteReplicationTargetRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go index 3dcebf4e7e7..0f20a159b82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go @@ -32,9 +32,6 @@ type DeleteSnapshotRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go index 21f9d14551b..83caf261d4e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go @@ -92,9 +92,6 @@ type Export struct { // Whether or not the export should use ID mapping for Unix groups rather than the group list provided within an NFS request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable, or cannot be used to determine a list of secondary groups then an empty secondary group list is used for authorization. If the number of groups exceeds the limit of 256 groups, the list retrieved from LDAP is truncated to the first 256 groups read. IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` - - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` } func (m Export) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go index c2f837f87b4..9bf7394d84d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go @@ -43,9 +43,6 @@ type ExportSummary struct { // Whether or not the export should use ID mapping for Unix groups rather than the group list provided within an NFS request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable, or cannot be used to determine a list of secondary groups then an empty secondary group list is used for authorization. If the number of groups exceeds the limit of 256 groups, the list retrieved from LDAP is truncated to the first 256 groups read. IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` - - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` } func (m ExportSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go index 34d1071163f..d3ea3ae4b04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go @@ -90,9 +90,6 @@ type FileSystem struct { // Specifies whether the file system is attached to its parent file system. CloneAttachStatus FileSystemCloneAttachStatusEnum `mandatory:"false" json:"cloneAttachStatus,omitempty"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Additional information about the current 'lifecycleState'. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go index 3d899744385..d1a07495457 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go @@ -49,9 +49,6 @@ type FileSystemSummary struct { // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go index a5512733f95..aacdc9ff77b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go @@ -92,12 +92,12 @@ func (client *FileStorageClient) ConfigurationProvider() *common.ConfigurationPr return client.config } -// AddExportLock Adds a lock to a resource. +// CancelDowngradeShapeMountTarget Cancel scheduled downgrade shape request for mount target. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddExportLock.go.html to see an example of how to use AddExportLock API. -func (client FileStorageClient) AddExportLock(ctx context.Context, request AddExportLockRequest) (response AddExportLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.go.html to see an example of how to use CancelDowngradeShapeMountTarget API. +func (client FileStorageClient) CancelDowngradeShapeMountTarget(ctx context.Context, request CancelDowngradeShapeMountTargetRequest) (response CancelDowngradeShapeMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -106,42 +106,42 @@ func (client FileStorageClient) AddExportLock(ctx context.Context, request AddEx if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.addExportLock, policy) + ociResponse, err = common.Retry(ctx, request, client.cancelDowngradeShapeMountTarget, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = AddExportLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CancelDowngradeShapeMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = AddExportLockResponse{} + response = CancelDowngradeShapeMountTargetResponse{} } } return } - if convertedResponse, ok := ociResponse.(AddExportLockResponse); ok { + if convertedResponse, ok := ociResponse.(CancelDowngradeShapeMountTargetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into AddExportLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into CancelDowngradeShapeMountTargetResponse") } return } -// addExportLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) addExportLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// cancelDowngradeShapeMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) cancelDowngradeShapeMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/exports/{exportId}/actions/addLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/cancelShapeDowngrade", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response AddExportLockResponse + var response CancelDowngradeShapeMountTargetResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/AddExportLock" - err = common.PostProcessServiceError(err, "FileStorage", "AddExportLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CancelDowngradeShapeMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "CancelDowngradeShapeMountTarget", apiReferenceLink) return response, err } @@ -149,12 +149,12 @@ func (client FileStorageClient) addExportLock(ctx context.Context, request commo return response, err } -// AddFileSystemLock Adds a lock to a resource. +// ChangeFileSystemCompartment Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFileSystemLock.go.html to see an example of how to use AddFileSystemLock API. -func (client FileStorageClient) AddFileSystemLock(ctx context.Context, request AddFileSystemLockRequest) (response AddFileSystemLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.go.html to see an example of how to use ChangeFileSystemCompartment API. +func (client FileStorageClient) ChangeFileSystemCompartment(ctx context.Context, request ChangeFileSystemCompartmentRequest) (response ChangeFileSystemCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -163,42 +163,42 @@ func (client FileStorageClient) AddFileSystemLock(ctx context.Context, request A if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.addFileSystemLock, policy) + ociResponse, err = common.Retry(ctx, request, client.changeFileSystemCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = AddFileSystemLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeFileSystemCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = AddFileSystemLockResponse{} + response = ChangeFileSystemCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(AddFileSystemLockResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeFileSystemCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into AddFileSystemLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeFileSystemCompartmentResponse") } return } -// addFileSystemLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) addFileSystemLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeFileSystemCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeFileSystemCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/addLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response AddFileSystemLockResponse + var response ChangeFileSystemCompartmentResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/AddFileSystemLock" - err = common.PostProcessServiceError(err, "FileStorage", "AddFileSystemLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ChangeFileSystemCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeFileSystemCompartment", apiReferenceLink) return response, err } @@ -206,12 +206,12 @@ func (client FileStorageClient) addFileSystemLock(ctx context.Context, request c return response, err } -// AddFilesystemSnapshotPolicyLock Adds a lock to a resource. +// ChangeFilesystemSnapshotPolicyCompartment Moves a file system snapshot policy into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.go.html to see an example of how to use AddFilesystemSnapshotPolicyLock API. -func (client FileStorageClient) AddFilesystemSnapshotPolicyLock(ctx context.Context, request AddFilesystemSnapshotPolicyLockRequest) (response AddFilesystemSnapshotPolicyLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.go.html to see an example of how to use ChangeFilesystemSnapshotPolicyCompartment API. +func (client FileStorageClient) ChangeFilesystemSnapshotPolicyCompartment(ctx context.Context, request ChangeFilesystemSnapshotPolicyCompartmentRequest) (response ChangeFilesystemSnapshotPolicyCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -220,42 +220,42 @@ func (client FileStorageClient) AddFilesystemSnapshotPolicyLock(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.addFilesystemSnapshotPolicyLock, policy) + ociResponse, err = common.Retry(ctx, request, client.changeFilesystemSnapshotPolicyCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = AddFilesystemSnapshotPolicyLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeFilesystemSnapshotPolicyCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = AddFilesystemSnapshotPolicyLockResponse{} + response = ChangeFilesystemSnapshotPolicyCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(AddFilesystemSnapshotPolicyLockResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeFilesystemSnapshotPolicyCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into AddFilesystemSnapshotPolicyLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeFilesystemSnapshotPolicyCompartmentResponse") } return } -// addFilesystemSnapshotPolicyLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) addFilesystemSnapshotPolicyLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeFilesystemSnapshotPolicyCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeFilesystemSnapshotPolicyCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/addLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response AddFilesystemSnapshotPolicyLockResponse + var response ChangeFilesystemSnapshotPolicyCompartmentResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/AddFilesystemSnapshotPolicyLock" - err = common.PostProcessServiceError(err, "FileStorage", "AddFilesystemSnapshotPolicyLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/ChangeFilesystemSnapshotPolicyCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeFilesystemSnapshotPolicyCompartment", apiReferenceLink) return response, err } @@ -263,12 +263,12 @@ func (client FileStorageClient) addFilesystemSnapshotPolicyLock(ctx context.Cont return response, err } -// AddMountTargetLock Adds a lock to a resource. +// ChangeMountTargetCompartment Moves a mount target and its associated export set or share set into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddMountTargetLock.go.html to see an example of how to use AddMountTargetLock API. -func (client FileStorageClient) AddMountTargetLock(ctx context.Context, request AddMountTargetLockRequest) (response AddMountTargetLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.go.html to see an example of how to use ChangeMountTargetCompartment API. +func (client FileStorageClient) ChangeMountTargetCompartment(ctx context.Context, request ChangeMountTargetCompartmentRequest) (response ChangeMountTargetCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -277,42 +277,42 @@ func (client FileStorageClient) AddMountTargetLock(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.addMountTargetLock, policy) + ociResponse, err = common.Retry(ctx, request, client.changeMountTargetCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = AddMountTargetLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeMountTargetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = AddMountTargetLockResponse{} + response = ChangeMountTargetCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(AddMountTargetLockResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeMountTargetCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into AddMountTargetLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeMountTargetCompartmentResponse") } return } -// addMountTargetLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) addMountTargetLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeMountTargetCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeMountTargetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/addLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response AddMountTargetLockResponse + var response ChangeMountTargetCompartmentResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/AddMountTargetLock" - err = common.PostProcessServiceError(err, "FileStorage", "AddMountTargetLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ChangeMountTargetCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeMountTargetCompartment", apiReferenceLink) return response, err } @@ -320,12 +320,14 @@ func (client FileStorageClient) addMountTargetLock(ctx context.Context, request return response, err } -// AddOutboundConnectorLock Adds a lock to a resource. +// ChangeOutboundConnectorCompartment Moves an outbound connector into a different compartment within the same tenancy. +// For information about moving resources between compartments, see +// Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddOutboundConnectorLock.go.html to see an example of how to use AddOutboundConnectorLock API. -func (client FileStorageClient) AddOutboundConnectorLock(ctx context.Context, request AddOutboundConnectorLockRequest) (response AddOutboundConnectorLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.go.html to see an example of how to use ChangeOutboundConnectorCompartment API. +func (client FileStorageClient) ChangeOutboundConnectorCompartment(ctx context.Context, request ChangeOutboundConnectorCompartmentRequest) (response ChangeOutboundConnectorCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -334,55 +336,56 @@ func (client FileStorageClient) AddOutboundConnectorLock(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.addOutboundConnectorLock, policy) + ociResponse, err = common.Retry(ctx, request, client.changeOutboundConnectorCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = AddOutboundConnectorLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeOutboundConnectorCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = AddOutboundConnectorLockResponse{} + response = ChangeOutboundConnectorCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(AddOutboundConnectorLockResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeOutboundConnectorCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into AddOutboundConnectorLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeOutboundConnectorCompartmentResponse") } return } -// addOutboundConnectorLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) addOutboundConnectorLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeOutboundConnectorCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeOutboundConnectorCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors/{outboundConnectorId}/actions/addLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors/{outboundConnectorId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response AddOutboundConnectorLockResponse + var response ChangeOutboundConnectorCompartmentResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/AddOutboundConnectorLock" - err = common.PostProcessServiceError(err, "FileStorage", "AddOutboundConnectorLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/ChangeOutboundConnectorCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeOutboundConnectorCompartment", apiReferenceLink) return response, err } - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) + err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// AddReplicationLock Adds a lock to a resource. +// ChangeReplicationCompartment Moves a replication and its replication target into a different compartment within the same tenancy. +// For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddReplicationLock.go.html to see an example of how to use AddReplicationLock API. -func (client FileStorageClient) AddReplicationLock(ctx context.Context, request AddReplicationLockRequest) (response AddReplicationLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeReplicationCompartment.go.html to see an example of how to use ChangeReplicationCompartment API. +func (client FileStorageClient) ChangeReplicationCompartment(ctx context.Context, request ChangeReplicationCompartmentRequest) (response ChangeReplicationCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -391,42 +394,42 @@ func (client FileStorageClient) AddReplicationLock(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.addReplicationLock, policy) + ociResponse, err = common.Retry(ctx, request, client.changeReplicationCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = AddReplicationLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeReplicationCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = AddReplicationLockResponse{} + response = ChangeReplicationCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(AddReplicationLockResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeReplicationCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into AddReplicationLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeReplicationCompartmentResponse") } return } -// addReplicationLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) addReplicationLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeReplicationCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeReplicationCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/{replicationId}/actions/addLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/{replicationId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response AddReplicationLockResponse + var response ChangeReplicationCompartmentResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/AddReplicationLock" - err = common.PostProcessServiceError(err, "FileStorage", "AddReplicationLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ChangeReplicationCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeReplicationCompartment", apiReferenceLink) return response, err } @@ -434,12 +437,13 @@ func (client FileStorageClient) addReplicationLock(ctx context.Context, request return response, err } -// AddSnapshotLock Adds a lock to a resource. +// CreateExport Creates a new export in the specified export set, path, and +// file system. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/AddSnapshotLock.go.html to see an example of how to use AddSnapshotLock API. -func (client FileStorageClient) AddSnapshotLock(ctx context.Context, request AddSnapshotLockRequest) (response AddSnapshotLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateExport.go.html to see an example of how to use CreateExport API. +func (client FileStorageClient) CreateExport(ctx context.Context, request CreateExportRequest) (response CreateExportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -448,42 +452,47 @@ func (client FileStorageClient) AddSnapshotLock(ctx context.Context, request Add if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.addSnapshotLock, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createExport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = AddSnapshotLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = AddSnapshotLockResponse{} + response = CreateExportResponse{} } } return } - if convertedResponse, ok := ociResponse.(AddSnapshotLockResponse); ok { + if convertedResponse, ok := ociResponse.(CreateExportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into AddSnapshotLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateExportResponse") } return } -// addSnapshotLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) addSnapshotLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/snapshots/{snapshotId}/actions/addLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/exports", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response AddSnapshotLockResponse + var response CreateExportResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/AddSnapshotLock" - err = common.PostProcessServiceError(err, "FileStorage", "AddSnapshotLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/CreateExport" + err = common.PostProcessServiceError(err, "FileStorage", "CreateExport", apiReferenceLink) return response, err } @@ -491,12 +500,35 @@ func (client FileStorageClient) addSnapshotLock(ctx context.Context, request com return response, err } -// CancelDowngradeShapeMountTarget Cancel scheduled downgrade shape request for mount target. +// CreateFileSystem Creates a new file system in the specified compartment and +// availability domain. Instances can mount file systems in +// another availability domain, but doing so might increase +// latency when compared to mounting instances in the same +// availability domain. +// After you create a file system, you can associate it with a mount +// target. Instances can then mount the file system by connecting to the +// mount target's IP address. You can associate a file system with +// more than one mount target at a time. +// For information about access control and compartments, see +// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about Network Security Groups access control, see +// Network Security Groups (https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure resources, including +// file systems, get an Oracle-assigned, unique ID called an Oracle +// Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type or by viewing the resource in the Console. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.go.html to see an example of how to use CancelDowngradeShapeMountTarget API. -func (client FileStorageClient) CancelDowngradeShapeMountTarget(ctx context.Context, request CancelDowngradeShapeMountTargetRequest) (response CancelDowngradeShapeMountTargetResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFileSystem.go.html to see an example of how to use CreateFileSystem API. +func (client FileStorageClient) CreateFileSystem(ctx context.Context, request CreateFileSystemRequest) (response CreateFileSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -505,42 +537,47 @@ func (client FileStorageClient) CancelDowngradeShapeMountTarget(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.cancelDowngradeShapeMountTarget, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createFileSystem, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CancelDowngradeShapeMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CancelDowngradeShapeMountTargetResponse{} + response = CreateFileSystemResponse{} } } return } - if convertedResponse, ok := ociResponse.(CancelDowngradeShapeMountTargetResponse); ok { + if convertedResponse, ok := ociResponse.(CreateFileSystemResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CancelDowngradeShapeMountTargetResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateFileSystemResponse") } return } -// cancelDowngradeShapeMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) cancelDowngradeShapeMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createFileSystem implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/cancelShapeDowngrade", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CancelDowngradeShapeMountTargetResponse + var response CreateFileSystemResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CancelDowngradeShapeMountTarget" - err = common.PostProcessServiceError(err, "FileStorage", "CancelDowngradeShapeMountTarget", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/CreateFileSystem" + err = common.PostProcessServiceError(err, "FileStorage", "CreateFileSystem", apiReferenceLink) return response, err } @@ -548,12 +585,15 @@ func (client FileStorageClient) cancelDowngradeShapeMountTarget(ctx context.Cont return response, err } -// ChangeFileSystemCompartment Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) +// CreateFilesystemSnapshotPolicy Creates a new file system snapshot policy in the specified compartment and +// availability domain. +// After you create a file system snapshot policy, you can associate it with +// file systems. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.go.html to see an example of how to use ChangeFileSystemCompartment API. -func (client FileStorageClient) ChangeFileSystemCompartment(ctx context.Context, request ChangeFileSystemCompartmentRequest) (response ChangeFileSystemCompartmentResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.go.html to see an example of how to use CreateFilesystemSnapshotPolicy API. +func (client FileStorageClient) CreateFilesystemSnapshotPolicy(ctx context.Context, request CreateFilesystemSnapshotPolicyRequest) (response CreateFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -562,42 +602,47 @@ func (client FileStorageClient) ChangeFileSystemCompartment(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.changeFileSystemCompartment, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createFilesystemSnapshotPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeFileSystemCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ChangeFileSystemCompartmentResponse{} + response = CreateFilesystemSnapshotPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(ChangeFileSystemCompartmentResponse); ok { + if convertedResponse, ok := ociResponse.(CreateFilesystemSnapshotPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeFileSystemCompartmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateFilesystemSnapshotPolicyResponse") } return } -// changeFileSystemCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeFileSystemCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/changeCompartment", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ChangeFileSystemCompartmentResponse + var response CreateFilesystemSnapshotPolicyResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ChangeFileSystemCompartment" - err = common.PostProcessServiceError(err, "FileStorage", "ChangeFileSystemCompartment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/CreateFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "CreateFilesystemSnapshotPolicy", apiReferenceLink) return response, err } @@ -605,12 +650,39 @@ func (client FileStorageClient) changeFileSystemCompartment(ctx context.Context, return response, err } -// ChangeFilesystemSnapshotPolicyCompartment Moves a file system snapshot policy into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// CreateMountTarget Creates a new mount target in the specified compartment and +// subnet. You can associate a file system with a mount +// target only when they exist in the same availability domain. Instances +// can connect to mount targets in another availablity domain, but +// you might see higher latency than with instances in the same +// availability domain as the mount target. +// Mount targets have one or more private IP addresses that you can +// provide as the host portion of remote target parameters in +// client mount commands. These private IP addresses are listed +// in the privateIpIds property of the mount target and are highly available. Mount +// targets also consume additional IP addresses in their subnet. +// Do not use /30 or smaller subnets for mount target creation because they +// do not have sufficient available IP addresses. +// Allow at least three IP addresses for each mount target. +// For information about access control and compartments, see +// Overview of the IAM +// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure Services resources, including +// mount targets, get an Oracle-assigned, unique ID called an +// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type, or by viewing the resource in the Console. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.go.html to see an example of how to use ChangeFilesystemSnapshotPolicyCompartment API. -func (client FileStorageClient) ChangeFilesystemSnapshotPolicyCompartment(ctx context.Context, request ChangeFilesystemSnapshotPolicyCompartmentRequest) (response ChangeFilesystemSnapshotPolicyCompartmentResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateMountTarget.go.html to see an example of how to use CreateMountTarget API. +func (client FileStorageClient) CreateMountTarget(ctx context.Context, request CreateMountTargetRequest) (response CreateMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -619,42 +691,47 @@ func (client FileStorageClient) ChangeFilesystemSnapshotPolicyCompartment(ctx co if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.changeFilesystemSnapshotPolicyCompartment, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createMountTarget, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeFilesystemSnapshotPolicyCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ChangeFilesystemSnapshotPolicyCompartmentResponse{} + response = CreateMountTargetResponse{} } } return } - if convertedResponse, ok := ociResponse.(ChangeFilesystemSnapshotPolicyCompartmentResponse); ok { + if convertedResponse, ok := ociResponse.(CreateMountTargetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeFilesystemSnapshotPolicyCompartmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateMountTargetResponse") } return } -// changeFilesystemSnapshotPolicyCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeFilesystemSnapshotPolicyCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/changeCompartment", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ChangeFilesystemSnapshotPolicyCompartmentResponse + var response CreateMountTargetResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/ChangeFilesystemSnapshotPolicyCompartment" - err = common.PostProcessServiceError(err, "FileStorage", "ChangeFilesystemSnapshotPolicyCompartment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CreateMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "CreateMountTarget", apiReferenceLink) return response, err } @@ -662,12 +739,28 @@ func (client FileStorageClient) changeFilesystemSnapshotPolicyCompartment(ctx co return response, err } -// ChangeMountTargetCompartment Moves a mount target and its associated export set or share set into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) +// CreateOutboundConnector Creates a new outbound connector in the specified compartment. +// You can associate an outbound connector with a mount target only when +// they exist in the same availability domain. +// For information about access control and compartments, see +// Overview of the IAM +// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure Services resources, including +// outbound connectors, get an Oracle-assigned, unique ID called an +// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type, or by viewing the resource in the Console. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.go.html to see an example of how to use ChangeMountTargetCompartment API. -func (client FileStorageClient) ChangeMountTargetCompartment(ctx context.Context, request ChangeMountTargetCompartmentRequest) (response ChangeMountTargetCompartmentResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateOutboundConnector.go.html to see an example of how to use CreateOutboundConnector API. +func (client FileStorageClient) CreateOutboundConnector(ctx context.Context, request CreateOutboundConnectorRequest) (response CreateOutboundConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -676,115 +769,83 @@ func (client FileStorageClient) ChangeMountTargetCompartment(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.changeMountTargetCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeMountTargetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeMountTargetCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeMountTargetCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeMountTargetCompartmentResponse") - } - return -} - -// changeMountTargetCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeMountTargetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - var response ChangeMountTargetCompartmentResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ChangeMountTargetCompartment" - err = common.PostProcessServiceError(err, "FileStorage", "ChangeMountTargetCompartment", apiReferenceLink) - return response, err + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) } - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ChangeOutboundConnectorCompartment Moves an outbound connector into a different compartment within the same tenancy. -// For information about moving resources between compartments, see -// Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.go.html to see an example of how to use ChangeOutboundConnectorCompartment API. -func (client FileStorageClient) ChangeOutboundConnectorCompartment(ctx context.Context, request ChangeOutboundConnectorCompartmentRequest) (response ChangeOutboundConnectorCompartmentResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.changeOutboundConnectorCompartment, policy) + ociResponse, err = common.Retry(ctx, request, client.createOutboundConnector, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeOutboundConnectorCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ChangeOutboundConnectorCompartmentResponse{} + response = CreateOutboundConnectorResponse{} } } return } - if convertedResponse, ok := ociResponse.(ChangeOutboundConnectorCompartmentResponse); ok { + if convertedResponse, ok := ociResponse.(CreateOutboundConnectorResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeOutboundConnectorCompartmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateOutboundConnectorResponse") } return } -// changeOutboundConnectorCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeOutboundConnectorCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors/{outboundConnectorId}/actions/changeCompartment", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ChangeOutboundConnectorCompartmentResponse + var response CreateOutboundConnectorResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/ChangeOutboundConnectorCompartment" - err = common.PostProcessServiceError(err, "FileStorage", "ChangeOutboundConnectorCompartment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/CreateOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "CreateOutboundConnector", apiReferenceLink) return response, err } - err = common.UnmarshalResponse(httpResponse, &response) + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) return response, err } -// ChangeReplicationCompartment Moves a replication and its replication target into a different compartment within the same tenancy. -// For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// CreateReplication Creates a new replication in the specified compartment. +// Replications are the primary resource that governs the policy of cross-region replication between source +// and target file systems. Replications are associated with a secondary resource called a ReplicationTarget +// located in another availability domain. +// The associated replication target resource is automatically created along with the replication resource. +// The replication retrieves the delta of data between two snapshots of a source file system +// and sends it to the associated `ReplicationTarget`, which retrieves the delta and applies it to the target +// file system. +// Only unexported file systems can be used as target file systems. +// For more information, see Using Replication (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm). +// For information about access control and compartments, see +// Overview of the IAM +// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure Services resources, including +// replications, get an Oracle-assigned, unique ID called an +// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type, or by viewing the resource in the Console. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ChangeReplicationCompartment.go.html to see an example of how to use ChangeReplicationCompartment API. -func (client FileStorageClient) ChangeReplicationCompartment(ctx context.Context, request ChangeReplicationCompartmentRequest) (response ChangeReplicationCompartmentResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateReplication.go.html to see an example of how to use CreateReplication API. +func (client FileStorageClient) CreateReplication(ctx context.Context, request CreateReplicationRequest) (response CreateReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -793,42 +854,47 @@ func (client FileStorageClient) ChangeReplicationCompartment(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.changeReplicationCompartment, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createReplication, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeReplicationCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ChangeReplicationCompartmentResponse{} + response = CreateReplicationResponse{} } } return } - if convertedResponse, ok := ociResponse.(ChangeReplicationCompartmentResponse); ok { + if convertedResponse, ok := ociResponse.(CreateReplicationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeReplicationCompartmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateReplicationResponse") } return } -// changeReplicationCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeReplicationCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/{replicationId}/actions/changeCompartment", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ChangeReplicationCompartmentResponse + var response CreateReplicationResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ChangeReplicationCompartment" - err = common.PostProcessServiceError(err, "FileStorage", "ChangeReplicationCompartment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/CreateReplication" + err = common.PostProcessServiceError(err, "FileStorage", "CreateReplication", apiReferenceLink) return response, err } @@ -836,13 +902,13 @@ func (client FileStorageClient) changeReplicationCompartment(ctx context.Context return response, err } -// CreateExport Creates a new export in the specified export set, path, and -// file system. +// CreateSnapshot Creates a new snapshot of the specified file system. You +// can access the snapshot at `.snapshot/`. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateExport.go.html to see an example of how to use CreateExport API. -func (client FileStorageClient) CreateExport(ctx context.Context, request CreateExportRequest) (response CreateExportResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateSnapshot.go.html to see an example of how to use CreateSnapshot API. +func (client FileStorageClient) CreateSnapshot(ctx context.Context, request CreateSnapshotRequest) (response CreateSnapshotResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -856,42 +922,42 @@ func (client FileStorageClient) CreateExport(ctx context.Context, request Create request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createExport, policy) + ociResponse, err = common.Retry(ctx, request, client.createSnapshot, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateExportResponse{} + response = CreateSnapshotResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateExportResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSnapshotResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateExportResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSnapshotResponse") } return } -// createExport implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSnapshot implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/exports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/snapshots", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateExportResponse + var response CreateSnapshotResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/CreateExport" - err = common.PostProcessServiceError(err, "FileStorage", "CreateExport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/CreateSnapshot" + err = common.PostProcessServiceError(err, "FileStorage", "CreateSnapshot", apiReferenceLink) return response, err } @@ -899,35 +965,12 @@ func (client FileStorageClient) createExport(ctx context.Context, request common return response, err } -// CreateFileSystem Creates a new file system in the specified compartment and -// availability domain. Instances can mount file systems in -// another availability domain, but doing so might increase -// latency when compared to mounting instances in the same -// availability domain. -// After you create a file system, you can associate it with a mount -// target. Instances can then mount the file system by connecting to the -// mount target's IP address. You can associate a file system with -// more than one mount target at a time. -// For information about access control and compartments, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about Network Security Groups access control, see -// Network Security Groups (https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure resources, including -// file systems, get an Oracle-assigned, unique ID called an Oracle -// Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type or by viewing the resource in the Console. +// DeleteExport Deletes the specified export. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFileSystem.go.html to see an example of how to use CreateFileSystem API. -func (client FileStorageClient) CreateFileSystem(ctx context.Context, request CreateFileSystemRequest) (response CreateFileSystemResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteExport.go.html to see an example of how to use DeleteExport API. +func (client FileStorageClient) DeleteExport(ctx context.Context, request DeleteExportRequest) (response DeleteExportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -936,889 +979,42 @@ func (client FileStorageClient) CreateFileSystem(ctx context.Context, request Cr if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createFileSystem, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteExport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateFileSystemResponse{} + response = DeleteExportResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateFileSystemResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteExportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateFileSystemResponse") - } - return -} - -// createFileSystem implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateFileSystemResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/CreateFileSystem" - err = common.PostProcessServiceError(err, "FileStorage", "CreateFileSystem", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateFilesystemSnapshotPolicy Creates a new file system snapshot policy in the specified compartment and -// availability domain. -// After you create a file system snapshot policy, you can associate it with -// file systems. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.go.html to see an example of how to use CreateFilesystemSnapshotPolicy API. -func (client FileStorageClient) CreateFilesystemSnapshotPolicy(ctx context.Context, request CreateFilesystemSnapshotPolicyRequest) (response CreateFilesystemSnapshotPolicyResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createFilesystemSnapshotPolicy, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateFilesystemSnapshotPolicyResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateFilesystemSnapshotPolicyResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateFilesystemSnapshotPolicyResponse") - } - return -} - -// createFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateFilesystemSnapshotPolicyResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/CreateFilesystemSnapshotPolicy" - err = common.PostProcessServiceError(err, "FileStorage", "CreateFilesystemSnapshotPolicy", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateMountTarget Creates a new mount target in the specified compartment and -// subnet. You can associate a file system with a mount -// target only when they exist in the same availability domain. Instances -// can connect to mount targets in another availablity domain, but -// you might see higher latency than with instances in the same -// availability domain as the mount target. -// Mount targets have one or more private IP addresses that you can -// provide as the host portion of remote target parameters in -// client mount commands. These private IP addresses are listed -// in the privateIpIds property of the mount target and are highly available. Mount -// targets also consume additional IP addresses in their subnet. -// Do not use /30 or smaller subnets for mount target creation because they -// do not have sufficient available IP addresses. -// Allow at least three IP addresses for each mount target. -// For information about access control and compartments, see -// Overview of the IAM -// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure Services resources, including -// mount targets, get an Oracle-assigned, unique ID called an -// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateMountTarget.go.html to see an example of how to use CreateMountTarget API. -func (client FileStorageClient) CreateMountTarget(ctx context.Context, request CreateMountTargetRequest) (response CreateMountTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createMountTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateMountTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateMountTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateMountTargetResponse") - } - return -} - -// createMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateMountTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CreateMountTarget" - err = common.PostProcessServiceError(err, "FileStorage", "CreateMountTarget", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateOutboundConnector Creates a new outbound connector in the specified compartment. -// You can associate an outbound connector with a mount target only when -// they exist in the same availability domain. -// For information about access control and compartments, see -// Overview of the IAM -// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure Services resources, including -// outbound connectors, get an Oracle-assigned, unique ID called an -// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateOutboundConnector.go.html to see an example of how to use CreateOutboundConnector API. -func (client FileStorageClient) CreateOutboundConnector(ctx context.Context, request CreateOutboundConnectorRequest) (response CreateOutboundConnectorResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createOutboundConnector, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateOutboundConnectorResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateOutboundConnectorResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateOutboundConnectorResponse") - } - return -} - -// createOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateOutboundConnectorResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/CreateOutboundConnector" - err = common.PostProcessServiceError(err, "FileStorage", "CreateOutboundConnector", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) - return response, err -} - -// CreateReplication Creates a new replication in the specified compartment. -// Replications are the primary resource that governs the policy of cross-region replication between source -// and target file systems. Replications are associated with a secondary resource called a ReplicationTarget -// located in another availability domain. -// The associated replication target resource is automatically created along with the replication resource. -// The replication retrieves the delta of data between two snapshots of a source file system -// and sends it to the associated `ReplicationTarget`, which retrieves the delta and applies it to the target -// file system. -// Only unexported file systems can be used as target file systems. -// For more information, see Using Replication (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm). -// For information about access control and compartments, see -// Overview of the IAM -// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure Services resources, including -// replications, get an Oracle-assigned, unique ID called an -// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateReplication.go.html to see an example of how to use CreateReplication API. -func (client FileStorageClient) CreateReplication(ctx context.Context, request CreateReplicationRequest) (response CreateReplicationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createReplication, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateReplicationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateReplicationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateReplicationResponse") - } - return -} - -// createReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateReplicationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/CreateReplication" - err = common.PostProcessServiceError(err, "FileStorage", "CreateReplication", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateSnapshot Creates a new snapshot of the specified file system. You -// can access the snapshot at `.snapshot/`. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/CreateSnapshot.go.html to see an example of how to use CreateSnapshot API. -func (client FileStorageClient) CreateSnapshot(ctx context.Context, request CreateSnapshotRequest) (response CreateSnapshotResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createSnapshot, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateSnapshotResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateSnapshotResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSnapshotResponse") - } - return -} - -// createSnapshot implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/snapshots", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateSnapshotResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/CreateSnapshot" - err = common.PostProcessServiceError(err, "FileStorage", "CreateSnapshot", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteExport Deletes the specified export. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteExport.go.html to see an example of how to use DeleteExport API. -func (client FileStorageClient) DeleteExport(ctx context.Context, request DeleteExportRequest) (response DeleteExportResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteExport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteExportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteExportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteExportResponse") - } - return -} - -// deleteExport implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/exports/{exportId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteExportResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/DeleteExport" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteExport", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteFileSystem Deletes the specified file system. Before you delete the file system, -// verify that no remaining export resources still reference it. Deleting a -// file system also deletes all of its snapshots. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFileSystem.go.html to see an example of how to use DeleteFileSystem API. -func (client FileStorageClient) DeleteFileSystem(ctx context.Context, request DeleteFileSystemRequest) (response DeleteFileSystemResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteFileSystem, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteFileSystemResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteFileSystemResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteFileSystemResponse") - } - return -} - -// deleteFileSystem implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteFileSystemResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DeleteFileSystem" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteFileSystem", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteFilesystemSnapshotPolicy Deletes the specified file system snapshot policy. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.go.html to see an example of how to use DeleteFilesystemSnapshotPolicy API. -func (client FileStorageClient) DeleteFilesystemSnapshotPolicy(ctx context.Context, request DeleteFilesystemSnapshotPolicyRequest) (response DeleteFilesystemSnapshotPolicyResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteFilesystemSnapshotPolicy, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteFilesystemSnapshotPolicyResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteFilesystemSnapshotPolicyResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteFilesystemSnapshotPolicyResponse") - } - return -} - -// deleteFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteFilesystemSnapshotPolicyResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/DeleteFilesystemSnapshotPolicy" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteFilesystemSnapshotPolicy", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteMountTarget Deletes the specified mount target. This operation also deletes the -// mount target's VNICs. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteMountTarget.go.html to see an example of how to use DeleteMountTarget API. -func (client FileStorageClient) DeleteMountTarget(ctx context.Context, request DeleteMountTargetRequest) (response DeleteMountTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteMountTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteMountTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteMountTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteMountTargetResponse") - } - return -} - -// deleteMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteMountTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/DeleteMountTarget" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteMountTarget", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteOutboundConnector Deletes the specified outbound connector. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteOutboundConnector.go.html to see an example of how to use DeleteOutboundConnector API. -func (client FileStorageClient) DeleteOutboundConnector(ctx context.Context, request DeleteOutboundConnectorRequest) (response DeleteOutboundConnectorResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteOutboundConnector, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteOutboundConnectorResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteOutboundConnectorResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteOutboundConnectorResponse") - } - return -} - -// deleteOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteOutboundConnectorResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/DeleteOutboundConnector" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteOutboundConnector", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteReplication Deletes the specified replication and the the associated replication target. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplication.go.html to see an example of how to use DeleteReplication API. -func (client FileStorageClient) DeleteReplication(ctx context.Context, request DeleteReplicationRequest) (response DeleteReplicationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteReplication, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteReplicationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteReplicationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationResponse") - } - return -} - -// deleteReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replications/{replicationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteReplicationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/DeleteReplication" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteReplication", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteReplicationTarget Deletes the specified replication target. -// This operation causes the immediate release of the target file system if there are currently no delta application operations. -// If there is any current delta being applied the delete operation is blocked until the current -// delta has been completely applied. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplicationTarget.go.html to see an example of how to use DeleteReplicationTarget API. -func (client FileStorageClient) DeleteReplicationTarget(ctx context.Context, request DeleteReplicationTargetRequest) (response DeleteReplicationTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteReplicationTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteReplicationTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteReplicationTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationTargetResponse") - } - return -} - -// deleteReplicationTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteReplicationTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/DeleteReplicationTarget" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteReplicationTarget", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteSnapshot Deletes the specified snapshot. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteSnapshot.go.html to see an example of how to use DeleteSnapshot API. -func (client FileStorageClient) DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequest) (response DeleteSnapshotResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteSnapshot, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteSnapshotResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteSnapshotResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSnapshotResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteExportResponse") } return } -// deleteSnapshot implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/exports/{exportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSnapshotResponse + var response DeleteExportResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/DeleteSnapshot" - err = common.PostProcessServiceError(err, "FileStorage", "DeleteSnapshot", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/DeleteExport" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteExport", apiReferenceLink) return response, err } @@ -1826,12 +1022,14 @@ func (client FileStorageClient) deleteSnapshot(ctx context.Context, request comm return response, err } -// DetachClone Detaches the file system from its parent file system +// DeleteFileSystem Deletes the specified file system. Before you delete the file system, +// verify that no remaining export resources still reference it. Deleting a +// file system also deletes all of its snapshots. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachClone API. -func (client FileStorageClient) DetachClone(ctx context.Context, request DetachCloneRequest) (response DetachCloneResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFileSystem.go.html to see an example of how to use DeleteFileSystem API. +func (client FileStorageClient) DeleteFileSystem(ctx context.Context, request DeleteFileSystemRequest) (response DeleteFileSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1840,42 +1038,42 @@ func (client FileStorageClient) DetachClone(ctx context.Context, request DetachC if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.detachClone, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteFileSystem, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DetachCloneResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DetachCloneResponse{} + response = DeleteFileSystemResponse{} } } return } - if convertedResponse, ok := ociResponse.(DetachCloneResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteFileSystemResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DetachCloneResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteFileSystemResponse") } return } -// detachClone implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) detachClone(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteFileSystem implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/detachClone", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DetachCloneResponse + var response DeleteFileSystemResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DetachClone" - err = common.PostProcessServiceError(err, "FileStorage", "DetachClone", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DeleteFileSystem" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteFileSystem", apiReferenceLink) return response, err } @@ -1883,12 +1081,12 @@ func (client FileStorageClient) detachClone(ctx context.Context, request common. return response, err } -// EstimateReplication Provides estimates for replication created using specific file system. +// DeleteFilesystemSnapshotPolicy Deletes the specified file system snapshot policy. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/EstimateReplication.go.html to see an example of how to use EstimateReplication API. -func (client FileStorageClient) EstimateReplication(ctx context.Context, request EstimateReplicationRequest) (response EstimateReplicationResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.go.html to see an example of how to use DeleteFilesystemSnapshotPolicy API. +func (client FileStorageClient) DeleteFilesystemSnapshotPolicy(ctx context.Context, request DeleteFilesystemSnapshotPolicyRequest) (response DeleteFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1897,42 +1095,42 @@ func (client FileStorageClient) EstimateReplication(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.estimateReplication, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteFilesystemSnapshotPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = EstimateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = EstimateReplicationResponse{} + response = DeleteFilesystemSnapshotPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(EstimateReplicationResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteFilesystemSnapshotPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into EstimateReplicationResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteFilesystemSnapshotPolicyResponse") } return } -// estimateReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) estimateReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/estimateReplication", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response EstimateReplicationResponse + var response DeleteFilesystemSnapshotPolicyResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/EstimateReplication" - err = common.PostProcessServiceError(err, "FileStorage", "EstimateReplication", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/DeleteFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteFilesystemSnapshotPolicy", apiReferenceLink) return response, err } @@ -1940,12 +1138,13 @@ func (client FileStorageClient) estimateReplication(ctx context.Context, request return response, err } -// GetExport Gets the specified export's information. +// DeleteMountTarget Deletes the specified mount target. This operation also deletes the +// mount target's VNICs. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExport.go.html to see an example of how to use GetExport API. -func (client FileStorageClient) GetExport(ctx context.Context, request GetExportRequest) (response GetExportResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteMountTarget.go.html to see an example of how to use DeleteMountTarget API. +func (client FileStorageClient) DeleteMountTarget(ctx context.Context, request DeleteMountTargetRequest) (response DeleteMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1954,42 +1153,42 @@ func (client FileStorageClient) GetExport(ctx context.Context, request GetExport if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getExport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteMountTarget, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetExportResponse{} + response = DeleteMountTargetResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetExportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteMountTargetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteMountTargetResponse") } return } -// getExport implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports/{exportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetExportResponse + var response DeleteMountTargetResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/GetExport" - err = common.PostProcessServiceError(err, "FileStorage", "GetExport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/DeleteMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteMountTarget", apiReferenceLink) return response, err } @@ -1997,12 +1196,12 @@ func (client FileStorageClient) getExport(ctx context.Context, request common.OC return response, err } -// GetExportSet Gets the specified export set's information. +// DeleteOutboundConnector Deletes the specified outbound connector. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExportSet.go.html to see an example of how to use GetExportSet API. -func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExportSetRequest) (response GetExportSetResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteOutboundConnector.go.html to see an example of how to use DeleteOutboundConnector API. +func (client FileStorageClient) DeleteOutboundConnector(ctx context.Context, request DeleteOutboundConnectorRequest) (response DeleteOutboundConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2011,42 +1210,42 @@ func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExp if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getExportSet, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteOutboundConnector, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExportSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetExportSetResponse{} + response = DeleteOutboundConnectorResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetExportSetResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteOutboundConnectorResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExportSetResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteOutboundConnectorResponse") } return } -// getExportSet implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getExportSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets/{exportSetId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetExportSetResponse + var response DeleteOutboundConnectorResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSet/GetExportSet" - err = common.PostProcessServiceError(err, "FileStorage", "GetExportSet", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/DeleteOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteOutboundConnector", apiReferenceLink) return response, err } @@ -2054,12 +1253,12 @@ func (client FileStorageClient) getExportSet(ctx context.Context, request common return response, err } -// GetFileSystem Gets the specified file system's information. +// DeleteReplication Deletes the specified replication and the the associated replication target. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFileSystem.go.html to see an example of how to use GetFileSystem API. -func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFileSystemRequest) (response GetFileSystemResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplication.go.html to see an example of how to use DeleteReplication API. +func (client FileStorageClient) DeleteReplication(ctx context.Context, request DeleteReplicationRequest) (response DeleteReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2068,42 +1267,42 @@ func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFi if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getFileSystem, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteReplication, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetFileSystemResponse{} + response = DeleteReplicationResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetFileSystemResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteReplicationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetFileSystemResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationResponse") } return } -// getFileSystem implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replications/{replicationId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetFileSystemResponse + var response DeleteReplicationResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetFileSystem" - err = common.PostProcessServiceError(err, "FileStorage", "GetFileSystem", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/DeleteReplication" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteReplication", apiReferenceLink) return response, err } @@ -2111,12 +1310,15 @@ func (client FileStorageClient) getFileSystem(ctx context.Context, request commo return response, err } -// GetFilesystemSnapshotPolicy Gets the specified file system snapshot policy's information. +// DeleteReplicationTarget Deletes the specified replication target. +// This operation causes the immediate release of the target file system if there are currently no delta application operations. +// If there is any current delta being applied the delete operation is blocked until the current +// delta has been completely applied. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.go.html to see an example of how to use GetFilesystemSnapshotPolicy API. -func (client FileStorageClient) GetFilesystemSnapshotPolicy(ctx context.Context, request GetFilesystemSnapshotPolicyRequest) (response GetFilesystemSnapshotPolicyResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteReplicationTarget.go.html to see an example of how to use DeleteReplicationTarget API. +func (client FileStorageClient) DeleteReplicationTarget(ctx context.Context, request DeleteReplicationTargetRequest) (response DeleteReplicationTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2125,42 +1327,42 @@ func (client FileStorageClient) GetFilesystemSnapshotPolicy(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getFilesystemSnapshotPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteReplicationTarget, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetFilesystemSnapshotPolicyResponse{} + response = DeleteReplicationTargetResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetFilesystemSnapshotPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteReplicationTargetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetFilesystemSnapshotPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationTargetResponse") } return } -// getFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteReplicationTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetFilesystemSnapshotPolicyResponse + var response DeleteReplicationTargetResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/GetFilesystemSnapshotPolicy" - err = common.PostProcessServiceError(err, "FileStorage", "GetFilesystemSnapshotPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/DeleteReplicationTarget" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteReplicationTarget", apiReferenceLink) return response, err } @@ -2168,12 +1370,12 @@ func (client FileStorageClient) getFilesystemSnapshotPolicy(ctx context.Context, return response, err } -// GetMountTarget Gets the specified mount target's information. +// DeleteSnapshot Deletes the specified snapshot. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetMountTarget.go.html to see an example of how to use GetMountTarget API. -func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetMountTargetRequest) (response GetMountTargetResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DeleteSnapshot.go.html to see an example of how to use DeleteSnapshot API. +func (client FileStorageClient) DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequest) (response DeleteSnapshotResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2182,42 +1384,42 @@ func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetM if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getMountTarget, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSnapshot, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetMountTargetResponse{} + response = DeleteSnapshotResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetMountTargetResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSnapshotResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetMountTargetResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSnapshotResponse") } return } -// getMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSnapshot implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetMountTargetResponse + var response DeleteSnapshotResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/GetMountTarget" - err = common.PostProcessServiceError(err, "FileStorage", "GetMountTarget", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/DeleteSnapshot" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteSnapshot", apiReferenceLink) return response, err } @@ -2225,12 +1427,12 @@ func (client FileStorageClient) getMountTarget(ctx context.Context, request comm return response, err } -// GetOutboundConnector Gets the specified outbound connector's information. +// DetachClone Detaches the file system from its parent file system // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetOutboundConnector.go.html to see an example of how to use GetOutboundConnector API. -func (client FileStorageClient) GetOutboundConnector(ctx context.Context, request GetOutboundConnectorRequest) (response GetOutboundConnectorResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachClone API. +func (client FileStorageClient) DetachClone(ctx context.Context, request DetachCloneRequest) (response DetachCloneResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2239,55 +1441,55 @@ func (client FileStorageClient) GetOutboundConnector(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getOutboundConnector, policy) + ociResponse, err = common.Retry(ctx, request, client.detachClone, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DetachCloneResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetOutboundConnectorResponse{} + response = DetachCloneResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetOutboundConnectorResponse); ok { + if convertedResponse, ok := ociResponse.(DetachCloneResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetOutboundConnectorResponse") + err = fmt.Errorf("failed to convert OCIResponse into DetachCloneResponse") } return } -// getOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// detachClone implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) detachClone(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/detachClone", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetOutboundConnectorResponse + var response DetachCloneResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/GetOutboundConnector" - err = common.PostProcessServiceError(err, "FileStorage", "GetOutboundConnector", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DetachClone" + err = common.PostProcessServiceError(err, "FileStorage", "DetachClone", apiReferenceLink) return response, err } - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) + err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// GetReplication Gets the specified replication's information. +// EstimateReplication Provides estimates for replication created using specific file system. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplication.go.html to see an example of how to use GetReplication API. -func (client FileStorageClient) GetReplication(ctx context.Context, request GetReplicationRequest) (response GetReplicationResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/EstimateReplication.go.html to see an example of how to use EstimateReplication API. +func (client FileStorageClient) EstimateReplication(ctx context.Context, request EstimateReplicationRequest) (response EstimateReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2296,42 +1498,42 @@ func (client FileStorageClient) GetReplication(ctx context.Context, request GetR if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getReplication, policy) + ociResponse, err = common.Retry(ctx, request, client.estimateReplication, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = EstimateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetReplicationResponse{} + response = EstimateReplicationResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetReplicationResponse); ok { + if convertedResponse, ok := ociResponse.(EstimateReplicationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReplicationResponse") + err = fmt.Errorf("failed to convert OCIResponse into EstimateReplicationResponse") } return } -// getReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// estimateReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) estimateReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications/{replicationId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/estimateReplication", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetReplicationResponse + var response EstimateReplicationResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/GetReplication" - err = common.PostProcessServiceError(err, "FileStorage", "GetReplication", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/EstimateReplication" + err = common.PostProcessServiceError(err, "FileStorage", "EstimateReplication", apiReferenceLink) return response, err } @@ -2339,12 +1541,12 @@ func (client FileStorageClient) getReplication(ctx context.Context, request comm return response, err } -// GetReplicationTarget Gets the specified replication target's information. +// GetExport Gets the specified export's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplicationTarget.go.html to see an example of how to use GetReplicationTarget API. -func (client FileStorageClient) GetReplicationTarget(ctx context.Context, request GetReplicationTargetRequest) (response GetReplicationTargetResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExport.go.html to see an example of how to use GetExport API. +func (client FileStorageClient) GetExport(ctx context.Context, request GetExportRequest) (response GetExportResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2353,42 +1555,42 @@ func (client FileStorageClient) GetReplicationTarget(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getReplicationTarget, policy) + ociResponse, err = common.Retry(ctx, request, client.getExport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetReplicationTargetResponse{} + response = GetExportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetReplicationTargetResponse); ok { + if convertedResponse, ok := ociResponse.(GetExportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReplicationTargetResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExportResponse") } return } -// getReplicationTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports/{exportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetReplicationTargetResponse + var response GetExportResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/GetReplicationTarget" - err = common.PostProcessServiceError(err, "FileStorage", "GetReplicationTarget", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/GetExport" + err = common.PostProcessServiceError(err, "FileStorage", "GetExport", apiReferenceLink) return response, err } @@ -2396,12 +1598,12 @@ func (client FileStorageClient) getReplicationTarget(ctx context.Context, reques return response, err } -// GetSnapshot Gets the specified snapshot's information. +// GetExportSet Gets the specified export set's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetSnapshot.go.html to see an example of how to use GetSnapshot API. -func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnapshotRequest) (response GetSnapshotResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetExportSet.go.html to see an example of how to use GetExportSet API. +func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExportSetRequest) (response GetExportSetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2410,42 +1612,42 @@ func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnap if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSnapshot, policy) + ociResponse, err = common.Retry(ctx, request, client.getExportSet, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExportSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSnapshotResponse{} + response = GetExportSetResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSnapshotResponse); ok { + if convertedResponse, ok := ociResponse.(GetExportSetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSnapshotResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExportSetResponse") } return } -// getSnapshot implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExportSet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getExportSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets/{exportSetId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSnapshotResponse + var response GetExportSetResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/GetSnapshot" - err = common.PostProcessServiceError(err, "FileStorage", "GetSnapshot", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSet/GetExportSet" + err = common.PostProcessServiceError(err, "FileStorage", "GetExportSet", apiReferenceLink) return response, err } @@ -2453,12 +1655,12 @@ func (client FileStorageClient) getSnapshot(ctx context.Context, request common. return response, err } -// ListExportSets Lists the export set resources in the specified compartment. +// GetFileSystem Gets the specified file system's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExportSets.go.html to see an example of how to use ListExportSets API. -func (client FileStorageClient) ListExportSets(ctx context.Context, request ListExportSetsRequest) (response ListExportSetsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFileSystem.go.html to see an example of how to use GetFileSystem API. +func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFileSystemRequest) (response GetFileSystemResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2467,42 +1669,42 @@ func (client FileStorageClient) ListExportSets(ctx context.Context, request List if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listExportSets, policy) + ociResponse, err = common.Retry(ctx, request, client.getFileSystem, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListExportSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListExportSetsResponse{} + response = GetFileSystemResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListExportSetsResponse); ok { + if convertedResponse, ok := ociResponse.(GetFileSystemResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListExportSetsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetFileSystemResponse") } return } -// listExportSets implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listExportSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getFileSystem implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListExportSetsResponse + var response GetFileSystemResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSetSummary/ListExportSets" - err = common.PostProcessServiceError(err, "FileStorage", "ListExportSets", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetFileSystem" + err = common.PostProcessServiceError(err, "FileStorage", "GetFileSystem", apiReferenceLink) return response, err } @@ -2510,14 +1712,12 @@ func (client FileStorageClient) listExportSets(ctx context.Context, request comm return response, err } -// ListExports Lists export resources by compartment, file system, or export -// set. You must specify an export set ID, a file system ID, and -// / or a compartment ID. +// GetFilesystemSnapshotPolicy Gets the specified file system snapshot policy's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExports.go.html to see an example of how to use ListExports API. -func (client FileStorageClient) ListExports(ctx context.Context, request ListExportsRequest) (response ListExportsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.go.html to see an example of how to use GetFilesystemSnapshotPolicy API. +func (client FileStorageClient) GetFilesystemSnapshotPolicy(ctx context.Context, request GetFilesystemSnapshotPolicyRequest) (response GetFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2526,42 +1726,42 @@ func (client FileStorageClient) ListExports(ctx context.Context, request ListExp if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listExports, policy) + ociResponse, err = common.Retry(ctx, request, client.getFilesystemSnapshotPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListExportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListExportsResponse{} + response = GetFilesystemSnapshotPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListExportsResponse); ok { + if convertedResponse, ok := ociResponse.(GetFilesystemSnapshotPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListExportsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetFilesystemSnapshotPolicyResponse") } return } -// listExports implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listExports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListExportsResponse + var response GetFilesystemSnapshotPolicyResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSummary/ListExports" - err = common.PostProcessServiceError(err, "FileStorage", "ListExports", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/GetFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "GetFilesystemSnapshotPolicy", apiReferenceLink) return response, err } @@ -2569,13 +1769,12 @@ func (client FileStorageClient) listExports(ctx context.Context, request common. return response, err } -// ListFileSystems Lists the file system resources in the specified compartment, or by the specified compartment and -// file system snapshot policy. +// GetMountTarget Gets the specified mount target's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFileSystems.go.html to see an example of how to use ListFileSystems API. -func (client FileStorageClient) ListFileSystems(ctx context.Context, request ListFileSystemsRequest) (response ListFileSystemsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetMountTarget.go.html to see an example of how to use GetMountTarget API. +func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetMountTargetRequest) (response GetMountTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2584,42 +1783,42 @@ func (client FileStorageClient) ListFileSystems(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listFileSystems, policy) + ociResponse, err = common.Retry(ctx, request, client.getMountTarget, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListFileSystemsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListFileSystemsResponse{} + response = GetMountTargetResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListFileSystemsResponse); ok { + if convertedResponse, ok := ociResponse.(GetMountTargetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListFileSystemsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetMountTargetResponse") } return } -// listFileSystems implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listFileSystems(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListFileSystemsResponse + var response GetMountTargetResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystemSummary/ListFileSystems" - err = common.PostProcessServiceError(err, "FileStorage", "ListFileSystems", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/GetMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "GetMountTarget", apiReferenceLink) return response, err } @@ -2627,12 +1826,12 @@ func (client FileStorageClient) listFileSystems(ctx context.Context, request com return response, err } -// ListFilesystemSnapshotPolicies Lists file system snapshot policies in the specified compartment. +// GetOutboundConnector Gets the specified outbound connector's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.go.html to see an example of how to use ListFilesystemSnapshotPolicies API. -func (client FileStorageClient) ListFilesystemSnapshotPolicies(ctx context.Context, request ListFilesystemSnapshotPoliciesRequest) (response ListFilesystemSnapshotPoliciesResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetOutboundConnector.go.html to see an example of how to use GetOutboundConnector API. +func (client FileStorageClient) GetOutboundConnector(ctx context.Context, request GetOutboundConnectorRequest) (response GetOutboundConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2641,55 +1840,55 @@ func (client FileStorageClient) ListFilesystemSnapshotPolicies(ctx context.Conte if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listFilesystemSnapshotPolicies, policy) + ociResponse, err = common.Retry(ctx, request, client.getOutboundConnector, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListFilesystemSnapshotPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListFilesystemSnapshotPoliciesResponse{} + response = GetOutboundConnectorResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListFilesystemSnapshotPoliciesResponse); ok { + if convertedResponse, ok := ociResponse.(GetOutboundConnectorResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListFilesystemSnapshotPoliciesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetOutboundConnectorResponse") } return } -// listFilesystemSnapshotPolicies implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listFilesystemSnapshotPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/filesystemSnapshotPolicies", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListFilesystemSnapshotPoliciesResponse + var response GetOutboundConnectorResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicySummary/ListFilesystemSnapshotPolicies" - err = common.PostProcessServiceError(err, "FileStorage", "ListFilesystemSnapshotPolicies", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/GetOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "GetOutboundConnector", apiReferenceLink) return response, err } - err = common.UnmarshalResponse(httpResponse, &response) + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) return response, err } -// ListMountTargets Lists the mount target resources in the specified compartment. +// GetReplication Gets the specified replication's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListMountTargets.go.html to see an example of how to use ListMountTargets API. -func (client FileStorageClient) ListMountTargets(ctx context.Context, request ListMountTargetsRequest) (response ListMountTargetsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplication.go.html to see an example of how to use GetReplication API. +func (client FileStorageClient) GetReplication(ctx context.Context, request GetReplicationRequest) (response GetReplicationResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2698,42 +1897,42 @@ func (client FileStorageClient) ListMountTargets(ctx context.Context, request Li if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMountTargets, policy) + ociResponse, err = common.Retry(ctx, request, client.getReplication, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMountTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMountTargetsResponse{} + response = GetReplicationResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMountTargetsResponse); ok { + if convertedResponse, ok := ociResponse.(GetReplicationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMountTargetsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetReplicationResponse") } return } -// listMountTargets implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listMountTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications/{replicationId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMountTargetsResponse + var response GetReplicationResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTargetSummary/ListMountTargets" - err = common.PostProcessServiceError(err, "FileStorage", "ListMountTargets", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/GetReplication" + err = common.PostProcessServiceError(err, "FileStorage", "GetReplication", apiReferenceLink) return response, err } @@ -2741,28 +1940,12 @@ func (client FileStorageClient) listMountTargets(ctx context.Context, request co return response, err } -// listoutboundconnectorsummary allows to unmarshal list of polymorphic OutboundConnectorSummary -type listoutboundconnectorsummary []outboundconnectorsummary - -// UnmarshalPolymorphicJSON unmarshals polymorphic json list of items -func (m *listoutboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - res := make([]OutboundConnectorSummary, len(*m)) - for i, v := range *m { - nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) - if err != nil { - return nil, err - } - res[i] = nn.(OutboundConnectorSummary) - } - return res, nil -} - -// ListOutboundConnectors Lists the outbound connector resources in the specified compartment. +// GetReplicationTarget Gets the specified replication target's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListOutboundConnectors.go.html to see an example of how to use ListOutboundConnectors API. -func (client FileStorageClient) ListOutboundConnectors(ctx context.Context, request ListOutboundConnectorsRequest) (response ListOutboundConnectorsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetReplicationTarget.go.html to see an example of how to use GetReplicationTarget API. +func (client FileStorageClient) GetReplicationTarget(ctx context.Context, request GetReplicationTargetRequest) (response GetReplicationTargetResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2771,55 +1954,55 @@ func (client FileStorageClient) ListOutboundConnectors(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listOutboundConnectors, policy) + ociResponse, err = common.Retry(ctx, request, client.getReplicationTarget, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListOutboundConnectorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListOutboundConnectorsResponse{} + response = GetReplicationTargetResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListOutboundConnectorsResponse); ok { + if convertedResponse, ok := ociResponse.(GetReplicationTargetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListOutboundConnectorsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetReplicationTargetResponse") } return } -// listOutboundConnectors implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listOutboundConnectors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getReplicationTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListOutboundConnectorsResponse + var response GetReplicationTargetResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnectorSummary/ListOutboundConnectors" - err = common.PostProcessServiceError(err, "FileStorage", "ListOutboundConnectors", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/GetReplicationTarget" + err = common.PostProcessServiceError(err, "FileStorage", "GetReplicationTarget", apiReferenceLink) return response, err } - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listoutboundconnectorsummary{}) + err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// ListReplicationTargets Lists the replication target resources in the specified compartment. +// GetSnapshot Gets the specified snapshot's information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplicationTargets.go.html to see an example of how to use ListReplicationTargets API. -func (client FileStorageClient) ListReplicationTargets(ctx context.Context, request ListReplicationTargetsRequest) (response ListReplicationTargetsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/GetSnapshot.go.html to see an example of how to use GetSnapshot API. +func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnapshotRequest) (response GetSnapshotResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2828,42 +2011,42 @@ func (client FileStorageClient) ListReplicationTargets(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listReplicationTargets, policy) + ociResponse, err = common.Retry(ctx, request, client.getSnapshot, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListReplicationTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListReplicationTargetsResponse{} + response = GetSnapshotResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListReplicationTargetsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSnapshotResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListReplicationTargetsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSnapshotResponse") } return } -// listReplicationTargets implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listReplicationTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSnapshot implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListReplicationTargetsResponse + var response GetSnapshotResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTargetSummary/ListReplicationTargets" - err = common.PostProcessServiceError(err, "FileStorage", "ListReplicationTargets", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/GetSnapshot" + err = common.PostProcessServiceError(err, "FileStorage", "GetSnapshot", apiReferenceLink) return response, err } @@ -2871,12 +2054,12 @@ func (client FileStorageClient) listReplicationTargets(ctx context.Context, requ return response, err } -// ListReplications Lists the replication resources in the specified compartment. +// ListExportSets Lists the export set resources in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplications.go.html to see an example of how to use ListReplications API. -func (client FileStorageClient) ListReplications(ctx context.Context, request ListReplicationsRequest) (response ListReplicationsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExportSets.go.html to see an example of how to use ListExportSets API. +func (client FileStorageClient) ListExportSets(ctx context.Context, request ListExportSetsRequest) (response ListExportSetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2885,42 +2068,42 @@ func (client FileStorageClient) ListReplications(ctx context.Context, request Li if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listReplications, policy) + ociResponse, err = common.Retry(ctx, request, client.listExportSets, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListReplicationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListExportSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListReplicationsResponse{} + response = ListExportSetsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListReplicationsResponse); ok { + if convertedResponse, ok := ociResponse.(ListExportSetsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListReplicationsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExportSetsResponse") } return } -// listReplications implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listReplications(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExportSets implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listExportSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListReplicationsResponse + var response ListExportSetsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationSummary/ListReplications" - err = common.PostProcessServiceError(err, "FileStorage", "ListReplications", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSetSummary/ListExportSets" + err = common.PostProcessServiceError(err, "FileStorage", "ListExportSets", apiReferenceLink) return response, err } @@ -2928,16 +2111,14 @@ func (client FileStorageClient) listReplications(ctx context.Context, request co return response, err } -// ListSnapshots Lists snapshots of the specified file system, or by file system snapshot policy and compartment, -// or by file system snapshot policy and file system. -// If file system ID is not specified, a file system snapshot policy ID and compartment ID must be specified. -// Users can only sort by time created when listing snapshots by file system snapshot policy ID and compartment ID -// (sort by name is NOT supported for listing snapshots by policy and compartment). +// ListExports Lists export resources by compartment, file system, or export +// set. You must specify an export set ID, a file system ID, and +// / or a compartment ID. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListSnapshots.go.html to see an example of how to use ListSnapshots API. -func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListSnapshotsRequest) (response ListSnapshotsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListExports.go.html to see an example of how to use ListExports API. +func (client FileStorageClient) ListExports(ctx context.Context, request ListExportsRequest) (response ListExportsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -2946,42 +2127,42 @@ func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListS if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSnapshots, policy) + ociResponse, err = common.Retry(ctx, request, client.listExports, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSnapshotsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListExportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSnapshotsResponse{} + response = ListExportsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSnapshotsResponse); ok { + if convertedResponse, ok := ociResponse.(ListExportsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSnapshotsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExportsResponse") } return } -// listSnapshots implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listSnapshots(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExports implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listExports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSnapshotsResponse + var response ListExportsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/SnapshotSummary/ListSnapshots" - err = common.PostProcessServiceError(err, "FileStorage", "ListSnapshots", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSummary/ListExports" + err = common.PostProcessServiceError(err, "FileStorage", "ListExports", apiReferenceLink) return response, err } @@ -2989,16 +2170,13 @@ func (client FileStorageClient) listSnapshots(ctx context.Context, request commo return response, err } -// PauseFilesystemSnapshotPolicy This operation pauses the scheduled snapshot creation and snapshot deletion of the policy and updates the lifecycle state of the file system -// snapshot policy from ACTIVE to INACTIVE. When a file system snapshot policy is paused, file systems that are associated with the -// policy will not have scheduled snapshots created or deleted. -// If the policy is already paused, or in the INACTIVE state, you cannot pause it again. You can't pause a policy -// that is in a DELETING, DELETED, FAILED, CREATING or INACTIVE state; attempts to pause a policy in these states result in a 409 conflict error. +// ListFileSystems Lists the file system resources in the specified compartment, or by the specified compartment and +// file system snapshot policy. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.go.html to see an example of how to use PauseFilesystemSnapshotPolicy API. -func (client FileStorageClient) PauseFilesystemSnapshotPolicy(ctx context.Context, request PauseFilesystemSnapshotPolicyRequest) (response PauseFilesystemSnapshotPolicyResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFileSystems.go.html to see an example of how to use ListFileSystems API. +func (client FileStorageClient) ListFileSystems(ctx context.Context, request ListFileSystemsRequest) (response ListFileSystemsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3007,42 +2185,42 @@ func (client FileStorageClient) PauseFilesystemSnapshotPolicy(ctx context.Contex if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.pauseFilesystemSnapshotPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.listFileSystems, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = PauseFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListFileSystemsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = PauseFilesystemSnapshotPolicyResponse{} + response = ListFileSystemsResponse{} } } return } - if convertedResponse, ok := ociResponse.(PauseFilesystemSnapshotPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(ListFileSystemsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into PauseFilesystemSnapshotPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListFileSystemsResponse") } return } -// pauseFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) pauseFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listFileSystems implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listFileSystems(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/pause", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response PauseFilesystemSnapshotPolicyResponse + var response ListFileSystemsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/PauseFilesystemSnapshotPolicy" - err = common.PostProcessServiceError(err, "FileStorage", "PauseFilesystemSnapshotPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystemSummary/ListFileSystems" + err = common.PostProcessServiceError(err, "FileStorage", "ListFileSystems", apiReferenceLink) return response, err } @@ -3050,12 +2228,12 @@ func (client FileStorageClient) pauseFilesystemSnapshotPolicy(ctx context.Contex return response, err } -// RemoveExportLock Removes a lock to a resource. +// ListFilesystemSnapshotPolicies Lists file system snapshot policies in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveExportLock.go.html to see an example of how to use RemoveExportLock API. -func (client FileStorageClient) RemoveExportLock(ctx context.Context, request RemoveExportLockRequest) (response RemoveExportLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.go.html to see an example of how to use ListFilesystemSnapshotPolicies API. +func (client FileStorageClient) ListFilesystemSnapshotPolicies(ctx context.Context, request ListFilesystemSnapshotPoliciesRequest) (response ListFilesystemSnapshotPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3064,42 +2242,42 @@ func (client FileStorageClient) RemoveExportLock(ctx context.Context, request Re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.removeExportLock, policy) + ociResponse, err = common.Retry(ctx, request, client.listFilesystemSnapshotPolicies, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveExportLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListFilesystemSnapshotPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveExportLockResponse{} + response = ListFilesystemSnapshotPoliciesResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveExportLockResponse); ok { + if convertedResponse, ok := ociResponse.(ListFilesystemSnapshotPoliciesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveExportLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListFilesystemSnapshotPoliciesResponse") } return } -// removeExportLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) removeExportLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listFilesystemSnapshotPolicies implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listFilesystemSnapshotPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/exports/{exportId}/actions/removeLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/filesystemSnapshotPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveExportLockResponse + var response ListFilesystemSnapshotPoliciesResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/RemoveExportLock" - err = common.PostProcessServiceError(err, "FileStorage", "RemoveExportLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicySummary/ListFilesystemSnapshotPolicies" + err = common.PostProcessServiceError(err, "FileStorage", "ListFilesystemSnapshotPolicies", apiReferenceLink) return response, err } @@ -3107,12 +2285,12 @@ func (client FileStorageClient) removeExportLock(ctx context.Context, request co return response, err } -// RemoveFileSystemLock Removes a lock to a resource. +// ListMountTargets Lists the mount target resources in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFileSystemLock.go.html to see an example of how to use RemoveFileSystemLock API. -func (client FileStorageClient) RemoveFileSystemLock(ctx context.Context, request RemoveFileSystemLockRequest) (response RemoveFileSystemLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListMountTargets.go.html to see an example of how to use ListMountTargets API. +func (client FileStorageClient) ListMountTargets(ctx context.Context, request ListMountTargetsRequest) (response ListMountTargetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3121,42 +2299,42 @@ func (client FileStorageClient) RemoveFileSystemLock(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.removeFileSystemLock, policy) + ociResponse, err = common.Retry(ctx, request, client.listMountTargets, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveFileSystemLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListMountTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveFileSystemLockResponse{} + response = ListMountTargetsResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveFileSystemLockResponse); ok { + if convertedResponse, ok := ociResponse.(ListMountTargetsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveFileSystemLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListMountTargetsResponse") } return } -// removeFileSystemLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) removeFileSystemLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listMountTargets implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listMountTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/removeLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveFileSystemLockResponse + var response ListMountTargetsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/RemoveFileSystemLock" - err = common.PostProcessServiceError(err, "FileStorage", "RemoveFileSystemLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTargetSummary/ListMountTargets" + err = common.PostProcessServiceError(err, "FileStorage", "ListMountTargets", apiReferenceLink) return response, err } @@ -3164,12 +2342,28 @@ func (client FileStorageClient) removeFileSystemLock(ctx context.Context, reques return response, err } -// RemoveFilesystemSnapshotPolicyLock Removes a lock to a resource. +// listoutboundconnectorsummary allows to unmarshal list of polymorphic OutboundConnectorSummary +type listoutboundconnectorsummary []outboundconnectorsummary + +// UnmarshalPolymorphicJSON unmarshals polymorphic json list of items +func (m *listoutboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + res := make([]OutboundConnectorSummary, len(*m)) + for i, v := range *m { + nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) + if err != nil { + return nil, err + } + res[i] = nn.(OutboundConnectorSummary) + } + return res, nil +} + +// ListOutboundConnectors Lists the outbound connector resources in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.go.html to see an example of how to use RemoveFilesystemSnapshotPolicyLock API. -func (client FileStorageClient) RemoveFilesystemSnapshotPolicyLock(ctx context.Context, request RemoveFilesystemSnapshotPolicyLockRequest) (response RemoveFilesystemSnapshotPolicyLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListOutboundConnectors.go.html to see an example of how to use ListOutboundConnectors API. +func (client FileStorageClient) ListOutboundConnectors(ctx context.Context, request ListOutboundConnectorsRequest) (response ListOutboundConnectorsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3178,55 +2372,55 @@ func (client FileStorageClient) RemoveFilesystemSnapshotPolicyLock(ctx context.C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.removeFilesystemSnapshotPolicyLock, policy) + ociResponse, err = common.Retry(ctx, request, client.listOutboundConnectors, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveFilesystemSnapshotPolicyLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListOutboundConnectorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveFilesystemSnapshotPolicyLockResponse{} + response = ListOutboundConnectorsResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveFilesystemSnapshotPolicyLockResponse); ok { + if convertedResponse, ok := ociResponse.(ListOutboundConnectorsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveFilesystemSnapshotPolicyLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListOutboundConnectorsResponse") } return } -// removeFilesystemSnapshotPolicyLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) removeFilesystemSnapshotPolicyLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listOutboundConnectors implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listOutboundConnectors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/removeLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveFilesystemSnapshotPolicyLockResponse + var response ListOutboundConnectorsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/RemoveFilesystemSnapshotPolicyLock" - err = common.PostProcessServiceError(err, "FileStorage", "RemoveFilesystemSnapshotPolicyLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnectorSummary/ListOutboundConnectors" + err = common.PostProcessServiceError(err, "FileStorage", "ListOutboundConnectors", apiReferenceLink) return response, err } - err = common.UnmarshalResponse(httpResponse, &response) + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listoutboundconnectorsummary{}) return response, err } -// RemoveMountTargetLock Removes a lock to a resource. +// ListReplicationTargets Lists the replication target resources in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveMountTargetLock.go.html to see an example of how to use RemoveMountTargetLock API. -func (client FileStorageClient) RemoveMountTargetLock(ctx context.Context, request RemoveMountTargetLockRequest) (response RemoveMountTargetLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplicationTargets.go.html to see an example of how to use ListReplicationTargets API. +func (client FileStorageClient) ListReplicationTargets(ctx context.Context, request ListReplicationTargetsRequest) (response ListReplicationTargetsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3235,42 +2429,42 @@ func (client FileStorageClient) RemoveMountTargetLock(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.removeMountTargetLock, policy) + ociResponse, err = common.Retry(ctx, request, client.listReplicationTargets, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveMountTargetLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListReplicationTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveMountTargetLockResponse{} + response = ListReplicationTargetsResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveMountTargetLockResponse); ok { + if convertedResponse, ok := ociResponse.(ListReplicationTargetsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveMountTargetLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListReplicationTargetsResponse") } return } -// removeMountTargetLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) removeMountTargetLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listReplicationTargets implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listReplicationTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/removeLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveMountTargetLockResponse + var response ListReplicationTargetsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/RemoveMountTargetLock" - err = common.PostProcessServiceError(err, "FileStorage", "RemoveMountTargetLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTargetSummary/ListReplicationTargets" + err = common.PostProcessServiceError(err, "FileStorage", "ListReplicationTargets", apiReferenceLink) return response, err } @@ -3278,12 +2472,12 @@ func (client FileStorageClient) removeMountTargetLock(ctx context.Context, reque return response, err } -// RemoveOutboundConnectorLock Removes a lock to a resource. +// ListReplications Lists the replication resources in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.go.html to see an example of how to use RemoveOutboundConnectorLock API. -func (client FileStorageClient) RemoveOutboundConnectorLock(ctx context.Context, request RemoveOutboundConnectorLockRequest) (response RemoveOutboundConnectorLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListReplications.go.html to see an example of how to use ListReplications API. +func (client FileStorageClient) ListReplications(ctx context.Context, request ListReplicationsRequest) (response ListReplicationsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3292,55 +2486,59 @@ func (client FileStorageClient) RemoveOutboundConnectorLock(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.removeOutboundConnectorLock, policy) + ociResponse, err = common.Retry(ctx, request, client.listReplications, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveOutboundConnectorLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListReplicationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveOutboundConnectorLockResponse{} + response = ListReplicationsResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveOutboundConnectorLockResponse); ok { + if convertedResponse, ok := ociResponse.(ListReplicationsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveOutboundConnectorLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListReplicationsResponse") } return } -// removeOutboundConnectorLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) removeOutboundConnectorLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listReplications implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listReplications(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors/{outboundConnectorId}/actions/removeLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveOutboundConnectorLockResponse + var response ListReplicationsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/RemoveOutboundConnectorLock" - err = common.PostProcessServiceError(err, "FileStorage", "RemoveOutboundConnectorLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationSummary/ListReplications" + err = common.PostProcessServiceError(err, "FileStorage", "ListReplications", apiReferenceLink) return response, err } - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) + err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// RemoveReplicationLock Removes a lock to a resource. +// ListSnapshots Lists snapshots of the specified file system, or by file system snapshot policy and compartment, +// or by file system snapshot policy and file system. +// If file system ID is not specified, a file system snapshot policy ID and compartment ID must be specified. +// Users can only sort by time created when listing snapshots by file system snapshot policy ID and compartment ID +// (sort by name is NOT supported for listing snapshots by policy and compartment). // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveReplicationLock.go.html to see an example of how to use RemoveReplicationLock API. -func (client FileStorageClient) RemoveReplicationLock(ctx context.Context, request RemoveReplicationLockRequest) (response RemoveReplicationLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/ListSnapshots.go.html to see an example of how to use ListSnapshots API. +func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListSnapshotsRequest) (response ListSnapshotsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3349,42 +2547,42 @@ func (client FileStorageClient) RemoveReplicationLock(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.removeReplicationLock, policy) + ociResponse, err = common.Retry(ctx, request, client.listSnapshots, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveReplicationLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSnapshotsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveReplicationLockResponse{} + response = ListSnapshotsResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveReplicationLockResponse); ok { + if convertedResponse, ok := ociResponse.(ListSnapshotsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveReplicationLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSnapshotsResponse") } return } -// removeReplicationLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) removeReplicationLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSnapshots implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listSnapshots(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/{replicationId}/actions/removeLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveReplicationLockResponse + var response ListSnapshotsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/RemoveReplicationLock" - err = common.PostProcessServiceError(err, "FileStorage", "RemoveReplicationLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/SnapshotSummary/ListSnapshots" + err = common.PostProcessServiceError(err, "FileStorage", "ListSnapshots", apiReferenceLink) return response, err } @@ -3392,12 +2590,16 @@ func (client FileStorageClient) removeReplicationLock(ctx context.Context, reque return response, err } -// RemoveSnapshotLock Removes a lock to a resource. +// PauseFilesystemSnapshotPolicy This operation pauses the scheduled snapshot creation and snapshot deletion of the policy and updates the lifecycle state of the file system +// snapshot policy from ACTIVE to INACTIVE. When a file system snapshot policy is paused, file systems that are associated with the +// policy will not have scheduled snapshots created or deleted. +// If the policy is already paused, or in the INACTIVE state, you cannot pause it again. You can't pause a policy +// that is in a DELETING, DELETED, FAILED, CREATING or INACTIVE state; attempts to pause a policy in these states result in a 409 conflict error. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveSnapshotLock.go.html to see an example of how to use RemoveSnapshotLock API. -func (client FileStorageClient) RemoveSnapshotLock(ctx context.Context, request RemoveSnapshotLockRequest) (response RemoveSnapshotLockResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.go.html to see an example of how to use PauseFilesystemSnapshotPolicy API. +func (client FileStorageClient) PauseFilesystemSnapshotPolicy(ctx context.Context, request PauseFilesystemSnapshotPolicyRequest) (response PauseFilesystemSnapshotPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -3406,42 +2608,42 @@ func (client FileStorageClient) RemoveSnapshotLock(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.removeSnapshotLock, policy) + ociResponse, err = common.Retry(ctx, request, client.pauseFilesystemSnapshotPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveSnapshotLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = PauseFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveSnapshotLockResponse{} + response = PauseFilesystemSnapshotPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveSnapshotLockResponse); ok { + if convertedResponse, ok := ociResponse.(PauseFilesystemSnapshotPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveSnapshotLockResponse") + err = fmt.Errorf("failed to convert OCIResponse into PauseFilesystemSnapshotPolicyResponse") } return } -// removeSnapshotLock implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) removeSnapshotLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// pauseFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) pauseFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/snapshots/{snapshotId}/actions/removeLock", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/pause", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveSnapshotLockResponse + var response PauseFilesystemSnapshotPolicyResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/RemoveSnapshotLock" - err = common.PostProcessServiceError(err, "FileStorage", "RemoveSnapshotLock", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/PauseFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "PauseFilesystemSnapshotPolicy", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go index 3f7407aac5c..97898ea941c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go @@ -53,9 +53,6 @@ type FilesystemSnapshotPolicy struct { // The list of associated snapshot schedules. A maximum of 10 schedules can be associated with a policy. Schedules []SnapshotSchedule `mandatory:"false" json:"schedules"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go index e71c3268fda..188b892f27a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go @@ -42,9 +42,6 @@ type FilesystemSnapshotPolicySummary struct { // Example: `My Filesystem Snapshot Policy` DisplayName *string `mandatory:"false" json:"displayName"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // The prefix to apply to all snapshots created by this policy. // Example: `acme` PolicyPrefix *string `mandatory:"false" json:"policyPrefix"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go index ff6dab21332..3668e1fe400 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go @@ -47,9 +47,6 @@ type LdapBindAccount struct { // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). @@ -101,11 +98,6 @@ func (m LdapBindAccount) GetTimeCreated() *common.SDKTime { return m.TimeCreated } -// GetLocks returns Locks -func (m LdapBindAccount) GetLocks() []ResourceLock { - return m.Locks -} - // GetFreeformTags returns FreeformTags func (m LdapBindAccount) GetFreeformTags() map[string]string { return m.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go index 32dff3d6f78..6bfd4872323 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go @@ -47,9 +47,6 @@ type LdapBindAccountSummary struct { // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). @@ -95,11 +92,6 @@ func (m LdapBindAccountSummary) GetTimeCreated() *common.SDKTime { return m.TimeCreated } -// GetLocks returns Locks -func (m LdapBindAccountSummary) GetLocks() []ResourceLock { - return m.Locks -} - // GetFreeformTags returns FreeformTags func (m LdapBindAccountSummary) GetFreeformTags() map[string]string { return m.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go index ea4973ae800..b447aa8813a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go @@ -88,9 +88,6 @@ type MountTarget struct { // of mount target. Value is listed at Mount Target Performance (https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). ReservedStorageCapacity *int64 `mandatory:"false" json:"reservedStorageCapacity"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go index 1e2ce1dd606..38a39b823d7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go @@ -77,9 +77,6 @@ type MountTargetSummary struct { // of mount target. Value is listed at Mount Target Performance (https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). ReservedStorageCapacity *int64 `mandatory:"false" json:"reservedStorageCapacity"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go index feb2cc80653..cd648ae68ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go @@ -45,9 +45,6 @@ type OutboundConnector interface { // Example: `Uocm:PHX-AD-1` GetAvailabilityDomain() *string - // Locks associated with this resource. - GetLocks() []ResourceLock - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). @@ -63,7 +60,6 @@ type OutboundConnector interface { type outboundconnector struct { JsonData []byte AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - Locks []ResourceLock `mandatory:"false" json:"locks"` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -91,7 +87,6 @@ func (m *outboundconnector) UnmarshalJSON(data []byte) error { m.DisplayName = s.Model.DisplayName m.TimeCreated = s.Model.TimeCreated m.AvailabilityDomain = s.Model.AvailabilityDomain - m.Locks = s.Model.Locks m.FreeformTags = s.Model.FreeformTags m.DefinedTags = s.Model.DefinedTags m.ConnectorType = s.Model.ConnectorType @@ -123,11 +118,6 @@ func (m outboundconnector) GetAvailabilityDomain() *string { return m.AvailabilityDomain } -// GetLocks returns Locks -func (m outboundconnector) GetLocks() []ResourceLock { - return m.Locks -} - // GetFreeformTags returns FreeformTags func (m outboundconnector) GetFreeformTags() map[string]string { return m.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go index 4e99ad99eb4..708d7ffbb3f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go @@ -44,9 +44,6 @@ type OutboundConnectorSummary interface { // Example: `Uocm:PHX-AD-1` GetAvailabilityDomain() *string - // Locks associated with this resource. - GetLocks() []ResourceLock - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). @@ -62,7 +59,6 @@ type OutboundConnectorSummary interface { type outboundconnectorsummary struct { JsonData []byte AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - Locks []ResourceLock `mandatory:"false" json:"locks"` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` CompartmentId *string `mandatory:"true" json:"compartmentId"` @@ -90,7 +86,6 @@ func (m *outboundconnectorsummary) UnmarshalJSON(data []byte) error { m.DisplayName = s.Model.DisplayName m.TimeCreated = s.Model.TimeCreated m.AvailabilityDomain = s.Model.AvailabilityDomain - m.Locks = s.Model.Locks m.FreeformTags = s.Model.FreeformTags m.DefinedTags = s.Model.DefinedTags m.ConnectorType = s.Model.ConnectorType @@ -122,11 +117,6 @@ func (m outboundconnectorsummary) GetAvailabilityDomain() *string { return m.AvailabilityDomain } -// GetLocks returns Locks -func (m outboundconnectorsummary) GetLocks() []ResourceLock { - return m.Locks -} - // GetFreeformTags returns FreeformTags func (m outboundconnectorsummary) GetFreeformTags() map[string]string { return m.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go index ed055a261b1..49b8616d4c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go @@ -32,9 +32,6 @@ type PauseFilesystemSnapshotPolicyRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_export_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_export_lock_request_response.go deleted file mode 100644 index 9eb7c4c5789..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_export_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RemoveExportLockRequest wrapper for the RemoveExportLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveExportLock.go.html to see an example of how to use RemoveExportLockRequest. -type RemoveExportLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. - ExportId *string `mandatory:"true" contributesTo:"path" name:"exportId"` - - // The details to be updated for the RemoveLock. - RemoveExportLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RemoveExportLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RemoveExportLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RemoveExportLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RemoveExportLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RemoveExportLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RemoveExportLockResponse wrapper for the RemoveExportLock operation -type RemoveExportLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Export instance - Export `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RemoveExportLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RemoveExportLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_file_system_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_file_system_lock_request_response.go deleted file mode 100644 index ca3ebc5e435..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_file_system_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RemoveFileSystemLockRequest wrapper for the RemoveFileSystemLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFileSystemLock.go.html to see an example of how to use RemoveFileSystemLockRequest. -type RemoveFileSystemLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. - FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` - - // The details to be updated for the RemoveLock. - RemoveFileSystemLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RemoveFileSystemLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RemoveFileSystemLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RemoveFileSystemLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RemoveFileSystemLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RemoveFileSystemLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RemoveFileSystemLockResponse wrapper for the RemoveFileSystemLock operation -type RemoveFileSystemLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The FileSystem instance - FileSystem `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RemoveFileSystemLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RemoveFileSystemLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_filesystem_snapshot_policy_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_filesystem_snapshot_policy_lock_request_response.go deleted file mode 100644 index 5cb3d00bd89..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_filesystem_snapshot_policy_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RemoveFilesystemSnapshotPolicyLockRequest wrapper for the RemoveFilesystemSnapshotPolicyLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.go.html to see an example of how to use RemoveFilesystemSnapshotPolicyLockRequest. -type RemoveFilesystemSnapshotPolicyLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. - FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` - - // The details to be updated for the RemoveLock. - RemoveFilesystemSnapshotPolicyLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RemoveFilesystemSnapshotPolicyLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RemoveFilesystemSnapshotPolicyLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RemoveFilesystemSnapshotPolicyLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RemoveFilesystemSnapshotPolicyLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RemoveFilesystemSnapshotPolicyLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RemoveFilesystemSnapshotPolicyLockResponse wrapper for the RemoveFilesystemSnapshotPolicyLock operation -type RemoveFilesystemSnapshotPolicyLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The FilesystemSnapshotPolicy instance - FilesystemSnapshotPolicy `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RemoveFilesystemSnapshotPolicyLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RemoveFilesystemSnapshotPolicyLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_mount_target_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_mount_target_lock_request_response.go deleted file mode 100644 index d2a42041755..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_mount_target_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RemoveMountTargetLockRequest wrapper for the RemoveMountTargetLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveMountTargetLock.go.html to see an example of how to use RemoveMountTargetLockRequest. -type RemoveMountTargetLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. - MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` - - // The details to be updated for the RemoveLock. - RemoveMountTargetLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RemoveMountTargetLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RemoveMountTargetLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RemoveMountTargetLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RemoveMountTargetLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RemoveMountTargetLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RemoveMountTargetLockResponse wrapper for the RemoveMountTargetLock operation -type RemoveMountTargetLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The MountTarget instance - MountTarget `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RemoveMountTargetLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RemoveMountTargetLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_outbound_connector_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_outbound_connector_lock_request_response.go deleted file mode 100644 index b6693a29a75..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_outbound_connector_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RemoveOutboundConnectorLockRequest wrapper for the RemoveOutboundConnectorLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.go.html to see an example of how to use RemoveOutboundConnectorLockRequest. -type RemoveOutboundConnectorLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. - OutboundConnectorId *string `mandatory:"true" contributesTo:"path" name:"outboundConnectorId"` - - // The details to be updated for the RemoveLock. - RemoveOutboundConnectorLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RemoveOutboundConnectorLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RemoveOutboundConnectorLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RemoveOutboundConnectorLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RemoveOutboundConnectorLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RemoveOutboundConnectorLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RemoveOutboundConnectorLockResponse wrapper for the RemoveOutboundConnectorLock operation -type RemoveOutboundConnectorLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OutboundConnector instance - OutboundConnector `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RemoveOutboundConnectorLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RemoveOutboundConnectorLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_replication_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_replication_lock_request_response.go deleted file mode 100644 index cc4b29ac48d..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_replication_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RemoveReplicationLockRequest wrapper for the RemoveReplicationLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveReplicationLock.go.html to see an example of how to use RemoveReplicationLockRequest. -type RemoveReplicationLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. - ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` - - // The details to be updated for the RemoveLock. - RemoveReplicationLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RemoveReplicationLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RemoveReplicationLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RemoveReplicationLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RemoveReplicationLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RemoveReplicationLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RemoveReplicationLockResponse wrapper for the RemoveReplicationLock operation -type RemoveReplicationLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Replication instance - Replication `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RemoveReplicationLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RemoveReplicationLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_snapshot_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_snapshot_lock_request_response.go deleted file mode 100644 index 64e3626df21..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/remove_snapshot_lock_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// RemoveSnapshotLockRequest wrapper for the RemoveSnapshotLock operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/RemoveSnapshotLock.go.html to see an example of how to use RemoveSnapshotLockRequest. -type RemoveSnapshotLockRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. - SnapshotId *string `mandatory:"true" contributesTo:"path" name:"snapshotId"` - - // The details to be updated for the RemoveLock. - RemoveSnapshotLockDetails ResourceLock `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request RemoveSnapshotLockRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request RemoveSnapshotLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request RemoveSnapshotLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request RemoveSnapshotLockRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request RemoveSnapshotLockRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RemoveSnapshotLockResponse wrapper for the RemoveSnapshotLock operation -type RemoveSnapshotLockResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Snapshot instance - Snapshot `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response RemoveSnapshotLockResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response RemoveSnapshotLockResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go index 612c367e67b..6a066e1a90b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go @@ -77,9 +77,6 @@ type Replication struct { // Percentage progress of the current replication cycle. DeltaProgress *int64 `mandatory:"false" json:"deltaProgress"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go index 5504f28c75e..5adef4a3620 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go @@ -43,9 +43,6 @@ type ReplicationSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. CompartmentId *string `mandatory:"false" json:"compartmentId"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Duration in minutes between replication snapshots. ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/resource_lock.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/resource_lock.go deleted file mode 100644 index 36a36b7adfa..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/resource_lock.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// Use the File Storage service API to manage file systems, mount targets, and snapshots. -// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ResourceLock Resource locks are used to prevent certain APIs from being called for the resource. -// A full lock prevents both updating the resource and deleting the resource. A delete -// lock prevents deleting the resource. -type ResourceLock struct { - - // Type of the lock. - Type ResourceLockTypeEnum `mandatory:"true" json:"type"` - - // The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. - RelatedResourceId *string `mandatory:"false" json:"relatedResourceId"` - - // A message added by the creator of the lock. This is typically used to give an - // indication of why the resource is locked. - Message *string `mandatory:"false" json:"message"` - - // When the lock was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m ResourceLock) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ResourceLock) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingResourceLockTypeEnum(string(m.Type)); !ok && m.Type != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetResourceLockTypeEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ResourceLockTypeEnum Enum with underlying type: string -type ResourceLockTypeEnum string - -// Set of constants representing the allowable values for ResourceLockTypeEnum -const ( - ResourceLockTypeFull ResourceLockTypeEnum = "FULL" - ResourceLockTypeDelete ResourceLockTypeEnum = "DELETE" -) - -var mappingResourceLockTypeEnum = map[string]ResourceLockTypeEnum{ - "FULL": ResourceLockTypeFull, - "DELETE": ResourceLockTypeDelete, -} - -var mappingResourceLockTypeEnumLowerCase = map[string]ResourceLockTypeEnum{ - "full": ResourceLockTypeFull, - "delete": ResourceLockTypeDelete, -} - -// GetResourceLockTypeEnumValues Enumerates the set of values for ResourceLockTypeEnum -func GetResourceLockTypeEnumValues() []ResourceLockTypeEnum { - values := make([]ResourceLockTypeEnum, 0) - for _, v := range mappingResourceLockTypeEnum { - values = append(values, v) - } - return values -} - -// GetResourceLockTypeEnumStringValues Enumerates the set of values in String for ResourceLockTypeEnum -func GetResourceLockTypeEnumStringValues() []string { - return []string{ - "FULL", - "DELETE", - } -} - -// GetMappingResourceLockTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingResourceLockTypeEnum(val string) (ResourceLockTypeEnum, bool) { - enum, ok := mappingResourceLockTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go index ca62c6f2df7..509fdd4e094 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go @@ -65,9 +65,6 @@ type Snapshot struct { // Additional information about the current `lifecycleState`. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Free-form tags for this resource. Each tag is a simple key-value pair // with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go index a25e1283067..2aab856e8dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go @@ -38,9 +38,6 @@ type SnapshotSummary struct { // Example: `2016-08-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // Locks associated with this resource. - Locks []ResourceLock `mandatory:"false" json:"locks"` - // Specifies the generation type of the snapshot. SnapshotType SnapshotSummarySnapshotTypeEnum `mandatory:"false" json:"snapshotType,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go index 407ad8c1337..9fabb1cd490 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go @@ -32,9 +32,6 @@ type UnpauseFilesystemSnapshotPolicyRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go index 6e44994da2a..d3d7845ce45 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go @@ -35,9 +35,6 @@ type UpdateExportRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go index e09c5aa108f..478252d470b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go @@ -35,9 +35,6 @@ type UpdateFileSystemRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go index d3d09bc8551..bbcbf9a37e0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go @@ -35,9 +35,6 @@ type UpdateFilesystemSnapshotPolicyRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go index 3eae72f8854..ea891bc300b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go @@ -35,9 +35,6 @@ type UpdateMountTargetRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go index 66fbb7ca421..9285de346c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go @@ -35,9 +35,6 @@ type UpdateOutboundConnectorRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go index 8cc15818f5b..11f681cda52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go @@ -35,9 +35,6 @@ type UpdateReplicationRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go index cf958813b8c..ae10d485f85 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go @@ -35,9 +35,6 @@ type UpdateSnapshotRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Whether to override locks (if any exist). - IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` - // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group.go index 58a2e45f6b5..2d8a10b4848 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -18,7 +19,7 @@ import ( // ActionGroup Action Group. type ActionGroup struct { - // Provide the ID of the resource. Example fleet ID. + // Provide the ID of the resource; Ex- fleetId. ResourceId *string `mandatory:"true" json:"resourceId"` // ID of the runbook diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group_based_user_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group_based_user_action_details.go deleted file mode 100644 index 3bc4e611c85..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group_based_user_action_details.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ActionGroupBasedUserActionDetails Details for a user action to be performed on an action group. -type ActionGroupBasedUserActionDetails struct { - - // Unique identifier for the action group. - ActionGroupId *string `mandatory:"true" json:"actionGroupId"` - - // Action to be Performed. - Action UserActionDetailsActionEnum `mandatory:"true" json:"action"` -} - -// GetAction returns Action -func (m ActionGroupBasedUserActionDetails) GetAction() UserActionDetailsActionEnum { - return m.Action -} - -func (m ActionGroupBasedUserActionDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ActionGroupBasedUserActionDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingUserActionDetailsActionEnum(string(m.Action)); !ok && m.Action != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetUserActionDetailsActionEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m ActionGroupBasedUserActionDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeActionGroupBasedUserActionDetails ActionGroupBasedUserActionDetails - s := struct { - DiscriminatorParam string `json:"level"` - MarshalTypeActionGroupBasedUserActionDetails - }{ - "ACTION_GROUP", - (MarshalTypeActionGroupBasedUserActionDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group_details.go index 224842cc9ab..41672a41532 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_group_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,14 +16,14 @@ import ( "strings" ) -// ActionGroupDetails Action Group details. +// ActionGroupDetails Action Group. type ActionGroupDetails struct { - // The ID of the ActionGroup resource. + // The ID of the ActionGroup resource . // Ex:fleetId. ResourceId *string `mandatory:"true" json:"resourceId"` - // OCID of the runbook. + // ID of the runbook RunbookId *string `mandatory:"true" json:"runbookId"` // Name of the ActionGroup. @@ -39,19 +40,19 @@ type ActionGroupDetails struct { // Only applicable if actionGroup type is PRODUCT. Product *string `mandatory:"false" json:"product"` - // LifeCycle Operation. + // LifeCycle Operation LifecycleOperation *string `mandatory:"false" json:"lifecycleOperation"` // Unique producer Id at Action Group Level ActivityId *string `mandatory:"false" json:"activityId"` - // Status of the Job at Action Group Level. + // Status of the Job at Action Group Level Status JobStatusEnum `mandatory:"false" json:"status,omitempty"` - // The time the Scheduler Job started. An RFC3339 formatted datetime string. + // The time the the Scheduler Job started. An RFC3339 formatted datetime string TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - // The time the Scheduler Job ended. An RFC3339 formatted datetime string. + // The time the Scheduler Job ended. An RFC3339 formatted datetime string TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_type.go index 8a55230a21d..12800a10a02 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/action_type.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/activity_resource_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/activity_resource_target.go index aecd0a08428..f22d71f902a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/activity_resource_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/activity_resource_target.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -21,12 +22,8 @@ type ActivityResourceTarget struct { // Target Name. TargetName *string `mandatory:"true" json:"targetName"` - // Status of the Job at target Level. + // Status of the Job at Resource Target Level. Status JobStatusEnum `mandatory:"false" json:"status,omitempty"` - - // Description of the Execution status. - // If there are any errors, this can also include a short error message. - Description *string `mandatory:"false" json:"description"` } func (m ActivityResourceTarget) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_collection.go index 242a8fdeca1..b82eae86e12 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// AnnouncementCollection Results of list announcements. Contains AnnouncementSummary items. +// AnnouncementCollection Results of list announcements . Contains AnnouncementSummary items type AnnouncementCollection struct { // List of AnnouncementSummary items diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_sort_by.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_sort_by.go index c345a9ceed5..58104db6ec3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_sort_by.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_sort_by.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_summary.go index 776d9af48b4..c3aa9de7f28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/announcement_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// AnnouncementSummary A summary of announcements for Fleet Application Management. +// AnnouncementSummary An summary of announcements for Fleet Application Management Service type AnnouncementSummary struct { // The OCID of the resource. @@ -24,16 +25,16 @@ type AnnouncementSummary struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Type of announcement. + // Type of announcement Type *string `mandatory:"true" json:"type"` - // Summary of the announcement. + // Summary of the announcement Summary *string `mandatory:"true" json:"summary"` - // Announcement start date. + // Date to start displaying announcement to user AnnouncementStart *common.SDKTime `mandatory:"true" json:"announcementStart"` - // Announcement end date + // Date to end displaying annonucement to user AnnouncementEnd *common.SDKTime `mandatory:"true" json:"announcementEnd"` // Associated region @@ -54,10 +55,10 @@ type AnnouncementSummary struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // Announcement Details. + // Details of the announcement Details *string `mandatory:"false" json:"details"` - // URL to the announcement. + // URL to the announcement Url *string `mandatory:"false" json:"url"` // The lifecycle state of the announcement. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/api_based_execution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/api_based_execution_details.go index 9babc938e4b..d4ac5ae67b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/api_based_execution_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/api_based_execution_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,7 @@ import ( "strings" ) -// ApiBasedExecutionDetails Details for API-based execution. +// ApiBasedExecutionDetails Details for API based execution type ApiBasedExecutionDetails struct { // Endpoint to be invoked. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/artifact_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/artifact_details.go deleted file mode 100644 index 79c8c9b46d2..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/artifact_details.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ArtifactDetails Patch artifact description and content details. -type ArtifactDetails interface { -} - -type artifactdetails struct { - JsonData []byte - Category string `json:"category"` -} - -// UnmarshalJSON unmarshals json -func (m *artifactdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerartifactdetails artifactdetails - s := struct { - Model Unmarshalerartifactdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Category = s.Model.Category - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *artifactdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Category { - case "PLATFORM_SPECIFIC": - mm := PlatformSpecificArtifactDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "GENERIC": - mm := GenericArtifactDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for ArtifactDetails: %s.", m.Category) - return *m, nil - } -} - -func (m artifactdetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m artifactdetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ArtifactDetailsCategoryEnum Enum with underlying type: string -type ArtifactDetailsCategoryEnum string - -// Set of constants representing the allowable values for ArtifactDetailsCategoryEnum -const ( - ArtifactDetailsCategoryGeneric ArtifactDetailsCategoryEnum = "GENERIC" - ArtifactDetailsCategoryPlatformSpecific ArtifactDetailsCategoryEnum = "PLATFORM_SPECIFIC" -) - -var mappingArtifactDetailsCategoryEnum = map[string]ArtifactDetailsCategoryEnum{ - "GENERIC": ArtifactDetailsCategoryGeneric, - "PLATFORM_SPECIFIC": ArtifactDetailsCategoryPlatformSpecific, -} - -var mappingArtifactDetailsCategoryEnumLowerCase = map[string]ArtifactDetailsCategoryEnum{ - "generic": ArtifactDetailsCategoryGeneric, - "platform_specific": ArtifactDetailsCategoryPlatformSpecific, -} - -// GetArtifactDetailsCategoryEnumValues Enumerates the set of values for ArtifactDetailsCategoryEnum -func GetArtifactDetailsCategoryEnumValues() []ArtifactDetailsCategoryEnum { - values := make([]ArtifactDetailsCategoryEnum, 0) - for _, v := range mappingArtifactDetailsCategoryEnum { - values = append(values, v) - } - return values -} - -// GetArtifactDetailsCategoryEnumStringValues Enumerates the set of values in String for ArtifactDetailsCategoryEnum -func GetArtifactDetailsCategoryEnumStringValues() []string { - return []string{ - "GENERIC", - "PLATFORM_SPECIFIC", - } -} - -// GetMappingArtifactDetailsCategoryEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingArtifactDetailsCategoryEnum(val string) (ArtifactDetailsCategoryEnum, bool) { - enum, ok := mappingArtifactDetailsCategoryEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_credential_details.go index 00750248401..3dcf0bd0d97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_credential_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,7 @@ import ( "strings" ) -// AssociatedFleetCredentialDetails The information about associated FleetCredential. +// AssociatedFleetCredentialDetails The information about new FleetCredential. type AssociatedFleetCredentialDetails struct { // A user-friendly name. Does not have to be unique, and it's changeable. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_property_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_property_details.go index 866257a3733..1ce98c8beb6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_property_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_property_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// AssociatedFleetPropertyDetails The information about associated FleetProperty. +// AssociatedFleetPropertyDetails The information about new FleetProperty. type AssociatedFleetPropertyDetails struct { // Tenancy OCID @@ -29,10 +30,10 @@ type AssociatedFleetPropertyDetails struct { // Example: `My new resource` DisplayName *string `mandatory:"false" json:"displayName"` - // Value of the Property. + // Value of the Property Value *string `mandatory:"false" json:"value"` - // Property is required or not. + // Property is required or not IsRequired *bool `mandatory:"false" json:"isRequired"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_resource_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_resource_details.go index b2936250966..c59f612f426 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_resource_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_fleet_resource_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -18,13 +19,13 @@ import ( // AssociatedFleetResourceDetails The information about associated FleetResource. type AssociatedFleetResourceDetails struct { - // OCID of the resource. + // OCID of the reosurce. ResourceId *string `mandatory:"true" json:"resourceId"` - // Compartment Identifier[OCID]. + // Compartment Identifier. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Tenancy Identifier[OCID]. + // Tenancy Identifier. TenancyId *string `mandatory:"true" json:"tenancyId"` // Type of the FleetResource. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_local_task_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_local_task_details.go index 94a1c0b39f2..fd9b5c9293b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_local_task_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_local_task_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,8 +17,7 @@ import ( "strings" ) -// AssociatedLocalTaskDetails The details of the local task. -// The local tasks are specific to a single runbook. +// AssociatedLocalTaskDetails The details of the task. type AssociatedLocalTaskDetails struct { ExecutionDetails ExecutionDetails `mandatory:"true" json:"executionDetails"` @@ -32,12 +32,6 @@ type AssociatedLocalTaskDetails struct { Properties *Properties `mandatory:"false" json:"properties"` - // Is this a discovery output task? - IsDiscoveryOutputTask *bool `mandatory:"false" json:"isDiscoveryOutputTask"` - - // Is this an Apply Subject Task? Ex. Patch Execution Task - IsApplySubjectTask *bool `mandatory:"false" json:"isApplySubjectTask"` - // The name of the task Name *string `mandatory:"false" json:"name"` @@ -85,8 +79,6 @@ func (m *AssociatedLocalTaskDetails) UnmarshalJSON(data []byte) (e error) { Platform *string `json:"platform"` IsCopyToLibraryEnabled *bool `json:"isCopyToLibraryEnabled"` Properties *Properties `json:"properties"` - IsDiscoveryOutputTask *bool `json:"isDiscoveryOutputTask"` - IsApplySubjectTask *bool `json:"isApplySubjectTask"` Name *string `json:"name"` ExecutionDetails executiondetails `json:"executionDetails"` OsType OsTypeEnum `json:"osType"` @@ -105,10 +97,6 @@ func (m *AssociatedLocalTaskDetails) UnmarshalJSON(data []byte) (e error) { m.Properties = model.Properties - m.IsDiscoveryOutputTask = model.IsDiscoveryOutputTask - - m.IsApplySubjectTask = model.IsApplySubjectTask - m.Name = model.Name nn, e = model.ExecutionDetails.UnmarshalPolymorphicJSON(model.ExecutionDetails.JsonData) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_scheduler_definition.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_scheduler_definition.go index 22fe22d4fd4..9d15059a138 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_scheduler_definition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_scheduler_definition.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// AssociatedSchedulerDefinition SchedulerDefinition associated with the job. +// AssociatedSchedulerDefinition Associated SchedulerDefinition with the job. type AssociatedSchedulerDefinition struct { // The OCID of the resource. @@ -29,7 +30,7 @@ type AssociatedSchedulerDefinition struct { // OCID of the tenancy to which the resource belongs to. TenancyId *string `mandatory:"true" json:"tenancyId"` - // Is this a recurring schedule? + // Is this recurring schedule? IsRecurring *bool `mandatory:"true" json:"isRecurring"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_shared_task_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_shared_task_details.go index 163c8d2876f..6e13f86b8f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_shared_task_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_shared_task_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,8 +17,7 @@ import ( "strings" ) -// AssociatedSharedTaskDetails The details of the shared task. -// Tasks that are part of the task library and can be reused across runbooks. +// AssociatedSharedTaskDetails The details of the task. type AssociatedSharedTaskDetails struct { // The ID of taskRecord. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_task_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_task_details.go index 3fc48e7d111..c346ff7a83f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_task_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associated_task_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associations.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associations.go index 67e04ef9992..b7860db3e73 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associations.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/associations.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,19 +16,17 @@ import ( "strings" ) -// Associations Associations for the runbook. +// Associations JSON content with required associations type Associations struct { - // A set of tasks to execute in the runbook. + // A set of tasks to execute in the runbook Tasks []Task `mandatory:"true" json:"tasks"` - // The groups of the runbook. + // The groups of the runbook Groups []Group `mandatory:"true" json:"groups"` ExecutionWorkflowDetails *ExecutionWorkflowDetails `mandatory:"true" json:"executionWorkflowDetails"` - RollbackWorkflowDetails *RollbackWorkflowDetails `mandatory:"false" json:"rollbackWorkflowDetails"` - // The version of the runbook. Version *string `mandatory:"false" json:"version"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_details.go index 00d4bfb3e27..7638f5bfccc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,16 +16,16 @@ import ( "strings" ) -// CheckResourceTaggingDetails Request to check resource tagging. +// CheckResourceTaggingDetails Request to check resource tagging type CheckResourceTaggingDetails struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Resource OCIDS that need to be verified if a tag can be enabled for them. + // Resource OCIDS that need to be verified if tag can be enabled ResourceIds []string `mandatory:"true" json:"resourceIds"` - // Fleet Display Name. + // Fleet Name FleetDisplayName *string `mandatory:"false" json:"fleetDisplayName"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_request_response.go index 2587a33be43..9cc41e99f46 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/check_resource_tagging_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CheckResourceTagging.go.html to see an example of how to use CheckResourceTaggingRequest. type CheckResourceTaggingRequest struct { - // Details for checking if Fleet Application Management tags can be added to the resources. + // Details for Checking if FAMS tags can be added for the resources CheckResourceTaggingDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_policy.go deleted file mode 100644 index c8c229cb456..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_policy.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceDetailPolicy Details of the Policy associated -type ComplianceDetailPolicy struct { - - // Compliance Policy Id - CompliancePolicyId *string `mandatory:"true" json:"compliancePolicyId"` - - // Compliane Policy DisplayName - CompliancePolicyDisplayName *string `mandatory:"false" json:"compliancePolicyDisplayName"` - - // Compliane Policy Rule Id - CompliancePolicyRuleId *string `mandatory:"false" json:"compliancePolicyRuleId"` - - // Product Name - CompliancePolicyRuleDisplayName *string `mandatory:"false" json:"compliancePolicyRuleDisplayName"` - - // Grace period in days,weeks,months or years the exemption is applicable for the rule. - GracePeriod *string `mandatory:"false" json:"gracePeriod"` - - PatchSelection PatchSelectionDetails `mandatory:"false" json:"patchSelection"` -} - -func (m ComplianceDetailPolicy) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceDetailPolicy) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *ComplianceDetailPolicy) UnmarshalJSON(data []byte) (e error) { - model := struct { - CompliancePolicyDisplayName *string `json:"compliancePolicyDisplayName"` - CompliancePolicyRuleId *string `json:"compliancePolicyRuleId"` - CompliancePolicyRuleDisplayName *string `json:"compliancePolicyRuleDisplayName"` - GracePeriod *string `json:"gracePeriod"` - PatchSelection patchselectiondetails `json:"patchSelection"` - CompliancePolicyId *string `json:"compliancePolicyId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.CompliancePolicyDisplayName = model.CompliancePolicyDisplayName - - m.CompliancePolicyRuleId = model.CompliancePolicyRuleId - - m.CompliancePolicyRuleDisplayName = model.CompliancePolicyRuleDisplayName - - m.GracePeriod = model.GracePeriod - - nn, e = model.PatchSelection.UnmarshalPolymorphicJSON(model.PatchSelection.JsonData) - if e != nil { - return - } - if nn != nil { - m.PatchSelection = nn.(PatchSelectionDetails) - } else { - m.PatchSelection = nil - } - - m.CompliancePolicyId = model.CompliancePolicyId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_product.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_product.go deleted file mode 100644 index 8697ba7f2db..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_product.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceDetailProduct Details of the Product -type ComplianceDetailProduct struct { - - // Product Name. - ProductName *string `mandatory:"true" json:"productName"` - - // Product Stack. - ProductStack *string `mandatory:"false" json:"productStack"` - - // Product Version. - ProductVersion *string `mandatory:"false" json:"productVersion"` -} - -func (m ComplianceDetailProduct) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceDetailProduct) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_resource.go deleted file mode 100644 index d9dd3d3ddb5..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_resource.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceDetailResource Details of the Resource -type ComplianceDetailResource struct { - - // The OCID to identify the resource. - ResourceId *string `mandatory:"true" json:"resourceId"` - - // Name of the resource. - ResourceName *string `mandatory:"true" json:"resourceName"` - - // TenancyId of the resource. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Compartment the resource belongs to. - Compartment *string `mandatory:"false" json:"compartment"` - - // Region the resource belongs to. - ResourceRegion *string `mandatory:"false" json:"resourceRegion"` -} - -func (m ComplianceDetailResource) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceDetailResource) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_target.go deleted file mode 100644 index bb448e1dcfc..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_detail_target.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceDetailTarget Details of the Target -type ComplianceDetailTarget struct { - - // Target Identifier. - TargetId *string `mandatory:"true" json:"targetId"` - - // Target Name. - TargetName *string `mandatory:"true" json:"targetName"` - - // Current version. - Version *string `mandatory:"false" json:"version"` -} - -func (m ComplianceDetailTarget) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceDetailTarget) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_level.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_level.go deleted file mode 100644 index ed201631a59..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_level.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "strings" -) - -// ComplianceLevelEnum Enum with underlying type: string -type ComplianceLevelEnum string - -// Set of constants representing the allowable values for ComplianceLevelEnum -const ( - ComplianceLevelFleet ComplianceLevelEnum = "FLEET" - ComplianceLevelTarget ComplianceLevelEnum = "TARGET" -) - -var mappingComplianceLevelEnum = map[string]ComplianceLevelEnum{ - "FLEET": ComplianceLevelFleet, - "TARGET": ComplianceLevelTarget, -} - -var mappingComplianceLevelEnumLowerCase = map[string]ComplianceLevelEnum{ - "fleet": ComplianceLevelFleet, - "target": ComplianceLevelTarget, -} - -// GetComplianceLevelEnumValues Enumerates the set of values for ComplianceLevelEnum -func GetComplianceLevelEnumValues() []ComplianceLevelEnum { - values := make([]ComplianceLevelEnum, 0) - for _, v := range mappingComplianceLevelEnum { - values = append(values, v) - } - return values -} - -// GetComplianceLevelEnumStringValues Enumerates the set of values in String for ComplianceLevelEnum -func GetComplianceLevelEnumStringValues() []string { - return []string{ - "FLEET", - "TARGET", - } -} - -// GetMappingComplianceLevelEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingComplianceLevelEnum(val string) (ComplianceLevelEnum, bool) { - enum, ok := mappingComplianceLevelEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_patch_detail.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_patch_detail.go deleted file mode 100644 index 3d3e60538fd..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_patch_detail.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CompliancePatchDetail Details of the Patch -type CompliancePatchDetail struct { - - // patch Name. - PatchName *string `mandatory:"true" json:"patchName"` - - // Type of patch. - PatchType *string `mandatory:"true" json:"patchType"` - - // patch OCID. - PatchId *string `mandatory:"false" json:"patchId"` - - // Patch Description. - PatchDescription *string `mandatory:"false" json:"patchDescription"` - - // Date on which patch was released - TimeReleased *common.SDKTime `mandatory:"false" json:"timeReleased"` - - // Patch Severity. - Severity PatchSeverityEnum `mandatory:"false" json:"severity,omitempty"` - - Product *ComplianceDetailProduct `mandatory:"false" json:"product"` -} - -func (m CompliancePatchDetail) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CompliancePatchDetail) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingPatchSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetPatchSeverityEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy.go deleted file mode 100644 index 91fd20970ce..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CompliancePolicy Define software patch compliance policies for various products running in OCI resources. -// A compliance policy is a configuration you set up for various products to report compliance by defining the schedule and patch baseline -type CompliancePolicy struct { - - // The OCID of the CompliancePolicy. - Id *string `mandatory:"true" json:"id"` - - // Display name for the CompliancePolicy. - DisplayName *string `mandatory:"true" json:"displayName"` - - // platformConfiguration OCID corresponding to the Product. - ProductId *string `mandatory:"true" json:"productId"` - - // The OCID of the compartment the CompliancePolicy belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The date and time the CompliancePolicy was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current state of the CompliancePolicy. - LifecycleState CompliancePolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` - - // The date and time the CompliancePolicy was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // A message that describes the current state of the CompliancePolicy in more detail. For example, - // can be used to provide actionable information for a resource in the Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m CompliancePolicy) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CompliancePolicy) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCompliancePolicyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCompliancePolicyLifecycleStateEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CompliancePolicyLifecycleStateEnum Enum with underlying type: string -type CompliancePolicyLifecycleStateEnum string - -// Set of constants representing the allowable values for CompliancePolicyLifecycleStateEnum -const ( - CompliancePolicyLifecycleStateCreating CompliancePolicyLifecycleStateEnum = "CREATING" - CompliancePolicyLifecycleStateUpdating CompliancePolicyLifecycleStateEnum = "UPDATING" - CompliancePolicyLifecycleStateActive CompliancePolicyLifecycleStateEnum = "ACTIVE" - CompliancePolicyLifecycleStateDeleting CompliancePolicyLifecycleStateEnum = "DELETING" - CompliancePolicyLifecycleStateDeleted CompliancePolicyLifecycleStateEnum = "DELETED" - CompliancePolicyLifecycleStateFailed CompliancePolicyLifecycleStateEnum = "FAILED" -) - -var mappingCompliancePolicyLifecycleStateEnum = map[string]CompliancePolicyLifecycleStateEnum{ - "CREATING": CompliancePolicyLifecycleStateCreating, - "UPDATING": CompliancePolicyLifecycleStateUpdating, - "ACTIVE": CompliancePolicyLifecycleStateActive, - "DELETING": CompliancePolicyLifecycleStateDeleting, - "DELETED": CompliancePolicyLifecycleStateDeleted, - "FAILED": CompliancePolicyLifecycleStateFailed, -} - -var mappingCompliancePolicyLifecycleStateEnumLowerCase = map[string]CompliancePolicyLifecycleStateEnum{ - "creating": CompliancePolicyLifecycleStateCreating, - "updating": CompliancePolicyLifecycleStateUpdating, - "active": CompliancePolicyLifecycleStateActive, - "deleting": CompliancePolicyLifecycleStateDeleting, - "deleted": CompliancePolicyLifecycleStateDeleted, - "failed": CompliancePolicyLifecycleStateFailed, -} - -// GetCompliancePolicyLifecycleStateEnumValues Enumerates the set of values for CompliancePolicyLifecycleStateEnum -func GetCompliancePolicyLifecycleStateEnumValues() []CompliancePolicyLifecycleStateEnum { - values := make([]CompliancePolicyLifecycleStateEnum, 0) - for _, v := range mappingCompliancePolicyLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetCompliancePolicyLifecycleStateEnumStringValues Enumerates the set of values in String for CompliancePolicyLifecycleStateEnum -func GetCompliancePolicyLifecycleStateEnumStringValues() []string { - return []string{ - "CREATING", - "UPDATING", - "ACTIVE", - "DELETING", - "DELETED", - "FAILED", - } -} - -// GetMappingCompliancePolicyLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingCompliancePolicyLifecycleStateEnum(val string) (CompliancePolicyLifecycleStateEnum, bool) { - enum, ok := mappingCompliancePolicyLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_collection.go deleted file mode 100644 index 4db1af267bc..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CompliancePolicyCollection Results of a compliancePolicy search. Contains both CompliancePolicySummary items and other information, such as metadata. -type CompliancePolicyCollection struct { - - // List of compliancePolicys. - Items []CompliancePolicySummary `mandatory:"true" json:"items"` -} - -func (m CompliancePolicyCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CompliancePolicyCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule.go deleted file mode 100644 index 6fb47501588..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule.go +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CompliancePolicyRule Set of rules that are used to calculate the compliance status of the product. -// Specific rules will take precedence over broader rules. -type CompliancePolicyRule struct { - - // Unique OCID of the CompliancePolicyRule. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"true" json:"displayName"` - - // Unique OCID of the CompliancePolicy. - CompliancePolicyId *string `mandatory:"true" json:"compliancePolicyId"` - - ProductVersion *ProductVersionDetails `mandatory:"true" json:"productVersion"` - - // PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. - PatchType []string `mandatory:"true" json:"patchType"` - - PatchSelection PatchSelectionDetails `mandatory:"true" json:"patchSelection"` - - // The OCID of the compartment the CompliancePolicyRule belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current state of the CompliancePolicyRule. - LifecycleState CompliancePolicyRuleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` - - // Severity to which this CompliancePolicyRule applies. - Severity []ComplianceRuleSeverityEnum `mandatory:"false" json:"severity,omitempty"` - - // Grace period in days,weeks,months or years the exemption is applicable for the rule. - // This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. - GracePeriod *string `mandatory:"false" json:"gracePeriod"` - - // The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // A message that describes the current state of the CompliancePolicyRule in more detail. For example, - // can be used to provide actionable information for a resource in the Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m CompliancePolicyRule) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CompliancePolicyRule) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCompliancePolicyRuleLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCompliancePolicyRuleLifecycleStateEnumStringValues(), ","))) - } - - for _, val := range m.Severity { - if _, ok := GetMappingComplianceRuleSeverityEnum(string(val)); !ok && val != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", val, strings.Join(GetComplianceRuleSeverityEnumStringValues(), ","))) - } - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *CompliancePolicyRule) UnmarshalJSON(data []byte) (e error) { - model := struct { - Severity []ComplianceRuleSeverityEnum `json:"severity"` - GracePeriod *string `json:"gracePeriod"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails *string `json:"lifecycleDetails"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - CompliancePolicyId *string `json:"compliancePolicyId"` - ProductVersion *ProductVersionDetails `json:"productVersion"` - PatchType []string `json:"patchType"` - PatchSelection patchselectiondetails `json:"patchSelection"` - CompartmentId *string `json:"compartmentId"` - TimeCreated *common.SDKTime `json:"timeCreated"` - LifecycleState CompliancePolicyRuleLifecycleStateEnum `json:"lifecycleState"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Severity = make([]ComplianceRuleSeverityEnum, len(model.Severity)) - copy(m.Severity, model.Severity) - m.GracePeriod = model.GracePeriod - - m.TimeUpdated = model.TimeUpdated - - m.LifecycleDetails = model.LifecycleDetails - - m.SystemTags = model.SystemTags - - m.Id = model.Id - - m.DisplayName = model.DisplayName - - m.CompliancePolicyId = model.CompliancePolicyId - - m.ProductVersion = model.ProductVersion - - m.PatchType = make([]string, len(model.PatchType)) - copy(m.PatchType, model.PatchType) - nn, e = model.PatchSelection.UnmarshalPolymorphicJSON(model.PatchSelection.JsonData) - if e != nil { - return - } - if nn != nil { - m.PatchSelection = nn.(PatchSelectionDetails) - } else { - m.PatchSelection = nil - } - - m.CompartmentId = model.CompartmentId - - m.TimeCreated = model.TimeCreated - - m.LifecycleState = model.LifecycleState - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - return -} - -// CompliancePolicyRuleLifecycleStateEnum Enum with underlying type: string -type CompliancePolicyRuleLifecycleStateEnum string - -// Set of constants representing the allowable values for CompliancePolicyRuleLifecycleStateEnum -const ( - CompliancePolicyRuleLifecycleStateCreating CompliancePolicyRuleLifecycleStateEnum = "CREATING" - CompliancePolicyRuleLifecycleStateUpdating CompliancePolicyRuleLifecycleStateEnum = "UPDATING" - CompliancePolicyRuleLifecycleStateActive CompliancePolicyRuleLifecycleStateEnum = "ACTIVE" - CompliancePolicyRuleLifecycleStateDeleting CompliancePolicyRuleLifecycleStateEnum = "DELETING" - CompliancePolicyRuleLifecycleStateDeleted CompliancePolicyRuleLifecycleStateEnum = "DELETED" - CompliancePolicyRuleLifecycleStateFailed CompliancePolicyRuleLifecycleStateEnum = "FAILED" -) - -var mappingCompliancePolicyRuleLifecycleStateEnum = map[string]CompliancePolicyRuleLifecycleStateEnum{ - "CREATING": CompliancePolicyRuleLifecycleStateCreating, - "UPDATING": CompliancePolicyRuleLifecycleStateUpdating, - "ACTIVE": CompliancePolicyRuleLifecycleStateActive, - "DELETING": CompliancePolicyRuleLifecycleStateDeleting, - "DELETED": CompliancePolicyRuleLifecycleStateDeleted, - "FAILED": CompliancePolicyRuleLifecycleStateFailed, -} - -var mappingCompliancePolicyRuleLifecycleStateEnumLowerCase = map[string]CompliancePolicyRuleLifecycleStateEnum{ - "creating": CompliancePolicyRuleLifecycleStateCreating, - "updating": CompliancePolicyRuleLifecycleStateUpdating, - "active": CompliancePolicyRuleLifecycleStateActive, - "deleting": CompliancePolicyRuleLifecycleStateDeleting, - "deleted": CompliancePolicyRuleLifecycleStateDeleted, - "failed": CompliancePolicyRuleLifecycleStateFailed, -} - -// GetCompliancePolicyRuleLifecycleStateEnumValues Enumerates the set of values for CompliancePolicyRuleLifecycleStateEnum -func GetCompliancePolicyRuleLifecycleStateEnumValues() []CompliancePolicyRuleLifecycleStateEnum { - values := make([]CompliancePolicyRuleLifecycleStateEnum, 0) - for _, v := range mappingCompliancePolicyRuleLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetCompliancePolicyRuleLifecycleStateEnumStringValues Enumerates the set of values in String for CompliancePolicyRuleLifecycleStateEnum -func GetCompliancePolicyRuleLifecycleStateEnumStringValues() []string { - return []string{ - "CREATING", - "UPDATING", - "ACTIVE", - "DELETING", - "DELETED", - "FAILED", - } -} - -// GetMappingCompliancePolicyRuleLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingCompliancePolicyRuleLifecycleStateEnum(val string) (CompliancePolicyRuleLifecycleStateEnum, bool) { - enum, ok := mappingCompliancePolicyRuleLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule_collection.go deleted file mode 100644 index 7f44b00f252..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CompliancePolicyRuleCollection Results of a compliancePolicyRule search. Contains both CompliancePolicyRuleSummary items and other information, such as metadata. -type CompliancePolicyRuleCollection struct { - - // List of complianePolicyRules. - Items []CompliancePolicyRuleSummary `mandatory:"true" json:"items"` -} - -func (m CompliancePolicyRuleCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CompliancePolicyRuleCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule_summary.go deleted file mode 100644 index b4646926d96..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_rule_summary.go +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CompliancePolicyRuleSummary Summary information about a CompliancePolicyRule. -type CompliancePolicyRuleSummary struct { - - // Unique OCID of the CompliancePolicyRule. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"true" json:"displayName"` - - // Unique OCID of the CompliancePolicy. - CompliancePolicyId *string `mandatory:"true" json:"compliancePolicyId"` - - ProductVersion *ProductVersionDetails `mandatory:"true" json:"productVersion"` - - // PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. - PatchType []string `mandatory:"true" json:"patchType"` - - PatchSelection PatchSelectionDetails `mandatory:"true" json:"patchSelection"` - - // The OCID of the compartment the CompliancePolicyRule belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current state of the CompliancePolicyRule. - LifecycleState CompliancePolicyRuleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Severity to which this CompliancePolicyRule applies. - Severity []ComplianceRuleSeverityEnum `mandatory:"false" json:"severity,omitempty"` - - // Grace period in days,weeks,months or years the exemption is applicable for the rule. - // This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. - GracePeriod *string `mandatory:"false" json:"gracePeriod"` - - // The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // A message that describes the current state of the CompliancePolicyRule in more detail. For example, - // can be used to provide actionable information for a resource in the Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m CompliancePolicyRuleSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CompliancePolicyRuleSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCompliancePolicyRuleLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCompliancePolicyRuleLifecycleStateEnumStringValues(), ","))) - } - - for _, val := range m.Severity { - if _, ok := GetMappingComplianceRuleSeverityEnum(string(val)); !ok && val != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", val, strings.Join(GetComplianceRuleSeverityEnumStringValues(), ","))) - } - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *CompliancePolicyRuleSummary) UnmarshalJSON(data []byte) (e error) { - model := struct { - Severity []ComplianceRuleSeverityEnum `json:"severity"` - GracePeriod *string `json:"gracePeriod"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - CompliancePolicyId *string `json:"compliancePolicyId"` - ProductVersion *ProductVersionDetails `json:"productVersion"` - PatchType []string `json:"patchType"` - PatchSelection patchselectiondetails `json:"patchSelection"` - CompartmentId *string `json:"compartmentId"` - TimeCreated *common.SDKTime `json:"timeCreated"` - LifecycleState CompliancePolicyRuleLifecycleStateEnum `json:"lifecycleState"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Severity = make([]ComplianceRuleSeverityEnum, len(model.Severity)) - copy(m.Severity, model.Severity) - m.GracePeriod = model.GracePeriod - - m.TimeUpdated = model.TimeUpdated - - m.LifecycleDetails = model.LifecycleDetails - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - m.Id = model.Id - - m.DisplayName = model.DisplayName - - m.CompliancePolicyId = model.CompliancePolicyId - - m.ProductVersion = model.ProductVersion - - m.PatchType = make([]string, len(model.PatchType)) - copy(m.PatchType, model.PatchType) - nn, e = model.PatchSelection.UnmarshalPolymorphicJSON(model.PatchSelection.JsonData) - if e != nil { - return - } - if nn != nil { - m.PatchSelection = nn.(PatchSelectionDetails) - } else { - m.PatchSelection = nil - } - - m.CompartmentId = model.CompartmentId - - m.TimeCreated = model.TimeCreated - - m.LifecycleState = model.LifecycleState - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_summary.go deleted file mode 100644 index f0f2857a826..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_policy_summary.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CompliancePolicySummary Summary information about a CompliancePolicy. -type CompliancePolicySummary struct { - - // The OCID of the CompliancePolicy. - Id *string `mandatory:"true" json:"id"` - - // Display name for the CompliancePolicy. - DisplayName *string `mandatory:"true" json:"displayName"` - - // platformConfiguration OCID corresponding to the Product. - ProductId *string `mandatory:"true" json:"productId"` - - // The OCID of the compartment the CompliancePolicy belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The date and time the CompliancePolicy was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current state of the CompliancePolicy. - LifecycleState CompliancePolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` - - // The date and time the CompliancePolicy was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // A message that describes the current state of the CompliancePolicy in more detail. For example, - // can be used to provide actionable information for a resource in the Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m CompliancePolicySummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CompliancePolicySummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCompliancePolicyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCompliancePolicyLifecycleStateEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record.go deleted file mode 100644 index d64242d6029..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record.go +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceRecord The compliance status reports. -type ComplianceRecord struct { - - // The OCID of the ComplianceRecord. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the entity for which the compliance is calculated.Ex.FleetId - EntityId *string `mandatory:"true" json:"entityId"` - - // The displayName of the entity for which the compliance is calculated.Ex.DisplayName for the Fleet - EntityDisplayName *string `mandatory:"true" json:"entityDisplayName"` - - Resource *ComplianceDetailResource `mandatory:"true" json:"resource"` - - Target *ComplianceDetailTarget `mandatory:"true" json:"target"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - Policy *ComplianceDetailPolicy `mandatory:"false" json:"policy"` - - Patch *CompliancePatchDetail `mandatory:"false" json:"patch"` - - // Last known compliance state of target. - ComplianceState ComplianceStateEnum `mandatory:"false" json:"complianceState,omitempty"` - - // The date and time the ComplianceRecord was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The date and time the ComplianceRecord was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // The current state of the ComplianceRecord. - LifecycleState ComplianceRecordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m ComplianceRecord) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceRecord) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingComplianceStateEnum(string(m.ComplianceState)); !ok && m.ComplianceState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComplianceState: %s. Supported values are: %s.", m.ComplianceState, strings.Join(GetComplianceStateEnumStringValues(), ","))) - } - if _, ok := GetMappingComplianceRecordLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetComplianceRecordLifecycleStateEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ComplianceRecordLifecycleStateEnum Enum with underlying type: string -type ComplianceRecordLifecycleStateEnum string - -// Set of constants representing the allowable values for ComplianceRecordLifecycleStateEnum -const ( - ComplianceRecordLifecycleStateActive ComplianceRecordLifecycleStateEnum = "ACTIVE" - ComplianceRecordLifecycleStateDeleted ComplianceRecordLifecycleStateEnum = "DELETED" - ComplianceRecordLifecycleStateFailed ComplianceRecordLifecycleStateEnum = "FAILED" -) - -var mappingComplianceRecordLifecycleStateEnum = map[string]ComplianceRecordLifecycleStateEnum{ - "ACTIVE": ComplianceRecordLifecycleStateActive, - "DELETED": ComplianceRecordLifecycleStateDeleted, - "FAILED": ComplianceRecordLifecycleStateFailed, -} - -var mappingComplianceRecordLifecycleStateEnumLowerCase = map[string]ComplianceRecordLifecycleStateEnum{ - "active": ComplianceRecordLifecycleStateActive, - "deleted": ComplianceRecordLifecycleStateDeleted, - "failed": ComplianceRecordLifecycleStateFailed, -} - -// GetComplianceRecordLifecycleStateEnumValues Enumerates the set of values for ComplianceRecordLifecycleStateEnum -func GetComplianceRecordLifecycleStateEnumValues() []ComplianceRecordLifecycleStateEnum { - values := make([]ComplianceRecordLifecycleStateEnum, 0) - for _, v := range mappingComplianceRecordLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetComplianceRecordLifecycleStateEnumStringValues Enumerates the set of values in String for ComplianceRecordLifecycleStateEnum -func GetComplianceRecordLifecycleStateEnumStringValues() []string { - return []string{ - "ACTIVE", - "DELETED", - "FAILED", - } -} - -// GetMappingComplianceRecordLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingComplianceRecordLifecycleStateEnum(val string) (ComplianceRecordLifecycleStateEnum, bool) { - enum, ok := mappingComplianceRecordLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_aggregation.go deleted file mode 100644 index aa5768137d6..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_aggregation.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceRecordAggregation Aggregated summary information for ComplianceRecord -type ComplianceRecordAggregation struct { - - // count of ComplianceRecord in a Tenancy. - Count *int `mandatory:"true" json:"count"` - - Dimensions *ComplianceRecordDimension `mandatory:"true" json:"dimensions"` -} - -func (m ComplianceRecordAggregation) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceRecordAggregation) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_aggregation_collection.go deleted file mode 100644 index a43c1fc24c7..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_aggregation_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceRecordAggregationCollection An array of ComplianceRecord objects -type ComplianceRecordAggregationCollection struct { - - // List of ComplianceRecordAggregation objects. - Items []ComplianceRecordAggregation `mandatory:"true" json:"items"` -} - -func (m ComplianceRecordAggregationCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceRecordAggregationCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_collection.go deleted file mode 100644 index 60999a9006c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceRecordCollection Results of a compliancePolicy search. Contains both CompliancePolicySummary items and other information, such as metadata. -type ComplianceRecordCollection struct { - - // List of compliancePolicys. - Items []ComplianceRecordSummary `mandatory:"true" json:"items"` -} - -func (m ComplianceRecordCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceRecordCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_dimension.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_dimension.go deleted file mode 100644 index 64a583cdd3b..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_dimension.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceRecordDimension Aggregated summary information for ComplianceRecord -type ComplianceRecordDimension struct { - - // Last known compliance state. - ComplianceState ComplianceStateEnum `mandatory:"true" json:"complianceState"` - - // Level at which the compliance is calculated. - ComplianceLevel ComplianceLevelEnum `mandatory:"true" json:"complianceLevel"` -} - -func (m ComplianceRecordDimension) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceRecordDimension) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingComplianceStateEnum(string(m.ComplianceState)); !ok && m.ComplianceState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComplianceState: %s. Supported values are: %s.", m.ComplianceState, strings.Join(GetComplianceStateEnumStringValues(), ","))) - } - if _, ok := GetMappingComplianceLevelEnum(string(m.ComplianceLevel)); !ok && m.ComplianceLevel != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComplianceLevel: %s. Supported values are: %s.", m.ComplianceLevel, strings.Join(GetComplianceLevelEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_summary.go deleted file mode 100644 index d1456a42272..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_record_summary.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ComplianceRecordSummary Summary information about a ComplianceDetail. -type ComplianceRecordSummary struct { - - // The OCID of the ComplianceRecord. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the entity for which the compliance is calculated.Ex.FleetId - EntityId *string `mandatory:"true" json:"entityId"` - - // The displayName of the entity for which the compliance is calculated.Ex.DisplayName for the Fleet - EntityDisplayName *string `mandatory:"true" json:"entityDisplayName"` - - Resource *ComplianceDetailResource `mandatory:"true" json:"resource"` - - Target *ComplianceDetailTarget `mandatory:"true" json:"target"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - Policy *ComplianceDetailPolicy `mandatory:"false" json:"policy"` - - Patch *CompliancePatchDetail `mandatory:"false" json:"patch"` - - // Last known compliance state of target. - ComplianceState ComplianceStateEnum `mandatory:"false" json:"complianceState,omitempty"` - - // The date and time the ComplianceRecord was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The date and time the ComplianceRecord was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // The current state of the ComplianceRecord. - LifecycleState ComplianceRecordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m ComplianceRecordSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ComplianceRecordSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingComplianceStateEnum(string(m.ComplianceState)); !ok && m.ComplianceState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComplianceState: %s. Supported values are: %s.", m.ComplianceState, strings.Join(GetComplianceStateEnumStringValues(), ","))) - } - if _, ok := GetMappingComplianceRecordLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetComplianceRecordLifecycleStateEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report.go index cbbbac061b0..c56189ff0de 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// ComplianceReport Compliance details for a fleet in Fleet Application Management. +// ComplianceReport Summary of a compliance report. type ComplianceReport struct { // Compliance Report Identifier @@ -24,10 +25,10 @@ type ComplianceReport struct { // The fleet OCID. FleetId *string `mandatory:"true" json:"fleetId"` - // The last known compliance state of the fleet. + // Last known compliance state of fleet. ComplianceState ComplianceStateEnum `mandatory:"true" json:"complianceState"` - // Resources associated with the Fleet. + // Resources assocaited with the Fleet. Resources []ComplianceReportResource `mandatory:"false" json:"resources"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_patch_detail.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_patch_detail.go index 968a1b3d5c3..b97f7821fa9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_patch_detail.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_patch_detail.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,22 +16,22 @@ import ( "strings" ) -// ComplianceReportPatchDetail Details of the Patch. +// ComplianceReportPatchDetail Details of the Patch type ComplianceReportPatchDetail struct { - // Patch name. + // The OCID to identify this analysis results. PatchName *string `mandatory:"true" json:"patchName"` // Type of patch. PatchType *string `mandatory:"true" json:"patchType"` - // Patch description. + // The OCID of the work request to start the analysis. PatchDescription *string `mandatory:"false" json:"patchDescription"` - // Time the patch was applied. + // Time the patch was applied TimeApplied *common.SDKTime `mandatory:"false" json:"timeApplied"` - // The date on which patch was released. + // Date on which patch was released. TimeReleased *common.SDKTime `mandatory:"false" json:"timeReleased"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_product.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_product.go index ae074f8dcd9..09110bdff61 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_product.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_product.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// ComplianceReportProduct Details of the Product. +// ComplianceReportProduct Details of the Product type ComplianceReportProduct struct { - // Product Name. + // Product Name ProductName *string `mandatory:"true" json:"productName"` // Managed Targets associated with the Product. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_resource.go index 1b7b05fd9dc..0acb4feff25 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_resource.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -27,7 +28,7 @@ type ComplianceReportResource struct { // Type of the resource. ResourceType *string `mandatory:"true" json:"resourceType"` - // The last known compliance state of the fleet. + // Last known compliance state of fleet. ComplianceState ComplianceStateEnum `mandatory:"true" json:"complianceState"` // TenancyId of the resource. @@ -39,11 +40,10 @@ type ComplianceReportResource struct { // Compartment the resource belongs to. Compartment *string `mandatory:"false" json:"compartment"` - // The region the resource belongs to. + // Region the resource belongs to. ResourceRegion *string `mandatory:"false" json:"resourceRegion"` - // Products associated with the Fleet. - // Only the products belonging to managed targets will be shown. + // Products assocaited with the Fleet.Only products belonging to managed targets will be shown. Products []ComplianceReportProduct `mandatory:"false" json:"products"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_target.go index 35a52049c9f..750f79a0bb1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_report_target.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,19 +16,19 @@ import ( "strings" ) -// ComplianceReportTarget Details of the target and patches. +// ComplianceReportTarget Details of the Patch. type ComplianceReportTarget struct { - // Target Identifier.Can be the target name if a separate ID is not available. + // Target Identifier. TargetId *string `mandatory:"true" json:"targetId"` // Target Name. TargetName *string `mandatory:"true" json:"targetName"` - // The last known compliance state of the target. + // Last known compliance state of target. ComplianceState ComplianceStateEnum `mandatory:"true" json:"complianceState"` - // Current version of the target. + // Current version. Version *string `mandatory:"false" json:"version"` // Installed Patches for the Target. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_rule_severity.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_rule_severity.go deleted file mode 100644 index 078817ac445..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_rule_severity.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "strings" -) - -// ComplianceRuleSeverityEnum Enum with underlying type: string -type ComplianceRuleSeverityEnum string - -// Set of constants representing the allowable values for ComplianceRuleSeverityEnum -const ( - ComplianceRuleSeverityCritical ComplianceRuleSeverityEnum = "CRITICAL" - ComplianceRuleSeverityHigh ComplianceRuleSeverityEnum = "HIGH" - ComplianceRuleSeverityMedium ComplianceRuleSeverityEnum = "MEDIUM" - ComplianceRuleSeverityLow ComplianceRuleSeverityEnum = "LOW" -) - -var mappingComplianceRuleSeverityEnum = map[string]ComplianceRuleSeverityEnum{ - "CRITICAL": ComplianceRuleSeverityCritical, - "HIGH": ComplianceRuleSeverityHigh, - "MEDIUM": ComplianceRuleSeverityMedium, - "LOW": ComplianceRuleSeverityLow, -} - -var mappingComplianceRuleSeverityEnumLowerCase = map[string]ComplianceRuleSeverityEnum{ - "critical": ComplianceRuleSeverityCritical, - "high": ComplianceRuleSeverityHigh, - "medium": ComplianceRuleSeverityMedium, - "low": ComplianceRuleSeverityLow, -} - -// GetComplianceRuleSeverityEnumValues Enumerates the set of values for ComplianceRuleSeverityEnum -func GetComplianceRuleSeverityEnumValues() []ComplianceRuleSeverityEnum { - values := make([]ComplianceRuleSeverityEnum, 0) - for _, v := range mappingComplianceRuleSeverityEnum { - values = append(values, v) - } - return values -} - -// GetComplianceRuleSeverityEnumStringValues Enumerates the set of values in String for ComplianceRuleSeverityEnum -func GetComplianceRuleSeverityEnumStringValues() []string { - return []string{ - "CRITICAL", - "HIGH", - "MEDIUM", - "LOW", - } -} - -// GetMappingComplianceRuleSeverityEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingComplianceRuleSeverityEnum(val string) (ComplianceRuleSeverityEnum, bool) { - enum, ok := mappingComplianceRuleSeverityEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_state.go index 8e4b18de388..4a3bb43bc17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/compliance_state.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/component_properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/component_properties.go index 4d35f50e20a..acc443e930a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/component_properties.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/component_properties.go @@ -4,36 +4,29 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement import ( - "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" ) -// ComponentProperties The properties of the component. +// ComponentProperties The properties of the task. type ComponentProperties struct { - // The action to be taken in case of a failure. + // The action to be taken in case of task failure. ActionOnFailure ComponentPropertiesActionOnFailureEnum `mandatory:"true" json:"actionOnFailure"` - // The runOn condition for the task/group/container. - // Build task execution conditions if applicable to product and product-specific components. - // This condition is relevant when handling product stack workflows. - // Example: target.product.name = Oracle WebLogic Server OR target.product.name = Oracle HTTP Server + // The hosts to execute on. RunOn *string `mandatory:"false" json:"runOn"` - // Build control flow conditions that determine the relevance of the task execution. + // The condition in which the task is to be executed. Condition *string `mandatory:"false" json:"condition"` - - PauseDetails PauseDetails `mandatory:"false" json:"pauseDetails"` - - NotificationPreferences *TaskNotificationPreferences `mandatory:"false" json:"notificationPreferences"` } func (m ComponentProperties) String() string { @@ -55,42 +48,6 @@ func (m ComponentProperties) ValidateEnumValue() (bool, error) { return false, nil } -// UnmarshalJSON unmarshals from json -func (m *ComponentProperties) UnmarshalJSON(data []byte) (e error) { - model := struct { - RunOn *string `json:"runOn"` - Condition *string `json:"condition"` - PauseDetails pausedetails `json:"pauseDetails"` - NotificationPreferences *TaskNotificationPreferences `json:"notificationPreferences"` - ActionOnFailure ComponentPropertiesActionOnFailureEnum `json:"actionOnFailure"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.RunOn = model.RunOn - - m.Condition = model.Condition - - nn, e = model.PauseDetails.UnmarshalPolymorphicJSON(model.PauseDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.PauseDetails = nn.(PauseDetails) - } else { - m.PauseDetails = nil - } - - m.NotificationPreferences = model.NotificationPreferences - - m.ActionOnFailure = model.ActionOnFailure - - return -} - // ComponentPropertiesActionOnFailureEnum Enum with underlying type: string type ComponentPropertiesActionOnFailureEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/condition.go index 3813b0219b4..4f3bb1a9d6d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/condition.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -18,16 +19,13 @@ import ( // Condition Rule condition type Condition struct { - // Attribute Group. Provide a Tag namespace if the rule is based on a tag. - // Provide resource type if the rule is based on a resource property. + // Attribute Group. AttrGroup *string `mandatory:"true" json:"attrGroup"` - // Attribute Key.Provide Tag key if the rule is based on a tag. - // Provide resource property name if the rule is based on a resource property. + // Attribute Key. AttrKey *string `mandatory:"true" json:"attrKey"` - // Attribute Value.Provide Tag value if the rule is based on a tag. - // Provide resource property value if the rule is based on a resource property. + // Attribute Value. AttrValue *string `mandatory:"true" json:"attrValue"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/config_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/config_category_details.go deleted file mode 100644 index b1580d276ed..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/config_category_details.go +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ConfigCategoryDetails Config Category Details. -type ConfigCategoryDetails interface { -} - -type configcategorydetails struct { - JsonData []byte - ConfigCategory string `json:"configCategory"` -} - -// UnmarshalJSON unmarshals json -func (m *configcategorydetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerconfigcategorydetails configcategorydetails - s := struct { - Model Unmarshalerconfigcategorydetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.ConfigCategory = s.Model.ConfigCategory - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *configcategorydetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.ConfigCategory { - case "PRODUCT_STACK": - mm := ProductStackConfigCategoryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "ENVIRONMENT": - mm := EnvironmentConfigCategoryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "CREDENTIAL": - mm := CredentialConfigCategoryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "PATCH_TYPE": - mm := PatchTypeConfigCategoryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "PRODUCT": - mm := ProductConfigCategoryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for ConfigCategoryDetails: %s.", m.ConfigCategory) - return *m, nil - } -} - -func (m configcategorydetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m configcategorydetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ConfigCategoryDetailsConfigCategoryEnum Enum with underlying type: string -type ConfigCategoryDetailsConfigCategoryEnum string - -// Set of constants representing the allowable values for ConfigCategoryDetailsConfigCategoryEnum -const ( - ConfigCategoryDetailsConfigCategoryProduct ConfigCategoryDetailsConfigCategoryEnum = "PRODUCT" - ConfigCategoryDetailsConfigCategoryProductStack ConfigCategoryDetailsConfigCategoryEnum = "PRODUCT_STACK" - ConfigCategoryDetailsConfigCategoryEnvironment ConfigCategoryDetailsConfigCategoryEnum = "ENVIRONMENT" - ConfigCategoryDetailsConfigCategoryPatchType ConfigCategoryDetailsConfigCategoryEnum = "PATCH_TYPE" - ConfigCategoryDetailsConfigCategoryCredential ConfigCategoryDetailsConfigCategoryEnum = "CREDENTIAL" -) - -var mappingConfigCategoryDetailsConfigCategoryEnum = map[string]ConfigCategoryDetailsConfigCategoryEnum{ - "PRODUCT": ConfigCategoryDetailsConfigCategoryProduct, - "PRODUCT_STACK": ConfigCategoryDetailsConfigCategoryProductStack, - "ENVIRONMENT": ConfigCategoryDetailsConfigCategoryEnvironment, - "PATCH_TYPE": ConfigCategoryDetailsConfigCategoryPatchType, - "CREDENTIAL": ConfigCategoryDetailsConfigCategoryCredential, -} - -var mappingConfigCategoryDetailsConfigCategoryEnumLowerCase = map[string]ConfigCategoryDetailsConfigCategoryEnum{ - "product": ConfigCategoryDetailsConfigCategoryProduct, - "product_stack": ConfigCategoryDetailsConfigCategoryProductStack, - "environment": ConfigCategoryDetailsConfigCategoryEnvironment, - "patch_type": ConfigCategoryDetailsConfigCategoryPatchType, - "credential": ConfigCategoryDetailsConfigCategoryCredential, -} - -// GetConfigCategoryDetailsConfigCategoryEnumValues Enumerates the set of values for ConfigCategoryDetailsConfigCategoryEnum -func GetConfigCategoryDetailsConfigCategoryEnumValues() []ConfigCategoryDetailsConfigCategoryEnum { - values := make([]ConfigCategoryDetailsConfigCategoryEnum, 0) - for _, v := range mappingConfigCategoryDetailsConfigCategoryEnum { - values = append(values, v) - } - return values -} - -// GetConfigCategoryDetailsConfigCategoryEnumStringValues Enumerates the set of values in String for ConfigCategoryDetailsConfigCategoryEnum -func GetConfigCategoryDetailsConfigCategoryEnumStringValues() []string { - return []string{ - "PRODUCT", - "PRODUCT_STACK", - "ENVIRONMENT", - "PATCH_TYPE", - "CREDENTIAL", - } -} - -// GetMappingConfigCategoryDetailsConfigCategoryEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingConfigCategoryDetailsConfigCategoryEnum(val string) (ConfigCategoryDetailsConfigCategoryEnum, bool) { - enum, ok := mappingConfigCategoryDetailsConfigCategoryEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_details.go index 6a96d114531..3dc7cda7da5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// ConfirmTargetsDetails Details of the targets to be confirmed for Fleet Application Management. +// ConfirmTargetsDetails Details of the targets that needs to be confirmed for FAMS management type ConfirmTargetsDetails struct { // The targets to confirm. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_request_response.go index 9bee60eaf81..5c1ffad2110 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/confirm_targets_request_response.go @@ -21,7 +21,7 @@ type ConfirmTargetsRequest struct { // Details for confirming Targets. ConfirmTargetsDetails `contributesTo:"body"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/content_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/content_details.go index 6acc4f8c5c5..a569a523d0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/content_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/content_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,7 @@ import ( "strings" ) -// ContentDetails Content Source details. +// ContentDetails Content Source Details. type ContentDetails interface { } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_compliance_policy_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_compliance_policy_rule_details.go deleted file mode 100644 index 808928bbf3b..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_compliance_policy_rule_details.go +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateCompliancePolicyRuleDetails The data to create a CompliancePolicyRule. -type CreateCompliancePolicyRuleDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"true" json:"displayName"` - - ProductVersion *ProductVersionDetails `mandatory:"true" json:"productVersion"` - - // PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. - PatchType []string `mandatory:"true" json:"patchType"` - - PatchSelection PatchSelectionDetails `mandatory:"true" json:"patchSelection"` - - // The OCID of the compartment the CompliancePolicyRule belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to. - CompliancePolicyId *string `mandatory:"false" json:"compliancePolicyId"` - - // Severity to which this CompliancePolicyRule applies. - Severity []ComplianceRuleSeverityEnum `mandatory:"false" json:"severity,omitempty"` - - // Grace period in days,weeks,months or years the exemption is applicable for the rule. - // This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. - GracePeriod *string `mandatory:"false" json:"gracePeriod"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateCompliancePolicyRuleDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateCompliancePolicyRuleDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - for _, val := range m.Severity { - if _, ok := GetMappingComplianceRuleSeverityEnum(string(val)); !ok && val != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", val, strings.Join(GetComplianceRuleSeverityEnumStringValues(), ","))) - } - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *CreateCompliancePolicyRuleDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - CompliancePolicyId *string `json:"compliancePolicyId"` - Severity []ComplianceRuleSeverityEnum `json:"severity"` - GracePeriod *string `json:"gracePeriod"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - ProductVersion *ProductVersionDetails `json:"productVersion"` - PatchType []string `json:"patchType"` - PatchSelection patchselectiondetails `json:"patchSelection"` - CompartmentId *string `json:"compartmentId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.CompliancePolicyId = model.CompliancePolicyId - - m.Severity = make([]ComplianceRuleSeverityEnum, len(model.Severity)) - copy(m.Severity, model.Severity) - m.GracePeriod = model.GracePeriod - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.ProductVersion = model.ProductVersion - - m.PatchType = make([]string, len(model.PatchType)) - copy(m.PatchType, model.PatchType) - nn, e = model.PatchSelection.UnmarshalPolymorphicJSON(model.PatchSelection.JsonData) - if e != nil { - return - } - if nn != nil { - m.PatchSelection = nn.(PatchSelectionDetails) - } else { - m.PatchSelection = nil - } - - m.CompartmentId = model.CompartmentId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_compliance_policy_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_compliance_policy_rule_request_response.go deleted file mode 100644 index cd4df54716a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_compliance_policy_rule_request_response.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateCompliancePolicyRuleRequest wrapper for the CreateCompliancePolicyRule operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreateCompliancePolicyRule.go.html to see an example of how to use CreateCompliancePolicyRuleRequest. -type CreateCompliancePolicyRuleRequest struct { - - // Details for the new CompliancePolicyRule. - CreateCompliancePolicyRuleDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateCompliancePolicyRuleRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateCompliancePolicyRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateCompliancePolicyRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateCompliancePolicyRuleRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateCompliancePolicyRuleRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateCompliancePolicyRuleResponse wrapper for the CreateCompliancePolicyRule operation -type CreateCompliancePolicyRuleResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CompliancePolicyRule instance - CompliancePolicyRule `presentIn:"body"` - - // URL for the created CompliancePolicyRule. The CompliancePolicyRule OCID is generated after this request is sent. - Location *string `presentIn:"header" name:"location"` - - // Same as location. - ContentLocation *string `presentIn:"header" name:"content-location"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateCompliancePolicyRuleResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateCompliancePolicyRuleResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_details.go index 3879c79db57..f092efdd349 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_request_response.go index 5a52fc4198d..6af78f11dca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_credential_request_response.go @@ -21,7 +21,7 @@ type CreateFleetCredentialRequest struct { // Details for the new FleetCredential. CreateFleetCredentialDetails `contributesTo:"body"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_details.go index c22dd4504bc..983948f4ce5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -21,11 +22,7 @@ type CreateFleetDetails struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Type of the Fleet. - // PRODUCT - A fleet of product-specific resources for a product type. - // ENVIRONMENT - A fleet of environment-specific resources for a product stack. - // GROUP - A fleet of a fleet of either environment or product fleets. - // GENERIC - A fleet of resources selected dynamically or manually for reporting purposes + // Type of the Fleet FleetType FleetFleetTypeEnum `mandatory:"true" json:"fleetType"` // A user-friendly name. Does not have to be unique, and it's changeable. @@ -37,36 +34,29 @@ type CreateFleetDetails struct { // Avoid entering confidential information. Description *string `mandatory:"false" json:"description"` - // Products associated with the Fleet. + // Products associated with the Fleet Products []string `mandatory:"false" json:"products"` - // Product stack associated with the Fleet. - // Applicable for ENVIRONMENT fleet types. + // Application Type associated with the Fleet.Applicable for Environment fleet types. ApplicationType *string `mandatory:"false" json:"applicationType"` - // Environment Type associated with the Fleet. - // Applicable for ENVIRONMENT fleet types. + // Environment Type associated with the Fleet.Applicable for Environment fleet types. EnvironmentType *string `mandatory:"false" json:"environmentType"` - // Group Type associated with Group Fleet. + // Group Type associated with Group Fleet.Applicable for Group fleet types. GroupType FleetGroupTypeEnum `mandatory:"false" json:"groupType,omitempty"` - // Type of resource selection in a Fleet. - // Select resources manually or select resources based on rules. + // Type of resource selection in a fleet ResourceSelectionType FleetResourceSelectionTypeEnum `mandatory:"false" json:"resourceSelectionType,omitempty"` RuleSelectionCriteria *SelectionCriteria `mandatory:"false" json:"ruleSelectionCriteria"` NotificationPreferences *NotificationPreferences `mandatory:"false" json:"notificationPreferences"` - // Resources associated with the Fleet if resourceSelectionType is MANUAL. + // Resources to be added during fleet creation when Resource selection type is Manual. Resources []AssociatedFleetResourceDetails `mandatory:"false" json:"resources"` - // Credentials associated with the Fleet. - Credentials []AssociatedFleetCredentialDetails `mandatory:"false" json:"credentials"` - - // A value that represents if auto-confirming of the targets can be enabled. - // This will allow targets to be auto-confirmed in the fleet without manual intervention. + // A value which represents if auto confirming of the targets can be enabled IsTargetAutoConfirm *bool `mandatory:"false" json:"isTargetAutoConfirm"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_details.go index 25753e2d649..fcd5133703e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,16 +16,16 @@ import ( "strings" ) -// CreateFleetPropertyDetails The information about new Property to manage fleet metadata details. +// CreateFleetPropertyDetails The information about new FleetProperty. type CreateFleetPropertyDetails struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Value of the Property. + // Value of the Property Value *string `mandatory:"true" json:"value"` - // OCID referring to global level metadata property. + // Property Id. PropertyId *string `mandatory:"true" json:"propertyId"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_request_response.go index 217eda5e618..a51d14bbd10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_property_request_response.go @@ -21,7 +21,7 @@ type CreateFleetPropertyRequest struct { // Details for the new FleetProperty. CreateFleetPropertyDetails `contributesTo:"body"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_details.go index d607a9e8208..116e587e9a0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// CreateFleetResourceDetails The information about the resource to be added to the fleet. +// CreateFleetResourceDetails The information about new FleetResource. type CreateFleetResourceDetails struct { // The OCID of the resource. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_request_response.go index 09aad9e67a4..8bdaaca021c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_fleet_resource_request_response.go @@ -21,7 +21,7 @@ type CreateFleetResourceRequest struct { // Details for the new FleetResource. CreateFleetResourceDetails `contributesTo:"body"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_maintenance_window_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_maintenance_window_details.go index 4b335538c9f..83f7717dfae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_maintenance_window_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_maintenance_window_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,14 +16,13 @@ import ( "strings" ) -// CreateMaintenanceWindowDetails The information about the new MaintenanceWindow. +// CreateMaintenanceWindowDetails The information about new MaintenanceWindow. type CreateMaintenanceWindowDetails struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Duration of the maintenance window. - // Specify how long the maintenance window remains open. + // Duration if schedule type is Custom Duration *string `mandatory:"true" json:"duration"` // A user-friendly name. Does not have to be unique, and it's changeable. @@ -35,24 +35,21 @@ type CreateMaintenanceWindowDetails struct { Description *string `mandatory:"false" json:"description"` // Does the maintenenace window cause outage? - // An outage indicates whether a maintenance window can consider operations that require downtime. - // It means a period when the application is not accessible. IsOutage *bool `mandatory:"false" json:"isOutage"` // Type of maintenenace window MaintenanceWindowType MaintenanceWindowTypeEnum `mandatory:"false" json:"maintenanceWindowType,omitempty"` - // Specify the date and time of the day that the maintenance window starts. + // Start time of schedule TimeScheduleStart *common.SDKTime `mandatory:"false" json:"timeScheduleStart"` - // Is this a recurring maintenance window? + // Is this is a recurring maintenance window IsRecurring *bool `mandatory:"false" json:"isRecurring"` - // Recurrence rule specification if maintenance window recurring. - // Specify the frequency of running the maintenance window. + // Recurrence rule specification if recurring Recurrences *string `mandatory:"false" json:"recurrences"` - // Task initiation cutoff time for the maintenance window. + // Task initiation cutoff TaskInitiationCutoff *int `mandatory:"false" json:"taskInitiationCutoff"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_details.go index 6ed5157ce56..ad71dbc07a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -21,12 +22,10 @@ type CreateOnboardingDetails struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // A value determining if the Fleet Application Management tagging is enabled or not. - // Allow Fleet Application Management to tag resources with fleet name using "Oracle$FAMS-Tags.FleetName" tag. + // A value determining FAMS tag is enabled or not IsFamsTagEnabled *bool `mandatory:"false" json:"isFamsTagEnabled"` - // A value determining if the cost tracking tag is enabled or not. - // Allow Fleet Application Management to tag resources with cost tracking tag using "Oracle$FAMS-Tags.FAMSManaged" tag. + // A value determining if cost tracking tag is enabled or not IsCostTrackingTagEnabled *bool `mandatory:"false" json:"isCostTrackingTagEnabled"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_request_response.go index 0d02c68c455..58826983758 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_onboarding_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreateOnboarding.go.html to see an example of how to use CreateOnboardingRequest. type CreateOnboardingRequest struct { - // Details for onboarding Fleet Application Management. + // Details for onboarding FAMS. CreateOnboardingDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_patch_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_patch_details.go deleted file mode 100644 index d560a2e2a1c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_patch_details.go +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreatePatchDetails The information about new Patch. -type CreatePatchDetails struct { - - // A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. - // Avoid entering confidential information. - Name *string `mandatory:"true" json:"name"` - - PatchType *PatchType `mandatory:"true" json:"patchType"` - - // Patch Severity. - Severity PatchSeverityEnum `mandatory:"true" json:"severity"` - - // Date when the patch was released. - TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` - - ArtifactDetails ArtifactDetails `mandatory:"true" json:"artifactDetails"` - - Product *PatchProduct `mandatory:"true" json:"product"` - - // OCID of the compartment to which the resource belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // Dependent Patches for this patch. - DependentPatches []DependentPatchDetails `mandatory:"false" json:"dependentPatches"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreatePatchDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreatePatchDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPatchSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetPatchSeverityEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *CreatePatchDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - Description *string `json:"description"` - DependentPatches []DependentPatchDetails `json:"dependentPatches"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - Name *string `json:"name"` - PatchType *PatchType `json:"patchType"` - Severity PatchSeverityEnum `json:"severity"` - TimeReleased *common.SDKTime `json:"timeReleased"` - ArtifactDetails artifactdetails `json:"artifactDetails"` - Product *PatchProduct `json:"product"` - CompartmentId *string `json:"compartmentId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Description = model.Description - - m.DependentPatches = make([]DependentPatchDetails, len(model.DependentPatches)) - copy(m.DependentPatches, model.DependentPatches) - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.Name = model.Name - - m.PatchType = model.PatchType - - m.Severity = model.Severity - - m.TimeReleased = model.TimeReleased - - nn, e = model.ArtifactDetails.UnmarshalPolymorphicJSON(model.ArtifactDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ArtifactDetails = nn.(ArtifactDetails) - } else { - m.ArtifactDetails = nil - } - - m.Product = model.Product - - m.CompartmentId = model.CompartmentId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_patch_request_response.go deleted file mode 100644 index 837267fe37e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_patch_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreatePatchRequest wrapper for the CreatePatch operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreatePatch.go.html to see an example of how to use CreatePatchRequest. -type CreatePatchRequest struct { - - // Details for the new Patch. - CreatePatchDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreatePatchRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreatePatchRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreatePatchRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreatePatchRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreatePatchRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreatePatchResponse wrapper for the CreatePatch operation -type CreatePatchResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Patch instance - Patch `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreatePatchResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreatePatchResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_platform_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_platform_configuration_details.go deleted file mode 100644 index 722b2380541..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_platform_configuration_details.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreatePlatformConfigurationDetails The information about new PlatformConfiguration. -type CreatePlatformConfigurationDetails struct { - - // Tenancy OCID - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - ConfigCategoryDetails ConfigCategoryDetails `mandatory:"true" json:"configCategoryDetails"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"false" json:"displayName"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` -} - -func (m CreatePlatformConfigurationDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreatePlatformConfigurationDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *CreatePlatformConfigurationDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DisplayName *string `json:"displayName"` - Description *string `json:"description"` - CompartmentId *string `json:"compartmentId"` - ConfigCategoryDetails configcategorydetails `json:"configCategoryDetails"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DisplayName = model.DisplayName - - m.Description = model.Description - - m.CompartmentId = model.CompartmentId - - nn, e = model.ConfigCategoryDetails.UnmarshalPolymorphicJSON(model.ConfigCategoryDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ConfigCategoryDetails = nn.(ConfigCategoryDetails) - } else { - m.ConfigCategoryDetails = nil - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_platform_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_platform_configuration_request_response.go deleted file mode 100644 index 9bd4809af6f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_platform_configuration_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreatePlatformConfigurationRequest wrapper for the CreatePlatformConfiguration operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreatePlatformConfiguration.go.html to see an example of how to use CreatePlatformConfigurationRequest. -type CreatePlatformConfigurationRequest struct { - - // Details for the new PlatformConfiguration. - CreatePlatformConfigurationDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreatePlatformConfigurationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreatePlatformConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreatePlatformConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreatePlatformConfigurationRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreatePlatformConfigurationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreatePlatformConfigurationResponse wrapper for the CreatePlatformConfiguration operation -type CreatePlatformConfigurationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The PlatformConfiguration instance - PlatformConfiguration `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreatePlatformConfigurationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreatePlatformConfigurationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_property_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_property_details.go index c0619b25662..591e5454725 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_property_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_property_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -21,10 +22,10 @@ type CreatePropertyDetails struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Text selection of the property. + // Text selection of the category Selection SelectionEnum `mandatory:"true" json:"selection"` - // Format of the value. + // Format of the value ValueType ValueTypeEnum `mandatory:"true" json:"valueType"` // A user-friendly name. Does not have to be unique, and it's changeable. @@ -32,7 +33,7 @@ type CreatePropertyDetails struct { // Example: `My new resource` DisplayName *string `mandatory:"false" json:"displayName"` - // Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). + // Values of the property (must be a single value if selection = 'single choice') Values []string `mandatory:"false" json:"values"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_runbook_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_runbook_details.go deleted file mode 100644 index 1f95ae4bf09..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_runbook_details.go +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateRunbookDetails The information about new Runbook. -type CreateRunbookDetails struct { - - // Type of runbook structure. - RunbookRelevance RunbookRunbookRelevanceEnum `mandatory:"true" json:"runbookRelevance"` - - // The lifecycle operation performed by the task. - Operation *string `mandatory:"true" json:"operation"` - - // The OS type for the runbook. - OsType OsTypeEnum `mandatory:"true" json:"osType"` - - Associations *Associations `mandatory:"true" json:"associations"` - - // OCID of the compartment to which the resource belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"false" json:"displayName"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // The platform of the runbook. - Platform *string `mandatory:"false" json:"platform"` - - // Is the runbook default? - IsDefault *bool `mandatory:"false" json:"isDefault"` - - // Estimated time to successfully complete the runbook execution - EstimatedTime *string `mandatory:"false" json:"estimatedTime"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateRunbookDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateRunbookDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingRunbookRunbookRelevanceEnum(string(m.RunbookRelevance)); !ok && m.RunbookRelevance != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RunbookRelevance: %s. Supported values are: %s.", m.RunbookRelevance, strings.Join(GetRunbookRunbookRelevanceEnumStringValues(), ","))) - } - if _, ok := GetMappingOsTypeEnum(string(m.OsType)); !ok && m.OsType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OsType: %s. Supported values are: %s.", m.OsType, strings.Join(GetOsTypeEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_runbook_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_runbook_request_response.go deleted file mode 100644 index 86e32f94385..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_runbook_request_response.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateRunbookRequest wrapper for the CreateRunbook operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreateRunbook.go.html to see an example of how to use CreateRunbookRequest. -type CreateRunbookRequest struct { - - // Details for the new Runbook. - CreateRunbookDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateRunbookRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateRunbookRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateRunbookRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateRunbookRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateRunbookRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateRunbookResponse wrapper for the CreateRunbook operation -type CreateRunbookResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Runbook instance - Runbook `presentIn:"body"` - - // URL for the created runbook, the runbook id will be generated after this request is sent. - Location *string `presentIn:"header" name:"location"` - - // Same as location - ContentLocation *string `presentIn:"header" name:"content-location"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateRunbookResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateRunbookResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_scheduler_definition_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_scheduler_definition_details.go index ab165ad0176..ce3849586ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_scheduler_definition_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_scheduler_definition_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_task_record_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_task_record_details.go deleted file mode 100644 index bba3d696f59..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_task_record_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CreateTaskRecordDetails The information about new Task. -type CreateTaskRecordDetails struct { - Details *Details `mandatory:"true" json:"details"` - - // OCID of the compartment to which the resource belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"false" json:"displayName"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateTaskRecordDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CreateTaskRecordDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_task_record_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_task_record_request_response.go deleted file mode 100644 index 0234fd1c829..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/create_task_record_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CreateTaskRecordRequest wrapper for the CreateTaskRecord operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreateTaskRecord.go.html to see an example of how to use CreateTaskRecordRequest. -type CreateTaskRecordRequest struct { - - // Details for the new TaskRecord. - CreateTaskRecordDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateTaskRecordRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateTaskRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateTaskRecordRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateTaskRecordRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request CreateTaskRecordRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateTaskRecordResponse wrapper for the CreateTaskRecord operation -type CreateTaskRecordResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The TaskRecord instance - TaskRecord `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateTaskRecordResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateTaskRecordResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_config_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_config_category_details.go deleted file mode 100644 index 51f3cf24566..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_config_category_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CredentialConfigCategoryDetails Credential Config Category Details. -// Defines credential placeholders deemed necessary by product standards later mapped and used by lifecycle management operations for the supported products. -type CredentialConfigCategoryDetails struct { -} - -func (m CredentialConfigCategoryDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m CredentialConfigCategoryDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m CredentialConfigCategoryDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeCredentialConfigCategoryDetails CredentialConfigCategoryDetails - s := struct { - DiscriminatorParam string `json:"configCategory"` - MarshalTypeCredentialConfigCategoryDetails - }{ - "CREDENTIAL", - (MarshalTypeCredentialConfigCategoryDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_details.go index 722218afce7..75c2de00002 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,7 @@ import ( "strings" ) -// CredentialDetails Credential Details. +// CredentialDetails Credential Details type CredentialDetails interface { } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_entity_specific_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_entity_specific_details.go index 4b0ddab2559..30e58c1f031 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_entity_specific_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/credential_entity_specific_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,7 @@ import ( "strings" ) -// CredentialEntitySpecificDetails Credential specific Details. +// CredentialEntitySpecificDetails Credential Details type CredentialEntitySpecificDetails interface { } @@ -54,14 +55,6 @@ func (m *credentialentityspecificdetails) UnmarshalPolymorphicJSON(data []byte) mm := TargetCredentialEntitySpecificDetails{} err = json.Unmarshal(data, &mm) return mm, err - case "FLEET": - mm := FleetCredentialEntitySpecificDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "RESOURCE": - mm := ResourceCredentialEntitySpecificDetails{} - err = json.Unmarshal(data, &mm) - return mm, err default: common.Logf("Recieved unsupported enum value for CredentialEntitySpecificDetails: %s.", m.CredentialLevel) return *m, nil @@ -89,21 +82,15 @@ type CredentialEntitySpecificDetailsCredentialLevelEnum string // Set of constants representing the allowable values for CredentialEntitySpecificDetailsCredentialLevelEnum const ( - CredentialEntitySpecificDetailsCredentialLevelFleet CredentialEntitySpecificDetailsCredentialLevelEnum = "FLEET" - CredentialEntitySpecificDetailsCredentialLevelResource CredentialEntitySpecificDetailsCredentialLevelEnum = "RESOURCE" - CredentialEntitySpecificDetailsCredentialLevelTarget CredentialEntitySpecificDetailsCredentialLevelEnum = "TARGET" + CredentialEntitySpecificDetailsCredentialLevelTarget CredentialEntitySpecificDetailsCredentialLevelEnum = "TARGET" ) var mappingCredentialEntitySpecificDetailsCredentialLevelEnum = map[string]CredentialEntitySpecificDetailsCredentialLevelEnum{ - "FLEET": CredentialEntitySpecificDetailsCredentialLevelFleet, - "RESOURCE": CredentialEntitySpecificDetailsCredentialLevelResource, - "TARGET": CredentialEntitySpecificDetailsCredentialLevelTarget, + "TARGET": CredentialEntitySpecificDetailsCredentialLevelTarget, } var mappingCredentialEntitySpecificDetailsCredentialLevelEnumLowerCase = map[string]CredentialEntitySpecificDetailsCredentialLevelEnum{ - "fleet": CredentialEntitySpecificDetailsCredentialLevelFleet, - "resource": CredentialEntitySpecificDetailsCredentialLevelResource, - "target": CredentialEntitySpecificDetailsCredentialLevelTarget, + "target": CredentialEntitySpecificDetailsCredentialLevelTarget, } // GetCredentialEntitySpecificDetailsCredentialLevelEnumValues Enumerates the set of values for CredentialEntitySpecificDetailsCredentialLevelEnum @@ -118,8 +105,6 @@ func GetCredentialEntitySpecificDetailsCredentialLevelEnumValues() []CredentialE // GetCredentialEntitySpecificDetailsCredentialLevelEnumStringValues Enumerates the set of values in String for CredentialEntitySpecificDetailsCredentialLevelEnum func GetCredentialEntitySpecificDetailsCredentialLevelEnumStringValues() []string { return []string{ - "FLEET", - "RESOURCE", "TARGET", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_compliance_policy_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_compliance_policy_rule_request_response.go deleted file mode 100644 index a092e5d292a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_compliance_policy_rule_request_response.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteCompliancePolicyRuleRequest wrapper for the DeleteCompliancePolicyRule operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteCompliancePolicyRule.go.html to see an example of how to use DeleteCompliancePolicyRuleRequest. -type DeleteCompliancePolicyRuleRequest struct { - - // unique CompliancePolicyRule identifier. - CompliancePolicyRuleId *string `mandatory:"true" contributesTo:"path" name:"compliancePolicyRuleId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteCompliancePolicyRuleRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteCompliancePolicyRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteCompliancePolicyRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteCompliancePolicyRuleRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteCompliancePolicyRuleRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteCompliancePolicyRuleResponse wrapper for the DeleteCompliancePolicyRule operation -type DeleteCompliancePolicyRuleResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteCompliancePolicyRuleResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteCompliancePolicyRuleResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_credential_request_response.go index ebafe82ce85..e55a86f06c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_credential_request_response.go @@ -21,7 +21,7 @@ type DeleteFleetCredentialRequest struct { // unique FleetCredential identifier FleetCredentialId *string `mandatory:"true" contributesTo:"path" name:"fleetCredentialId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_property_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_property_request_response.go index 331e6383802..474447f9b93 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_property_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_property_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteFleetProperty.go.html to see an example of how to use DeleteFleetPropertyRequest. type DeleteFleetPropertyRequest struct { - // unique FleetProperty identifier. + // unique FleetProperty identifier FleetPropertyId *string `mandatory:"true" contributesTo:"path" name:"fleetPropertyId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_request_response.go index e812ef539e3..45078cd58dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteFleet.go.html to see an example of how to use DeleteFleetRequest. type DeleteFleetRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_resource_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_resource_request_response.go index 75147e6b90b..98e2363b587 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_resource_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_fleet_resource_request_response.go @@ -21,7 +21,7 @@ type DeleteFleetResourceRequest struct { // unique FleetResource identifier FleetResourceId *string `mandatory:"true" contributesTo:"path" name:"fleetResourceId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_onboarding_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_onboarding_request_response.go deleted file mode 100644 index d56e038a03b..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_onboarding_request_response.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteOnboardingRequest wrapper for the DeleteOnboarding operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteOnboarding.go.html to see an example of how to use DeleteOnboardingRequest. -type DeleteOnboardingRequest struct { - - // A filter to return resources whose Onboarding identifier matches the given identifier. - OnboardingId *string `mandatory:"true" contributesTo:"path" name:"onboardingId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteOnboardingRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteOnboardingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteOnboardingRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteOnboardingRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteOnboardingRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteOnboardingResponse wrapper for the DeleteOnboarding operation -type DeleteOnboardingResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteOnboardingResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteOnboardingResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_patch_request_response.go deleted file mode 100644 index 0245485e0ee..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_patch_request_response.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeletePatchRequest wrapper for the DeletePatch operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeletePatch.go.html to see an example of how to use DeletePatchRequest. -type DeletePatchRequest struct { - - // unique Patch identifier - PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeletePatchRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeletePatchRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeletePatchRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeletePatchRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeletePatchRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeletePatchResponse wrapper for the DeletePatch operation -type DeletePatchResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeletePatchResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeletePatchResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_platform_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_platform_configuration_request_response.go deleted file mode 100644 index 06c2254e978..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_platform_configuration_request_response.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeletePlatformConfigurationRequest wrapper for the DeletePlatformConfiguration operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeletePlatformConfiguration.go.html to see an example of how to use DeletePlatformConfigurationRequest. -type DeletePlatformConfigurationRequest struct { - - // unique PlatformConfiguration identifier - PlatformConfigurationId *string `mandatory:"true" contributesTo:"path" name:"platformConfigurationId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeletePlatformConfigurationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeletePlatformConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeletePlatformConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeletePlatformConfigurationRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeletePlatformConfigurationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeletePlatformConfigurationResponse wrapper for the DeletePlatformConfiguration operation -type DeletePlatformConfigurationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeletePlatformConfigurationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeletePlatformConfigurationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_runbook_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_runbook_request_response.go deleted file mode 100644 index c4c408f2bb8..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_runbook_request_response.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteRunbookRequest wrapper for the DeleteRunbook operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteRunbook.go.html to see an example of how to use DeleteRunbookRequest. -type DeleteRunbookRequest struct { - - // Unique Runbook identifier - RunbookId *string `mandatory:"true" contributesTo:"path" name:"runbookId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteRunbookRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteRunbookRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteRunbookRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteRunbookRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteRunbookRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteRunbookResponse wrapper for the DeleteRunbook operation -type DeleteRunbookResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteRunbookResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteRunbookResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_task_record_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_task_record_request_response.go deleted file mode 100644 index a4c0fbf1b33..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/delete_task_record_request_response.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// DeleteTaskRecordRequest wrapper for the DeleteTaskRecord operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteTaskRecord.go.html to see an example of how to use DeleteTaskRecordRequest. -type DeleteTaskRecordRequest struct { - - // unique TaskDetail identifier - TaskRecordId *string `mandatory:"true" contributesTo:"path" name:"taskRecordId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteTaskRecordRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteTaskRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteTaskRecordRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteTaskRecordRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request DeleteTaskRecordRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteTaskRecordResponse wrapper for the DeleteTaskRecord operation -type DeleteTaskRecordResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteTaskRecordResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteTaskRecordResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/dependent_patch_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/dependent_patch_details.go deleted file mode 100644 index 549f628894e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/dependent_patch_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// DependentPatchDetails Dependent Patch Details. -type DependentPatchDetails struct { - - // The OCID of the resource. - Id *string `mandatory:"true" json:"id"` -} - -func (m DependentPatchDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m DependentPatchDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/details.go index 42f7d13f5b5..9deaaacaa20 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -18,7 +19,6 @@ import ( // Details The details of the task. type Details struct { - ExecutionDetails ExecutionDetails `mandatory:"true" json:"executionDetails"` // The OS for the task OsType OsTypeEnum `mandatory:"true" json:"osType"` @@ -26,17 +26,12 @@ type Details struct { // The scope of the task Scope TaskScopeEnum `mandatory:"true" json:"scope"` + ExecutionDetails ExecutionDetails `mandatory:"false" json:"executionDetails"` + // The platform of the runbook. Platform *string `mandatory:"false" json:"platform"` Properties *Properties `mandatory:"false" json:"properties"` - - // Is this a discovery output task? - IsDiscoveryOutputTask *bool `mandatory:"false" json:"isDiscoveryOutputTask"` - - // Is this an Apply Subject Task? - // Set this to true for a Patch Execution Task which applies patches(subjects) on a target. - IsApplySubjectTask *bool `mandatory:"false" json:"isApplySubjectTask"` } func (m Details) String() string { @@ -64,13 +59,11 @@ func (m Details) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *Details) UnmarshalJSON(data []byte) (e error) { model := struct { - Platform *string `json:"platform"` - Properties *Properties `json:"properties"` - IsDiscoveryOutputTask *bool `json:"isDiscoveryOutputTask"` - IsApplySubjectTask *bool `json:"isApplySubjectTask"` - ExecutionDetails executiondetails `json:"executionDetails"` - OsType OsTypeEnum `json:"osType"` - Scope TaskScopeEnum `json:"scope"` + ExecutionDetails executiondetails `json:"executionDetails"` + Platform *string `json:"platform"` + Properties *Properties `json:"properties"` + OsType OsTypeEnum `json:"osType"` + Scope TaskScopeEnum `json:"scope"` }{} e = json.Unmarshal(data, &model) @@ -78,14 +71,6 @@ func (m *Details) UnmarshalJSON(data []byte) (e error) { return } var nn interface{} - m.Platform = model.Platform - - m.Properties = model.Properties - - m.IsDiscoveryOutputTask = model.IsDiscoveryOutputTask - - m.IsApplySubjectTask = model.IsApplySubjectTask - nn, e = model.ExecutionDetails.UnmarshalPolymorphicJSON(model.ExecutionDetails.JsonData) if e != nil { return @@ -96,6 +81,10 @@ func (m *Details) UnmarshalJSON(data []byte) (e error) { m.ExecutionDetails = nil } + m.Platform = model.Platform + + m.Properties = model.Properties + m.OsType = model.OsType m.Scope = model.Scope diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/discovered_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/discovered_target.go index 6f20a57f6f4..1235e0b6a77 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/discovered_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/discovered_target.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -18,7 +19,7 @@ import ( // DiscoveredTarget A target that is discovered by the Software discovery process. type DiscoveredTarget struct { - // ID of the Target. Can be the target name if a separate ID is not available. + // OCID of the Target. TargetId *string `mandatory:"true" json:"targetId"` // Target Name. @@ -27,10 +28,10 @@ type DiscoveredTarget struct { // Product that the target belongs to. Product *string `mandatory:"true" json:"product"` - // Unique key that identifies the resource that the target belongs to. + // Unique key that identify the resource that target belongs to. ResourceId *string `mandatory:"true" json:"resourceId"` - // Current version of the target. + // Current version of Target Version *string `mandatory:"false" json:"version"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/enable_latest_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/enable_latest_policy_details.go deleted file mode 100644 index 58cd007dcd9..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/enable_latest_policy_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EnableLatestPolicyDetails The information to be updated. -type EnableLatestPolicyDetails struct { - - // A value determining if latest Fleet Application Management policies should be enabled - CanLatestFamsPoliciesBeEnabled *bool `mandatory:"false" json:"canLatestFamsPoliciesBeEnabled"` -} - -func (m EnableLatestPolicyDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m EnableLatestPolicyDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/enable_latest_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/enable_latest_policy_request_response.go deleted file mode 100644 index 9ce01c40c7a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/enable_latest_policy_request_response.go +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// EnableLatestPolicyRequest wrapper for the EnableLatestPolicy operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/EnableLatestPolicy.go.html to see an example of how to use EnableLatestPolicyRequest. -type EnableLatestPolicyRequest struct { - - // A filter to return resources whose Onboarding identifier matches the given identifier. - OnboardingId *string `mandatory:"true" contributesTo:"path" name:"onboardingId"` - - // The information to be updated. - EnableLatestPolicyDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request EnableLatestPolicyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request EnableLatestPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request EnableLatestPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request EnableLatestPolicyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request EnableLatestPolicyRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// EnableLatestPolicyResponse wrapper for the EnableLatestPolicy operation -type EnableLatestPolicyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response EnableLatestPolicyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response EnableLatestPolicyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/entity_execution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/entity_execution_details.go index 9e8fb9c9629..78f6f21605a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/entity_execution_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/entity_execution_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,26 +16,25 @@ import ( "strings" ) -// EntityExecutionDetails Resource level execution status and target associations. +// EntityExecutionDetails Activity Resource and execution details including outcome. type EntityExecutionDetails struct { - // Resource Identifier associated with the Work Request. + // Resource Identifier associated with the Work Request ResourceId *string `mandatory:"true" json:"resourceId"` - // Status of the Job at Resource Level. + // Status of the Job at Resource Level Status JobStatusEnum `mandatory:"true" json:"status"` - // Resource Display Name. + // Resource Display Name ResourceDisplayName *string `mandatory:"false" json:"resourceDisplayName"` - // Description of the Resource Execution status. - // If there are any errors, this can also include a short error message. + // Description of the Work Request Description *string `mandatory:"false" json:"description"` - // The sequence of the Resource. + // The sequence of the Resource Sequence *string `mandatory:"false" json:"sequence"` - // Targets associated with the resource. + // Targets associated. Targets []ActivityResourceTarget `mandatory:"false" json:"targets"` // The time the task started for the resource. An RFC3339 formatted datetime string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/environment_config_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/environment_config_category_details.go deleted file mode 100644 index c349db19e5a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/environment_config_category_details.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EnvironmentConfigCategoryDetails Environment Config Category Details. -// Defines the supported prioritization associated with resources based on the implementation phase of the applications hosted by them. -// For example, your organization might support development, beta, or production environment types. -type EnvironmentConfigCategoryDetails struct { -} - -func (m EnvironmentConfigCategoryDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m EnvironmentConfigCategoryDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m EnvironmentConfigCategoryDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeEnvironmentConfigCategoryDetails EnvironmentConfigCategoryDetails - s := struct { - DiscriminatorParam string `json:"configCategory"` - MarshalTypeEnvironmentConfigCategoryDetails - }{ - "ENVIRONMENT", - (MarshalTypeEnvironmentConfigCategoryDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution.go index 0c562c68ebe..e874e70f483 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -18,49 +19,38 @@ import ( // Execution Task Execution associated with the Job. type Execution struct { - // Unique Id associated with the task execution. + // Unique Id assocaited with the Task Execution Id *string `mandatory:"true" json:"id"` // Status of the Task Status JobStatusEnum `mandatory:"true" json:"status"` - // The OCID of taskRecord. + // The OCID of taskRecord TaskRecordId *string `mandatory:"false" json:"taskRecordId"` - // Name of the step. + // Name of the step StepName *string `mandatory:"false" json:"stepName"` - // Unique process-reference identifier returned by the execution client. - // In some cases, this can be a runcommand OCID. + // Unique process reference identifier returned by the execution client ProcessReferenceId *string `mandatory:"false" json:"processReferenceId"` - // The sequence of the task. + // The sequence of the task Sequence *string `mandatory:"false" json:"sequence"` - // Subjects that are tied to the task. + // Subjects which are tied to the task Subjects []string `mandatory:"false" json:"subjects"` Outcome *Outcome `mandatory:"false" json:"outcome"` - // Target associated with the execution. + // Target associated with the execution TargetId *string `mandatory:"false" json:"targetId"` - // The time the task started. An RFC3339 formatted datetime string. + // The time the task started. An RFC3339 formatted datetime string TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - // The time the task ended. An RFC3339 formatted datetime string. + // The time the task ended. An RFC3339 formatted datetime string TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - // Is this a rollback task? - IsRollbackTask *bool `mandatory:"false" json:"isRollbackTask"` - - // Description of the Execution status. - // If there are any errors, this can also include a short error message. - Description *string `mandatory:"false" json:"description"` - - // Resource Identifier associated with the Work Request. - ResourceId *string `mandatory:"false" json:"resourceId"` - // System tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_collection.go index be4c8201a7f..9ba7c482df4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// ExecutionCollection A collection of ExecutionSummary. +// ExecutionCollection Results of a type ExecutionCollection struct { // List of Resource Level Executions. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_details.go index ab6319c9af5..1e32a036aec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,7 @@ import ( "strings" ) -// ExecutionDetails Execution details. +// ExecutionDetails Content Source Details type ExecutionDetails interface { } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_summary.go index 77cca74b8db..93d708c7b50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,47 +16,36 @@ import ( "strings" ) -// ExecutionSummary A task associated with the Job. +// ExecutionSummary Task associated with the Job. type ExecutionSummary struct { - // Unique Id associated with the task execution. + // Unique Id assocaited with the Task Execution Id *string `mandatory:"true" json:"id"` - // Status of the Task. + // Status of the Task Status JobStatusEnum `mandatory:"true" json:"status"` - // The OCID of taskRecord. + // The OCID of taskRecord TaskRecordId *string `mandatory:"false" json:"taskRecordId"` - // Name of the Step. + // Name of the Step StepName *string `mandatory:"false" json:"stepName"` - // Unique process-reference identifier returned by the execution client. - // In some cases, this can be a runcommand OCID. + // Unique process reference identifier returned by the execution client ProcessReferenceId *string `mandatory:"false" json:"processReferenceId"` - // The sequence of the task. + // The sequence of the task Sequence *string `mandatory:"false" json:"sequence"` - // Target associated with the execution. + // Target associated with the execution TargetId *string `mandatory:"false" json:"targetId"` - // The time the task started. An RFC3339 formatted datetime string. + // The time the task started. An RFC3339 formatted datetime string TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - // The time the task ended. An RFC3339 formatted datetime string. + // The time the task ended. An RFC3339 formatted datetime string TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - // Is this a rollback task? - IsRollbackTask *bool `mandatory:"false" json:"isRollbackTask"` - - // Description of the Execution status. - // If there are any errors, this can also include a short error message. - Description *string `mandatory:"false" json:"description"` - - // Resource Identifier associated with the Work Request. - ResourceId *string `mandatory:"false" json:"resourceId"` - // System tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_workflow_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_workflow_details.go index 040ef6ee684..37a8e6c1dce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_workflow_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/execution_workflow_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// ExecutionWorkflowDetails Execution Workflow details. +// ExecutionWorkflowDetails Execution Workflow. type ExecutionWorkflowDetails struct { // Execution Workflow for the runbook. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/export_compliance_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/export_compliance_report_details.go deleted file mode 100644 index 28aff6443fe..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/export_compliance_report_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ExportComplianceReportDetails Details for generating Compliance Report -type ExportComplianceReportDetails struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the entity for which the compliance is calculated.Ex.FleetId - EntityId *string `mandatory:"false" json:"entityId"` - - // The OCID to identify the resource. - ResourceId *string `mandatory:"false" json:"resourceId"` - - // Product Stack. - ProductStack *string `mandatory:"false" json:"productStack"` - - // Product Name. - ProductName *string `mandatory:"false" json:"productName"` - - // Last known compliance state of target. - ComplianceState ComplianceStateEnum `mandatory:"false" json:"complianceState,omitempty"` -} - -func (m ExportComplianceReportDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ExportComplianceReportDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingComplianceStateEnum(string(m.ComplianceState)); !ok && m.ComplianceState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComplianceState: %s. Supported values are: %s.", m.ComplianceState, strings.Join(GetComplianceStateEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/export_compliance_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/export_compliance_report_request_response.go deleted file mode 100644 index b56d604fe50..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/export_compliance_report_request_response.go +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "io" - "net/http" - "strings" -) - -// ExportComplianceReportRequest wrapper for the ExportComplianceReport operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ExportComplianceReport.go.html to see an example of how to use ExportComplianceReportRequest. -type ExportComplianceReportRequest struct { - - // Details for generating compliance report - ExportComplianceReportDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ExportComplianceReportRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ExportComplianceReportRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ExportComplianceReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ExportComplianceReportRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ExportComplianceReportRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ExportComplianceReportResponse wrapper for the ExportComplianceReport operation -type ExportComplianceReportResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The io.ReadCloser instance - Content io.ReadCloser `presentIn:"body" encoding:"binary"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The content size of the body in bytes. - ContentLength *int64 `presentIn:"header" name:"content-length"` - - // The content type of the body. - ContentType *string `presentIn:"header" name:"content-type"` -} - -func (response ExportComplianceReportResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ExportComplianceReportResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet.go index c2819245dc5..83c37ec8d46 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// Fleet A fleet is a collection or grouping of resources based on criteria. +// Fleet Description of Fleet. type Fleet struct { // The OCID of the resource. @@ -33,10 +34,6 @@ type Fleet struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // Type of the Fleet. - // PRODUCT - A fleet of product-specific resources for a product type. - // ENVIRONMENT - A fleet of environment-specific resources for a product stack. - // GROUP - A fleet of a fleet of either environment or product fleets. - // GENERIC - A fleet of resources selected dynamically or manually for reporting purposes FleetType FleetFleetTypeEnum `mandatory:"true" json:"fleetType"` // The lifecycle state of the Fleet. @@ -60,40 +57,35 @@ type Fleet struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // Products associated with the Fleet. + // Products associated with the Fleet Products []string `mandatory:"false" json:"products"` - // Product stack associated with the Fleet. - // Applicable for ENVIRONMENT fleet types. + // Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. ApplicationType *string `mandatory:"false" json:"applicationType"` - // Environment Type associated with the Fleet. - // Applicable for ENVIRONMENT fleet types. + // Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. EnvironmentType *string `mandatory:"false" json:"environmentType"` - // Group Type associated with Group Fleet. - // Applicable for GROUP fleet types. + // Group Type associated with Group Fleet.Applicable for GROUP fleet types. GroupType FleetGroupTypeEnum `mandatory:"false" json:"groupType,omitempty"` - // Type of resource selection in a Fleet. - // Select resources manually or select resources based on rules. + // Type of resource selection in a fleet. ResourceSelectionType FleetResourceSelectionTypeEnum `mandatory:"false" json:"resourceSelectionType,omitempty"` RuleSelectionCriteria *SelectionCriteria `mandatory:"false" json:"ruleSelectionCriteria"` NotificationPreferences *NotificationPreferences `mandatory:"false" json:"notificationPreferences"` - // Resources associated with the Fleet if resourceSelectionType is MANUAL. + // Resources to be added during fleet creation when Resource selection type is Manual. Resources []AssociatedFleetResourceDetails `mandatory:"false" json:"resources"` - // Properties associated with the Fleet. + // Properties to be added during fleet creation. Properties []AssociatedFleetPropertyDetails `mandatory:"false" json:"properties"` - // Credentials associated with the Fleet. + // Credentials to be added during fleet creation. Credentials []AssociatedFleetCredentialDetails `mandatory:"false" json:"credentials"` - // A value that represents if auto-confirming of the targets can be enabled. - // This will allow targets to be auto-confirmed in the fleet without manual intervention. + // A value which represents if auto confirming of the targets can be enabled IsTargetAutoConfirm *bool `mandatory:"false" json:"isTargetAutoConfirm"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_collection.go index 6d731ca1ac2..f1f28b35088 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential.go index 980dbb53663..c42d7d0e87e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,7 @@ import ( "strings" ) -// FleetCredential Credential in Fleet Application Management. +// FleetCredential Description of FleetCredential. type FleetCredential struct { // The unique id of the resource. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_collection.go index 126496094cd..68f13dd23be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_entity_specific_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_entity_specific_details.go deleted file mode 100644 index 0965292a8fd..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_entity_specific_details.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// FleetCredentialEntitySpecificDetails Fleet credential details. -type FleetCredentialEntitySpecificDetails struct { - - // List of fleet credential variables. - Variables []Variable `mandatory:"false" json:"variables"` -} - -func (m FleetCredentialEntitySpecificDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m FleetCredentialEntitySpecificDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m FleetCredentialEntitySpecificDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeFleetCredentialEntitySpecificDetails FleetCredentialEntitySpecificDetails - s := struct { - DiscriminatorParam string `json:"credentialLevel"` - MarshalTypeFleetCredentialEntitySpecificDetails - }{ - "FLEET", - (MarshalTypeFleetCredentialEntitySpecificDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_summary.go index 0655a38379a..5abfc59df71 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_credential_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_collection.go index 9727bea33c6..37f27fb237a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_summary.go index d9ab1427799..49d8277c6f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_product_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// FleetProductSummary Summary of a product associated with a Fleet. +// FleetProductSummary Summary of the FleetProduct. type FleetProductSummary struct { // A user-friendly name. Does not have to be unique, and it's changeable. @@ -28,7 +29,7 @@ type FleetProductSummary struct { // Root Compartment Id. CompartmentId *string `mandatory:"false" json:"compartmentId"` - // Count of the targets associated with the Product. + // Count of targets associated with the Product TargetCount *int `mandatory:"false" json:"targetCount"` // System tags for this resource. Each key is predefined and scoped to a namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property.go index aa87db54a58..dfc60d74dbf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// FleetProperty Property to manage fleet metadata details in Fleet Application Management. +// FleetProperty Property associated with a Fleet. type FleetProperty struct { // The unique id of the resource. @@ -32,10 +33,10 @@ type FleetProperty struct { // The time this resource was created. An RFC3339 formatted datetime string. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // Text selection of the property. + // Text selection of the category SelectionType SelectionEnum `mandatory:"true" json:"selectionType"` - // Format of the value. + // Format of the value ValueType ValueTypeEnum `mandatory:"true" json:"valueType"` // The current state of the FleetProperty. @@ -44,13 +45,13 @@ type FleetProperty struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // Value of the Property. + // Value of the Property Value *string `mandatory:"false" json:"value"` - // OCID referring to global level metadata property. + // Property Id Ocid. PropertyId *string `mandatory:"false" json:"propertyId"` - // Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE'). + // Values of the category (must be a single value if selection = 'single choice') AllowedValues []string `mandatory:"false" json:"allowedValues"` // System tags for this resource. Each key is predefined and scoped to a namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_collection.go index 7642967e319..6e4a37e0cce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// FleetPropertyCollection Results of a fleetProperty search. Contains both FleetPropertySummary items and other information, such as metadata. +// FleetPropertyCollection Results of a fleetProperty search. Contains boh FleetPropertySummary items and other information, such as metadata. type FleetPropertyCollection struct { - // List of fleet properties in Fleet Application Management. + // List of fleetPropertys. Items []FleetPropertySummary `mandatory:"true" json:"items"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_summary.go index bc233f5dbf5..dd4d0ba7cf0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_property_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -24,7 +25,7 @@ type FleetPropertySummary struct { // Tenancy OCID CompartmentId *string `mandatory:"true" json:"compartmentId"` - // OCID referring to global level metadata property. + // Property Id. PropertyId *string `mandatory:"true" json:"propertyId"` // A user-friendly name. Does not have to be unique, and it's changeable. @@ -35,7 +36,7 @@ type FleetPropertySummary struct { // The time this resource was created. An RFC3339 formatted datetime string. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // Format of the value. + // Type of the FleetProperty. ValueType ValueTypeEnum `mandatory:"true" json:"valueType"` // The current state of the FleetProperty. @@ -44,7 +45,7 @@ type FleetPropertySummary struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // Value of the Property. + // Value of the Property Value *string `mandatory:"false" json:"value"` // System tags for this resource. Each key is predefined and scoped to a namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource.go index d4296a2270e..07fede59148 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// FleetResource Resource added to a fleet in Fleet Application Management. +// FleetResource Resource added to a Fleet. type FleetResource struct { // The unique id of the resource. @@ -50,31 +51,28 @@ type FleetResource struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // Resource Compartment name. + // Resource Compartment Compartment *string `mandatory:"false" json:"compartment"` - // Compliance State of the Resource. + // Compliance State of the Resource ComplianceState ComplianceStateEnum `mandatory:"false" json:"complianceState,omitempty"` - // Resource Tenancy Name. + // Resource Tenancy Name TenancyName *string `mandatory:"false" json:"tenancyName"` // Count of products within the resource. ProductCount *int `mandatory:"false" json:"productCount"` - // Count of targets within the resource. + // Count of targets within the resource. TargetCount *int `mandatory:"false" json:"targetCount"` - // Product associated with the resource when the resource type is fleet. - // Will only be returned for PRODUCT fleets that are part of a GROUP Fleet. + // Product associated with the resource when resource type is fleet.Will only be returned for PRODUCT fleets that are part of a GROUP Fleet Product *string `mandatory:"false" json:"product"` - // Application Type associated with the resource when the resource type is fleet. - // Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + // Application Type associated with the resource when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. ApplicationType *string `mandatory:"false" json:"applicationType"` - // Environment Type associated with the Fleet when the resource type is fleet. - // Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + // Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. EnvironmentType *string `mandatory:"false" json:"environmentType"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_collection.go index 75236556132..b627d4cfdcb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// FleetResourceCollection Results of a fleetResource search. Contains both FleetResourceSummary items and other information, such as metadata. +// FleetResourceCollection Results of a fleetResource search. Contains boh FleetResourceSummary items and other information, such as metadata. type FleetResourceCollection struct { // List of fleetResources. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_summary.go index 16094fc1750..2e371201567 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_resource_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -50,31 +51,28 @@ type FleetResourceSummary struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // Compliance State of the Resource. + // Compliance State of the Resource ComplianceState ComplianceStateEnum `mandatory:"false" json:"complianceState,omitempty"` - // Resource Tenancy Name. + // Resource Tenancy Name TenancyName *string `mandatory:"false" json:"tenancyName"` - // Resource Compartment name. + // Resource Compartment Compartment *string `mandatory:"false" json:"compartment"` // Count of products within the resource. ProductCount *int `mandatory:"false" json:"productCount"` - // Count of targets within the resource. + // Count of targets within the resource. TargetCount *int `mandatory:"false" json:"targetCount"` - // Product associated with the resource when the resource type is fleet. - // Will only be returned for PRODUCT fleets that are part of a GROUP Fleet. + // Product associated with the resource when resource type is fleet.Will only be returned for PRODUCT fleets that are part of a GROUP Fleet Product *string `mandatory:"false" json:"product"` - // Application Type associated with the resource when the resource type is fleet. - // Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + // Application Type associated with the resource when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. ApplicationType *string `mandatory:"false" json:"applicationType"` - // Environment Type associated with the Fleet when the resource type is fleet. - // Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + // Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. EnvironmentType *string `mandatory:"false" json:"environmentType"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_summary.go index 4b47b289877..10f53e0da6f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// FleetSummary Summary of a Fleet.A fleet is a collection or grouping of resources based on criteria. +// FleetSummary Summary of the Fleet. type FleetSummary struct { // The OCID of the resource. @@ -33,13 +34,9 @@ type FleetSummary struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // Type of the Fleet. - // PRODUCT - A fleet of product-specific resources for a product type. - // ENVIRONMENT - A fleet of environment-specific resources for a product stack. - // GROUP - A fleet of a fleet of either environment or product fleets. - // GENERIC - A fleet of resources selected dynamically or manually for reporting purposes FleetType FleetFleetTypeEnum `mandatory:"true" json:"fleetType"` - // The lifecycle state of the Fleet. + // The current state of the Fleet. LifecycleState FleetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // Associated region @@ -48,8 +45,7 @@ type FleetSummary struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // Environment Type associated with the Fleet. - // Applicable for ENVIRONMENT fleet types. + // Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. EnvironmentType *string `mandatory:"false" json:"environmentType"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target.go index f4959acd8ab..9816329a02f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// FleetTarget A confirmed target within a fleet. +// FleetTarget Description of FleetTarget. type FleetTarget struct { // The OCID of the resource. @@ -32,7 +33,7 @@ type FleetTarget struct { // The time this resource was created. An RFC3339 formatted datetime string. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - // Current version of target. + // Current version of Target Version *string `mandatory:"false" json:"version"` // Product to which the target belongs to. @@ -40,18 +41,9 @@ type FleetTarget struct { Resource *TargetResource `mandatory:"false" json:"resource"` - // The last known compliance state of the target. + // Last known compliance state of Target. ComplianceState ComplianceStateEnum `mandatory:"false" json:"complianceState,omitempty"` - // The time when the last successful discovery was made. - TimeOfLastSuccessfulDiscovery *common.SDKTime `mandatory:"false" json:"timeOfLastSuccessfulDiscovery"` - - // The time when last discovery was attempted. - TimeOfLastDiscoveryAttempt *common.SDKTime `mandatory:"false" json:"timeOfLastDiscoveryAttempt"` - - // A boolean flag that represents whether the last discovery attempt was successful. - IsLastDiscoveryAttemptSuccessful *bool `mandatory:"false" json:"isLastDiscoveryAttemptSuccessful"` - // The current state of the FleetTarget. LifecycleState FleetTargetLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_collection.go index da989ffe3b2..2d66561c68f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_summary.go index f1f5a483a58..5919a85a678 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleet_target_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// FleetTargetSummary Summary of a confirmed target within a fleet. +// FleetTargetSummary Summary of the FleetTarget. type FleetTargetSummary struct { // The OCID of the resource. @@ -29,7 +30,7 @@ type FleetTargetSummary struct { // Tenancy OCID CompartmentId *string `mandatory:"false" json:"compartmentId"` - // Current version of target. + // Current version of Target Version *string `mandatory:"false" json:"version"` // Product to which the target belongs to. @@ -37,18 +38,9 @@ type FleetTargetSummary struct { Resource *TargetResource `mandatory:"false" json:"resource"` - // The last known compliance state of the target. + // Last known compliance state of Target. ComplianceState ComplianceStateEnum `mandatory:"false" json:"complianceState,omitempty"` - // The time when the last successful discovery was made. - TimeOfLastSuccessfulDiscovery *common.SDKTime `mandatory:"false" json:"timeOfLastSuccessfulDiscovery"` - - // The time when last discovery was attempted. - TimeOfLastDiscoveryAttempt *common.SDKTime `mandatory:"false" json:"timeOfLastDiscoveryAttempt"` - - // A boolean flag that represents whether the last discovery attempt was successful. - IsLastDiscoveryAttemptSuccessful *bool `mandatory:"false" json:"isLastDiscoveryAttemptSuccessful"` - // The current state of the FleetTarget. LifecycleState FleetTargetLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_client.go index 481c98f3cf8..8048f5d83fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_client.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -91,7 +92,7 @@ func (client *FleetAppsManagementClient) ConfigurationProvider() *common.Configu return client.config } -// CheckResourceTagging Check if Fleet Application Management tags can be added to the resources. +// CheckResourceTagging Check if FAMS tags can be added for the resources // // # See also // @@ -154,8 +155,7 @@ func (client FleetAppsManagementClient) checkResourceTagging(ctx context.Context return response, err } -// ConfirmTargets Confirm targets to be managed for a Fleet. -// Only targets that are confirmed will be managed by Fleet Application Management +// ConfirmTargets Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS // // # See also // @@ -218,7 +218,8 @@ func (client FleetAppsManagementClient) confirmTargets(ctx context.Context, requ return response, err } -// CreateFleet Create a product, environment, group, or generic type of fleet in Fleet Application Management. +// CreateFleet Creates a new fleet instance that includes fleet resources and properties. +// For more information, please see the documentation. // // # See also // @@ -281,7 +282,7 @@ func (client FleetAppsManagementClient) createFleet(ctx context.Context, request return response, err } -// CreateFleetCredential Add credentials to a fleet in Fleet Application Management. +// CreateFleetCredential Creates a new FleetCredential. // // # See also // @@ -344,7 +345,7 @@ func (client FleetAppsManagementClient) createFleetCredential(ctx context.Contex return response, err } -// CreateFleetProperty Add an existing global property to a fleet in Fleet Application Management. +// CreateFleetProperty Creates a new FleetProperty. // // # See also // @@ -407,7 +408,7 @@ func (client FleetAppsManagementClient) createFleetProperty(ctx context.Context, return response, err } -// CreateFleetResource Add resource to a fleet in Fleet Application Management. +// CreateFleetResource Creates a new FleetResource. // // # See also // @@ -470,7 +471,7 @@ func (client FleetAppsManagementClient) createFleetResource(ctx context.Context, return response, err } -// DeleteFleet Delete a fleet in Fleet Application Management. +// DeleteFleet Deletes a Fleet resource by identifier // // # See also // @@ -528,7 +529,7 @@ func (client FleetAppsManagementClient) deleteFleet(ctx context.Context, request return response, err } -// DeleteFleetCredential Delete a credential associated with a fleet product or application in Fleet Application Management. +// DeleteFleetCredential Deletes a FleetCredential resource by identifier // // # See also // @@ -586,7 +587,7 @@ func (client FleetAppsManagementClient) deleteFleetCredential(ctx context.Contex return response, err } -// DeleteFleetProperty Delete a property associated with a fleet in Fleet Application Management. +// DeleteFleetProperty Deletes a FleetProperty resource by identifier // // # See also // @@ -644,7 +645,7 @@ func (client FleetAppsManagementClient) deleteFleetProperty(ctx context.Context, return response, err } -// DeleteFleetResource Removes a resource from the fleet in Fleet Application Management. +// DeleteFleetResource Deletes a FleetResource resource by identifier // // # See also // @@ -702,7 +703,7 @@ func (client FleetAppsManagementClient) deleteFleetResource(ctx context.Context, return response, err } -// GenerateComplianceReport Generate compliance reports for a Fleet. +// GenerateComplianceReport Request to generate compliance report for a Fleet // // # See also // @@ -765,7 +766,7 @@ func (client FleetAppsManagementClient) generateComplianceReport(ctx context.Con return response, err } -// GetComplianceReport Retrieve compliance report for a fleet. +// GetComplianceReport Retrieve compiane report for a Fleet // // # See also // @@ -823,7 +824,7 @@ func (client FleetAppsManagementClient) getComplianceReport(ctx context.Context, return response, err } -// GetFleet Get the details of a fleet in Fleet Application Management. +// GetFleet Gets a Fleet by identifier // // # See also // @@ -881,7 +882,7 @@ func (client FleetAppsManagementClient) getFleet(ctx context.Context, request co return response, err } -// GetFleetCredential Gets a FleetCredential by identifier. +// GetFleetCredential Gets a FleetCredential by identifier // // # See also // @@ -939,7 +940,7 @@ func (client FleetAppsManagementClient) getFleetCredential(ctx context.Context, return response, err } -// GetFleetProperty Gets a Fleet Property by identifier. +// GetFleetProperty Gets a FleetProperty by identifier // // # See also // @@ -997,7 +998,7 @@ func (client FleetAppsManagementClient) getFleetProperty(ctx context.Context, re return response, err } -// GetFleetResource Gets a Fleet Resource by identifier. +// GetFleetResource Gets a FleetResource by identifier // // # See also // @@ -1113,7 +1114,7 @@ func (client FleetAppsManagementClient) getWorkRequest(ctx context.Context, requ return response, err } -// ListAnnouncements Return a list of AnnouncementSummary items. +// ListAnnouncements Return a list of AnnouncementSummary items // // # See also // @@ -1171,7 +1172,7 @@ func (client FleetAppsManagementClient) listAnnouncements(ctx context.Context, r return response, err } -// ListFleetCredentials List credentials in Fleet Application Management. +// ListFleetCredentials Returns a list of FleetCredentials. // // # See also // @@ -1229,7 +1230,7 @@ func (client FleetAppsManagementClient) listFleetCredentials(ctx context.Context return response, err } -// ListFleetProducts Returns a list of products associated with the confirmed targets. +// ListFleetProducts Returns a list of FleetProducts. // // # See also // @@ -1287,7 +1288,7 @@ func (client FleetAppsManagementClient) listFleetProducts(ctx context.Context, r return response, err } -// ListFleetProperties List fleet properties in Fleet Application Management. +// ListFleetProperties Returns a list of FleetProperties. // // # See also // @@ -1345,7 +1346,7 @@ func (client FleetAppsManagementClient) listFleetProperties(ctx context.Context, return response, err } -// ListFleetResources List resources for a fleet in Fleet Application Management. +// ListFleetResources Returns a list of FleetResources. // // # See also // @@ -1403,7 +1404,7 @@ func (client FleetAppsManagementClient) listFleetResources(ctx context.Context, return response, err } -// ListFleetTargets Returns the list of all confirmed targets within a fleet. +// ListFleetTargets Returns a list of FleetTargets. // // # See also // @@ -1577,8 +1578,7 @@ func (client FleetAppsManagementClient) listInventoryResources(ctx context.Conte return response, err } -// ListTargets Return all targets belonging to the resources within a fleet. -// It will include both confirmed and unconfirmed targets. +// ListTargets Returns a list of FleetTargets. // // # See also // @@ -1810,7 +1810,7 @@ func (client FleetAppsManagementClient) listWorkRequests(ctx context.Context, re return response, err } -// RequestResourceValidation Request validation for resources within a fleet. +// RequestResourceValidation Request validation for resources with in a fleet // // # See also // @@ -1873,8 +1873,7 @@ func (client FleetAppsManagementClient) requestResourceValidation(ctx context.Co return response, err } -// RequestTargetDiscovery Confirm targets to be managed for a Fleet. -// Only targets that are confirmed will be managed by Fleet Application Management +// RequestTargetDiscovery Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS // // # See also // @@ -1937,7 +1936,7 @@ func (client FleetAppsManagementClient) requestTargetDiscovery(ctx context.Conte return response, err } -// UpdateFleet Update fleet information in Fleet Application Management. +// UpdateFleet Updates the Fleet // // # See also // @@ -1995,7 +1994,7 @@ func (client FleetAppsManagementClient) updateFleet(ctx context.Context, request return response, err } -// UpdateFleetCredential Edit credentials associated with a product or application in Fleet Application Management. +// UpdateFleetCredential Updates the FleetCredential // // # See also // @@ -2053,7 +2052,7 @@ func (client FleetAppsManagementClient) updateFleetCredential(ctx context.Contex return response, err } -// UpdateFleetProperty Edit a property associated with a fleet in Fleet Application Management. +// UpdateFleetProperty Updates the FleetProperty // // # See also // @@ -2111,7 +2110,7 @@ func (client FleetAppsManagementClient) updateFleetProperty(ctx context.Context, return response, err } -// UpdateFleetResource Updates the FleetResource. +// UpdateFleetResource Updates the FleetResource // // # See also // diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementadmin_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementadmin_client.go index 2500e08f6dd..00d36429f28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementadmin_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementadmin_client.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -91,71 +92,7 @@ func (client *FleetAppsManagementAdminClient) ConfigurationProvider() *common.Co return client.config } -// CreateCompliancePolicyRule Creates a CompliancePolicyRule. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreateCompliancePolicyRule.go.html to see an example of how to use CreateCompliancePolicyRule API. -// A default retry strategy applies to this operation CreateCompliancePolicyRule() -func (client FleetAppsManagementAdminClient) CreateCompliancePolicyRule(ctx context.Context, request CreateCompliancePolicyRuleRequest) (response CreateCompliancePolicyRuleResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createCompliancePolicyRule, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateCompliancePolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateCompliancePolicyRuleResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateCompliancePolicyRuleResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateCompliancePolicyRuleResponse") - } - return -} - -// createCompliancePolicyRule implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) createCompliancePolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/compliancePolicyRules", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateCompliancePolicyRuleResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/CreateCompliancePolicyRule" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "CreateCompliancePolicyRule", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateOnboarding Onboard a tenant to Fleet Application Management. -// The onboarding process lets Fleet Application Management create a few required policies that you need to start using it and its features. +// CreateOnboarding Onboard a tenant to Fleet Application Management Service // // # See also // @@ -218,70 +155,7 @@ func (client FleetAppsManagementAdminClient) createOnboarding(ctx context.Contex return response, err } -// CreatePlatformConfiguration Creates a new PlatformConfiguration. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreatePlatformConfiguration.go.html to see an example of how to use CreatePlatformConfiguration API. -// A default retry strategy applies to this operation CreatePlatformConfiguration() -func (client FleetAppsManagementAdminClient) CreatePlatformConfiguration(ctx context.Context, request CreatePlatformConfigurationRequest) (response CreatePlatformConfigurationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createPlatformConfiguration, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreatePlatformConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreatePlatformConfigurationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreatePlatformConfigurationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreatePlatformConfigurationResponse") - } - return -} - -// createPlatformConfiguration implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) createPlatformConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/platformConfigurations", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreatePlatformConfigurationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/CreatePlatformConfiguration" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "CreatePlatformConfiguration", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateProperty Create a business-specific metadata property in Fleet Application Management and capture the business metadata classifications. +// CreateProperty Creates a new Property. // // # See also // @@ -344,71 +218,13 @@ func (client FleetAppsManagementAdminClient) createProperty(ctx context.Context, return response, err } -// DeleteCompliancePolicyRule Deletes a CompliancePolicyRule. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteCompliancePolicyRule.go.html to see an example of how to use DeleteCompliancePolicyRule API. -// A default retry strategy applies to this operation DeleteCompliancePolicyRule() -func (client FleetAppsManagementAdminClient) DeleteCompliancePolicyRule(ctx context.Context, request DeleteCompliancePolicyRuleRequest) (response DeleteCompliancePolicyRuleResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteCompliancePolicyRule, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteCompliancePolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteCompliancePolicyRuleResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteCompliancePolicyRuleResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteCompliancePolicyRuleResponse") - } - return -} - -// deleteCompliancePolicyRule implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) deleteCompliancePolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/compliancePolicyRules/{compliancePolicyRuleId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteCompliancePolicyRuleResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/DeleteCompliancePolicyRule" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "DeleteCompliancePolicyRule", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteOnboarding Deletes Fleet Application Management onboarding resource by identifier +// DeleteProperty Deletes a Property resource by identifier // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteOnboarding.go.html to see an example of how to use DeleteOnboarding API. -// A default retry strategy applies to this operation DeleteOnboarding() -func (client FleetAppsManagementAdminClient) DeleteOnboarding(ctx context.Context, request DeleteOnboardingRequest) (response DeleteOnboardingResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteProperty.go.html to see an example of how to use DeleteProperty API. +// A default retry strategy applies to this operation DeleteProperty() +func (client FleetAppsManagementAdminClient) DeleteProperty(ctx context.Context, request DeletePropertyRequest) (response DeletePropertyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -417,42 +233,42 @@ func (client FleetAppsManagementAdminClient) DeleteOnboarding(ctx context.Contex if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteOnboarding, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteProperty, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteOnboardingResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeletePropertyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteOnboardingResponse{} + response = DeletePropertyResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteOnboardingResponse); ok { + if convertedResponse, ok := ociResponse.(DeletePropertyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteOnboardingResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeletePropertyResponse") } return } -// deleteOnboarding implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) deleteOnboarding(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteProperty implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementAdminClient) deleteProperty(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/Onboardings/{onboardingId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/properties/{propertyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteOnboardingResponse + var response DeletePropertyResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/DeleteOnboarding" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "DeleteOnboarding", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/DeleteProperty" + err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "DeleteProperty", apiReferenceLink) return response, err } @@ -460,13 +276,13 @@ func (client FleetAppsManagementAdminClient) deleteOnboarding(ctx context.Contex return response, err } -// DeletePlatformConfiguration Deletes a PlatformConfiguration resource by identifier +// GetProperty Gets a Property by identifier // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeletePlatformConfiguration.go.html to see an example of how to use DeletePlatformConfiguration API. -// A default retry strategy applies to this operation DeletePlatformConfiguration() -func (client FleetAppsManagementAdminClient) DeletePlatformConfiguration(ctx context.Context, request DeletePlatformConfigurationRequest) (response DeletePlatformConfigurationResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetProperty.go.html to see an example of how to use GetProperty API. +// A default retry strategy applies to this operation GetProperty() +func (client FleetAppsManagementAdminClient) GetProperty(ctx context.Context, request GetPropertyRequest) (response GetPropertyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -475,42 +291,42 @@ func (client FleetAppsManagementAdminClient) DeletePlatformConfiguration(ctx con if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deletePlatformConfiguration, policy) + ociResponse, err = common.Retry(ctx, request, client.getProperty, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeletePlatformConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetPropertyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeletePlatformConfigurationResponse{} + response = GetPropertyResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeletePlatformConfigurationResponse); ok { + if convertedResponse, ok := ociResponse.(GetPropertyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeletePlatformConfigurationResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetPropertyResponse") } return } -// deletePlatformConfiguration implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) deletePlatformConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getProperty implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementAdminClient) getProperty(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/platformConfigurations/{platformConfigurationId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/properties/{propertyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeletePlatformConfigurationResponse + var response GetPropertyResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/DeletePlatformConfiguration" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "DeletePlatformConfiguration", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/GetProperty" + err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "GetProperty", apiReferenceLink) return response, err } @@ -518,13 +334,13 @@ func (client FleetAppsManagementAdminClient) deletePlatformConfiguration(ctx con return response, err } -// DeleteProperty Delete a property in Fleet Application Management. +// ListOnboardingPolicies Returns a list of onboarding policy information for FAMS. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteProperty.go.html to see an example of how to use DeleteProperty API. -// A default retry strategy applies to this operation DeleteProperty() -func (client FleetAppsManagementAdminClient) DeleteProperty(ctx context.Context, request DeletePropertyRequest) (response DeletePropertyResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListOnboardingPolicies.go.html to see an example of how to use ListOnboardingPolicies API. +// A default retry strategy applies to this operation ListOnboardingPolicies() +func (client FleetAppsManagementAdminClient) ListOnboardingPolicies(ctx context.Context, request ListOnboardingPoliciesRequest) (response ListOnboardingPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -533,42 +349,42 @@ func (client FleetAppsManagementAdminClient) DeleteProperty(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteProperty, policy) + ociResponse, err = common.Retry(ctx, request, client.listOnboardingPolicies, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeletePropertyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListOnboardingPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeletePropertyResponse{} + response = ListOnboardingPoliciesResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeletePropertyResponse); ok { + if convertedResponse, ok := ociResponse.(ListOnboardingPoliciesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeletePropertyResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListOnboardingPoliciesResponse") } return } -// deleteProperty implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) deleteProperty(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listOnboardingPolicies implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementAdminClient) listOnboardingPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/properties/{propertyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/OnboardingPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeletePropertyResponse + var response ListOnboardingPoliciesResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/DeleteProperty" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "DeleteProperty", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingPolicyCollection/ListOnboardingPolicies" + err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ListOnboardingPolicies", apiReferenceLink) return response, err } @@ -576,13 +392,13 @@ func (client FleetAppsManagementAdminClient) deleteProperty(ctx context.Context, return response, err } -// EnableLatestPolicy Enable Policies for a newer version of Fleet Application Management +// ListOnboardings Returns a list of onboarding information for the Tenancy. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/EnableLatestPolicy.go.html to see an example of how to use EnableLatestPolicy API. -// A default retry strategy applies to this operation EnableLatestPolicy() -func (client FleetAppsManagementAdminClient) EnableLatestPolicy(ctx context.Context, request EnableLatestPolicyRequest) (response EnableLatestPolicyResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListOnboardings.go.html to see an example of how to use ListOnboardings API. +// A default retry strategy applies to this operation ListOnboardings() +func (client FleetAppsManagementAdminClient) ListOnboardings(ctx context.Context, request ListOnboardingsRequest) (response ListOnboardingsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -591,47 +407,42 @@ func (client FleetAppsManagementAdminClient) EnableLatestPolicy(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.enableLatestPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.listOnboardings, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = EnableLatestPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListOnboardingsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = EnableLatestPolicyResponse{} + response = ListOnboardingsResponse{} } } return } - if convertedResponse, ok := ociResponse.(EnableLatestPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(ListOnboardingsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into EnableLatestPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListOnboardingsResponse") } return } -// enableLatestPolicy implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) enableLatestPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listOnboardings implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementAdminClient) listOnboardings(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/Onboardings/{onboardingId}/actions/enableLatestPolicy", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/Onboardings", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response EnableLatestPolicyResponse + var response ListOnboardingsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/EnableLatestPolicy" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "EnableLatestPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingCollection/ListOnboardings" + err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ListOnboardings", apiReferenceLink) return response, err } @@ -639,13 +450,13 @@ func (client FleetAppsManagementAdminClient) enableLatestPolicy(ctx context.Cont return response, err } -// GetCompliancePolicy Gets information about a CompliancePolicy. +// ListProperties Returns a list of Properties for Tenancy. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicy.go.html to see an example of how to use GetCompliancePolicy API. -// A default retry strategy applies to this operation GetCompliancePolicy() -func (client FleetAppsManagementAdminClient) GetCompliancePolicy(ctx context.Context, request GetCompliancePolicyRequest) (response GetCompliancePolicyResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListProperties.go.html to see an example of how to use ListProperties API. +// A default retry strategy applies to this operation ListProperties() +func (client FleetAppsManagementAdminClient) ListProperties(ctx context.Context, request ListPropertiesRequest) (response ListPropertiesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -654,615 +465,35 @@ func (client FleetAppsManagementAdminClient) GetCompliancePolicy(ctx context.Con if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getCompliancePolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.listProperties, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetCompliancePolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListPropertiesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetCompliancePolicyResponse{} + response = ListPropertiesResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetCompliancePolicyResponse); ok { + if convertedResponse, ok := ociResponse.(ListPropertiesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetCompliancePolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListPropertiesResponse") } return } -// getCompliancePolicy implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) getCompliancePolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listProperties implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementAdminClient) listProperties(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/compliancePolicies/{compliancePolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/properties", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetCompliancePolicyResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicy/GetCompliancePolicy" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "GetCompliancePolicy", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetCompliancePolicyRule Gets information about a CompliancePolicyRule. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicyRule.go.html to see an example of how to use GetCompliancePolicyRule API. -// A default retry strategy applies to this operation GetCompliancePolicyRule() -func (client FleetAppsManagementAdminClient) GetCompliancePolicyRule(ctx context.Context, request GetCompliancePolicyRuleRequest) (response GetCompliancePolicyRuleResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getCompliancePolicyRule, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetCompliancePolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetCompliancePolicyRuleResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetCompliancePolicyRuleResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetCompliancePolicyRuleResponse") - } - return -} - -// getCompliancePolicyRule implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) getCompliancePolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/compliancePolicyRules/{compliancePolicyRuleId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetCompliancePolicyRuleResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/GetCompliancePolicyRule" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "GetCompliancePolicyRule", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetOnboarding Gets a Fleet Application Management Onboarding by identifier. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetOnboarding.go.html to see an example of how to use GetOnboarding API. -// A default retry strategy applies to this operation GetOnboarding() -func (client FleetAppsManagementAdminClient) GetOnboarding(ctx context.Context, request GetOnboardingRequest) (response GetOnboardingResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getOnboarding, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetOnboardingResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetOnboardingResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetOnboardingResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetOnboardingResponse") - } - return -} - -// getOnboarding implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) getOnboarding(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/Onboardings/{onboardingId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetOnboardingResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/GetOnboarding" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "GetOnboarding", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetPlatformConfiguration Gets a PlatformConfiguration by identifier -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetPlatformConfiguration.go.html to see an example of how to use GetPlatformConfiguration API. -// A default retry strategy applies to this operation GetPlatformConfiguration() -func (client FleetAppsManagementAdminClient) GetPlatformConfiguration(ctx context.Context, request GetPlatformConfigurationRequest) (response GetPlatformConfigurationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getPlatformConfiguration, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetPlatformConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetPlatformConfigurationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetPlatformConfigurationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetPlatformConfigurationResponse") - } - return -} - -// getPlatformConfiguration implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) getPlatformConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/platformConfigurations/{platformConfigurationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetPlatformConfigurationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/GetPlatformConfiguration" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "GetPlatformConfiguration", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetProperty Gets a Property by identifier -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetProperty.go.html to see an example of how to use GetProperty API. -// A default retry strategy applies to this operation GetProperty() -func (client FleetAppsManagementAdminClient) GetProperty(ctx context.Context, request GetPropertyRequest) (response GetPropertyResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getProperty, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetPropertyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetPropertyResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetPropertyResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetPropertyResponse") - } - return -} - -// getProperty implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) getProperty(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/properties/{propertyId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetPropertyResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/GetProperty" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "GetProperty", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListCompliancePolicies Gets a list of compliancePolicies. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicies.go.html to see an example of how to use ListCompliancePolicies API. -// A default retry strategy applies to this operation ListCompliancePolicies() -func (client FleetAppsManagementAdminClient) ListCompliancePolicies(ctx context.Context, request ListCompliancePoliciesRequest) (response ListCompliancePoliciesResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listCompliancePolicies, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListCompliancePoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListCompliancePoliciesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListCompliancePoliciesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListCompliancePoliciesResponse") - } - return -} - -// listCompliancePolicies implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) listCompliancePolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/compliancePolicies", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListCompliancePoliciesResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyCollection/ListCompliancePolicies" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ListCompliancePolicies", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListCompliancePolicyRules Gets a list of CompliancePolicyRules. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicyRules.go.html to see an example of how to use ListCompliancePolicyRules API. -// A default retry strategy applies to this operation ListCompliancePolicyRules() -func (client FleetAppsManagementAdminClient) ListCompliancePolicyRules(ctx context.Context, request ListCompliancePolicyRulesRequest) (response ListCompliancePolicyRulesResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listCompliancePolicyRules, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListCompliancePolicyRulesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListCompliancePolicyRulesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListCompliancePolicyRulesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListCompliancePolicyRulesResponse") - } - return -} - -// listCompliancePolicyRules implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) listCompliancePolicyRules(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/compliancePolicyRules", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListCompliancePolicyRulesResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRuleCollection/ListCompliancePolicyRules" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ListCompliancePolicyRules", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListOnboardingPolicies Returns a list of onboarding policy information for Fleet Application Management. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListOnboardingPolicies.go.html to see an example of how to use ListOnboardingPolicies API. -// A default retry strategy applies to this operation ListOnboardingPolicies() -func (client FleetAppsManagementAdminClient) ListOnboardingPolicies(ctx context.Context, request ListOnboardingPoliciesRequest) (response ListOnboardingPoliciesResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listOnboardingPolicies, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListOnboardingPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListOnboardingPoliciesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListOnboardingPoliciesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListOnboardingPoliciesResponse") - } - return -} - -// listOnboardingPolicies implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) listOnboardingPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/OnboardingPolicies", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListOnboardingPoliciesResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingPolicyCollection/ListOnboardingPolicies" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ListOnboardingPolicies", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListOnboardings Returns a list of onboarding information for the Tenancy. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListOnboardings.go.html to see an example of how to use ListOnboardings API. -// A default retry strategy applies to this operation ListOnboardings() -func (client FleetAppsManagementAdminClient) ListOnboardings(ctx context.Context, request ListOnboardingsRequest) (response ListOnboardingsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listOnboardings, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListOnboardingsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListOnboardingsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListOnboardingsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListOnboardingsResponse") - } - return -} - -// listOnboardings implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) listOnboardings(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/Onboardings", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListOnboardingsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingCollection/ListOnboardings" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ListOnboardings", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListPlatformConfigurations Returns a list of PlatformConfiguration for Tenancy. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListPlatformConfigurations.go.html to see an example of how to use ListPlatformConfigurations API. -// A default retry strategy applies to this operation ListPlatformConfigurations() -func (client FleetAppsManagementAdminClient) ListPlatformConfigurations(ctx context.Context, request ListPlatformConfigurationsRequest) (response ListPlatformConfigurationsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listPlatformConfigurations, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListPlatformConfigurationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListPlatformConfigurationsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListPlatformConfigurationsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListPlatformConfigurationsResponse") - } - return -} - -// listPlatformConfigurations implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) listPlatformConfigurations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/platformConfigurations", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListPlatformConfigurationsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfigurationCollection/ListPlatformConfigurations" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ListPlatformConfigurations", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListProperties List properties and their values for a tenancy in Fleet Application Management. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListProperties.go.html to see an example of how to use ListProperties API. -// A default retry strategy applies to this operation ListProperties() -func (client FleetAppsManagementAdminClient) ListProperties(ctx context.Context, request ListPropertiesRequest) (response ListPropertiesResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listProperties, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListPropertiesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListPropertiesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListPropertiesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListPropertiesResponse") - } - return -} - -// listProperties implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) listProperties(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/properties", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListPropertiesResponse + var response ListPropertiesResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) @@ -1277,244 +508,7 @@ func (client FleetAppsManagementAdminClient) listProperties(ctx context.Context, return response, err } -// ManageSettings Updates the Onboarding setting -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ManageSettings.go.html to see an example of how to use ManageSettings API. -// A default retry strategy applies to this operation ManageSettings() -func (client FleetAppsManagementAdminClient) ManageSettings(ctx context.Context, request ManageSettingsRequest) (response ManageSettingsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.manageSettings, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ManageSettingsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ManageSettingsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ManageSettingsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ManageSettingsResponse") - } - return -} - -// manageSettings implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) manageSettings(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/Onboardings/{onboardingId}/actions/manageSettings", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ManageSettingsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/ManageSettings" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "ManageSettings", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateCompliancePolicyRule Updates a CompliancePolicyRule. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateCompliancePolicyRule.go.html to see an example of how to use UpdateCompliancePolicyRule API. -// A default retry strategy applies to this operation UpdateCompliancePolicyRule() -func (client FleetAppsManagementAdminClient) UpdateCompliancePolicyRule(ctx context.Context, request UpdateCompliancePolicyRuleRequest) (response UpdateCompliancePolicyRuleResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateCompliancePolicyRule, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateCompliancePolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateCompliancePolicyRuleResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateCompliancePolicyRuleResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateCompliancePolicyRuleResponse") - } - return -} - -// updateCompliancePolicyRule implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) updateCompliancePolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/compliancePolicyRules/{compliancePolicyRuleId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateCompliancePolicyRuleResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/UpdateCompliancePolicyRule" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "UpdateCompliancePolicyRule", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateOnboarding Updates the Onboarding -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateOnboarding.go.html to see an example of how to use UpdateOnboarding API. -// A default retry strategy applies to this operation UpdateOnboarding() -func (client FleetAppsManagementAdminClient) UpdateOnboarding(ctx context.Context, request UpdateOnboardingRequest) (response UpdateOnboardingResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateOnboarding, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateOnboardingResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateOnboardingResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateOnboardingResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateOnboardingResponse") - } - return -} - -// updateOnboarding implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) updateOnboarding(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/Onboardings/{onboardingId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateOnboardingResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/UpdateOnboarding" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "UpdateOnboarding", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdatePlatformConfiguration Updates the PlatformConfiguration -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdatePlatformConfiguration.go.html to see an example of how to use UpdatePlatformConfiguration API. -// A default retry strategy applies to this operation UpdatePlatformConfiguration() -func (client FleetAppsManagementAdminClient) UpdatePlatformConfiguration(ctx context.Context, request UpdatePlatformConfigurationRequest) (response UpdatePlatformConfigurationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updatePlatformConfiguration, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdatePlatformConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdatePlatformConfigurationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdatePlatformConfigurationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdatePlatformConfigurationResponse") - } - return -} - -// updatePlatformConfiguration implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementAdminClient) updatePlatformConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/platformConfigurations/{platformConfigurationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdatePlatformConfigurationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/UpdatePlatformConfiguration" - err = common.PostProcessServiceError(err, "FleetAppsManagementAdmin", "UpdatePlatformConfiguration", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateProperty Update a property in Fleet Application Management. +// UpdateProperty Updates the Property // // # See also // diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementmaintenancewindow_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementmaintenancewindow_client.go index 725122e1ff7..2407f137ac7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementmaintenancewindow_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementmaintenancewindow_client.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -91,7 +92,7 @@ func (client *FleetAppsManagementMaintenanceWindowClient) ConfigurationProvider( return client.config } -// CreateMaintenanceWindow Create a maintenance window in Fleet Application Management. +// CreateMaintenanceWindow Creates a new MaintenanceWindow. // // # See also // @@ -154,7 +155,7 @@ func (client FleetAppsManagementMaintenanceWindowClient) createMaintenanceWindow return response, err } -// DeleteMaintenanceWindow Delete a maintenance window in Fleet Application Management. +// DeleteMaintenanceWindow Deletes a MaintenanceWindow resource by identifier // // # See also // @@ -212,7 +213,7 @@ func (client FleetAppsManagementMaintenanceWindowClient) deleteMaintenanceWindow return response, err } -// GetMaintenanceWindow Get the details for a maintenance window in Fleet Application Management. +// GetMaintenanceWindow Gets a MaintenanceWindow by identifier // // # See also // @@ -270,7 +271,7 @@ func (client FleetAppsManagementMaintenanceWindowClient) getMaintenanceWindow(ct return response, err } -// ListMaintenanceWindows List maintenance windows for a specified tenancy in Fleet Application Management. +// ListMaintenanceWindows Returns a list of MaintenanceWindows in the specified Tenancy. // // # See also // @@ -328,7 +329,7 @@ func (client FleetAppsManagementMaintenanceWindowClient) listMaintenanceWindows( return response, err } -// UpdateMaintenanceWindow Update a maintenance window in Fleet Application Management. +// UpdateMaintenanceWindow Updates the MaintenanceWindow // // # See also // diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementoperations_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementoperations_client.go index 95c2a17764a..e215956a36e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementoperations_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementoperations_client.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -91,70 +92,7 @@ func (client *FleetAppsManagementOperationsClient) ConfigurationProvider() *comm return client.config } -// CreatePatch Creates a new Patch. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreatePatch.go.html to see an example of how to use CreatePatch API. -// A default retry strategy applies to this operation CreatePatch() -func (client FleetAppsManagementOperationsClient) CreatePatch(ctx context.Context, request CreatePatchRequest) (response CreatePatchResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createPatch, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreatePatchResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreatePatchResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreatePatchResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreatePatchResponse") - } - return -} - -// createPatch implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) createPatch(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/patches", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreatePatchResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/CreatePatch" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "CreatePatch", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateSchedulerDefinition Create a SchedulerDefinition to perform lifecycle operations. +// CreateSchedulerDefinition Creates a new SchedulerDefinition. // // # See also // @@ -217,64 +155,6 @@ func (client FleetAppsManagementOperationsClient) createSchedulerDefinition(ctx return response, err } -// DeletePatch Deletes a Patch resource by identifier -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeletePatch.go.html to see an example of how to use DeletePatch API. -// A default retry strategy applies to this operation DeletePatch() -func (client FleetAppsManagementOperationsClient) DeletePatch(ctx context.Context, request DeletePatchRequest) (response DeletePatchResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deletePatch, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeletePatchResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeletePatchResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeletePatchResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeletePatchResponse") - } - return -} - -// deletePatch implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) deletePatch(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/patches/{patchId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeletePatchResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/DeletePatch" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "DeletePatch", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // DeleteSchedulerDefinition Deletes a SchedulerDefinition resource by identifier // // # See also @@ -333,7 +213,7 @@ func (client FleetAppsManagementOperationsClient) deleteSchedulerDefinition(ctx return response, err } -// DeleteSchedulerJob Delete a lifecycle operation schedule in Fleet Application Management. +// DeleteSchedulerJob Deletes a SchedulerJob resource by identifier // // # See also // @@ -391,69 +271,7 @@ func (client FleetAppsManagementOperationsClient) deleteSchedulerJob(ctx context return response, err } -// ExportComplianceReport Generate Compliance Report -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ExportComplianceReport.go.html to see an example of how to use ExportComplianceReport API. -// A default retry strategy applies to this operation ExportComplianceReport() -func (client FleetAppsManagementOperationsClient) ExportComplianceReport(ctx context.Context, request ExportComplianceReportRequest) (response ExportComplianceReportResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.exportComplianceReport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ExportComplianceReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ExportComplianceReportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ExportComplianceReportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ExportComplianceReportResponse") - } - return -} - -// exportComplianceReport implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) exportComplianceReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/complianceRecords/actions/exportComplianceReport", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ExportComplianceReportResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ComplianceRecord/ExportComplianceReport" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ExportComplianceReport", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetExecution Get Task Execution by Identifier for a Resource within an action group. +// GetExecution Gets a JobActivity by identifier // // # See also // @@ -511,7 +329,7 @@ func (client FleetAppsManagementOperationsClient) getExecution(ctx context.Conte return response, err } -// GetJobActivity Gets activity details by identifier for a job. +// GetJobActivity Gets a JobActivity by identifier // // # See also // @@ -569,65 +387,7 @@ func (client FleetAppsManagementOperationsClient) getJobActivity(ctx context.Con return response, err } -// GetPatch Gets a Patch by identifier -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetPatch.go.html to see an example of how to use GetPatch API. -// A default retry strategy applies to this operation GetPatch() -func (client FleetAppsManagementOperationsClient) GetPatch(ctx context.Context, request GetPatchRequest) (response GetPatchResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getPatch, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetPatchResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetPatchResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetPatchResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetPatchResponse") - } - return -} - -// getPatch implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) getPatch(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/patches/{patchId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetPatchResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/GetPatch" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "GetPatch", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetSchedulerDefinition Get the details of a SchedulerDefinition that performs lifecycle management operations. +// GetSchedulerDefinition Gets a SchedulerDefinition by identifier // // # See also // @@ -685,7 +445,7 @@ func (client FleetAppsManagementOperationsClient) getSchedulerDefinition(ctx con return response, err } -// GetSchedulerJob Get the details of a lifecycle management operations job in Fleet Application Management. +// GetSchedulerJob Gets a SchedulerJob by identifier // // # See also // @@ -743,13 +503,13 @@ func (client FleetAppsManagementOperationsClient) getSchedulerJob(ctx context.Co return response, err } -// ListComplianceRecords Gets a list of complianceDetails. +// ListExecutions Returns a list of Task Executions for a Resource. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListComplianceRecords.go.html to see an example of how to use ListComplianceRecords API. -// A default retry strategy applies to this operation ListComplianceRecords() -func (client FleetAppsManagementOperationsClient) ListComplianceRecords(ctx context.Context, request ListComplianceRecordsRequest) (response ListComplianceRecordsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListExecutions.go.html to see an example of how to use ListExecutions API. +// A default retry strategy applies to this operation ListExecutions() +func (client FleetAppsManagementOperationsClient) ListExecutions(ctx context.Context, request ListExecutionsRequest) (response ListExecutionsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -758,42 +518,42 @@ func (client FleetAppsManagementOperationsClient) ListComplianceRecords(ctx cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listComplianceRecords, policy) + ociResponse, err = common.Retry(ctx, request, client.listExecutions, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListComplianceRecordsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListExecutionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListComplianceRecordsResponse{} + response = ListExecutionsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListComplianceRecordsResponse); ok { + if convertedResponse, ok := ociResponse.(ListExecutionsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListComplianceRecordsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExecutionsResponse") } return } -// listComplianceRecords implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listComplianceRecords(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExecutions implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementOperationsClient) listExecutions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/complianceRecords", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListComplianceRecordsResponse + var response ListExecutionsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ComplianceRecordCollection/ListComplianceRecords" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListComplianceRecords", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ExecutionCollection/ListExecutions" + err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListExecutions", apiReferenceLink) return response, err } @@ -801,13 +561,13 @@ func (client FleetAppsManagementOperationsClient) listComplianceRecords(ctx cont return response, err } -// ListExecutions Returns a list of Task Executions for a Resource. +// ListScheduledFleets Returns a list of ScheduledFleets // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListExecutions.go.html to see an example of how to use ListExecutions API. -// A default retry strategy applies to this operation ListExecutions() -func (client FleetAppsManagementOperationsClient) ListExecutions(ctx context.Context, request ListExecutionsRequest) (response ListExecutionsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListScheduledFleets.go.html to see an example of how to use ListScheduledFleets API. +// A default retry strategy applies to this operation ListScheduledFleets() +func (client FleetAppsManagementOperationsClient) ListScheduledFleets(ctx context.Context, request ListScheduledFleetsRequest) (response ListScheduledFleetsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -816,42 +576,42 @@ func (client FleetAppsManagementOperationsClient) ListExecutions(ctx context.Con if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listExecutions, policy) + ociResponse, err = common.Retry(ctx, request, client.listScheduledFleets, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListExecutionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListScheduledFleetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListExecutionsResponse{} + response = ListScheduledFleetsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListExecutionsResponse); ok { + if convertedResponse, ok := ociResponse.(ListScheduledFleetsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListExecutionsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListScheduledFleetsResponse") } return } -// listExecutions implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listExecutions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listScheduledFleets implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementOperationsClient) listScheduledFleets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerDefinitions/{schedulerDefinitionId}/scheduledFleets", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListExecutionsResponse + var response ListScheduledFleetsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ExecutionCollection/ListExecutions" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListExecutions", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ScheduledFleetCollection/ListScheduledFleets" + err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListScheduledFleets", apiReferenceLink) return response, err } @@ -859,13 +619,13 @@ func (client FleetAppsManagementOperationsClient) listExecutions(ctx context.Con return response, err } -// ListPatches Returns a list of Patches. +// ListSchedulerDefinitions Returns a list of SchedulerDefinitions. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListPatches.go.html to see an example of how to use ListPatches API. -// A default retry strategy applies to this operation ListPatches() -func (client FleetAppsManagementOperationsClient) ListPatches(ctx context.Context, request ListPatchesRequest) (response ListPatchesResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListSchedulerDefinitions.go.html to see an example of how to use ListSchedulerDefinitions API. +// A default retry strategy applies to this operation ListSchedulerDefinitions() +func (client FleetAppsManagementOperationsClient) ListSchedulerDefinitions(ctx context.Context, request ListSchedulerDefinitionsRequest) (response ListSchedulerDefinitionsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -874,42 +634,42 @@ func (client FleetAppsManagementOperationsClient) ListPatches(ctx context.Contex if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listPatches, policy) + ociResponse, err = common.Retry(ctx, request, client.listSchedulerDefinitions, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListPatchesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSchedulerDefinitionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListPatchesResponse{} + response = ListSchedulerDefinitionsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListPatchesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSchedulerDefinitionsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListPatchesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSchedulerDefinitionsResponse") } return } -// listPatches implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listPatches(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSchedulerDefinitions implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementOperationsClient) listSchedulerDefinitions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/patches", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerDefinitions", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListPatchesResponse + var response ListSchedulerDefinitionsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PatchCollection/ListPatches" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListPatches", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerDefinitionCollection/ListSchedulerDefinitions" + err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListSchedulerDefinitions", apiReferenceLink) return response, err } @@ -917,13 +677,13 @@ func (client FleetAppsManagementOperationsClient) listPatches(ctx context.Contex return response, err } -// ListResources Returns a list of resources for an Activity Execution. +// ListSchedulerJobs Returns a list of SchedulerJobs. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListResources.go.html to see an example of how to use ListResources API. -// A default retry strategy applies to this operation ListResources() -func (client FleetAppsManagementOperationsClient) ListResources(ctx context.Context, request ListResourcesRequest) (response ListResourcesResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListSchedulerJobs.go.html to see an example of how to use ListSchedulerJobs API. +// A default retry strategy applies to this operation ListSchedulerJobs() +func (client FleetAppsManagementOperationsClient) ListSchedulerJobs(ctx context.Context, request ListSchedulerJobsRequest) (response ListSchedulerJobsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -932,209 +692,35 @@ func (client FleetAppsManagementOperationsClient) ListResources(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listResources, policy) + ociResponse, err = common.Retry(ctx, request, client.listSchedulerJobs, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListResourcesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSchedulerJobsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListResourcesResponse{} + response = ListSchedulerJobsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListResourcesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSchedulerJobsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListResourcesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSchedulerJobsResponse") } return } -// listResources implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listResources(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSchedulerJobs implements the OCIOperation interface (enables retrying operations) +func (client FleetAppsManagementOperationsClient) listSchedulerJobs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerJobs", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListResourcesResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ResourceCollection/ListResources" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListResources", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListScheduledFleets Returns a list of ScheduledFleets. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListScheduledFleets.go.html to see an example of how to use ListScheduledFleets API. -// A default retry strategy applies to this operation ListScheduledFleets() -func (client FleetAppsManagementOperationsClient) ListScheduledFleets(ctx context.Context, request ListScheduledFleetsRequest) (response ListScheduledFleetsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listScheduledFleets, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListScheduledFleetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListScheduledFleetsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListScheduledFleetsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListScheduledFleetsResponse") - } - return -} - -// listScheduledFleets implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listScheduledFleets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerDefinitions/{schedulerDefinitionId}/scheduledFleets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListScheduledFleetsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ScheduledFleetCollection/ListScheduledFleets" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListScheduledFleets", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListSchedulerDefinitions List all lifecycle management schedules in Fleet Application Management. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListSchedulerDefinitions.go.html to see an example of how to use ListSchedulerDefinitions API. -// A default retry strategy applies to this operation ListSchedulerDefinitions() -func (client FleetAppsManagementOperationsClient) ListSchedulerDefinitions(ctx context.Context, request ListSchedulerDefinitionsRequest) (response ListSchedulerDefinitionsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listSchedulerDefinitions, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSchedulerDefinitionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListSchedulerDefinitionsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListSchedulerDefinitionsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSchedulerDefinitionsResponse") - } - return -} - -// listSchedulerDefinitions implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listSchedulerDefinitions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerDefinitions", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListSchedulerDefinitionsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerDefinitionCollection/ListSchedulerDefinitions" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListSchedulerDefinitions", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListSchedulerJobs List scheduled lifecycle operation jobs in Fleet Application Management. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListSchedulerJobs.go.html to see an example of how to use ListSchedulerJobs API. -// A default retry strategy applies to this operation ListSchedulerJobs() -func (client FleetAppsManagementOperationsClient) ListSchedulerJobs(ctx context.Context, request ListSchedulerJobsRequest) (response ListSchedulerJobsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listSchedulerJobs, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSchedulerJobsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListSchedulerJobsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListSchedulerJobsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSchedulerJobsResponse") - } - return -} - -// listSchedulerJobs implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listSchedulerJobs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerJobs", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListSchedulerJobsResponse + var response ListSchedulerJobsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) @@ -1149,360 +735,7 @@ func (client FleetAppsManagementOperationsClient) listSchedulerJobs(ctx context. return response, err } -// ListSteps Returns a list of Steps for an Activity Execution. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListSteps.go.html to see an example of how to use ListSteps API. -// A default retry strategy applies to this operation ListSteps() -func (client FleetAppsManagementOperationsClient) ListSteps(ctx context.Context, request ListStepsRequest) (response ListStepsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listSteps, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListStepsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListStepsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListStepsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListStepsResponse") - } - return -} - -// listSteps implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) listSteps(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/steps", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListStepsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/StepCollection/ListSteps" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ListSteps", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ManageJobExecution Manage execution actions for a Job like retrying or pausing a task. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ManageJobExecution.go.html to see an example of how to use ManageJobExecution API. -// A default retry strategy applies to this operation ManageJobExecution() -func (client FleetAppsManagementOperationsClient) ManageJobExecution(ctx context.Context, request ManageJobExecutionRequest) (response ManageJobExecutionResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.manageJobExecution, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ManageJobExecutionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ManageJobExecutionResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ManageJobExecutionResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ManageJobExecutionResponse") - } - return -} - -// manageJobExecution implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) manageJobExecution(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/schedulerJobs/{schedulerJobId}/actions/manageJobExecution", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ManageJobExecutionResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerJob/ManageJobExecution" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "ManageJobExecution", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// SummarizeComplianceRecordCounts Retrieve aggregated summary information of ComplianceRecords within a Tenancy. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SummarizeComplianceRecordCounts.go.html to see an example of how to use SummarizeComplianceRecordCounts API. -// A default retry strategy applies to this operation SummarizeComplianceRecordCounts() -func (client FleetAppsManagementOperationsClient) SummarizeComplianceRecordCounts(ctx context.Context, request SummarizeComplianceRecordCountsRequest) (response SummarizeComplianceRecordCountsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.summarizeComplianceRecordCounts, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = SummarizeComplianceRecordCountsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = SummarizeComplianceRecordCountsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(SummarizeComplianceRecordCountsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into SummarizeComplianceRecordCountsResponse") - } - return -} - -// summarizeComplianceRecordCounts implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) summarizeComplianceRecordCounts(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/complianceRecordCounts", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response SummarizeComplianceRecordCountsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ComplianceRecordAggregationCollection/SummarizeComplianceRecordCounts" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "SummarizeComplianceRecordCounts", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// SummarizeManagedEntityCounts Retrieve aggregated summary information of Managed Entities within a Tenancy. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SummarizeManagedEntityCounts.go.html to see an example of how to use SummarizeManagedEntityCounts API. -// A default retry strategy applies to this operation SummarizeManagedEntityCounts() -func (client FleetAppsManagementOperationsClient) SummarizeManagedEntityCounts(ctx context.Context, request SummarizeManagedEntityCountsRequest) (response SummarizeManagedEntityCountsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.summarizeManagedEntityCounts, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = SummarizeManagedEntityCountsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = SummarizeManagedEntityCountsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(SummarizeManagedEntityCountsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into SummarizeManagedEntityCountsResponse") - } - return -} - -// summarizeManagedEntityCounts implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) summarizeManagedEntityCounts(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/managedEntityCounts", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response SummarizeManagedEntityCountsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ManagedEntityAggregationCollection/SummarizeManagedEntityCounts" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "SummarizeManagedEntityCounts", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// SummarizeSchedulerJobCounts Retrieve aggregated summary information of Scheduler Jobs within a Tenancy. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SummarizeSchedulerJobCounts.go.html to see an example of how to use SummarizeSchedulerJobCounts API. -// A default retry strategy applies to this operation SummarizeSchedulerJobCounts() -func (client FleetAppsManagementOperationsClient) SummarizeSchedulerJobCounts(ctx context.Context, request SummarizeSchedulerJobCountsRequest) (response SummarizeSchedulerJobCountsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.summarizeSchedulerJobCounts, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = SummarizeSchedulerJobCountsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = SummarizeSchedulerJobCountsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(SummarizeSchedulerJobCountsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into SummarizeSchedulerJobCountsResponse") - } - return -} - -// summarizeSchedulerJobCounts implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) summarizeSchedulerJobCounts(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedulerJobCounts", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response SummarizeSchedulerJobCountsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerJobAggregationCollection/SummarizeSchedulerJobCounts" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "SummarizeSchedulerJobCounts", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdatePatch Updates the Patch -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdatePatch.go.html to see an example of how to use UpdatePatch API. -// A default retry strategy applies to this operation UpdatePatch() -func (client FleetAppsManagementOperationsClient) UpdatePatch(ctx context.Context, request UpdatePatchRequest) (response UpdatePatchResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updatePatch, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdatePatchResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdatePatchResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdatePatchResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdatePatchResponse") - } - return -} - -// updatePatch implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementOperationsClient) updatePatch(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/patches/{patchId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdatePatchResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/UpdatePatch" - err = common.PostProcessServiceError(err, "FleetAppsManagementOperations", "UpdatePatch", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateSchedulerDefinition Update the details of a SchedulerDefinition that performs lifecycle management operations. +// UpdateSchedulerDefinition Updates the SchedulerDefinition // // # See also // @@ -1560,7 +793,7 @@ func (client FleetAppsManagementOperationsClient) updateSchedulerDefinition(ctx return response, err } -// UpdateSchedulerJob Update a lifecycle operation job schedule in Fleet Application Management. +// UpdateSchedulerJob Updates the SchedulerJob // // # See also // diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementrunbooks_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementrunbooks_client.go index df99e39546e..5ea1cc2aa7e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementrunbooks_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/fleetappsmanagement_fleetappsmanagementrunbooks_client.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -91,249 +92,7 @@ func (client *FleetAppsManagementRunbooksClient) ConfigurationProvider() *common return client.config } -// CreateRunbook Creates a new Runbook. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreateRunbook.go.html to see an example of how to use CreateRunbook API. -// A default retry strategy applies to this operation CreateRunbook() -func (client FleetAppsManagementRunbooksClient) CreateRunbook(ctx context.Context, request CreateRunbookRequest) (response CreateRunbookResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createRunbook, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateRunbookResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateRunbookResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateRunbookResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateRunbookResponse") - } - return -} - -// createRunbook implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) createRunbook(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/runbooks", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateRunbookResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/CreateRunbook" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "CreateRunbook", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateTaskRecord Creates a new Task. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/CreateTaskRecord.go.html to see an example of how to use CreateTaskRecord API. -// A default retry strategy applies to this operation CreateTaskRecord() -func (client FleetAppsManagementRunbooksClient) CreateTaskRecord(ctx context.Context, request CreateTaskRecordRequest) (response CreateTaskRecordResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createTaskRecord, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateTaskRecordResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateTaskRecordResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateTaskRecordResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateTaskRecordResponse") - } - return -} - -// createTaskRecord implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) createTaskRecord(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/taskRecords", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateTaskRecordResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/CreateTaskRecord" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "CreateTaskRecord", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteRunbook Deletes a Runbook resource by identifier -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteRunbook.go.html to see an example of how to use DeleteRunbook API. -// A default retry strategy applies to this operation DeleteRunbook() -func (client FleetAppsManagementRunbooksClient) DeleteRunbook(ctx context.Context, request DeleteRunbookRequest) (response DeleteRunbookResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteRunbook, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteRunbookResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteRunbookResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteRunbookResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteRunbookResponse") - } - return -} - -// deleteRunbook implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) deleteRunbook(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/runbooks/{runbookId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteRunbookResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/DeleteRunbook" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "DeleteRunbook", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteTaskRecord Deletes a Task Record resource by identifier -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/DeleteTaskRecord.go.html to see an example of how to use DeleteTaskRecord API. -// A default retry strategy applies to this operation DeleteTaskRecord() -func (client FleetAppsManagementRunbooksClient) DeleteTaskRecord(ctx context.Context, request DeleteTaskRecordRequest) (response DeleteTaskRecordResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteTaskRecord, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteTaskRecordResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteTaskRecordResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteTaskRecordResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteTaskRecordResponse") - } - return -} - -// deleteTaskRecord implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) deleteTaskRecord(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/taskRecords/{taskRecordId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteTaskRecordResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/DeleteTaskRecord" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "DeleteTaskRecord", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetRunbook Get the details of a runbook in Fleet Application Management. +// GetRunbook Gets a Runbook by identifier // // # See also // @@ -391,7 +150,7 @@ func (client FleetAppsManagementRunbooksClient) getRunbook(ctx context.Context, return response, err } -// GetTaskRecord Gets a Task by identifier +// GetTaskRecord Gets a TaskRecord by identifier // // # See also // @@ -449,7 +208,7 @@ func (client FleetAppsManagementRunbooksClient) getTaskRecord(ctx context.Contex return response, err } -// ListRunbooks List runbooks in Fleet Application Management. +// ListRunbooks Returns a list of Runbooks. // // # See also // @@ -564,245 +323,3 @@ func (client FleetAppsManagementRunbooksClient) listTaskRecords(ctx context.Cont err = common.UnmarshalResponse(httpResponse, &response) return response, err } - -// PublishRunbook Publish a Runbook. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/PublishRunbook.go.html to see an example of how to use PublishRunbook API. -// A default retry strategy applies to this operation PublishRunbook() -func (client FleetAppsManagementRunbooksClient) PublishRunbook(ctx context.Context, request PublishRunbookRequest) (response PublishRunbookResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.publishRunbook, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = PublishRunbookResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = PublishRunbookResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(PublishRunbookResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into PublishRunbookResponse") - } - return -} - -// publishRunbook implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) publishRunbook(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/runbooks/actions/publishRunbook", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response PublishRunbookResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/PublishRunbook" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "PublishRunbook", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// SetDefaultRunbook Publish a Runbook. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SetDefaultRunbook.go.html to see an example of how to use SetDefaultRunbook API. -// A default retry strategy applies to this operation SetDefaultRunbook() -func (client FleetAppsManagementRunbooksClient) SetDefaultRunbook(ctx context.Context, request SetDefaultRunbookRequest) (response SetDefaultRunbookResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.setDefaultRunbook, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = SetDefaultRunbookResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = SetDefaultRunbookResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(SetDefaultRunbookResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into SetDefaultRunbookResponse") - } - return -} - -// setDefaultRunbook implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) setDefaultRunbook(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/runbooks/actions/setDefaultRunbook", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response SetDefaultRunbookResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/SetDefaultRunbook" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "SetDefaultRunbook", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateRunbook Updates the Ronbook -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateRunbook.go.html to see an example of how to use UpdateRunbook API. -// A default retry strategy applies to this operation UpdateRunbook() -func (client FleetAppsManagementRunbooksClient) UpdateRunbook(ctx context.Context, request UpdateRunbookRequest) (response UpdateRunbookResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateRunbook, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateRunbookResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateRunbookResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateRunbookResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateRunbookResponse") - } - return -} - -// updateRunbook implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) updateRunbook(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/runbooks/{runbookId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateRunbookResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/UpdateRunbook" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "UpdateRunbook", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateTaskRecord Updates the Task -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateTaskRecord.go.html to see an example of how to use UpdateTaskRecord API. -// A default retry strategy applies to this operation UpdateTaskRecord() -func (client FleetAppsManagementRunbooksClient) UpdateTaskRecord(ctx context.Context, request UpdateTaskRecordRequest) (response UpdateTaskRecordResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateTaskRecord, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateTaskRecordResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateTaskRecordResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateTaskRecordResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateTaskRecordResponse") - } - return -} - -// updateTaskRecord implements the OCIOperation interface (enables retrying operations) -func (client FleetAppsManagementRunbooksClient) updateTaskRecord(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/taskRecords/{taskRecordId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateTaskRecordResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/UpdateTaskRecord" - err = common.PostProcessServiceError(err, "FleetAppsManagementRunbooks", "UpdateTaskRecord", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_details.go index 1a308f7565c..7b57103cc67 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,11 +16,10 @@ import ( "strings" ) -// GenerateComplianceReportDetails Request to generate compliance report for the fleet. +// GenerateComplianceReportDetails Request to generate compliance report fort the fleet type GenerateComplianceReportDetails struct { - // A value that specifies if compliance details are required at the target level also? - // Allowed values are N and Y. + // Are compliance details required at target level also AreDetailsRequired *string `mandatory:"false" json:"areDetailsRequired"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_request_response.go index c38d2ea58df..bce691f01aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generate_compliance_report_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GenerateComplianceReport.go.html to see an example of how to use GenerateComplianceReportRequest. type GenerateComplianceReportRequest struct { - // Details for generating Compliance Report for the Fleet. + // Details for generating Compliance Report fort the Fleet. GenerateComplianceReportDetails `contributesTo:"body"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generic_artifact.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generic_artifact.go deleted file mode 100644 index 984ddccd7c5..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generic_artifact.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// GenericArtifact Patch artifact metadata Details which is common for all platforms. -type GenericArtifact struct { - Content ContentDetails `mandatory:"true" json:"content"` -} - -func (m GenericArtifact) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m GenericArtifact) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *GenericArtifact) UnmarshalJSON(data []byte) (e error) { - model := struct { - Content contentdetails `json:"content"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - nn, e = model.Content.UnmarshalPolymorphicJSON(model.Content.JsonData) - if e != nil { - return - } - if nn != nil { - m.Content = nn.(ContentDetails) - } else { - m.Content = nil - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generic_artifact_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generic_artifact_details.go deleted file mode 100644 index e57ac783fd3..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/generic_artifact_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// GenericArtifactDetails Patch artifact description and content details if common for all platforms. -type GenericArtifactDetails struct { - Artifact *GenericArtifact `mandatory:"true" json:"artifact"` -} - -func (m GenericArtifactDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m GenericArtifactDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m GenericArtifactDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeGenericArtifactDetails GenericArtifactDetails - s := struct { - DiscriminatorParam string `json:"category"` - MarshalTypeGenericArtifactDetails - }{ - "GENERIC", - (MarshalTypeGenericArtifactDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_policy_request_response.go deleted file mode 100644 index 2bd4fc41688..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_policy_request_response.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetCompliancePolicyRequest wrapper for the GetCompliancePolicy operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicy.go.html to see an example of how to use GetCompliancePolicyRequest. -type GetCompliancePolicyRequest struct { - - // unique CompliancePolicy identifier. - CompliancePolicyId *string `mandatory:"true" contributesTo:"path" name:"compliancePolicyId"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetCompliancePolicyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetCompliancePolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetCompliancePolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetCompliancePolicyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetCompliancePolicyRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetCompliancePolicyResponse wrapper for the GetCompliancePolicy operation -type GetCompliancePolicyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CompliancePolicy instance - CompliancePolicy `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetCompliancePolicyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetCompliancePolicyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_policy_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_policy_rule_request_response.go deleted file mode 100644 index 853df795cf2..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_policy_rule_request_response.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetCompliancePolicyRuleRequest wrapper for the GetCompliancePolicyRule operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicyRule.go.html to see an example of how to use GetCompliancePolicyRuleRequest. -type GetCompliancePolicyRuleRequest struct { - - // unique CompliancePolicyRule identifier. - CompliancePolicyRuleId *string `mandatory:"true" contributesTo:"path" name:"compliancePolicyRuleId"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetCompliancePolicyRuleRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetCompliancePolicyRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetCompliancePolicyRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetCompliancePolicyRuleRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetCompliancePolicyRuleRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetCompliancePolicyRuleResponse wrapper for the GetCompliancePolicyRule operation -type GetCompliancePolicyRuleResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CompliancePolicyRule instance - CompliancePolicyRule `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetCompliancePolicyRuleResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetCompliancePolicyRuleResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_report_request_response.go index 85c4d60ecd9..25b2e4c22a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_report_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_compliance_report_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetComplianceReport.go.html to see an example of how to use GetComplianceReportRequest. type GetComplianceReportRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` - // compliance report identifier. + // compliance report identifier ComplianceReportId *string `mandatory:"true" contributesTo:"path" name:"complianceReportId"` // The client request ID for tracing. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_credential_request_response.go index 7ccd4acf95f..44daf0ba6b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_credential_request_response.go @@ -21,7 +21,7 @@ type GetFleetCredentialRequest struct { // unique FleetCredential identifier FleetCredentialId *string `mandatory:"true" contributesTo:"path" name:"fleetCredentialId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The client request ID for tracing. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_property_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_property_request_response.go index e77412b8cb2..2fd20d21d63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_property_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_property_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetFleetProperty.go.html to see an example of how to use GetFleetPropertyRequest. type GetFleetPropertyRequest struct { - // unique FleetProperty identifier. + // unique FleetProperty identifier FleetPropertyId *string `mandatory:"true" contributesTo:"path" name:"fleetPropertyId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The client request ID for tracing. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_request_response.go index 67440610afc..898a5c4c1bf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetFleet.go.html to see an example of how to use GetFleetRequest. type GetFleetRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The client request ID for tracing. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_resource_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_resource_request_response.go index 0fc74ab3a26..725d5e13747 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_resource_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_fleet_resource_request_response.go @@ -21,7 +21,7 @@ type GetFleetResourceRequest struct { // unique FleetResource identifier FleetResourceId *string `mandatory:"true" contributesTo:"path" name:"fleetResourceId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The client request ID for tracing. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_onboarding_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_onboarding_request_response.go deleted file mode 100644 index 8159b42397a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_onboarding_request_response.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetOnboardingRequest wrapper for the GetOnboarding operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetOnboarding.go.html to see an example of how to use GetOnboardingRequest. -type GetOnboardingRequest struct { - - // A filter to return resources whose Onboarding identifier matches the given identifier. - OnboardingId *string `mandatory:"true" contributesTo:"path" name:"onboardingId"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetOnboardingRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetOnboardingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetOnboardingRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetOnboardingRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetOnboardingRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetOnboardingResponse wrapper for the GetOnboarding operation -type GetOnboardingResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Onboarding instance - Onboarding `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetOnboardingResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetOnboardingResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_platform_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_platform_configuration_request_response.go deleted file mode 100644 index ebd9a8aa896..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/get_platform_configuration_request_response.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetPlatformConfigurationRequest wrapper for the GetPlatformConfiguration operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/GetPlatformConfiguration.go.html to see an example of how to use GetPlatformConfigurationRequest. -type GetPlatformConfigurationRequest struct { - - // unique PlatformConfiguration identifier - PlatformConfigurationId *string `mandatory:"true" contributesTo:"path" name:"platformConfigurationId"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetPlatformConfigurationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetPlatformConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetPlatformConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetPlatformConfigurationRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request GetPlatformConfigurationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetPlatformConfigurationResponse wrapper for the GetPlatformConfiguration operation -type GetPlatformConfigurationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The PlatformConfiguration instance - PlatformConfiguration `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetPlatformConfigurationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetPlatformConfigurationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/group.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/group.go index 52202030178..ce8266f4a2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/group.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,16 +16,13 @@ import ( "strings" ) -// Group The group of the runbook. +// Group The group of the runbook type Group struct { - // The type of the group. - // PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. - // PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. - // ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order. + // The type of the group Type GroupTypeEnum `mandatory:"true" json:"type"` - // The name of the group. + // The name of the group Name *string `mandatory:"true" json:"name"` Properties *ComponentProperties `mandatory:"false" json:"properties"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_argument.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_argument.go index f8d1cf0f425..844dadbefa0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_argument.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_argument.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -19,7 +20,7 @@ import ( // InputArgument The details of the Input argument. type InputArgument interface { - // The name of the argument. + // The name of the argument GetName() *string // The description of the argument. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_parameter.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_parameter.go index 78fff9ad311..53abfc2a3c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_parameter.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/input_parameter.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_collection.go index 880c1109b5b..35cecb58d96 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_summary.go index 5b373aa2652..49659841eb0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/inventory_resource_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -43,13 +44,13 @@ type InventoryResourceSummary struct { // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` - // Compartment Id of the resource. + // Compartment Id of the resource ResourceCompartmentId *string `mandatory:"false" json:"resourceCompartmentId"` - // Availability Domain of the resource. + // Availability Domain of the resource AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - // The region the resource belongs to. + // Region the resource belongs to ResourceRegion *string `mandatory:"false" json:"resourceRegion"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_activity.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_activity.go index 3e4add2aff2..817c6a63717 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_activity.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_activity.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,33 +16,28 @@ import ( "strings" ) -// JobActivity Activity details including status corresponding to an Action Group. +// JobActivity Description of JobActivity. type JobActivity struct { - // Unique activity id at the action group level. - // In most cases, this would be a generated ActionGroupId. + // Unique activity id at action group level Id *string `mandatory:"true" json:"id"` - // Status of the Job at Action Group Level. + // Status of the Job at Action Group Level Status JobStatusEnum `mandatory:"true" json:"status"` - // The time the execution for the Action Group started. An RFC3339 formatted datetime string. + // The time the the Scheduler Job started. An RFC3339 formatted datetime string TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - // The time the execution for the Action Group ended. An RFC3339 formatted datetime string + // The time the Scheduler Job ended. An RFC3339 formatted datetime string TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - // OCID of the runbook associated with the Action Group. + // ID of the runbook RunbookId *string `mandatory:"false" json:"runbookId"` - // Name of the runbook associated with the Action Group. + // Name of the runbook RunbookName *string `mandatory:"false" json:"runbookName"` - // A description of the Job Activity status. - // If there are any errors, this can also include a short error message. - Description *string `mandatory:"false" json:"description"` - - // List of Resource executions associated with the Action Group. + // Resources execution details and outcomes associated with the Task. ResourceLevelExecutions []EntityExecutionDetails `mandatory:"false" json:"resourceLevelExecutions"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_status.go index 86368819115..e92e7cb6b41 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/job_status.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -29,7 +30,6 @@ const ( JobStatusNotApplicable JobStatusEnum = "NOT_APPLICABLE" JobStatusAborted JobStatusEnum = "ABORTED" JobStatusTimedOut JobStatusEnum = "TIMED_OUT" - JobStatusPaused JobStatusEnum = "PAUSED" ) var mappingJobStatusEnum = map[string]JobStatusEnum{ @@ -44,7 +44,6 @@ var mappingJobStatusEnum = map[string]JobStatusEnum{ "NOT_APPLICABLE": JobStatusNotApplicable, "ABORTED": JobStatusAborted, "TIMED_OUT": JobStatusTimedOut, - "PAUSED": JobStatusPaused, } var mappingJobStatusEnumLowerCase = map[string]JobStatusEnum{ @@ -59,7 +58,6 @@ var mappingJobStatusEnumLowerCase = map[string]JobStatusEnum{ "not_applicable": JobStatusNotApplicable, "aborted": JobStatusAborted, "timed_out": JobStatusTimedOut, - "paused": JobStatusPaused, } // GetJobStatusEnumValues Enumerates the set of values for JobStatusEnum @@ -85,7 +83,6 @@ func GetJobStatusEnumStringValues() []string { "NOT_APPLICABLE", "ABORTED", "TIMED_OUT", - "PAUSED", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/key_encryption_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/key_encryption_credential_details.go index 0852c49ff6c..99f0bc1f35f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/key_encryption_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/key_encryption_credential_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,16 +17,16 @@ import ( "strings" ) -// KeyEncryptionCredentialDetails Details for the Credentials that use key encryption. +// KeyEncryptionCredentialDetails Details for Credentials using key encryption. type KeyEncryptionCredentialDetails struct { - // The value corresponding to the credential. + // The value corresponding to the credential Value *string `mandatory:"true" json:"value"` // OCID for the Vault Key that will be used to encrypt/decrypt the value given. KeyId *string `mandatory:"true" json:"keyId"` - // OCID for the Vault that will be used to fetch the key to encrypt/decrypt the value given. + // OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given. VaultId *string `mandatory:"true" json:"vaultId"` // The Vault Key version. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/life_cycle_action_group_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/life_cycle_action_group_type.go index b03a7829fdf..252c797945f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/life_cycle_action_group_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/life_cycle_action_group_type.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_announcements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_announcements_request_response.go index 90fb7ed22c9..da795e81199 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_announcements_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_announcements_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListAnnouncements.go.html to see an example of how to use ListAnnouncementsRequest. type ListAnnouncementsRequest struct { - // Filter the list of announcements that contains the given summary value. + // Filter the list with summary contains the given value. SummaryContains *string `mandatory:"false" contributesTo:"query" name:"summaryContains"` // A filter to return only resources that match the entire display name given. @@ -33,8 +33,8 @@ type ListAnnouncementsRequest struct { // The sort order to use, either 'ASC' or 'DESC'. SortOrder ListAnnouncementsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - // The field to sort AnnouncementSummary by. Only one sort order may be provided. - // If no value is specified timeReleased is default. + // The field to sort AnnouncementSummary by. Only one sort order may be provided. + // If no value is specified _timeReleased_ is default. SortBy ListAnnouncementsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The client request ID for tracing. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_policies_request_response.go deleted file mode 100644 index 7b7d1ee1852..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_policies_request_response.go +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListCompliancePoliciesRequest wrapper for the ListCompliancePolicies operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicies.go.html to see an example of how to use ListCompliancePoliciesRequest. -type ListCompliancePoliciesRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given lifecycle state. The - // state value is case-insensitive. - LifecycleState CompliancePolicyLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A filter to return only resources that match the entire display name given. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // unique CompliancePolicy identifier. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder ListCompliancePoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - SortBy ListCompliancePoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCompliancePoliciesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCompliancePoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCompliancePoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCompliancePoliciesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListCompliancePoliciesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCompliancePolicyLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetCompliancePolicyLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingListCompliancePoliciesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCompliancePoliciesSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListCompliancePoliciesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCompliancePoliciesSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListCompliancePoliciesResponse wrapper for the ListCompliancePolicies operation -type ListCompliancePoliciesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of CompliancePolicyCollection instances - CompliancePolicyCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListCompliancePoliciesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCompliancePoliciesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCompliancePoliciesSortOrderEnum Enum with underlying type: string -type ListCompliancePoliciesSortOrderEnum string - -// Set of constants representing the allowable values for ListCompliancePoliciesSortOrderEnum -const ( - ListCompliancePoliciesSortOrderAsc ListCompliancePoliciesSortOrderEnum = "ASC" - ListCompliancePoliciesSortOrderDesc ListCompliancePoliciesSortOrderEnum = "DESC" -) - -var mappingListCompliancePoliciesSortOrderEnum = map[string]ListCompliancePoliciesSortOrderEnum{ - "ASC": ListCompliancePoliciesSortOrderAsc, - "DESC": ListCompliancePoliciesSortOrderDesc, -} - -var mappingListCompliancePoliciesSortOrderEnumLowerCase = map[string]ListCompliancePoliciesSortOrderEnum{ - "asc": ListCompliancePoliciesSortOrderAsc, - "desc": ListCompliancePoliciesSortOrderDesc, -} - -// GetListCompliancePoliciesSortOrderEnumValues Enumerates the set of values for ListCompliancePoliciesSortOrderEnum -func GetListCompliancePoliciesSortOrderEnumValues() []ListCompliancePoliciesSortOrderEnum { - values := make([]ListCompliancePoliciesSortOrderEnum, 0) - for _, v := range mappingListCompliancePoliciesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListCompliancePoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListCompliancePoliciesSortOrderEnum -func GetListCompliancePoliciesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListCompliancePoliciesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListCompliancePoliciesSortOrderEnum(val string) (ListCompliancePoliciesSortOrderEnum, bool) { - enum, ok := mappingListCompliancePoliciesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListCompliancePoliciesSortByEnum Enum with underlying type: string -type ListCompliancePoliciesSortByEnum string - -// Set of constants representing the allowable values for ListCompliancePoliciesSortByEnum -const ( - ListCompliancePoliciesSortByTimecreated ListCompliancePoliciesSortByEnum = "timeCreated" - ListCompliancePoliciesSortByDisplayname ListCompliancePoliciesSortByEnum = "displayName" -) - -var mappingListCompliancePoliciesSortByEnum = map[string]ListCompliancePoliciesSortByEnum{ - "timeCreated": ListCompliancePoliciesSortByTimecreated, - "displayName": ListCompliancePoliciesSortByDisplayname, -} - -var mappingListCompliancePoliciesSortByEnumLowerCase = map[string]ListCompliancePoliciesSortByEnum{ - "timecreated": ListCompliancePoliciesSortByTimecreated, - "displayname": ListCompliancePoliciesSortByDisplayname, -} - -// GetListCompliancePoliciesSortByEnumValues Enumerates the set of values for ListCompliancePoliciesSortByEnum -func GetListCompliancePoliciesSortByEnumValues() []ListCompliancePoliciesSortByEnum { - values := make([]ListCompliancePoliciesSortByEnum, 0) - for _, v := range mappingListCompliancePoliciesSortByEnum { - values = append(values, v) - } - return values -} - -// GetListCompliancePoliciesSortByEnumStringValues Enumerates the set of values in String for ListCompliancePoliciesSortByEnum -func GetListCompliancePoliciesSortByEnumStringValues() []string { - return []string{ - "timeCreated", - "displayName", - } -} - -// GetMappingListCompliancePoliciesSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListCompliancePoliciesSortByEnum(val string) (ListCompliancePoliciesSortByEnum, bool) { - enum, ok := mappingListCompliancePoliciesSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_policy_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_policy_rules_request_response.go deleted file mode 100644 index 4e3679bb520..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_policy_rules_request_response.go +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListCompliancePolicyRulesRequest wrapper for the ListCompliancePolicyRules operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicyRules.go.html to see an example of how to use ListCompliancePolicyRulesRequest. -type ListCompliancePolicyRulesRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the entire display name given. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that match the given lifecycle state. The - // state value is case-insensitive. - LifecycleState CompliancePolicyRuleLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A filter to return only resources that match the patch selection against the given patch name. - PatchName *string `mandatory:"false" contributesTo:"query" name:"patchName"` - - // unique CompliancePolicy identifier. - CompliancePolicyId *string `mandatory:"false" contributesTo:"query" name:"compliancePolicyId"` - - // unique CompliancePolicyRule identifier. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder ListCompliancePolicyRulesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - SortBy ListCompliancePolicyRulesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCompliancePolicyRulesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCompliancePolicyRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCompliancePolicyRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCompliancePolicyRulesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListCompliancePolicyRulesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCompliancePolicyRuleLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetCompliancePolicyRuleLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingListCompliancePolicyRulesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCompliancePolicyRulesSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListCompliancePolicyRulesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCompliancePolicyRulesSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListCompliancePolicyRulesResponse wrapper for the ListCompliancePolicyRules operation -type ListCompliancePolicyRulesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of CompliancePolicyRuleCollection instances - CompliancePolicyRuleCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListCompliancePolicyRulesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCompliancePolicyRulesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCompliancePolicyRulesSortOrderEnum Enum with underlying type: string -type ListCompliancePolicyRulesSortOrderEnum string - -// Set of constants representing the allowable values for ListCompliancePolicyRulesSortOrderEnum -const ( - ListCompliancePolicyRulesSortOrderAsc ListCompliancePolicyRulesSortOrderEnum = "ASC" - ListCompliancePolicyRulesSortOrderDesc ListCompliancePolicyRulesSortOrderEnum = "DESC" -) - -var mappingListCompliancePolicyRulesSortOrderEnum = map[string]ListCompliancePolicyRulesSortOrderEnum{ - "ASC": ListCompliancePolicyRulesSortOrderAsc, - "DESC": ListCompliancePolicyRulesSortOrderDesc, -} - -var mappingListCompliancePolicyRulesSortOrderEnumLowerCase = map[string]ListCompliancePolicyRulesSortOrderEnum{ - "asc": ListCompliancePolicyRulesSortOrderAsc, - "desc": ListCompliancePolicyRulesSortOrderDesc, -} - -// GetListCompliancePolicyRulesSortOrderEnumValues Enumerates the set of values for ListCompliancePolicyRulesSortOrderEnum -func GetListCompliancePolicyRulesSortOrderEnumValues() []ListCompliancePolicyRulesSortOrderEnum { - values := make([]ListCompliancePolicyRulesSortOrderEnum, 0) - for _, v := range mappingListCompliancePolicyRulesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListCompliancePolicyRulesSortOrderEnumStringValues Enumerates the set of values in String for ListCompliancePolicyRulesSortOrderEnum -func GetListCompliancePolicyRulesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListCompliancePolicyRulesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListCompliancePolicyRulesSortOrderEnum(val string) (ListCompliancePolicyRulesSortOrderEnum, bool) { - enum, ok := mappingListCompliancePolicyRulesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListCompliancePolicyRulesSortByEnum Enum with underlying type: string -type ListCompliancePolicyRulesSortByEnum string - -// Set of constants representing the allowable values for ListCompliancePolicyRulesSortByEnum -const ( - ListCompliancePolicyRulesSortByTimecreated ListCompliancePolicyRulesSortByEnum = "timeCreated" - ListCompliancePolicyRulesSortByDisplayname ListCompliancePolicyRulesSortByEnum = "displayName" -) - -var mappingListCompliancePolicyRulesSortByEnum = map[string]ListCompliancePolicyRulesSortByEnum{ - "timeCreated": ListCompliancePolicyRulesSortByTimecreated, - "displayName": ListCompliancePolicyRulesSortByDisplayname, -} - -var mappingListCompliancePolicyRulesSortByEnumLowerCase = map[string]ListCompliancePolicyRulesSortByEnum{ - "timecreated": ListCompliancePolicyRulesSortByTimecreated, - "displayname": ListCompliancePolicyRulesSortByDisplayname, -} - -// GetListCompliancePolicyRulesSortByEnumValues Enumerates the set of values for ListCompliancePolicyRulesSortByEnum -func GetListCompliancePolicyRulesSortByEnumValues() []ListCompliancePolicyRulesSortByEnum { - values := make([]ListCompliancePolicyRulesSortByEnum, 0) - for _, v := range mappingListCompliancePolicyRulesSortByEnum { - values = append(values, v) - } - return values -} - -// GetListCompliancePolicyRulesSortByEnumStringValues Enumerates the set of values in String for ListCompliancePolicyRulesSortByEnum -func GetListCompliancePolicyRulesSortByEnumStringValues() []string { - return []string{ - "timeCreated", - "displayName", - } -} - -// GetMappingListCompliancePolicyRulesSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListCompliancePolicyRulesSortByEnum(val string) (ListCompliancePolicyRulesSortByEnum, bool) { - enum, ok := mappingListCompliancePolicyRulesSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_records_request_response.go deleted file mode 100644 index 0f1717f9e18..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_compliance_records_request_response.go +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListComplianceRecordsRequest wrapper for the ListComplianceRecords operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListComplianceRecords.go.html to see an example of how to use ListComplianceRecordsRequest. -type ListComplianceRecordsRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // Resource identifier. - ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` - - // Entity identifier.Ex:FleetId - EntityId *string `mandatory:"false" contributesTo:"query" name:"entityId"` - - // Product Name. - ProductName *string `mandatory:"false" contributesTo:"query" name:"productName"` - - // ProductStack name. - ProductStack *string `mandatory:"false" contributesTo:"query" name:"productStack"` - - // Unique target name - TargetName *string `mandatory:"false" contributesTo:"query" name:"targetName"` - - // Target Compliance State. - ComplianceState *string `mandatory:"false" contributesTo:"query" name:"complianceState"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder ListComplianceRecordsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - SortBy ListComplianceRecordsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComplianceRecordsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComplianceRecordsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComplianceRecordsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComplianceRecordsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListComplianceRecordsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListComplianceRecordsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComplianceRecordsSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListComplianceRecordsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComplianceRecordsSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListComplianceRecordsResponse wrapper for the ListComplianceRecords operation -type ListComplianceRecordsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ComplianceRecordCollection instances - ComplianceRecordCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListComplianceRecordsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComplianceRecordsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComplianceRecordsSortOrderEnum Enum with underlying type: string -type ListComplianceRecordsSortOrderEnum string - -// Set of constants representing the allowable values for ListComplianceRecordsSortOrderEnum -const ( - ListComplianceRecordsSortOrderAsc ListComplianceRecordsSortOrderEnum = "ASC" - ListComplianceRecordsSortOrderDesc ListComplianceRecordsSortOrderEnum = "DESC" -) - -var mappingListComplianceRecordsSortOrderEnum = map[string]ListComplianceRecordsSortOrderEnum{ - "ASC": ListComplianceRecordsSortOrderAsc, - "DESC": ListComplianceRecordsSortOrderDesc, -} - -var mappingListComplianceRecordsSortOrderEnumLowerCase = map[string]ListComplianceRecordsSortOrderEnum{ - "asc": ListComplianceRecordsSortOrderAsc, - "desc": ListComplianceRecordsSortOrderDesc, -} - -// GetListComplianceRecordsSortOrderEnumValues Enumerates the set of values for ListComplianceRecordsSortOrderEnum -func GetListComplianceRecordsSortOrderEnumValues() []ListComplianceRecordsSortOrderEnum { - values := make([]ListComplianceRecordsSortOrderEnum, 0) - for _, v := range mappingListComplianceRecordsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListComplianceRecordsSortOrderEnumStringValues Enumerates the set of values in String for ListComplianceRecordsSortOrderEnum -func GetListComplianceRecordsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListComplianceRecordsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListComplianceRecordsSortOrderEnum(val string) (ListComplianceRecordsSortOrderEnum, bool) { - enum, ok := mappingListComplianceRecordsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListComplianceRecordsSortByEnum Enum with underlying type: string -type ListComplianceRecordsSortByEnum string - -// Set of constants representing the allowable values for ListComplianceRecordsSortByEnum -const ( - ListComplianceRecordsSortByTimecreated ListComplianceRecordsSortByEnum = "timeCreated" - ListComplianceRecordsSortByDisplayname ListComplianceRecordsSortByEnum = "displayName" -) - -var mappingListComplianceRecordsSortByEnum = map[string]ListComplianceRecordsSortByEnum{ - "timeCreated": ListComplianceRecordsSortByTimecreated, - "displayName": ListComplianceRecordsSortByDisplayname, -} - -var mappingListComplianceRecordsSortByEnumLowerCase = map[string]ListComplianceRecordsSortByEnum{ - "timecreated": ListComplianceRecordsSortByTimecreated, - "displayname": ListComplianceRecordsSortByDisplayname, -} - -// GetListComplianceRecordsSortByEnumValues Enumerates the set of values for ListComplianceRecordsSortByEnum -func GetListComplianceRecordsSortByEnumValues() []ListComplianceRecordsSortByEnum { - values := make([]ListComplianceRecordsSortByEnum, 0) - for _, v := range mappingListComplianceRecordsSortByEnum { - values = append(values, v) - } - return values -} - -// GetListComplianceRecordsSortByEnumStringValues Enumerates the set of values in String for ListComplianceRecordsSortByEnum -func GetListComplianceRecordsSortByEnumStringValues() []string { - return []string{ - "timeCreated", - "displayName", - } -} - -// GetMappingListComplianceRecordsSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListComplianceRecordsSortByEnum(val string) (ListComplianceRecordsSortByEnum, bool) { - enum, ok := mappingListComplianceRecordsSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_credentials_request_response.go index ecfc6748242..4248c10b88b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_credentials_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_credentials_request_response.go @@ -18,28 +18,22 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListFleetCredentials.go.html to see an example of how to use ListFleetCredentialsRequest. type ListFleetCredentialsRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState FleetCredentialLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // Resource Identifier - ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` - - // A filter to return only resources whose target matches the given target name. - Target *string `mandatory:"false" contributesTo:"query" name:"target"` - - // A filter to return only resources whose credentialLevel matches the given credentialLevel. + // Credential Level. CredentialLevel CredentialEntitySpecificDetailsCredentialLevelEnum `mandatory:"false" contributesTo:"query" name:"credentialLevel" omitEmpty:"true"` - // A filter to return only resources whose credential identifier matches the given identifier. + // unique FleetCredential identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_products_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_products_request_response.go index 41761d8bd49..27bbeb82a0f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_products_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_products_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListFleetProducts.go.html to see an example of how to use ListFleetProductsRequest. type ListFleetProductsRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The ID of the compartment in which to list resources. @@ -27,7 +27,7 @@ type ListFleetProductsRequest struct { // Resource Identifier ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` - // Resource Display Name. + // Resource Display Name ResourceDisplayName *string `mandatory:"false" contributesTo:"query" name:"resourceDisplayName"` // A filter to return only resources that match the entire display name given. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_properties_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_properties_request_response.go index a314114d320..cec6f149f38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_properties_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_properties_request_response.go @@ -18,19 +18,19 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListFleetProperties.go.html to see an example of how to use ListFleetPropertiesRequest. type ListFleetPropertiesRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState FleetPropertyLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // A filter to return only resources whose fleetProperty identifier matches the given identifier. + // unique FleetProperty identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_resources_request_response.go index f84b36615f0..e49139c41d7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_resources_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_resources_request_response.go @@ -18,22 +18,22 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListFleetResources.go.html to see an example of how to use ListFleetResourcesRequest. type ListFleetResourcesRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // Resource Tenancy Id TenancyId *string `mandatory:"false" contributesTo:"query" name:"tenancyId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState FleetResourceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // A filter to return only resources whose identifier matches the given identifier. + // unique FleetResource identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` - // A filter to return only resources whose resourceType matches the given resourceType. + // A filter to return resources that match the Type FleetResourceType *string `mandatory:"false" contributesTo:"query" name:"fleetResourceType"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_targets_request_response.go index 9de3f83e33d..6fbefe30964 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_targets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleet_targets_request_response.go @@ -18,19 +18,19 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListFleetTargets.go.html to see an example of how to use ListFleetTargetsRequest. type ListFleetTargetsRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // Product Name. + // Product Name Product *string `mandatory:"false" contributesTo:"query" name:"product"` // Resource Identifier ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` - // Resource Display Name. + // Resource Display Name ResourceDisplayName *string `mandatory:"false" contributesTo:"query" name:"resourceDisplayName"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleets_request_response.go index 99107e5bee7..eb501ea74bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_fleets_request_response.go @@ -18,28 +18,28 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListFleets.go.html to see an example of how to use ListFleetsRequest. type ListFleetsRequest struct { - // A filter to return fleets whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState FleetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return fleets whose fleetType matches the given fleetType. + // A filter to return only resources their fleetType matches the given fleetType. FleetType FleetFleetTypeEnum `mandatory:"false" contributesTo:"query" name:"fleetType" omitEmpty:"true"` - // A filter to return resources that match the Application Type/Product Stack given.. + // A filter to return only resources that match the Application Type given. ApplicationType *string `mandatory:"false" contributesTo:"query" name:"applicationType"` - // A filter to return resources that match the Product given. + // A filter to return only resources that match the Product Type given. Product *string `mandatory:"false" contributesTo:"query" name:"product"` - // A filter to return resources that match the Environment Type given. + // A filter to return only resources that match the Environment Type given. EnvironmentType *string `mandatory:"false" contributesTo:"query" name:"environmentType"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // A filter to return fleets whose id matches the given Fleet identifier + // unique Fleet identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_inventory_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_inventory_resources_request_response.go index e3af54014e5..93b4cf1e0eb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_inventory_resources_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_inventory_resources_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListInventoryResources.go.html to see an example of how to use ListInventoryResourcesRequest. type ListInventoryResourcesRequest struct { - // A filter to return only resources whose base Compartment ID(TenancyId) matches the given base Compartment ID. + // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose resource Compartment ID matches the given resource Compartment ID. + // Resource Compartment ID ResourceCompartmentId *string `mandatory:"true" contributesTo:"query" name:"resourceCompartmentId"` // A filter to return only resources their lifecycleState matches the given lifecycleState. @@ -37,7 +37,6 @@ type ListInventoryResourcesRequest struct { // Each item in the list has the format "{namespace}.{tagName}={value}". All inputs are case-insensitive. // Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". // Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". - // Example: Identification.Development=Yes DefinedTagEquals []string `contributesTo:"query" name:"definedTagEquals" collectionFormat:"multi"` // A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. @@ -47,11 +46,9 @@ type ListInventoryResourcesRequest struct { // A list of inventory properties filters to apply. // The key for each inventory property and value for each resource type is "{resourceType}.{inventoryProperty}={value}". - // Example: Instance.displayName=TEST_INSTANCE InventoryProperties []string `contributesTo:"query" name:"inventoryProperties" collectionFormat:"multi"` - // Fetch resources matching ANY or ALL criteria passed as params in "tags" and "inventoryProperties". - // Example: matchingCriteria=ANY + // Fetch resources matching matching ANY or ALL criteria passed as params in "tags" and "inventoryProperties" MatchingCriteria *string `mandatory:"false" contributesTo:"query" name:"matchingCriteria"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_maintenance_windows_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_maintenance_windows_request_response.go index 4cd8dabb787..de4451ebd33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_maintenance_windows_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_maintenance_windows_request_response.go @@ -21,16 +21,13 @@ type ListMaintenanceWindowsRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState MaintenanceWindowLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // A filter to return only resources whose timeScheduleStart is greater than or equal to the provided date and time. - TimeScheduleStartGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeScheduleStartGreaterThanOrEqualTo"` - - // A filter to return only the Maintenance Windows whose identifier matches the given identifier. + // unique MaintenanceWindow identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_onboardings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_onboardings_request_response.go index 73443b73303..ed3c9d9d1e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_onboardings_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_onboardings_request_response.go @@ -21,7 +21,7 @@ type ListOnboardingsRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState OnboardingLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // unique onboarding identifier diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_patches_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_patches_request_response.go deleted file mode 100644 index ea36dc86e98..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_patches_request_response.go +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListPatchesRequest wrapper for the ListPatches operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListPatches.go.html to see an example of how to use ListPatchesRequest. -type ListPatchesRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // Product platformConfigurationId associated with the Patch. - ProductId *string `mandatory:"false" contributesTo:"query" name:"productId"` - - // Product version - Version *string `mandatory:"false" contributesTo:"query" name:"version"` - - // DefinedBy type. - Type PatchTypeEnum `mandatory:"false" contributesTo:"query" name:"type" omitEmpty:"true"` - - // Patch Type platformConfigurationId associated with the Patch. - PatchTypeId *string `mandatory:"false" contributesTo:"query" name:"patchTypeId"` - - // A filter to return only resources that match the entire name given. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // unique Patch identifier - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // Patch Released Date - TimeReleasedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeReleasedGreaterThanOrEqualTo"` - - // Patch Released Date - TimeReleasedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeReleasedLessThan"` - - // Filter patch based on compliance policy rules for the Product - ShouldCompliancePolicyRulesBeApplied *bool `mandatory:"false" contributesTo:"query" name:"shouldCompliancePolicyRulesBeApplied"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The current state of the Patch. - LifecycleState PatchLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - SortBy ListPatchesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder ListPatchesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPatchesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPatchesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPatchesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPatchesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListPatchesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPatchTypeEnum(string(request.Type)); !ok && request.Type != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", request.Type, strings.Join(GetPatchTypeEnumStringValues(), ","))) - } - if _, ok := GetMappingPatchLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetPatchLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingListPatchesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPatchesSortByEnumStringValues(), ","))) - } - if _, ok := GetMappingListPatchesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPatchesSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListPatchesResponse wrapper for the ListPatches operation -type ListPatchesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of PatchCollection instances - PatchCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListPatchesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPatchesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPatchesSortByEnum Enum with underlying type: string -type ListPatchesSortByEnum string - -// Set of constants representing the allowable values for ListPatchesSortByEnum -const ( - ListPatchesSortByTimecreated ListPatchesSortByEnum = "timeCreated" - ListPatchesSortByDisplayname ListPatchesSortByEnum = "displayName" -) - -var mappingListPatchesSortByEnum = map[string]ListPatchesSortByEnum{ - "timeCreated": ListPatchesSortByTimecreated, - "displayName": ListPatchesSortByDisplayname, -} - -var mappingListPatchesSortByEnumLowerCase = map[string]ListPatchesSortByEnum{ - "timecreated": ListPatchesSortByTimecreated, - "displayname": ListPatchesSortByDisplayname, -} - -// GetListPatchesSortByEnumValues Enumerates the set of values for ListPatchesSortByEnum -func GetListPatchesSortByEnumValues() []ListPatchesSortByEnum { - values := make([]ListPatchesSortByEnum, 0) - for _, v := range mappingListPatchesSortByEnum { - values = append(values, v) - } - return values -} - -// GetListPatchesSortByEnumStringValues Enumerates the set of values in String for ListPatchesSortByEnum -func GetListPatchesSortByEnumStringValues() []string { - return []string{ - "timeCreated", - "displayName", - } -} - -// GetMappingListPatchesSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListPatchesSortByEnum(val string) (ListPatchesSortByEnum, bool) { - enum, ok := mappingListPatchesSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListPatchesSortOrderEnum Enum with underlying type: string -type ListPatchesSortOrderEnum string - -// Set of constants representing the allowable values for ListPatchesSortOrderEnum -const ( - ListPatchesSortOrderAsc ListPatchesSortOrderEnum = "ASC" - ListPatchesSortOrderDesc ListPatchesSortOrderEnum = "DESC" -) - -var mappingListPatchesSortOrderEnum = map[string]ListPatchesSortOrderEnum{ - "ASC": ListPatchesSortOrderAsc, - "DESC": ListPatchesSortOrderDesc, -} - -var mappingListPatchesSortOrderEnumLowerCase = map[string]ListPatchesSortOrderEnum{ - "asc": ListPatchesSortOrderAsc, - "desc": ListPatchesSortOrderDesc, -} - -// GetListPatchesSortOrderEnumValues Enumerates the set of values for ListPatchesSortOrderEnum -func GetListPatchesSortOrderEnumValues() []ListPatchesSortOrderEnum { - values := make([]ListPatchesSortOrderEnum, 0) - for _, v := range mappingListPatchesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListPatchesSortOrderEnumStringValues Enumerates the set of values in String for ListPatchesSortOrderEnum -func GetListPatchesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListPatchesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListPatchesSortOrderEnum(val string) (ListPatchesSortOrderEnum, bool) { - enum, ok := mappingListPatchesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_platform_configurations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_platform_configurations_request_response.go deleted file mode 100644 index d2610bffc34..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_platform_configurations_request_response.go +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListPlatformConfigurationsRequest wrapper for the ListPlatformConfigurations operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListPlatformConfigurations.go.html to see an example of how to use ListPlatformConfigurationsRequest. -type ListPlatformConfigurationsRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources their lifecycleState matches the given lifecycleState. - LifecycleState PlatformConfigurationLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A filter to return only resources that match the entire display name given. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // unique PlatformConfiguration identifier - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // Config Category - ConfigCategory ConfigCategoryDetailsConfigCategoryEnum `mandatory:"false" contributesTo:"query" name:"configCategory" omitEmpty:"true"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder ListPlatformConfigurationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - SortBy ListPlatformConfigurationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPlatformConfigurationsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPlatformConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPlatformConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPlatformConfigurationsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListPlatformConfigurationsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPlatformConfigurationLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetPlatformConfigurationLifecycleStateEnumStringValues(), ","))) - } - if _, ok := GetMappingConfigCategoryDetailsConfigCategoryEnum(string(request.ConfigCategory)); !ok && request.ConfigCategory != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConfigCategory: %s. Supported values are: %s.", request.ConfigCategory, strings.Join(GetConfigCategoryDetailsConfigCategoryEnumStringValues(), ","))) - } - if _, ok := GetMappingListPlatformConfigurationsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPlatformConfigurationsSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListPlatformConfigurationsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPlatformConfigurationsSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListPlatformConfigurationsResponse wrapper for the ListPlatformConfigurations operation -type ListPlatformConfigurationsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of PlatformConfigurationCollection instances - PlatformConfigurationCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListPlatformConfigurationsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPlatformConfigurationsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPlatformConfigurationsSortOrderEnum Enum with underlying type: string -type ListPlatformConfigurationsSortOrderEnum string - -// Set of constants representing the allowable values for ListPlatformConfigurationsSortOrderEnum -const ( - ListPlatformConfigurationsSortOrderAsc ListPlatformConfigurationsSortOrderEnum = "ASC" - ListPlatformConfigurationsSortOrderDesc ListPlatformConfigurationsSortOrderEnum = "DESC" -) - -var mappingListPlatformConfigurationsSortOrderEnum = map[string]ListPlatformConfigurationsSortOrderEnum{ - "ASC": ListPlatformConfigurationsSortOrderAsc, - "DESC": ListPlatformConfigurationsSortOrderDesc, -} - -var mappingListPlatformConfigurationsSortOrderEnumLowerCase = map[string]ListPlatformConfigurationsSortOrderEnum{ - "asc": ListPlatformConfigurationsSortOrderAsc, - "desc": ListPlatformConfigurationsSortOrderDesc, -} - -// GetListPlatformConfigurationsSortOrderEnumValues Enumerates the set of values for ListPlatformConfigurationsSortOrderEnum -func GetListPlatformConfigurationsSortOrderEnumValues() []ListPlatformConfigurationsSortOrderEnum { - values := make([]ListPlatformConfigurationsSortOrderEnum, 0) - for _, v := range mappingListPlatformConfigurationsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListPlatformConfigurationsSortOrderEnumStringValues Enumerates the set of values in String for ListPlatformConfigurationsSortOrderEnum -func GetListPlatformConfigurationsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListPlatformConfigurationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListPlatformConfigurationsSortOrderEnum(val string) (ListPlatformConfigurationsSortOrderEnum, bool) { - enum, ok := mappingListPlatformConfigurationsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListPlatformConfigurationsSortByEnum Enum with underlying type: string -type ListPlatformConfigurationsSortByEnum string - -// Set of constants representing the allowable values for ListPlatformConfigurationsSortByEnum -const ( - ListPlatformConfigurationsSortByTimecreated ListPlatformConfigurationsSortByEnum = "timeCreated" - ListPlatformConfigurationsSortByDisplayname ListPlatformConfigurationsSortByEnum = "displayName" -) - -var mappingListPlatformConfigurationsSortByEnum = map[string]ListPlatformConfigurationsSortByEnum{ - "timeCreated": ListPlatformConfigurationsSortByTimecreated, - "displayName": ListPlatformConfigurationsSortByDisplayname, -} - -var mappingListPlatformConfigurationsSortByEnumLowerCase = map[string]ListPlatformConfigurationsSortByEnum{ - "timecreated": ListPlatformConfigurationsSortByTimecreated, - "displayname": ListPlatformConfigurationsSortByDisplayname, -} - -// GetListPlatformConfigurationsSortByEnumValues Enumerates the set of values for ListPlatformConfigurationsSortByEnum -func GetListPlatformConfigurationsSortByEnumValues() []ListPlatformConfigurationsSortByEnum { - values := make([]ListPlatformConfigurationsSortByEnum, 0) - for _, v := range mappingListPlatformConfigurationsSortByEnum { - values = append(values, v) - } - return values -} - -// GetListPlatformConfigurationsSortByEnumStringValues Enumerates the set of values in String for ListPlatformConfigurationsSortByEnum -func GetListPlatformConfigurationsSortByEnumStringValues() []string { - return []string{ - "timeCreated", - "displayName", - } -} - -// GetMappingListPlatformConfigurationsSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListPlatformConfigurationsSortByEnum(val string) (ListPlatformConfigurationsSortByEnum, bool) { - enum, ok := mappingListPlatformConfigurationsSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_properties_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_properties_request_response.go index 87772d81086..0d84cd27f3f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_properties_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_properties_request_response.go @@ -21,16 +21,16 @@ type ListPropertiesRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState PropertyLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // A filter to return only resources whose Property identifier matches the given identifier. + // unique Property identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` - // A filter to return only resources their scope matches the given scope. + // A filter to return only resources their scope matches the given lifecycleState. Scope ListPropertiesScopeEnum `mandatory:"false" contributesTo:"query" name:"scope" omitEmpty:"true"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_resources_request_response.go deleted file mode 100644 index c19544f9161..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_resources_request_response.go +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListResourcesRequest wrapper for the ListResources operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListResources.go.html to see an example of how to use ListResourcesRequest. -type ListResourcesRequest struct { - - // unique SchedulerJob identifier - SchedulerJobId *string `mandatory:"true" contributesTo:"path" name:"schedulerJobId"` - - // unique jobActivity identifier - JobActivityId *string `mandatory:"true" contributesTo:"path" name:"jobActivityId"` - - // Task Id - ResourceTaskId *string `mandatory:"false" contributesTo:"query" name:"resourceTaskId"` - - // Unique step name - StepName *string `mandatory:"false" contributesTo:"query" name:"stepName"` - - // Unique target name - TargetName *string `mandatory:"false" contributesTo:"query" name:"targetName"` - - // Task Order Sequence - Sequence *string `mandatory:"false" contributesTo:"query" name:"sequence"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder ListResourcesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending. - SortBy ListResourcesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListResourcesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListResourcesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListResourcesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListResourcesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListResourcesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListResourcesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListResourcesSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListResourcesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListResourcesSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListResourcesResponse wrapper for the ListResources operation -type ListResourcesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ResourceCollection instances - ResourceCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListResourcesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListResourcesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListResourcesSortOrderEnum Enum with underlying type: string -type ListResourcesSortOrderEnum string - -// Set of constants representing the allowable values for ListResourcesSortOrderEnum -const ( - ListResourcesSortOrderAsc ListResourcesSortOrderEnum = "ASC" - ListResourcesSortOrderDesc ListResourcesSortOrderEnum = "DESC" -) - -var mappingListResourcesSortOrderEnum = map[string]ListResourcesSortOrderEnum{ - "ASC": ListResourcesSortOrderAsc, - "DESC": ListResourcesSortOrderDesc, -} - -var mappingListResourcesSortOrderEnumLowerCase = map[string]ListResourcesSortOrderEnum{ - "asc": ListResourcesSortOrderAsc, - "desc": ListResourcesSortOrderDesc, -} - -// GetListResourcesSortOrderEnumValues Enumerates the set of values for ListResourcesSortOrderEnum -func GetListResourcesSortOrderEnumValues() []ListResourcesSortOrderEnum { - values := make([]ListResourcesSortOrderEnum, 0) - for _, v := range mappingListResourcesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListResourcesSortOrderEnumStringValues Enumerates the set of values in String for ListResourcesSortOrderEnum -func GetListResourcesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListResourcesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListResourcesSortOrderEnum(val string) (ListResourcesSortOrderEnum, bool) { - enum, ok := mappingListResourcesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListResourcesSortByEnum Enum with underlying type: string -type ListResourcesSortByEnum string - -// Set of constants representing the allowable values for ListResourcesSortByEnum -const ( - ListResourcesSortByTimestarted ListResourcesSortByEnum = "timeStarted" -) - -var mappingListResourcesSortByEnum = map[string]ListResourcesSortByEnum{ - "timeStarted": ListResourcesSortByTimestarted, -} - -var mappingListResourcesSortByEnumLowerCase = map[string]ListResourcesSortByEnum{ - "timestarted": ListResourcesSortByTimestarted, -} - -// GetListResourcesSortByEnumValues Enumerates the set of values for ListResourcesSortByEnum -func GetListResourcesSortByEnumValues() []ListResourcesSortByEnum { - values := make([]ListResourcesSortByEnum, 0) - for _, v := range mappingListResourcesSortByEnum { - values = append(values, v) - } - return values -} - -// GetListResourcesSortByEnumStringValues Enumerates the set of values in String for ListResourcesSortByEnum -func GetListResourcesSortByEnumStringValues() []string { - return []string{ - "timeStarted", - } -} - -// GetMappingListResourcesSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListResourcesSortByEnum(val string) (ListResourcesSortByEnum, bool) { - enum, ok := mappingListResourcesSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_runbooks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_runbooks_request_response.go index 561d299cbee..f34833eb9c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_runbooks_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_runbooks_request_response.go @@ -21,25 +21,25 @@ type ListRunbooksRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState RunbookLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // A filter to return runbooks whose identifier matches the given identifier. + // unique Runbook identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` - // A filter to return runbooks whose type matches the given type. + // The ID of the runbook type. Type RunbookTypeEnum `mandatory:"false" contributesTo:"query" name:"type" omitEmpty:"true"` - // A filter to return runbooks whose runbookRelevance matches the given runbookRelevance. + // The runbook relevance of product or full-stack. RunbookRelevance RunbookRunbookRelevanceEnum `mandatory:"false" contributesTo:"query" name:"runbookRelevance" omitEmpty:"true"` - // A filter to return runbooks whose platform matches the given platform. + // The ID of the runbook platform. Platform *string `mandatory:"false" contributesTo:"query" name:"platform"` - // A filter to return runbooks whose operation matches the given lifecycle operation. + // The runbook lifecycle. Operation *string `mandatory:"false" contributesTo:"query" name:"operation"` // The maximum number of items to return. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_definitions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_definitions_request_response.go index 2940abc3cb0..9f5587f9c08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_definitions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_definitions_request_response.go @@ -21,24 +21,21 @@ type ListSchedulerDefinitionsRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only scheduleDefinitions whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState SchedulerDefinitionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // A filter to return only dchedule definitions whose assocaited product matches the given product + // A filter to return only Scheduler Definitions whose assocaited product matches the given product Product *string `mandatory:"false" contributesTo:"query" name:"product"` - // A filter to return only schedule definitions whose identifier matches the given identifier. + // unique SchedulerDefinition identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` - // A filter to return only schedule definitions whose associated maintenanceWindowId matches the given maintenanceWindowId. + // unique MaintenanceWindow identifier MaintenanceWindowId *string `mandatory:"false" contributesTo:"query" name:"maintenanceWindowId"` - // A filter to return only schedule definitions whose associated runbookId matches the given runbookId. - RunbookId *string `mandatory:"false" contributesTo:"query" name:"runbookId"` - // unique Fleet identifier FleetId *string `mandatory:"false" contributesTo:"query" name:"fleetId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_jobs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_jobs_request_response.go index b2cfb14744d..f07cd84c04d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_jobs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_scheduler_jobs_request_response.go @@ -21,7 +21,7 @@ type ListSchedulerJobsRequest struct { // The ID of the compartment in which to list resources. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // A filter to return only resources whose lifecycleState matches the given lifecycleState. + // A filter to return only resources their lifecycleState matches the given lifecycleState. LifecycleState SchedulerJobLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // unique Fleet identifier @@ -36,9 +36,6 @@ type ListSchedulerJobsRequest struct { // Fetch next remediation Job IsRemediationJobNeeded *bool `mandatory:"false" contributesTo:"query" name:"isRemediationJobNeeded"` - // A filter to return only resources their subState matches the given subState. - SubState *string `mandatory:"false" contributesTo:"query" name:"subState"` - // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_steps_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_steps_request_response.go deleted file mode 100644 index a8fe1f06dc5..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_steps_request_response.go +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListStepsRequest wrapper for the ListSteps operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListSteps.go.html to see an example of how to use ListStepsRequest. -type ListStepsRequest struct { - - // unique SchedulerJob identifier - SchedulerJobId *string `mandatory:"true" contributesTo:"path" name:"schedulerJobId"` - - // unique jobActivity identifier - JobActivityId *string `mandatory:"true" contributesTo:"path" name:"jobActivityId"` - - // Task Id - ResourceTaskId *string `mandatory:"false" contributesTo:"query" name:"resourceTaskId"` - - // Unique step name - StepName *string `mandatory:"false" contributesTo:"query" name:"stepName"` - - // Unique target name - TargetName *string `mandatory:"false" contributesTo:"query" name:"targetName"` - - // Task Order Sequence - Sequence *string `mandatory:"false" contributesTo:"query" name:"sequence"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder ListStepsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending. - SortBy ListStepsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListStepsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListStepsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListStepsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListStepsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ListStepsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListStepsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListStepsSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListStepsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListStepsSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListStepsResponse wrapper for the ListSteps operation -type ListStepsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of StepCollection instances - StepCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListStepsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListStepsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListStepsSortOrderEnum Enum with underlying type: string -type ListStepsSortOrderEnum string - -// Set of constants representing the allowable values for ListStepsSortOrderEnum -const ( - ListStepsSortOrderAsc ListStepsSortOrderEnum = "ASC" - ListStepsSortOrderDesc ListStepsSortOrderEnum = "DESC" -) - -var mappingListStepsSortOrderEnum = map[string]ListStepsSortOrderEnum{ - "ASC": ListStepsSortOrderAsc, - "DESC": ListStepsSortOrderDesc, -} - -var mappingListStepsSortOrderEnumLowerCase = map[string]ListStepsSortOrderEnum{ - "asc": ListStepsSortOrderAsc, - "desc": ListStepsSortOrderDesc, -} - -// GetListStepsSortOrderEnumValues Enumerates the set of values for ListStepsSortOrderEnum -func GetListStepsSortOrderEnumValues() []ListStepsSortOrderEnum { - values := make([]ListStepsSortOrderEnum, 0) - for _, v := range mappingListStepsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListStepsSortOrderEnumStringValues Enumerates the set of values in String for ListStepsSortOrderEnum -func GetListStepsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListStepsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListStepsSortOrderEnum(val string) (ListStepsSortOrderEnum, bool) { - enum, ok := mappingListStepsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListStepsSortByEnum Enum with underlying type: string -type ListStepsSortByEnum string - -// Set of constants representing the allowable values for ListStepsSortByEnum -const ( - ListStepsSortByTimestarted ListStepsSortByEnum = "timeStarted" -) - -var mappingListStepsSortByEnum = map[string]ListStepsSortByEnum{ - "timeStarted": ListStepsSortByTimestarted, -} - -var mappingListStepsSortByEnumLowerCase = map[string]ListStepsSortByEnum{ - "timestarted": ListStepsSortByTimestarted, -} - -// GetListStepsSortByEnumValues Enumerates the set of values for ListStepsSortByEnum -func GetListStepsSortByEnumValues() []ListStepsSortByEnum { - values := make([]ListStepsSortByEnum, 0) - for _, v := range mappingListStepsSortByEnum { - values = append(values, v) - } - return values -} - -// GetListStepsSortByEnumStringValues Enumerates the set of values in String for ListStepsSortByEnum -func GetListStepsSortByEnumStringValues() []string { - return []string{ - "timeStarted", - } -} - -// GetMappingListStepsSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListStepsSortByEnum(val string) (ListStepsSortByEnum, bool) { - enum, ok := mappingListStepsSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_targets_request_response.go index af623049c66..40fb5016d50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_targets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/list_targets_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ListTargets.go.html to see an example of how to use ListTargetsRequest. type ListTargetsRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A filter to return only resources that match the entire display name given. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window.go index 04cb8993499..bed1d520f5f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// MaintenanceWindow Details of Maintenance Window in Fleet Application Management. +// MaintenanceWindow Details of Maintenance Window. type MaintenanceWindow struct { // The OCID of the resource. @@ -33,18 +34,15 @@ type MaintenanceWindow struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // Does the maintenenace window cause outage? - // An outage indicates whether a maintenance window can consider operations that require downtime. - // It means a period when the application is not accessible. IsOutage *bool `mandatory:"true" json:"isOutage"` - // Duration of the maintenance window. - // Specify how long the maintenance window remains open. + // Duration if schedule type is Custom Duration *string `mandatory:"true" json:"duration"` - // Is this a recurring maintenance window? + // Is this is a recurring maintenance window IsRecurring *bool `mandatory:"true" json:"isRecurring"` - // Task initiation cutoff time for the maintenance window. + // Task initiation cutoff TaskInitiationCutoff *int `mandatory:"true" json:"taskInitiationCutoff"` // The current state of the MaintenanceWindow. @@ -71,11 +69,10 @@ type MaintenanceWindow struct { // Type of the MaintenanceWindow. MaintenanceWindowType MaintenanceWindowTypeEnum `mandatory:"false" json:"maintenanceWindowType,omitempty"` - // Specify the date and time of the day that the maintenance window starts. + // Start time of schedule TimeScheduleStart *common.SDKTime `mandatory:"false" json:"timeScheduleStart"` - // Recurrence rule specification if maintenance window recurring. - // Specify the frequency of running the maintenance window. + // Recurrence rule specification if recurring Recurrences *string `mandatory:"false" json:"recurrences"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_collection.go index 9841eb5197c..95e26c32731 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// MaintenanceWindowCollection Results of a maintenanceWindow search. Contains both MaintenanceWindowSummary items and other information, such as metadata. +// MaintenanceWindowCollection Results of a maintenanceWindow search. Contains boh MaintenanceWindowSummary items and other information, such as metadata. type MaintenanceWindowCollection struct { // List of maintenanceWindows. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_summary.go index 5067059fa07..8e2eb84c0d2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -33,18 +34,15 @@ type MaintenanceWindowSummary struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // Does the maintenenace window cause outage? - // An outage indicates whether a maintenance window can consider operations that require downtime. - // It means a period when the application is not accessible. IsOutage *bool `mandatory:"true" json:"isOutage"` - // Duration of the maintenance window. - // Specify how long the maintenance window remains open. + // Duration if schedule type is Custom Duration *string `mandatory:"true" json:"duration"` - // Is this a recurring maintenance window? + // Is this is a recurring maintenance window IsRecurring *bool `mandatory:"true" json:"isRecurring"` - // Task initiation cutoff time for the maintenance window. + // Task initiation cutoff TaskInitiationCutoff *int `mandatory:"true" json:"taskInitiationCutoff"` // The current state of the MaintenanceWindow. @@ -71,11 +69,10 @@ type MaintenanceWindowSummary struct { // Type of the MaintenanceWindow. MaintenanceWindowType MaintenanceWindowTypeEnum `mandatory:"false" json:"maintenanceWindowType,omitempty"` - // Specify the date and time of the day that the maintenance window starts. + // Start time of schedule TimeScheduleStart *common.SDKTime `mandatory:"false" json:"timeScheduleStart"` - // Recurrence rule specification if maintenance window recurring. - // Specify the frequency of running the maintenance window. + // Recurrence rule specification if recurring Recurrences *string `mandatory:"false" json:"recurrences"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_type.go index 0d9ca2c74c6..c232fc0679b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/maintenance_window_type.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_job_execution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_job_execution_details.go deleted file mode 100644 index b02c2581208..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_job_execution_details.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ManageJobExecutionDetails Details of the Job Execution actions. -type ManageJobExecutionDetails struct { - ActionDetails UserActionDetails `mandatory:"true" json:"actionDetails"` -} - -func (m ManageJobExecutionDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ManageJobExecutionDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *ManageJobExecutionDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - ActionDetails useractiondetails `json:"actionDetails"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - nn, e = model.ActionDetails.UnmarshalPolymorphicJSON(model.ActionDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ActionDetails = nn.(UserActionDetails) - } else { - m.ActionDetails = nil - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_job_execution_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_job_execution_request_response.go deleted file mode 100644 index a76566cd4bc..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_job_execution_request_response.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ManageJobExecutionRequest wrapper for the ManageJobExecution operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ManageJobExecution.go.html to see an example of how to use ManageJobExecutionRequest. -type ManageJobExecutionRequest struct { - - // Details for confirming Targets. - ManageJobExecutionDetails `contributesTo:"body"` - - // unique SchedulerJob identifier - SchedulerJobId *string `mandatory:"true" contributesTo:"path" name:"schedulerJobId"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ManageJobExecutionRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ManageJobExecutionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ManageJobExecutionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ManageJobExecutionRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ManageJobExecutionRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ManageJobExecutionResponse wrapper for the ManageJobExecution operation -type ManageJobExecutionResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ManageJobExecutionResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ManageJobExecutionResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_settings_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_settings_details.go deleted file mode 100644 index 5a2ddd27e9d..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_settings_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ManageSettingsDetails The information to be updated. -type ManageSettingsDetails struct { - - // Provide discovery frequency. - DiscoveryFrequency *string `mandatory:"false" json:"discoveryFrequency"` -} - -func (m ManageSettingsDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ManageSettingsDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_settings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_settings_request_response.go deleted file mode 100644 index 37129f5a2d7..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/manage_settings_request_response.go +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ManageSettingsRequest wrapper for the ManageSettings operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/ManageSettings.go.html to see an example of how to use ManageSettingsRequest. -type ManageSettingsRequest struct { - - // A filter to return resources whose Onboarding identifier matches the given identifier. - OnboardingId *string `mandatory:"true" contributesTo:"path" name:"onboardingId"` - - // The information to be updated. - ManageSettingsDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ManageSettingsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ManageSettingsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ManageSettingsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ManageSettingsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request ManageSettingsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ManageSettingsResponse wrapper for the ManageSettings operation -type ManageSettingsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ManageSettingsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ManageSettingsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity.go deleted file mode 100644 index 2e01d687282..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "strings" -) - -// ManagedEntityEnum Enum with underlying type: string -type ManagedEntityEnum string - -// Set of constants representing the allowable values for ManagedEntityEnum -const ( - ManagedEntityResource ManagedEntityEnum = "RESOURCE" - ManagedEntityTarget ManagedEntityEnum = "TARGET" -) - -var mappingManagedEntityEnum = map[string]ManagedEntityEnum{ - "RESOURCE": ManagedEntityResource, - "TARGET": ManagedEntityTarget, -} - -var mappingManagedEntityEnumLowerCase = map[string]ManagedEntityEnum{ - "resource": ManagedEntityResource, - "target": ManagedEntityTarget, -} - -// GetManagedEntityEnumValues Enumerates the set of values for ManagedEntityEnum -func GetManagedEntityEnumValues() []ManagedEntityEnum { - values := make([]ManagedEntityEnum, 0) - for _, v := range mappingManagedEntityEnum { - values = append(values, v) - } - return values -} - -// GetManagedEntityEnumStringValues Enumerates the set of values in String for ManagedEntityEnum -func GetManagedEntityEnumStringValues() []string { - return []string{ - "RESOURCE", - "TARGET", - } -} - -// GetMappingManagedEntityEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingManagedEntityEnum(val string) (ManagedEntityEnum, bool) { - enum, ok := mappingManagedEntityEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_aggregation.go deleted file mode 100644 index 86762649066..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_aggregation.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ManagedEntityAggregation Aggregated summary information for ManagedEntity -type ManagedEntityAggregation struct { - - // count of Managed Entities in a Tenancy. - Count *int `mandatory:"true" json:"count"` - - Dimensions *ManagedEntityDimension `mandatory:"true" json:"dimensions"` -} - -func (m ManagedEntityAggregation) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ManagedEntityAggregation) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_aggregation_collection.go deleted file mode 100644 index 2c0cba792a4..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/managed_entity_aggregation_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ManagedEntityAggregationCollection An array of Managed Entity objects -type ManagedEntityAggregationCollection struct { - - // List of ManagedEntityAggregation objects. - Items []ManagedEntityAggregation `mandatory:"true" json:"items"` -} - -func (m ManagedEntityAggregationCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ManagedEntityAggregationCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/notification_preferences.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/notification_preferences.go index b386e1c102d..0fb3b638df1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/notification_preferences.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/notification_preferences.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,14 +16,13 @@ import ( "strings" ) -// NotificationPreferences Notification information to get notified when the fleet status changes. +// NotificationPreferences Conditions when met to send notifications on the fleet activities type NotificationPreferences struct { - // Topic Id where the notifications will be directed. - // A topic is a communication channel for sending messages on chosen events to subscriptions. + // Topic Id where the notifications will be directed TopicId *string `mandatory:"true" json:"topicId"` - // Compartment ID the topic belongs to. + // Copartment Id of the topic where the notifications will be directed CompartmentId *string `mandatory:"true" json:"compartmentId"` Preferences *Preferences `mandatory:"false" json:"preferences"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/object_storage_bucket_content_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/object_storage_bucket_content_details.go index f402648b9f0..66ca9b97cd3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/object_storage_bucket_content_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/object_storage_bucket_content_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -17,7 +18,7 @@ import ( ) // ObjectStorageBucketContentDetails Details about Object Storage Bucket source. -// Restricted to the region this is called. +// Restricted to the region this is called type ObjectStorageBucketContentDetails struct { // Namespace. @@ -29,7 +30,7 @@ type ObjectStorageBucketContentDetails struct { // Object Name. ObjectName *string `mandatory:"true" json:"objectName"` - // md5 checksum of the artifact. + // SHA256 checksum of the artifact. Checksum *string `mandatory:"true" json:"checksum"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding.go index 035bb7b9b60..a34305daa4c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,8 +16,7 @@ import ( "strings" ) -// Onboarding Fleet Application Management onboarding resource. -// The onboarding process lets Fleet Application Management create a few required policies that you need to start using it and its features. +// Onboarding FleetAppManagementService onboarding resource. type Onboarding struct { // The unique id of the resource. @@ -37,22 +37,15 @@ type Onboarding struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // A value determining if the Fleet Application Management tagging is enabled or not. - // Allow Fleet Application Management to tag resources with fleet name using "Oracle$FAMS-Tags.FleetName" tag. + // A value determining FAMS tag is enabled or not IsFamsTagEnabled *bool `mandatory:"false" json:"isFamsTagEnabled"` - // The version of Fleet Application Management that the tenant is onboarded to. + // Version of FAMS the tenant is onboarded to. Version *string `mandatory:"false" json:"version"` - // A value determining if the cost tracking tag is enabled or not. - // Allow Fleet Application Management to tag resources with cost tracking tag using "Oracle$FAMS-Tags.FAMSManaged" tag. + // A value determining if cost tracking tag is enabled or not IsCostTrackingTagEnabled *bool `mandatory:"false" json:"isCostTrackingTagEnabled"` - AppliedPolicies *OnboardingPolicySummary `mandatory:"false" json:"appliedPolicies"` - - // Provide discovery frequency. - DiscoveryFrequency *string `mandatory:"false" json:"discoveryFrequency"` - // System tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_collection.go index 178df2b7bcc..509d1a9e2a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// OnboardingCollection List of Fleet Application Management Onboardings. +// OnboardingCollection List of FleetAppManagementService Onboardings. type OnboardingCollection struct { - // List of Fleet Application Management Onboardings. + // List of FleetAppManagementService Onboardings. Items []OnboardingSummary `mandatory:"true" json:"items"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_collection.go index 5481db00a9a..40c8f668f50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// OnboardingPolicyCollection List of Fleet Application Management Onboard policies. +// OnboardingPolicyCollection List of FleetAppManagementService Onboard policies. type OnboardingPolicyCollection struct { - // List of Fleet Application Management Onboard policies. + // List of FleetAppManagementService Onboard policies. Items []OnboardingPolicySummary `mandatory:"true" json:"items"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_summary.go index a29f0f2422d..f16214219c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_policy_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// OnboardingPolicySummary Summary of the Fleet Application Management Onboard Policy. +// OnboardingPolicySummary Summary of the FleetAppManagementService Onboard Policy. type OnboardingPolicySummary struct { // The unique id of the resource. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_summary.go index 177bf1ad4bb..7bcdc6cf64b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/onboarding_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// OnboardingSummary Summary of the Fleet Application Management Onboarding. +// OnboardingSummary Summary of the FleetAppManagementService Onboarding. type OnboardingSummary struct { // The unique id of the resource. @@ -36,22 +37,15 @@ type OnboardingSummary struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // A value determining if the Fleet Application Management tagging is enabled or not. - // Allow Fleet Application Management to tag resources with fleet name using "Oracle$FAMS-Tags.FleetName" tag. + // A value determining FAMS tag is enabled or not IsFamsTagEnabled *bool `mandatory:"false" json:"isFamsTagEnabled"` - // The version of Fleet Application Management that the tenant is onboarded to. + // Version of FAMS the tenant is onboarded to. Version *string `mandatory:"false" json:"version"` - // A value determining if the cost tracking tag is enabled or not. - // Allow Fleet Application Management to tag resources with cost tracking tag using "Oracle$FAMS-Tags.FAMSManaged" tag. + // A value determining if cost tracking tag is enabled or not IsCostTrackingTagEnabled *bool `mandatory:"false" json:"isCostTrackingTagEnabled"` - AppliedPolicies *OnboardingPolicySummary `mandatory:"false" json:"appliedPolicies"` - - // Provide discovery frequency. - DiscoveryFrequency *string `mandatory:"false" json:"discoveryFrequency"` - // System tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_runbook.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_runbook.go index f743a9ad349..800592b1127 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_runbook.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_runbook.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_status.go index 317597b31aa..e5153ddd588 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_status.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_type.go index 5d2eb312e41..716c5eab78c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/operation_type.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -18,114 +19,66 @@ type OperationTypeEnum string // Set of constants representing the allowable values for OperationTypeEnum const ( - OperationTypeCreateFleet OperationTypeEnum = "CREATE_FLEET" - OperationTypeUpdateFleet OperationTypeEnum = "UPDATE_FLEET" - OperationTypeDeleteFleet OperationTypeEnum = "DELETE_FLEET" - OperationTypeConfirmTarget OperationTypeEnum = "CONFIRM_TARGET" - OperationTypeGenerateCompliance OperationTypeEnum = "GENERATE_COMPLIANCE" - OperationTypeRequestTargetDiscovery OperationTypeEnum = "REQUEST_TARGET_DISCOVERY" - OperationTypeValidateResource OperationTypeEnum = "VALIDATE_RESOURCE" - OperationTypeCreateCredential OperationTypeEnum = "CREATE_CREDENTIAL" - OperationTypeUpdateCredential OperationTypeEnum = "UPDATE_CREDENTIAL" - OperationTypeDeleteCredential OperationTypeEnum = "DELETE_CREDENTIAL" - OperationTypeCreateSchedule OperationTypeEnum = "CREATE_SCHEDULE" - OperationTypeUpdateSchedule OperationTypeEnum = "UPDATE_SCHEDULE" - OperationTypeUpdateMaintenanceWindow OperationTypeEnum = "UPDATE_MAINTENANCE_WINDOW" - OperationTypeDeleteMaintenanceWindow OperationTypeEnum = "DELETE_MAINTENANCE_WINDOW" - OperationTypeCreateFleetResource OperationTypeEnum = "CREATE_FLEET_RESOURCE" - OperationTypeUpdateFleetResource OperationTypeEnum = "UPDATE_FLEET_RESOURCE" - OperationTypeDeleteFleetResource OperationTypeEnum = "DELETE_FLEET_RESOURCE" - OperationTypeCreateFamsOnboarding OperationTypeEnum = "CREATE_FAMS_ONBOARDING" - OperationTypeCreateRunbook OperationTypeEnum = "CREATE_RUNBOOK" - OperationTypeUpdateRunbook OperationTypeEnum = "UPDATE_RUNBOOK" - OperationTypeDeleteRunbook OperationTypeEnum = "DELETE_RUNBOOK" - OperationTypePublishRunbook OperationTypeEnum = "PUBLISH_RUNBOOK" - OperationTypeUpdateTask OperationTypeEnum = "UPDATE_TASK" - OperationTypeDeleteTask OperationTypeEnum = "DELETE_TASK" - OperationTypeUpdateFamsOnboarding OperationTypeEnum = "UPDATE_FAMS_ONBOARDING" - OperationTypeDeleteFamsOnboarding OperationTypeEnum = "DELETE_FAMS_ONBOARDING" - OperationTypeCreateCompliancePolicyRule OperationTypeEnum = "CREATE_COMPLIANCE_POLICY_RULE" - OperationTypeUpdateCompliancePolicyRule OperationTypeEnum = "UPDATE_COMPLIANCE_POLICY_RULE" - OperationTypeDeleteCompliancePolicyRule OperationTypeEnum = "DELETE_COMPLIANCE_POLICY_RULE" - OperationTypeUpdatePatch OperationTypeEnum = "UPDATE_PATCH" - OperationTypeDeletePatch OperationTypeEnum = "DELETE_PATCH" - OperationTypeManageJobExecution OperationTypeEnum = "MANAGE_JOB_EXECUTION" - OperationTypeDeletePlatformConfiguration OperationTypeEnum = "DELETE_PLATFORM_CONFIGURATION" - OperationTypeUpdatePlatformConfiguration OperationTypeEnum = "UPDATE_PLATFORM_CONFIGURATION" + OperationTypeCreateFleet OperationTypeEnum = "CREATE_FLEET" + OperationTypeUpdateFleet OperationTypeEnum = "UPDATE_FLEET" + OperationTypeDeleteFleet OperationTypeEnum = "DELETE_FLEET" + OperationTypeConfirmTarget OperationTypeEnum = "CONFIRM_TARGET" + OperationTypeGenerateCompliance OperationTypeEnum = "GENERATE_COMPLIANCE" + OperationTypeRequestTargetDiscovery OperationTypeEnum = "REQUEST_TARGET_DISCOVERY" + OperationTypeValidateResource OperationTypeEnum = "VALIDATE_RESOURCE" + OperationTypeCreateCredential OperationTypeEnum = "CREATE_CREDENTIAL" + OperationTypeUpdateCredential OperationTypeEnum = "UPDATE_CREDENTIAL" + OperationTypeDeleteCredential OperationTypeEnum = "DELETE_CREDENTIAL" + OperationTypeCreateSchedule OperationTypeEnum = "CREATE_SCHEDULE" + OperationTypeUpdateSchedule OperationTypeEnum = "UPDATE_SCHEDULE" + OperationTypeUpdateMaintenanceWindow OperationTypeEnum = "UPDATE_MAINTENANCE_WINDOW" + OperationTypeDeleteMaintenanceWindow OperationTypeEnum = "DELETE_MAINTENANCE_WINDOW" + OperationTypeCreateFleetResource OperationTypeEnum = "CREATE_FLEET_RESOURCE" + OperationTypeUpdateFleetResource OperationTypeEnum = "UPDATE_FLEET_RESOURCE" + OperationTypeDeleteFleetResource OperationTypeEnum = "DELETE_FLEET_RESOURCE" + OperationTypeCreateFamsOnboarding OperationTypeEnum = "CREATE_FAMS_ONBOARDING" ) var mappingOperationTypeEnum = map[string]OperationTypeEnum{ - "CREATE_FLEET": OperationTypeCreateFleet, - "UPDATE_FLEET": OperationTypeUpdateFleet, - "DELETE_FLEET": OperationTypeDeleteFleet, - "CONFIRM_TARGET": OperationTypeConfirmTarget, - "GENERATE_COMPLIANCE": OperationTypeGenerateCompliance, - "REQUEST_TARGET_DISCOVERY": OperationTypeRequestTargetDiscovery, - "VALIDATE_RESOURCE": OperationTypeValidateResource, - "CREATE_CREDENTIAL": OperationTypeCreateCredential, - "UPDATE_CREDENTIAL": OperationTypeUpdateCredential, - "DELETE_CREDENTIAL": OperationTypeDeleteCredential, - "CREATE_SCHEDULE": OperationTypeCreateSchedule, - "UPDATE_SCHEDULE": OperationTypeUpdateSchedule, - "UPDATE_MAINTENANCE_WINDOW": OperationTypeUpdateMaintenanceWindow, - "DELETE_MAINTENANCE_WINDOW": OperationTypeDeleteMaintenanceWindow, - "CREATE_FLEET_RESOURCE": OperationTypeCreateFleetResource, - "UPDATE_FLEET_RESOURCE": OperationTypeUpdateFleetResource, - "DELETE_FLEET_RESOURCE": OperationTypeDeleteFleetResource, - "CREATE_FAMS_ONBOARDING": OperationTypeCreateFamsOnboarding, - "CREATE_RUNBOOK": OperationTypeCreateRunbook, - "UPDATE_RUNBOOK": OperationTypeUpdateRunbook, - "DELETE_RUNBOOK": OperationTypeDeleteRunbook, - "PUBLISH_RUNBOOK": OperationTypePublishRunbook, - "UPDATE_TASK": OperationTypeUpdateTask, - "DELETE_TASK": OperationTypeDeleteTask, - "UPDATE_FAMS_ONBOARDING": OperationTypeUpdateFamsOnboarding, - "DELETE_FAMS_ONBOARDING": OperationTypeDeleteFamsOnboarding, - "CREATE_COMPLIANCE_POLICY_RULE": OperationTypeCreateCompliancePolicyRule, - "UPDATE_COMPLIANCE_POLICY_RULE": OperationTypeUpdateCompliancePolicyRule, - "DELETE_COMPLIANCE_POLICY_RULE": OperationTypeDeleteCompliancePolicyRule, - "UPDATE_PATCH": OperationTypeUpdatePatch, - "DELETE_PATCH": OperationTypeDeletePatch, - "MANAGE_JOB_EXECUTION": OperationTypeManageJobExecution, - "DELETE_PLATFORM_CONFIGURATION": OperationTypeDeletePlatformConfiguration, - "UPDATE_PLATFORM_CONFIGURATION": OperationTypeUpdatePlatformConfiguration, + "CREATE_FLEET": OperationTypeCreateFleet, + "UPDATE_FLEET": OperationTypeUpdateFleet, + "DELETE_FLEET": OperationTypeDeleteFleet, + "CONFIRM_TARGET": OperationTypeConfirmTarget, + "GENERATE_COMPLIANCE": OperationTypeGenerateCompliance, + "REQUEST_TARGET_DISCOVERY": OperationTypeRequestTargetDiscovery, + "VALIDATE_RESOURCE": OperationTypeValidateResource, + "CREATE_CREDENTIAL": OperationTypeCreateCredential, + "UPDATE_CREDENTIAL": OperationTypeUpdateCredential, + "DELETE_CREDENTIAL": OperationTypeDeleteCredential, + "CREATE_SCHEDULE": OperationTypeCreateSchedule, + "UPDATE_SCHEDULE": OperationTypeUpdateSchedule, + "UPDATE_MAINTENANCE_WINDOW": OperationTypeUpdateMaintenanceWindow, + "DELETE_MAINTENANCE_WINDOW": OperationTypeDeleteMaintenanceWindow, + "CREATE_FLEET_RESOURCE": OperationTypeCreateFleetResource, + "UPDATE_FLEET_RESOURCE": OperationTypeUpdateFleetResource, + "DELETE_FLEET_RESOURCE": OperationTypeDeleteFleetResource, + "CREATE_FAMS_ONBOARDING": OperationTypeCreateFamsOnboarding, } var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ - "create_fleet": OperationTypeCreateFleet, - "update_fleet": OperationTypeUpdateFleet, - "delete_fleet": OperationTypeDeleteFleet, - "confirm_target": OperationTypeConfirmTarget, - "generate_compliance": OperationTypeGenerateCompliance, - "request_target_discovery": OperationTypeRequestTargetDiscovery, - "validate_resource": OperationTypeValidateResource, - "create_credential": OperationTypeCreateCredential, - "update_credential": OperationTypeUpdateCredential, - "delete_credential": OperationTypeDeleteCredential, - "create_schedule": OperationTypeCreateSchedule, - "update_schedule": OperationTypeUpdateSchedule, - "update_maintenance_window": OperationTypeUpdateMaintenanceWindow, - "delete_maintenance_window": OperationTypeDeleteMaintenanceWindow, - "create_fleet_resource": OperationTypeCreateFleetResource, - "update_fleet_resource": OperationTypeUpdateFleetResource, - "delete_fleet_resource": OperationTypeDeleteFleetResource, - "create_fams_onboarding": OperationTypeCreateFamsOnboarding, - "create_runbook": OperationTypeCreateRunbook, - "update_runbook": OperationTypeUpdateRunbook, - "delete_runbook": OperationTypeDeleteRunbook, - "publish_runbook": OperationTypePublishRunbook, - "update_task": OperationTypeUpdateTask, - "delete_task": OperationTypeDeleteTask, - "update_fams_onboarding": OperationTypeUpdateFamsOnboarding, - "delete_fams_onboarding": OperationTypeDeleteFamsOnboarding, - "create_compliance_policy_rule": OperationTypeCreateCompliancePolicyRule, - "update_compliance_policy_rule": OperationTypeUpdateCompliancePolicyRule, - "delete_compliance_policy_rule": OperationTypeDeleteCompliancePolicyRule, - "update_patch": OperationTypeUpdatePatch, - "delete_patch": OperationTypeDeletePatch, - "manage_job_execution": OperationTypeManageJobExecution, - "delete_platform_configuration": OperationTypeDeletePlatformConfiguration, - "update_platform_configuration": OperationTypeUpdatePlatformConfiguration, + "create_fleet": OperationTypeCreateFleet, + "update_fleet": OperationTypeUpdateFleet, + "delete_fleet": OperationTypeDeleteFleet, + "confirm_target": OperationTypeConfirmTarget, + "generate_compliance": OperationTypeGenerateCompliance, + "request_target_discovery": OperationTypeRequestTargetDiscovery, + "validate_resource": OperationTypeValidateResource, + "create_credential": OperationTypeCreateCredential, + "update_credential": OperationTypeUpdateCredential, + "delete_credential": OperationTypeDeleteCredential, + "create_schedule": OperationTypeCreateSchedule, + "update_schedule": OperationTypeUpdateSchedule, + "update_maintenance_window": OperationTypeUpdateMaintenanceWindow, + "delete_maintenance_window": OperationTypeDeleteMaintenanceWindow, + "create_fleet_resource": OperationTypeCreateFleetResource, + "update_fleet_resource": OperationTypeUpdateFleetResource, + "delete_fleet_resource": OperationTypeDeleteFleetResource, + "create_fams_onboarding": OperationTypeCreateFamsOnboarding, } // GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum @@ -158,22 +111,6 @@ func GetOperationTypeEnumStringValues() []string { "UPDATE_FLEET_RESOURCE", "DELETE_FLEET_RESOURCE", "CREATE_FAMS_ONBOARDING", - "CREATE_RUNBOOK", - "UPDATE_RUNBOOK", - "DELETE_RUNBOOK", - "PUBLISH_RUNBOOK", - "UPDATE_TASK", - "DELETE_TASK", - "UPDATE_FAMS_ONBOARDING", - "DELETE_FAMS_ONBOARDING", - "CREATE_COMPLIANCE_POLICY_RULE", - "UPDATE_COMPLIANCE_POLICY_RULE", - "DELETE_COMPLIANCE_POLICY_RULE", - "UPDATE_PATCH", - "DELETE_PATCH", - "MANAGE_JOB_EXECUTION", - "DELETE_PLATFORM_CONFIGURATION", - "UPDATE_PLATFORM_CONFIGURATION", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/os_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/os_type.go index 275401adb33..0f9e0307627 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/os_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/os_type.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/outcome.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/outcome.go index 34ff92668e3..59ba9765f24 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/outcome.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/outcome.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,16 +16,16 @@ import ( "strings" ) -// Outcome Execution Outcome. +// Outcome Execution Outcome type Outcome struct { - // A shortened version of Execution output. + // A shortened version of Execution Output Output *string `mandatory:"true" json:"output"` - // Errors if any, associated with the execution. + // Errors if any associated with the execution Error *string `mandatory:"false" json:"error"` - // Exit Code. + // Exit Code ExitCode *string `mandatory:"false" json:"exitCode"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_details.go index 10de91caacf..93127d0c20c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -21,7 +22,7 @@ type OutputVariableDetails struct { // The name of the task step the output variable belongs to. StepName *string `mandatory:"true" json:"stepName"` - // The name of the output variable whose value has to be mapped. + // The name of the output variable whose value that has to be mapped. OutputVariableName *string `mandatory:"true" json:"outputVariableName"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_input_argument.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_input_argument.go index 1061b6ff2fd..25618b823a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_input_argument.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_input_argument.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,10 +17,10 @@ import ( "strings" ) -// OutputVariableInputArgument The details of the output variable that will be used as the Input argument. +// OutputVariableInputArgument The details of the output variable that will be used as Input argument. type OutputVariableInputArgument struct { - // The name of the argument. + // The name of the argument Name *string `mandatory:"true" json:"name"` // The description of the argument. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_mapping.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_mapping.go index a0b9057d7df..fd09a970088 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/output_variable_mapping.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,11 +16,10 @@ import ( "strings" ) -// OutputVariableMapping Output variable to Input variable mapping details. -// Output variable of a task can be used as an input variable for a subsequent task. +// OutputVariableMapping The details of the output variable that will be used as Input argument. type OutputVariableMapping struct { - // The name of the input variable. + // The name of the input variable Name *string `mandatory:"true" json:"name"` OutputVariableDetails *OutputVariableDetails `mandatory:"true" json:"outputVariableDetails"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch.go deleted file mode 100644 index 8d73c606798..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch.go +++ /dev/null @@ -1,285 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// Patch Patch metadata for Custom and Oracle patches. -type Patch struct { - - // The OCID of the resource. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. - // Avoid entering confidential information. - Name *string `mandatory:"true" json:"name"` - - PatchType *PatchType `mandatory:"true" json:"patchType"` - - // Patch Severity. - Severity PatchSeverityEnum `mandatory:"true" json:"severity"` - - // Date when the patch was released. - TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` - - ArtifactDetails ArtifactDetails `mandatory:"true" json:"artifactDetails"` - - Product *PatchProduct `mandatory:"true" json:"product"` - - // The current state of the Patch. - LifecycleState PatchLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The time this resource was created. An RFC3339 formatted datetime string. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The time this resource was last updated. An RFC3339 formatted datetime string. - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - - // OCID of the compartment to which the resource belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // Provide information on who defined the patch. - // Example: For Custom Patches the value will be USER_DEFINED - // For Oracle Defined Patches the value will be ORACLE_DEFINED - Type PatchTypeEnum `mandatory:"false" json:"type,omitempty"` - - // Dependent Patches for this patch. - DependentPatches []DependentPatchDetails `mandatory:"false" json:"dependentPatches"` - - // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Associated region - ResourceRegion *string `mandatory:"false" json:"resourceRegion"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m Patch) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m Patch) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPatchSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetPatchSeverityEnumStringValues(), ","))) - } - if _, ok := GetMappingPatchLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPatchLifecycleStateEnumStringValues(), ","))) - } - - if _, ok := GetMappingPatchTypeEnum(string(m.Type)); !ok && m.Type != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetPatchTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *Patch) UnmarshalJSON(data []byte) (e error) { - model := struct { - Description *string `json:"description"` - Type PatchTypeEnum `json:"type"` - DependentPatches []DependentPatchDetails `json:"dependentPatches"` - LifecycleDetails *string `json:"lifecycleDetails"` - ResourceRegion *string `json:"resourceRegion"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - Id *string `json:"id"` - Name *string `json:"name"` - PatchType *PatchType `json:"patchType"` - Severity PatchSeverityEnum `json:"severity"` - TimeReleased *common.SDKTime `json:"timeReleased"` - ArtifactDetails artifactdetails `json:"artifactDetails"` - Product *PatchProduct `json:"product"` - LifecycleState PatchLifecycleStateEnum `json:"lifecycleState"` - TimeCreated *common.SDKTime `json:"timeCreated"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - CompartmentId *string `json:"compartmentId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Description = model.Description - - m.Type = model.Type - - m.DependentPatches = make([]DependentPatchDetails, len(model.DependentPatches)) - copy(m.DependentPatches, model.DependentPatches) - m.LifecycleDetails = model.LifecycleDetails - - m.ResourceRegion = model.ResourceRegion - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - m.Id = model.Id - - m.Name = model.Name - - m.PatchType = model.PatchType - - m.Severity = model.Severity - - m.TimeReleased = model.TimeReleased - - nn, e = model.ArtifactDetails.UnmarshalPolymorphicJSON(model.ArtifactDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ArtifactDetails = nn.(ArtifactDetails) - } else { - m.ArtifactDetails = nil - } - - m.Product = model.Product - - m.LifecycleState = model.LifecycleState - - m.TimeCreated = model.TimeCreated - - m.TimeUpdated = model.TimeUpdated - - m.CompartmentId = model.CompartmentId - - return -} - -// PatchTypeEnum Enum with underlying type: string -type PatchTypeEnum string - -// Set of constants representing the allowable values for PatchTypeEnum -const ( - PatchTypeUserDefined PatchTypeEnum = "USER_DEFINED" - PatchTypeOracleDefined PatchTypeEnum = "ORACLE_DEFINED" -) - -var mappingPatchTypeEnum = map[string]PatchTypeEnum{ - "USER_DEFINED": PatchTypeUserDefined, - "ORACLE_DEFINED": PatchTypeOracleDefined, -} - -var mappingPatchTypeEnumLowerCase = map[string]PatchTypeEnum{ - "user_defined": PatchTypeUserDefined, - "oracle_defined": PatchTypeOracleDefined, -} - -// GetPatchTypeEnumValues Enumerates the set of values for PatchTypeEnum -func GetPatchTypeEnumValues() []PatchTypeEnum { - values := make([]PatchTypeEnum, 0) - for _, v := range mappingPatchTypeEnum { - values = append(values, v) - } - return values -} - -// GetPatchTypeEnumStringValues Enumerates the set of values in String for PatchTypeEnum -func GetPatchTypeEnumStringValues() []string { - return []string{ - "USER_DEFINED", - "ORACLE_DEFINED", - } -} - -// GetMappingPatchTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPatchTypeEnum(val string) (PatchTypeEnum, bool) { - enum, ok := mappingPatchTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// PatchLifecycleStateEnum Enum with underlying type: string -type PatchLifecycleStateEnum string - -// Set of constants representing the allowable values for PatchLifecycleStateEnum -const ( - PatchLifecycleStateActive PatchLifecycleStateEnum = "ACTIVE" - PatchLifecycleStateInactive PatchLifecycleStateEnum = "INACTIVE" - PatchLifecycleStateDeleted PatchLifecycleStateEnum = "DELETED" - PatchLifecycleStateDeleting PatchLifecycleStateEnum = "DELETING" - PatchLifecycleStateFailed PatchLifecycleStateEnum = "FAILED" - PatchLifecycleStateUpdating PatchLifecycleStateEnum = "UPDATING" -) - -var mappingPatchLifecycleStateEnum = map[string]PatchLifecycleStateEnum{ - "ACTIVE": PatchLifecycleStateActive, - "INACTIVE": PatchLifecycleStateInactive, - "DELETED": PatchLifecycleStateDeleted, - "DELETING": PatchLifecycleStateDeleting, - "FAILED": PatchLifecycleStateFailed, - "UPDATING": PatchLifecycleStateUpdating, -} - -var mappingPatchLifecycleStateEnumLowerCase = map[string]PatchLifecycleStateEnum{ - "active": PatchLifecycleStateActive, - "inactive": PatchLifecycleStateInactive, - "deleted": PatchLifecycleStateDeleted, - "deleting": PatchLifecycleStateDeleting, - "failed": PatchLifecycleStateFailed, - "updating": PatchLifecycleStateUpdating, -} - -// GetPatchLifecycleStateEnumValues Enumerates the set of values for PatchLifecycleStateEnum -func GetPatchLifecycleStateEnumValues() []PatchLifecycleStateEnum { - values := make([]PatchLifecycleStateEnum, 0) - for _, v := range mappingPatchLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetPatchLifecycleStateEnumStringValues Enumerates the set of values in String for PatchLifecycleStateEnum -func GetPatchLifecycleStateEnumStringValues() []string { - return []string{ - "ACTIVE", - "INACTIVE", - "DELETED", - "DELETING", - "FAILED", - "UPDATING", - } -} - -// GetMappingPatchLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPatchLifecycleStateEnum(val string) (PatchLifecycleStateEnum, bool) { - enum, ok := mappingPatchLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_level_selection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_level_selection_details.go deleted file mode 100644 index 7798c22e977..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_level_selection_details.go +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatchLevelSelectionDetails Patch Level Details. -// If you set the policy rule by selecting this option and provide the Patch level as Latest, Fleet Application Management calculates the compliance status of the product in the following ways: -// - Reports the patch process as compliant for the software identified or targets discovered at the Latest and Latest-1 version. -// - Reports the patch process as noncompliant for the software identified or targets discovered at the Latest-2 version. -type PatchLevelSelectionDetails struct { - - // Patch Name. - PatchLevel PatchLevelSelectionDetailsPatchLevelEnum `mandatory:"true" json:"patchLevel"` -} - -func (m PatchLevelSelectionDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PatchLevelSelectionDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPatchLevelSelectionDetailsPatchLevelEnum(string(m.PatchLevel)); !ok && m.PatchLevel != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PatchLevel: %s. Supported values are: %s.", m.PatchLevel, strings.Join(GetPatchLevelSelectionDetailsPatchLevelEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m PatchLevelSelectionDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypePatchLevelSelectionDetails PatchLevelSelectionDetails - s := struct { - DiscriminatorParam string `json:"selectionType"` - MarshalTypePatchLevelSelectionDetails - }{ - "PATCH_LEVEL", - (MarshalTypePatchLevelSelectionDetails)(m), - } - - return json.Marshal(&s) -} - -// PatchLevelSelectionDetailsPatchLevelEnum Enum with underlying type: string -type PatchLevelSelectionDetailsPatchLevelEnum string - -// Set of constants representing the allowable values for PatchLevelSelectionDetailsPatchLevelEnum -const ( - PatchLevelSelectionDetailsPatchLevelLatest PatchLevelSelectionDetailsPatchLevelEnum = "LATEST" - PatchLevelSelectionDetailsPatchLevelLatestMinusOne PatchLevelSelectionDetailsPatchLevelEnum = "LATEST_MINUS_ONE" - PatchLevelSelectionDetailsPatchLevelLatestMinusTwo PatchLevelSelectionDetailsPatchLevelEnum = "LATEST_MINUS_TWO" -) - -var mappingPatchLevelSelectionDetailsPatchLevelEnum = map[string]PatchLevelSelectionDetailsPatchLevelEnum{ - "LATEST": PatchLevelSelectionDetailsPatchLevelLatest, - "LATEST_MINUS_ONE": PatchLevelSelectionDetailsPatchLevelLatestMinusOne, - "LATEST_MINUS_TWO": PatchLevelSelectionDetailsPatchLevelLatestMinusTwo, -} - -var mappingPatchLevelSelectionDetailsPatchLevelEnumLowerCase = map[string]PatchLevelSelectionDetailsPatchLevelEnum{ - "latest": PatchLevelSelectionDetailsPatchLevelLatest, - "latest_minus_one": PatchLevelSelectionDetailsPatchLevelLatestMinusOne, - "latest_minus_two": PatchLevelSelectionDetailsPatchLevelLatestMinusTwo, -} - -// GetPatchLevelSelectionDetailsPatchLevelEnumValues Enumerates the set of values for PatchLevelSelectionDetailsPatchLevelEnum -func GetPatchLevelSelectionDetailsPatchLevelEnumValues() []PatchLevelSelectionDetailsPatchLevelEnum { - values := make([]PatchLevelSelectionDetailsPatchLevelEnum, 0) - for _, v := range mappingPatchLevelSelectionDetailsPatchLevelEnum { - values = append(values, v) - } - return values -} - -// GetPatchLevelSelectionDetailsPatchLevelEnumStringValues Enumerates the set of values in String for PatchLevelSelectionDetailsPatchLevelEnum -func GetPatchLevelSelectionDetailsPatchLevelEnumStringValues() []string { - return []string{ - "LATEST", - "LATEST_MINUS_ONE", - "LATEST_MINUS_TWO", - } -} - -// GetMappingPatchLevelSelectionDetailsPatchLevelEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPatchLevelSelectionDetailsPatchLevelEnum(val string) (PatchLevelSelectionDetailsPatchLevelEnum, bool) { - enum, ok := mappingPatchLevelSelectionDetailsPatchLevelEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_name_selection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_name_selection_details.go deleted file mode 100644 index 7727fdb1e71..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_name_selection_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatchNameSelectionDetails Patch Name Details. -// If you set the policy rule by selecting this option, provide a specific patch name. -type PatchNameSelectionDetails struct { - - // Patch Name. - PatchName *string `mandatory:"true" json:"patchName"` -} - -func (m PatchNameSelectionDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PatchNameSelectionDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m PatchNameSelectionDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypePatchNameSelectionDetails PatchNameSelectionDetails - s := struct { - DiscriminatorParam string `json:"selectionType"` - MarshalTypePatchNameSelectionDetails - }{ - "PATCH_NAME", - (MarshalTypePatchNameSelectionDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_product.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_product.go deleted file mode 100644 index 08548e1a095..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_product.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatchProduct Product -type PatchProduct struct { - - // PlatformConfiguration Id corresponding to the Product - PlatformConfigurationId *string `mandatory:"true" json:"platformConfigurationId"` - - // product version. - Version *string `mandatory:"false" json:"version"` -} - -func (m PatchProduct) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PatchProduct) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_release_date_selection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_release_date_selection_details.go deleted file mode 100644 index e30b6975212..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_release_date_selection_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatchReleaseDateSelectionDetails Days since patch release date details. -// If you set the policy rule by selecting this option and entering the number of days since release, Fleet Application Management calculates the number of days passed after the release date and reports the product as noncompliant if the days exceed the number provided in Days since release -type PatchReleaseDateSelectionDetails struct { - - // Days passed since patch release. - DaysSinceRelease *int `mandatory:"true" json:"daysSinceRelease"` -} - -func (m PatchReleaseDateSelectionDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PatchReleaseDateSelectionDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m PatchReleaseDateSelectionDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypePatchReleaseDateSelectionDetails PatchReleaseDateSelectionDetails - s := struct { - DiscriminatorParam string `json:"selectionType"` - MarshalTypePatchReleaseDateSelectionDetails - }{ - "PATCH_RELEASE_DATE", - (MarshalTypePatchReleaseDateSelectionDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_selection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_selection_details.go deleted file mode 100644 index a2fd3ef40a9..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_selection_details.go +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatchSelectionDetails Patch Selection Details -type PatchSelectionDetails interface { -} - -type patchselectiondetails struct { - JsonData []byte - SelectionType string `json:"selectionType"` -} - -// UnmarshalJSON unmarshals json -func (m *patchselectiondetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerpatchselectiondetails patchselectiondetails - s := struct { - Model Unmarshalerpatchselectiondetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.SelectionType = s.Model.SelectionType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *patchselectiondetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.SelectionType { - case "PATCH_LEVEL": - mm := PatchLevelSelectionDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "PATCH_RELEASE_DATE": - mm := PatchReleaseDateSelectionDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "PATCH_NAME": - mm := PatchNameSelectionDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for PatchSelectionDetails: %s.", m.SelectionType) - return *m, nil - } -} - -func (m patchselectiondetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m patchselectiondetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// PatchSelectionDetailsSelectionTypeEnum Enum with underlying type: string -type PatchSelectionDetailsSelectionTypeEnum string - -// Set of constants representing the allowable values for PatchSelectionDetailsSelectionTypeEnum -const ( - PatchSelectionDetailsSelectionTypeLevel PatchSelectionDetailsSelectionTypeEnum = "PATCH_LEVEL" - PatchSelectionDetailsSelectionTypeName PatchSelectionDetailsSelectionTypeEnum = "PATCH_NAME" - PatchSelectionDetailsSelectionTypeReleaseDate PatchSelectionDetailsSelectionTypeEnum = "PATCH_RELEASE_DATE" -) - -var mappingPatchSelectionDetailsSelectionTypeEnum = map[string]PatchSelectionDetailsSelectionTypeEnum{ - "PATCH_LEVEL": PatchSelectionDetailsSelectionTypeLevel, - "PATCH_NAME": PatchSelectionDetailsSelectionTypeName, - "PATCH_RELEASE_DATE": PatchSelectionDetailsSelectionTypeReleaseDate, -} - -var mappingPatchSelectionDetailsSelectionTypeEnumLowerCase = map[string]PatchSelectionDetailsSelectionTypeEnum{ - "patch_level": PatchSelectionDetailsSelectionTypeLevel, - "patch_name": PatchSelectionDetailsSelectionTypeName, - "patch_release_date": PatchSelectionDetailsSelectionTypeReleaseDate, -} - -// GetPatchSelectionDetailsSelectionTypeEnumValues Enumerates the set of values for PatchSelectionDetailsSelectionTypeEnum -func GetPatchSelectionDetailsSelectionTypeEnumValues() []PatchSelectionDetailsSelectionTypeEnum { - values := make([]PatchSelectionDetailsSelectionTypeEnum, 0) - for _, v := range mappingPatchSelectionDetailsSelectionTypeEnum { - values = append(values, v) - } - return values -} - -// GetPatchSelectionDetailsSelectionTypeEnumStringValues Enumerates the set of values in String for PatchSelectionDetailsSelectionTypeEnum -func GetPatchSelectionDetailsSelectionTypeEnumStringValues() []string { - return []string{ - "PATCH_LEVEL", - "PATCH_NAME", - "PATCH_RELEASE_DATE", - } -} - -// GetMappingPatchSelectionDetailsSelectionTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPatchSelectionDetailsSelectionTypeEnum(val string) (PatchSelectionDetailsSelectionTypeEnum, bool) { - enum, ok := mappingPatchSelectionDetailsSelectionTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_severity.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_severity.go deleted file mode 100644 index c4619cb94e8..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_severity.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "strings" -) - -// PatchSeverityEnum Enum with underlying type: string -type PatchSeverityEnum string - -// Set of constants representing the allowable values for PatchSeverityEnum -const ( - PatchSeverityCritical PatchSeverityEnum = "CRITICAL" - PatchSeverityHigh PatchSeverityEnum = "HIGH" - PatchSeverityMedium PatchSeverityEnum = "MEDIUM" - PatchSeverityLow PatchSeverityEnum = "LOW" -) - -var mappingPatchSeverityEnum = map[string]PatchSeverityEnum{ - "CRITICAL": PatchSeverityCritical, - "HIGH": PatchSeverityHigh, - "MEDIUM": PatchSeverityMedium, - "LOW": PatchSeverityLow, -} - -var mappingPatchSeverityEnumLowerCase = map[string]PatchSeverityEnum{ - "critical": PatchSeverityCritical, - "high": PatchSeverityHigh, - "medium": PatchSeverityMedium, - "low": PatchSeverityLow, -} - -// GetPatchSeverityEnumValues Enumerates the set of values for PatchSeverityEnum -func GetPatchSeverityEnumValues() []PatchSeverityEnum { - values := make([]PatchSeverityEnum, 0) - for _, v := range mappingPatchSeverityEnum { - values = append(values, v) - } - return values -} - -// GetPatchSeverityEnumStringValues Enumerates the set of values in String for PatchSeverityEnum -func GetPatchSeverityEnumStringValues() []string { - return []string{ - "CRITICAL", - "HIGH", - "MEDIUM", - "LOW", - } -} - -// GetMappingPatchSeverityEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPatchSeverityEnum(val string) (PatchSeverityEnum, bool) { - enum, ok := mappingPatchSeverityEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_summary.go deleted file mode 100644 index 230cd5b9687..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_summary.go +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatchSummary Summary of the Patch. -type PatchSummary struct { - - // The OCID of the resource. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. - // Avoid entering confidential information. - Name *string `mandatory:"true" json:"name"` - - PatchType *PatchType `mandatory:"true" json:"patchType"` - - // Patch Severity. - Severity PatchSeverityEnum `mandatory:"true" json:"severity"` - - // Date when the patch was released. - TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` - - Product *PatchProduct `mandatory:"true" json:"product"` - - // OCID of the compartment to which the resource belongs to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The current state of the Patch. - LifecycleState PatchLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The time this resource was created. An RFC3339 formatted datetime string. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The time this resource was last updated. An RFC3339 formatted datetime string. - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // Provide information on who defined the patch. - // Example: For Custom Patches the value will be USER_DEFINED - // For Oracle Defined Patches the value will be ORACLE_DEFINED - Type PatchTypeEnum `mandatory:"false" json:"type,omitempty"` - - ArtifactDetails ArtifactDetails `mandatory:"false" json:"artifactDetails"` - - // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Associated region - ResourceRegion *string `mandatory:"false" json:"resourceRegion"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m PatchSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PatchSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPatchSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetPatchSeverityEnumStringValues(), ","))) - } - if _, ok := GetMappingPatchLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPatchLifecycleStateEnumStringValues(), ","))) - } - - if _, ok := GetMappingPatchTypeEnum(string(m.Type)); !ok && m.Type != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetPatchTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *PatchSummary) UnmarshalJSON(data []byte) (e error) { - model := struct { - Description *string `json:"description"` - Type PatchTypeEnum `json:"type"` - ArtifactDetails artifactdetails `json:"artifactDetails"` - LifecycleDetails *string `json:"lifecycleDetails"` - ResourceRegion *string `json:"resourceRegion"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - Id *string `json:"id"` - Name *string `json:"name"` - PatchType *PatchType `json:"patchType"` - Severity PatchSeverityEnum `json:"severity"` - TimeReleased *common.SDKTime `json:"timeReleased"` - Product *PatchProduct `json:"product"` - CompartmentId *string `json:"compartmentId"` - LifecycleState PatchLifecycleStateEnum `json:"lifecycleState"` - TimeCreated *common.SDKTime `json:"timeCreated"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Description = model.Description - - m.Type = model.Type - - nn, e = model.ArtifactDetails.UnmarshalPolymorphicJSON(model.ArtifactDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ArtifactDetails = nn.(ArtifactDetails) - } else { - m.ArtifactDetails = nil - } - - m.LifecycleDetails = model.LifecycleDetails - - m.ResourceRegion = model.ResourceRegion - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - m.Id = model.Id - - m.Name = model.Name - - m.PatchType = model.PatchType - - m.Severity = model.Severity - - m.TimeReleased = model.TimeReleased - - m.Product = model.Product - - m.CompartmentId = model.CompartmentId - - m.LifecycleState = model.LifecycleState - - m.TimeCreated = model.TimeCreated - - m.TimeUpdated = model.TimeUpdated - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_type_config_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_type_config_category_details.go deleted file mode 100644 index c37499cfe91..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/patch_type_config_category_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatchTypeConfigCategoryDetails Patch Type Config Category Details. -// Defines software patch types as per product standards referred under available Patches for supported products. -type PatchTypeConfigCategoryDetails struct { -} - -func (m PatchTypeConfigCategoryDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PatchTypeConfigCategoryDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m PatchTypeConfigCategoryDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypePatchTypeConfigCategoryDetails PatchTypeConfigCategoryDetails - s := struct { - DiscriminatorParam string `json:"configCategory"` - MarshalTypePatchTypeConfigCategoryDetails - }{ - "PATCH_TYPE", - (MarshalTypePatchTypeConfigCategoryDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/pause_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/pause_details.go deleted file mode 100644 index dfb4788553e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/pause_details.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PauseDetails Pause Details -type PauseDetails interface { -} - -type pausedetails struct { - JsonData []byte - Kind string `json:"kind"` -} - -// UnmarshalJSON unmarshals json -func (m *pausedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerpausedetails pausedetails - s := struct { - Model Unmarshalerpausedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Kind = s.Model.Kind - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *pausedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Kind { - case "USER_ACTION": - mm := UserActionBasedPauseDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "TIME_BASED": - mm := TimeBasedPauseDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for PauseDetails: %s.", m.Kind) - return *m, nil - } -} - -func (m pausedetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m pausedetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// PauseDetailsKindEnum Enum with underlying type: string -type PauseDetailsKindEnum string - -// Set of constants representing the allowable values for PauseDetailsKindEnum -const ( - PauseDetailsKindUserAction PauseDetailsKindEnum = "USER_ACTION" - PauseDetailsKindTimeBased PauseDetailsKindEnum = "TIME_BASED" -) - -var mappingPauseDetailsKindEnum = map[string]PauseDetailsKindEnum{ - "USER_ACTION": PauseDetailsKindUserAction, - "TIME_BASED": PauseDetailsKindTimeBased, -} - -var mappingPauseDetailsKindEnumLowerCase = map[string]PauseDetailsKindEnum{ - "user_action": PauseDetailsKindUserAction, - "time_based": PauseDetailsKindTimeBased, -} - -// GetPauseDetailsKindEnumValues Enumerates the set of values for PauseDetailsKindEnum -func GetPauseDetailsKindEnumValues() []PauseDetailsKindEnum { - values := make([]PauseDetailsKindEnum, 0) - for _, v := range mappingPauseDetailsKindEnum { - values = append(values, v) - } - return values -} - -// GetPauseDetailsKindEnumStringValues Enumerates the set of values in String for PauseDetailsKindEnum -func GetPauseDetailsKindEnumStringValues() []string { - return []string{ - "USER_ACTION", - "TIME_BASED", - } -} - -// GetMappingPauseDetailsKindEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPauseDetailsKindEnum(val string) (PauseDetailsKindEnum, bool) { - enum, ok := mappingPauseDetailsKindEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/plain_text_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/plain_text_credential_details.go index 3e597b00e63..ce06c733ec6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/plain_text_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/plain_text_credential_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -19,7 +20,7 @@ import ( // PlainTextCredentialDetails Details for plain text credentials. type PlainTextCredentialDetails struct { - // The value corresponding to the credential. + // The value corresponding to the credential Value *string `mandatory:"true" json:"value"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration.go deleted file mode 100644 index 3a5cdcaa821..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration.go +++ /dev/null @@ -1,249 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PlatformConfiguration Fleet Application Management Platform Configuration . -type PlatformConfiguration struct { - - // The OCID of the resource. - Id *string `mandatory:"true" json:"id"` - - // Tenancy OCID - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The time this resource was created. An RFC3339 formatted datetime string. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Associated region - ResourceRegion *string `mandatory:"true" json:"resourceRegion"` - - // The current state of the PlatformConfiguration. - LifecycleState PlatformConfigurationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // The time this resource was last updated. An RFC3339 formatted datetime string. - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // The type of the configuration. - Type PlatformConfigurationTypeEnum `mandatory:"false" json:"type,omitempty"` - - ConfigCategoryDetails ConfigCategoryDetails `mandatory:"false" json:"configCategoryDetails"` - - // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m PlatformConfiguration) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PlatformConfiguration) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPlatformConfigurationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPlatformConfigurationLifecycleStateEnumStringValues(), ","))) - } - - if _, ok := GetMappingPlatformConfigurationTypeEnum(string(m.Type)); !ok && m.Type != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetPlatformConfigurationTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *PlatformConfiguration) UnmarshalJSON(data []byte) (e error) { - model := struct { - Description *string `json:"description"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - Type PlatformConfigurationTypeEnum `json:"type"` - ConfigCategoryDetails configcategorydetails `json:"configCategoryDetails"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - Id *string `json:"id"` - CompartmentId *string `json:"compartmentId"` - DisplayName *string `json:"displayName"` - TimeCreated *common.SDKTime `json:"timeCreated"` - ResourceRegion *string `json:"resourceRegion"` - LifecycleState PlatformConfigurationLifecycleStateEnum `json:"lifecycleState"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Description = model.Description - - m.TimeUpdated = model.TimeUpdated - - m.Type = model.Type - - nn, e = model.ConfigCategoryDetails.UnmarshalPolymorphicJSON(model.ConfigCategoryDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ConfigCategoryDetails = nn.(ConfigCategoryDetails) - } else { - m.ConfigCategoryDetails = nil - } - - m.LifecycleDetails = model.LifecycleDetails - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - m.Id = model.Id - - m.CompartmentId = model.CompartmentId - - m.DisplayName = model.DisplayName - - m.TimeCreated = model.TimeCreated - - m.ResourceRegion = model.ResourceRegion - - m.LifecycleState = model.LifecycleState - - return -} - -// PlatformConfigurationTypeEnum Enum with underlying type: string -type PlatformConfigurationTypeEnum string - -// Set of constants representing the allowable values for PlatformConfigurationTypeEnum -const ( - PlatformConfigurationTypeUserDefined PlatformConfigurationTypeEnum = "USER_DEFINED" - PlatformConfigurationTypeOracleDefined PlatformConfigurationTypeEnum = "ORACLE_DEFINED" -) - -var mappingPlatformConfigurationTypeEnum = map[string]PlatformConfigurationTypeEnum{ - "USER_DEFINED": PlatformConfigurationTypeUserDefined, - "ORACLE_DEFINED": PlatformConfigurationTypeOracleDefined, -} - -var mappingPlatformConfigurationTypeEnumLowerCase = map[string]PlatformConfigurationTypeEnum{ - "user_defined": PlatformConfigurationTypeUserDefined, - "oracle_defined": PlatformConfigurationTypeOracleDefined, -} - -// GetPlatformConfigurationTypeEnumValues Enumerates the set of values for PlatformConfigurationTypeEnum -func GetPlatformConfigurationTypeEnumValues() []PlatformConfigurationTypeEnum { - values := make([]PlatformConfigurationTypeEnum, 0) - for _, v := range mappingPlatformConfigurationTypeEnum { - values = append(values, v) - } - return values -} - -// GetPlatformConfigurationTypeEnumStringValues Enumerates the set of values in String for PlatformConfigurationTypeEnum -func GetPlatformConfigurationTypeEnumStringValues() []string { - return []string{ - "USER_DEFINED", - "ORACLE_DEFINED", - } -} - -// GetMappingPlatformConfigurationTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPlatformConfigurationTypeEnum(val string) (PlatformConfigurationTypeEnum, bool) { - enum, ok := mappingPlatformConfigurationTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// PlatformConfigurationLifecycleStateEnum Enum with underlying type: string -type PlatformConfigurationLifecycleStateEnum string - -// Set of constants representing the allowable values for PlatformConfigurationLifecycleStateEnum -const ( - PlatformConfigurationLifecycleStateActive PlatformConfigurationLifecycleStateEnum = "ACTIVE" - PlatformConfigurationLifecycleStateDeleted PlatformConfigurationLifecycleStateEnum = "DELETED" - PlatformConfigurationLifecycleStateFailed PlatformConfigurationLifecycleStateEnum = "FAILED" - PlatformConfigurationLifecycleStateDeleting PlatformConfigurationLifecycleStateEnum = "DELETING" - PlatformConfigurationLifecycleStateUpdating PlatformConfigurationLifecycleStateEnum = "UPDATING" -) - -var mappingPlatformConfigurationLifecycleStateEnum = map[string]PlatformConfigurationLifecycleStateEnum{ - "ACTIVE": PlatformConfigurationLifecycleStateActive, - "DELETED": PlatformConfigurationLifecycleStateDeleted, - "FAILED": PlatformConfigurationLifecycleStateFailed, - "DELETING": PlatformConfigurationLifecycleStateDeleting, - "UPDATING": PlatformConfigurationLifecycleStateUpdating, -} - -var mappingPlatformConfigurationLifecycleStateEnumLowerCase = map[string]PlatformConfigurationLifecycleStateEnum{ - "active": PlatformConfigurationLifecycleStateActive, - "deleted": PlatformConfigurationLifecycleStateDeleted, - "failed": PlatformConfigurationLifecycleStateFailed, - "deleting": PlatformConfigurationLifecycleStateDeleting, - "updating": PlatformConfigurationLifecycleStateUpdating, -} - -// GetPlatformConfigurationLifecycleStateEnumValues Enumerates the set of values for PlatformConfigurationLifecycleStateEnum -func GetPlatformConfigurationLifecycleStateEnumValues() []PlatformConfigurationLifecycleStateEnum { - values := make([]PlatformConfigurationLifecycleStateEnum, 0) - for _, v := range mappingPlatformConfigurationLifecycleStateEnum { - values = append(values, v) - } - return values -} - -// GetPlatformConfigurationLifecycleStateEnumStringValues Enumerates the set of values in String for PlatformConfigurationLifecycleStateEnum -func GetPlatformConfigurationLifecycleStateEnumStringValues() []string { - return []string{ - "ACTIVE", - "DELETED", - "FAILED", - "DELETING", - "UPDATING", - } -} - -// GetMappingPlatformConfigurationLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPlatformConfigurationLifecycleStateEnum(val string) (PlatformConfigurationLifecycleStateEnum, bool) { - enum, ok := mappingPlatformConfigurationLifecycleStateEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration_collection.go deleted file mode 100644 index 456ded5cc58..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PlatformConfigurationCollection Results of a platform configuration search. -type PlatformConfigurationCollection struct { - - // List of configurations - Items []PlatformConfigurationSummary `mandatory:"true" json:"items"` -} - -func (m PlatformConfigurationCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PlatformConfigurationCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration_summary.go deleted file mode 100644 index 8520a04c9ef..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_configuration_summary.go +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PlatformConfigurationSummary Summary of the PlatformConfiguration. -type PlatformConfigurationSummary struct { - - // The OCID of the resource. - Id *string `mandatory:"true" json:"id"` - - // Tenancy OCID - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The time this resource was created. An RFC3339 formatted datetime string. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Associated region - ResourceRegion *string `mandatory:"true" json:"resourceRegion"` - - // The current state of the PlatformConfiguration. - LifecycleState PlatformConfigurationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // The time this resource was last updated. An RFC3339 formatted datetime string. - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // The type of the configuration. - Type PlatformConfigurationTypeEnum `mandatory:"false" json:"type,omitempty"` - - ConfigCategoryDetails ConfigCategoryDetails `mandatory:"false" json:"configCategoryDetails"` - - // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m PlatformConfigurationSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PlatformConfigurationSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPlatformConfigurationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPlatformConfigurationLifecycleStateEnumStringValues(), ","))) - } - - if _, ok := GetMappingPlatformConfigurationTypeEnum(string(m.Type)); !ok && m.Type != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetPlatformConfigurationTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *PlatformConfigurationSummary) UnmarshalJSON(data []byte) (e error) { - model := struct { - Description *string `json:"description"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - Type PlatformConfigurationTypeEnum `json:"type"` - ConfigCategoryDetails configcategorydetails `json:"configCategoryDetails"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - Id *string `json:"id"` - CompartmentId *string `json:"compartmentId"` - DisplayName *string `json:"displayName"` - TimeCreated *common.SDKTime `json:"timeCreated"` - ResourceRegion *string `json:"resourceRegion"` - LifecycleState PlatformConfigurationLifecycleStateEnum `json:"lifecycleState"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Description = model.Description - - m.TimeUpdated = model.TimeUpdated - - m.Type = model.Type - - nn, e = model.ConfigCategoryDetails.UnmarshalPolymorphicJSON(model.ConfigCategoryDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ConfigCategoryDetails = nn.(ConfigCategoryDetails) - } else { - m.ConfigCategoryDetails = nil - } - - m.LifecycleDetails = model.LifecycleDetails - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - m.Id = model.Id - - m.CompartmentId = model.CompartmentId - - m.DisplayName = model.DisplayName - - m.TimeCreated = model.TimeCreated - - m.ResourceRegion = model.ResourceRegion - - m.LifecycleState = model.LifecycleState - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_specific_artifact.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_specific_artifact.go deleted file mode 100644 index f366fcdbea4..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_specific_artifact.go +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PlatformSpecificArtifact Patch artifact metadata Details which is platform specific. -type PlatformSpecificArtifact struct { - Content ContentDetails `mandatory:"true" json:"content"` - - // The OS type the patch is applicable for. - OsType PlatformSpecificArtifactOsTypeEnum `mandatory:"true" json:"osType"` - - // System architecture. - Architecture PlatformSpecificArtifactArchitectureEnum `mandatory:"true" json:"architecture"` -} - -func (m PlatformSpecificArtifact) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PlatformSpecificArtifact) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingPlatformSpecificArtifactOsTypeEnum(string(m.OsType)); !ok && m.OsType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OsType: %s. Supported values are: %s.", m.OsType, strings.Join(GetPlatformSpecificArtifactOsTypeEnumStringValues(), ","))) - } - if _, ok := GetMappingPlatformSpecificArtifactArchitectureEnum(string(m.Architecture)); !ok && m.Architecture != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Architecture: %s. Supported values are: %s.", m.Architecture, strings.Join(GetPlatformSpecificArtifactArchitectureEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *PlatformSpecificArtifact) UnmarshalJSON(data []byte) (e error) { - model := struct { - Content contentdetails `json:"content"` - OsType PlatformSpecificArtifactOsTypeEnum `json:"osType"` - Architecture PlatformSpecificArtifactArchitectureEnum `json:"architecture"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - nn, e = model.Content.UnmarshalPolymorphicJSON(model.Content.JsonData) - if e != nil { - return - } - if nn != nil { - m.Content = nn.(ContentDetails) - } else { - m.Content = nil - } - - m.OsType = model.OsType - - m.Architecture = model.Architecture - - return -} - -// PlatformSpecificArtifactOsTypeEnum Enum with underlying type: string -type PlatformSpecificArtifactOsTypeEnum string - -// Set of constants representing the allowable values for PlatformSpecificArtifactOsTypeEnum -const ( - PlatformSpecificArtifactOsTypeWindows PlatformSpecificArtifactOsTypeEnum = "WINDOWS" - PlatformSpecificArtifactOsTypeLinux PlatformSpecificArtifactOsTypeEnum = "LINUX" -) - -var mappingPlatformSpecificArtifactOsTypeEnum = map[string]PlatformSpecificArtifactOsTypeEnum{ - "WINDOWS": PlatformSpecificArtifactOsTypeWindows, - "LINUX": PlatformSpecificArtifactOsTypeLinux, -} - -var mappingPlatformSpecificArtifactOsTypeEnumLowerCase = map[string]PlatformSpecificArtifactOsTypeEnum{ - "windows": PlatformSpecificArtifactOsTypeWindows, - "linux": PlatformSpecificArtifactOsTypeLinux, -} - -// GetPlatformSpecificArtifactOsTypeEnumValues Enumerates the set of values for PlatformSpecificArtifactOsTypeEnum -func GetPlatformSpecificArtifactOsTypeEnumValues() []PlatformSpecificArtifactOsTypeEnum { - values := make([]PlatformSpecificArtifactOsTypeEnum, 0) - for _, v := range mappingPlatformSpecificArtifactOsTypeEnum { - values = append(values, v) - } - return values -} - -// GetPlatformSpecificArtifactOsTypeEnumStringValues Enumerates the set of values in String for PlatformSpecificArtifactOsTypeEnum -func GetPlatformSpecificArtifactOsTypeEnumStringValues() []string { - return []string{ - "WINDOWS", - "LINUX", - } -} - -// GetMappingPlatformSpecificArtifactOsTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPlatformSpecificArtifactOsTypeEnum(val string) (PlatformSpecificArtifactOsTypeEnum, bool) { - enum, ok := mappingPlatformSpecificArtifactOsTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// PlatformSpecificArtifactArchitectureEnum Enum with underlying type: string -type PlatformSpecificArtifactArchitectureEnum string - -// Set of constants representing the allowable values for PlatformSpecificArtifactArchitectureEnum -const ( - PlatformSpecificArtifactArchitectureArm64 PlatformSpecificArtifactArchitectureEnum = "ARM_64" - PlatformSpecificArtifactArchitectureX64 PlatformSpecificArtifactArchitectureEnum = "X64" -) - -var mappingPlatformSpecificArtifactArchitectureEnum = map[string]PlatformSpecificArtifactArchitectureEnum{ - "ARM_64": PlatformSpecificArtifactArchitectureArm64, - "X64": PlatformSpecificArtifactArchitectureX64, -} - -var mappingPlatformSpecificArtifactArchitectureEnumLowerCase = map[string]PlatformSpecificArtifactArchitectureEnum{ - "arm_64": PlatformSpecificArtifactArchitectureArm64, - "x64": PlatformSpecificArtifactArchitectureX64, -} - -// GetPlatformSpecificArtifactArchitectureEnumValues Enumerates the set of values for PlatformSpecificArtifactArchitectureEnum -func GetPlatformSpecificArtifactArchitectureEnumValues() []PlatformSpecificArtifactArchitectureEnum { - values := make([]PlatformSpecificArtifactArchitectureEnum, 0) - for _, v := range mappingPlatformSpecificArtifactArchitectureEnum { - values = append(values, v) - } - return values -} - -// GetPlatformSpecificArtifactArchitectureEnumStringValues Enumerates the set of values in String for PlatformSpecificArtifactArchitectureEnum -func GetPlatformSpecificArtifactArchitectureEnumStringValues() []string { - return []string{ - "ARM_64", - "X64", - } -} - -// GetMappingPlatformSpecificArtifactArchitectureEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingPlatformSpecificArtifactArchitectureEnum(val string) (PlatformSpecificArtifactArchitectureEnum, bool) { - enum, ok := mappingPlatformSpecificArtifactArchitectureEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_specific_artifact_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_specific_artifact_details.go deleted file mode 100644 index 0e75d4be1fa..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/platform_specific_artifact_details.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PlatformSpecificArtifactDetails Patch artifact description and content details which is platform specific -type PlatformSpecificArtifactDetails struct { - - // Artifacts. - Artifacts []PlatformSpecificArtifact `mandatory:"true" json:"artifacts"` -} - -func (m PlatformSpecificArtifactDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PlatformSpecificArtifactDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m PlatformSpecificArtifactDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypePlatformSpecificArtifactDetails PlatformSpecificArtifactDetails - s := struct { - DiscriminatorParam string `json:"category"` - MarshalTypePlatformSpecificArtifactDetails - }{ - "PLATFORM_SPECIFIC", - (MarshalTypePlatformSpecificArtifactDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/preferences.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/preferences.go index 1748addf2b8..de1671c91a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/preferences.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/preferences.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,13 +16,13 @@ import ( "strings" ) -// Preferences Preferences to send notifications on the fleet activities. +// Preferences Preferences to send notifications on the fleet activities type Preferences struct { // Enables notification on upcoming schedule. OnUpcomingSchedule *bool `mandatory:"false" json:"onUpcomingSchedule"` - // Enables or disables notification on Job Failures. + // Enables or disables notification on Job Failures.' OnJobFailure *bool `mandatory:"false" json:"onJobFailure"` // Enables or disables notification on Environment Fleet Topology Modification. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_config_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_config_category_details.go deleted file mode 100644 index 1545837e978..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_config_category_details.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProductConfigCategoryDetails Product Config Category Details. -// Defines individual products which contribute to the applications hosting on the resources that are to be managed. -type ProductConfigCategoryDetails struct { - - // Versions associated with the PRODUCT . - Versions []string `mandatory:"true" json:"versions"` - - // OCID for the Credential name to be associated with the Product. - // These are useful for target discovery or lifecycle management activities, for example, Oracle WebLogic admin credentials for Oracle WebLogic Application server. - Credentials []ConfigAssociationDetails `mandatory:"false" json:"credentials"` - - // Various components of the Product. - // For example:The administration server or node manager can be the components of the Oracle WebLogic Application server. - // Forms server or concurrent manager can be the components of the Oracle E-Business Suite. - Components []string `mandatory:"false" json:"components"` - - // Products compatible with this Product. - // Provide products from the list of other products you have created that are compatible with the present one - CompatibleProducts []ConfigAssociationDetails `mandatory:"false" json:"compatibleProducts"` - - // Patch Types associated with this Product. - PatchTypes []ConfigAssociationDetails `mandatory:"false" json:"patchTypes"` -} - -func (m ProductConfigCategoryDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ProductConfigCategoryDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m ProductConfigCategoryDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeProductConfigCategoryDetails ProductConfigCategoryDetails - s := struct { - DiscriminatorParam string `json:"configCategory"` - MarshalTypeProductConfigCategoryDetails - }{ - "PRODUCT", - (MarshalTypeProductConfigCategoryDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_as_product_sub_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_as_product_sub_category_details.go deleted file mode 100644 index b09ec7ff80b..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_as_product_sub_category_details.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProductStackAsProductSubCategoryDetails Consider Product stack as product.To be provided if the product stack should be considered as a Product also. -// Allows compliance reporting and patching against the product stack target. -type ProductStackAsProductSubCategoryDetails struct { - - // Versions associated with the PRODUCT . - Versions []string `mandatory:"true" json:"versions"` - - // OCID for the Credential name to be associated with the Product Stack. - // These are useful for target discovery or lifecycle management activities, for example, Oracle WebLogic admin credentials for Oracle WebLogic Application server. - Credentials []ConfigAssociationDetails `mandatory:"false" json:"credentials"` - - // Various components of the Product. - // For example:The administration server or node manager can be the components of the Oracle WebLogic Application server. - // Forms server or concurrent manager can be the components of the Oracle E-Business Suite. - Components []string `mandatory:"false" json:"components"` - - // Patch Types associated with this Product Stack which will be considered as Product. - PatchTypes []ConfigAssociationDetails `mandatory:"false" json:"patchTypes"` -} - -func (m ProductStackAsProductSubCategoryDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ProductStackAsProductSubCategoryDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m ProductStackAsProductSubCategoryDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeProductStackAsProductSubCategoryDetails ProductStackAsProductSubCategoryDetails - s := struct { - DiscriminatorParam string `json:"subCategory"` - MarshalTypeProductStackAsProductSubCategoryDetails - }{ - "PRODUCT_STACK_AS_PRODUCT", - (MarshalTypeProductStackAsProductSubCategoryDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_config_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_config_category_details.go deleted file mode 100644 index 1ecee57f052..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_config_category_details.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProductStackConfigCategoryDetails ProductStack Config Category Details. -// Defines suite or stack of products on which applications hosted by the resources are built and need to be managed. -type ProductStackConfigCategoryDetails struct { - - // Products that belong to the stack. - // For example, Oracle WebLogic and Java for the Oracle Fusion Middleware product stack. - Products []ConfigAssociationDetails `mandatory:"true" json:"products"` - - SubCategoryDetails ProductStackSubCategoryDetails `mandatory:"false" json:"subCategoryDetails"` -} - -func (m ProductStackConfigCategoryDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ProductStackConfigCategoryDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m ProductStackConfigCategoryDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeProductStackConfigCategoryDetails ProductStackConfigCategoryDetails - s := struct { - DiscriminatorParam string `json:"configCategory"` - MarshalTypeProductStackConfigCategoryDetails - }{ - "PRODUCT_STACK", - (MarshalTypeProductStackConfigCategoryDetails)(m), - } - - return json.Marshal(&s) -} - -// UnmarshalJSON unmarshals from json -func (m *ProductStackConfigCategoryDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubCategoryDetails productstacksubcategorydetails `json:"subCategoryDetails"` - Products []ConfigAssociationDetails `json:"products"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - nn, e = model.SubCategoryDetails.UnmarshalPolymorphicJSON(model.SubCategoryDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SubCategoryDetails = nn.(ProductStackSubCategoryDetails) - } else { - m.SubCategoryDetails = nil - } - - m.Products = make([]ConfigAssociationDetails, len(model.Products)) - copy(m.Products, model.Products) - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_generic_sub_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_generic_sub_category_details.go deleted file mode 100644 index aac42520e13..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_generic_sub_category_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProductStackGenericSubCategoryDetails Generic Product Stack.Can be used for grouping Products. -type ProductStackGenericSubCategoryDetails struct { -} - -func (m ProductStackGenericSubCategoryDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ProductStackGenericSubCategoryDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m ProductStackGenericSubCategoryDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeProductStackGenericSubCategoryDetails ProductStackGenericSubCategoryDetails - s := struct { - DiscriminatorParam string `json:"subCategory"` - MarshalTypeProductStackGenericSubCategoryDetails - }{ - "PRODUCT_STACK_GENERIC", - (MarshalTypeProductStackGenericSubCategoryDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_sub_category_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_sub_category_details.go deleted file mode 100644 index 68c8768bd2b..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_stack_sub_category_details.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProductStackSubCategoryDetails ProductStack Config Category Details. -type ProductStackSubCategoryDetails interface { -} - -type productstacksubcategorydetails struct { - JsonData []byte - SubCategory string `json:"subCategory"` -} - -// UnmarshalJSON unmarshals json -func (m *productstacksubcategorydetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerproductstacksubcategorydetails productstacksubcategorydetails - s := struct { - Model Unmarshalerproductstacksubcategorydetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.SubCategory = s.Model.SubCategory - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *productstacksubcategorydetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.SubCategory { - case "PRODUCT_STACK_AS_PRODUCT": - mm := ProductStackAsProductSubCategoryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "PRODUCT_STACK_GENERIC": - mm := ProductStackGenericSubCategoryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for ProductStackSubCategoryDetails: %s.", m.SubCategory) - return *m, nil - } -} - -func (m productstacksubcategorydetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m productstacksubcategorydetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ProductStackSubCategoryDetailsSubCategoryEnum Enum with underlying type: string -type ProductStackSubCategoryDetailsSubCategoryEnum string - -// Set of constants representing the allowable values for ProductStackSubCategoryDetailsSubCategoryEnum -const ( - ProductStackSubCategoryDetailsSubCategoryGeneric ProductStackSubCategoryDetailsSubCategoryEnum = "PRODUCT_STACK_GENERIC" - ProductStackSubCategoryDetailsSubCategoryAsProduct ProductStackSubCategoryDetailsSubCategoryEnum = "PRODUCT_STACK_AS_PRODUCT" -) - -var mappingProductStackSubCategoryDetailsSubCategoryEnum = map[string]ProductStackSubCategoryDetailsSubCategoryEnum{ - "PRODUCT_STACK_GENERIC": ProductStackSubCategoryDetailsSubCategoryGeneric, - "PRODUCT_STACK_AS_PRODUCT": ProductStackSubCategoryDetailsSubCategoryAsProduct, -} - -var mappingProductStackSubCategoryDetailsSubCategoryEnumLowerCase = map[string]ProductStackSubCategoryDetailsSubCategoryEnum{ - "product_stack_generic": ProductStackSubCategoryDetailsSubCategoryGeneric, - "product_stack_as_product": ProductStackSubCategoryDetailsSubCategoryAsProduct, -} - -// GetProductStackSubCategoryDetailsSubCategoryEnumValues Enumerates the set of values for ProductStackSubCategoryDetailsSubCategoryEnum -func GetProductStackSubCategoryDetailsSubCategoryEnumValues() []ProductStackSubCategoryDetailsSubCategoryEnum { - values := make([]ProductStackSubCategoryDetailsSubCategoryEnum, 0) - for _, v := range mappingProductStackSubCategoryDetailsSubCategoryEnum { - values = append(values, v) - } - return values -} - -// GetProductStackSubCategoryDetailsSubCategoryEnumStringValues Enumerates the set of values in String for ProductStackSubCategoryDetailsSubCategoryEnum -func GetProductStackSubCategoryDetailsSubCategoryEnumStringValues() []string { - return []string{ - "PRODUCT_STACK_GENERIC", - "PRODUCT_STACK_AS_PRODUCT", - } -} - -// GetMappingProductStackSubCategoryDetailsSubCategoryEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingProductStackSubCategoryDetailsSubCategoryEnum(val string) (ProductStackSubCategoryDetailsSubCategoryEnum, bool) { - enum, ok := mappingProductStackSubCategoryDetailsSubCategoryEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_version_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_version_details.go deleted file mode 100644 index 560b171147f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/product_version_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ProductVersionDetails A specific product version or a specific version and succeeding. -// Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. -// The policy applies to the next version only, and not to other versions such as, 12.1.x. -type ProductVersionDetails struct { - - // Product version the rule is applicable. - Version *string `mandatory:"true" json:"version"` - - // Is rule applicable to all higher versions also - IsApplicableForAllHigherVersions *bool `mandatory:"false" json:"isApplicableForAllHigherVersions"` -} - -func (m ProductVersionDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ProductVersionDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/properties.go index 760d0ab6374..8c0934c29ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/properties.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/properties.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property.go index 7ecbfbd274c..ad30cc6b6f2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// Property Global metadata element details. +// Property Taxonomy metadata aka Property . type Property struct { // The OCID of the resource. @@ -44,16 +45,16 @@ type Property struct { // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - // Text selection of the property. + // Text selection of the category Selection SelectionEnum `mandatory:"false" json:"selection,omitempty"` - // Format of the value. + // Format of the value ValueType ValueTypeEnum `mandatory:"false" json:"valueType,omitempty"` - // Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). + // Values of the property (must be a single value if selection = 'single choice') Values []string `mandatory:"false" json:"values"` - // The scope of the property. + // The scope of the property Scope ScopeEnum `mandatory:"false" json:"scope,omitempty"` // The type of the property. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_collection.go index 990606f57f1..89fe698abc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// PropertyCollection Results of a property search. Contains both PropertySummary items and other information, such as metadata. +// PropertyCollection Results of a property search. Contains boh PropertySummary items and other information, such as metadata. type PropertyCollection struct { - // List of properties. + // List of propertys. Items []PropertySummary `mandatory:"true" json:"items"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_summary.go index 1d0f35ab03b..0b06d03975a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/property_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -44,16 +45,16 @@ type PropertySummary struct { // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - // Text selection of the property. + // Text selection of the category Selection SelectionEnum `mandatory:"false" json:"selection,omitempty"` - // Format of the value. + // Format of the value ValueType ValueTypeEnum `mandatory:"false" json:"valueType,omitempty"` - // Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). + // Values of the property (must be a single value if selection = 'single choice') Values []string `mandatory:"false" json:"values"` - // The scope of the property. + // The scope of the property Scope ScopeEnum `mandatory:"false" json:"scope,omitempty"` // The type of the property. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/publish_runbook_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/publish_runbook_details.go deleted file mode 100644 index 824ef620e60..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/publish_runbook_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PublishRunbookDetails Request to publish Runbook. -type PublishRunbookDetails struct { - - // The OCID of the resource. - RunbookId *string `mandatory:"true" json:"runbookId"` -} - -func (m PublishRunbookDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m PublishRunbookDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/publish_runbook_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/publish_runbook_request_response.go deleted file mode 100644 index 1d8c8ba71ab..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/publish_runbook_request_response.go +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// PublishRunbookRequest wrapper for the PublishRunbook operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/PublishRunbook.go.html to see an example of how to use PublishRunbookRequest. -type PublishRunbookRequest struct { - - // Details for publishing the Runbook. - PublishRunbookDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request PublishRunbookRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request PublishRunbookRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request PublishRunbookRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request PublishRunbookRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request PublishRunbookRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// PublishRunbookResponse wrapper for the PublishRunbook operation -type PublishRunbookResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response PublishRunbookResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response PublishRunbookResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_details.go index 9610167a661..aabe2aa5d42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,13 +16,13 @@ import ( "strings" ) -// RequestResourceValidationDetails Request to initiate resource validation. +// RequestResourceValidationDetails Request to initiate resource validation type RequestResourceValidationDetails struct { - // A boolean flag that decides if all resources within the fleet should be part of the validation. + // A boolean flag which decides if all resources within the fleet should be part of vaidation. IsApplicableToAllResources *bool `mandatory:"false" json:"isApplicableToAllResources"` - // Resource OCIDS to be included for validation. + // Resource OCIDS that need to be included for validation. ResourceIds []string `mandatory:"false" json:"resourceIds"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_request_response.go index 3bce2bc04b0..b4c1b34be49 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_resource_validation_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/RequestResourceValidation.go.html to see an example of how to use RequestResourceValidationRequest. type RequestResourceValidationRequest struct { - // Details for requesting resource validation. + // Details for requesting resource validation RequestResourceValidationDetails `contributesTo:"body"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_details.go index 01fdd705740..2cbdcd5c305 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,13 +16,13 @@ import ( "strings" ) -// RequestTargetDiscoveryDetails Request to initiate target discovery. +// RequestTargetDiscoveryDetails Request to initiate target discovery type RequestTargetDiscoveryDetails struct { - // A boolean flag that decides if all resources within the fleet should be part of discovery. + // A boolean flag which decides if all resources within the fleet should be part of discovery. IsApplicableToAllResources *bool `mandatory:"false" json:"isApplicableToAllResources"` - // Resource OCIDS to be included for discovery. + // Resource OCIDS that need to be included for discovery. ResourceIds []string `mandatory:"false" json:"resourceIds"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_request_response.go index 8dd577cf36e..a38f6a149c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/request_target_discovery_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/RequestTargetDiscovery.go.html to see an example of how to use RequestTargetDiscoveryRequest. type RequestTargetDiscoveryRequest struct { - // Details for requesting target discovery. + // Details for requesting target discovery RequestTargetDiscoveryDetails `contributesTo:"body"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_collection.go deleted file mode 100644 index 2abd5c7056d..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ResourceCollection Results of a ResourceSummary Search. -type ResourceCollection struct { - - // List of Execution Resources. - Items []ResourceSummary `mandatory:"true" json:"items"` -} - -func (m ResourceCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ResourceCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_credential_entity_specific_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_credential_entity_specific_details.go deleted file mode 100644 index 73f255f5a22..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_credential_entity_specific_details.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ResourceCredentialEntitySpecificDetails Resource credential details. -type ResourceCredentialEntitySpecificDetails struct { - - // OCID of the resource for which the credential is created. - ResourceId *string `mandatory:"true" json:"resourceId"` -} - -func (m ResourceCredentialEntitySpecificDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ResourceCredentialEntitySpecificDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m ResourceCredentialEntitySpecificDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeResourceCredentialEntitySpecificDetails ResourceCredentialEntitySpecificDetails - s := struct { - DiscriminatorParam string `json:"credentialLevel"` - MarshalTypeResourceCredentialEntitySpecificDetails - }{ - "RESOURCE", - (MarshalTypeResourceCredentialEntitySpecificDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_summary.go deleted file mode 100644 index fefb7a23a17..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_summary.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ResourceSummary Execution Resource Summary -type ResourceSummary struct { - - // Resource Identifier associated with the Work Request. - ResourceId *string `mandatory:"true" json:"resourceId"` - - // Status of the Job at Resource Level. - Status JobStatusEnum `mandatory:"true" json:"status"` - - // Resource Display Name. - ResourceDisplayName *string `mandatory:"false" json:"resourceDisplayName"` - - // Description of the Resource Execution status. - // If there are any errors, this can also include a short error message. - Description *string `mandatory:"false" json:"description"` - - // The sequence of the Resource. - Sequence *string `mandatory:"false" json:"sequence"` - - // Targets associated with the resource. - Targets []ActivityResourceTarget `mandatory:"false" json:"targets"` - - // The time the task started for the resource. An RFC3339 formatted datetime string - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The time the task ended for the resource. An RFC3339 formatted datetime string - TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` -} - -func (m ResourceSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m ResourceSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingJobStatusEnum(string(m.Status)); !ok && m.Status != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetJobStatusEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_check_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_check_details.go index f795984fc91..70ce7120986 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_check_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_check_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// ResourceTagCheckDetails Request to check resource tagging. +// ResourceTagCheckDetails Request to check resource tagging type ResourceTagCheckDetails struct { - // Tag enablement Information for the resources. + // Tag enablement Information for resources. TagEnablementInfo []ResourceTagEnablementInfo `mandatory:"true" json:"tagEnablementInfo"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_enablement_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_enablement_info.go index ee5a42179a0..00171f46edc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_enablement_info.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/resource_tag_enablement_info.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,13 +16,13 @@ import ( "strings" ) -// ResourceTagEnablementInfo Resource tag enablement Information. +// ResourceTagEnablementInfo Resource tag enablement Information type ResourceTagEnablementInfo struct { // The OCID of the resource. ResourceId *string `mandatory:"true" json:"resourceId"` - // A value that represents if the resource can be tagged with a Fleet name. + // A value which represents if resource can be tagged with Fleet name IsTaggingPossible *bool `mandatory:"true" json:"isTaggingPossible"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/rollback_workflow_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/rollback_workflow_details.go deleted file mode 100644 index 1edb32582f1..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/rollback_workflow_details.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RollbackWorkflowDetails Rollback Workflow details. -type RollbackWorkflowDetails struct { - - // rollback Scope - Scope RollbackWorkflowDetailsScopeEnum `mandatory:"true" json:"scope"` - - // Rollback Workflow for the runbook. - Workflow []WorkflowGroup `mandatory:"true" json:"workflow"` -} - -func (m RollbackWorkflowDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m RollbackWorkflowDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingRollbackWorkflowDetailsScopeEnum(string(m.Scope)); !ok && m.Scope != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Scope: %s. Supported values are: %s.", m.Scope, strings.Join(GetRollbackWorkflowDetailsScopeEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// RollbackWorkflowDetailsScopeEnum Enum with underlying type: string -type RollbackWorkflowDetailsScopeEnum string - -// Set of constants representing the allowable values for RollbackWorkflowDetailsScopeEnum -const ( - RollbackWorkflowDetailsScopeActionGroup RollbackWorkflowDetailsScopeEnum = "ACTION_GROUP" - RollbackWorkflowDetailsScopeTarget RollbackWorkflowDetailsScopeEnum = "TARGET" -) - -var mappingRollbackWorkflowDetailsScopeEnum = map[string]RollbackWorkflowDetailsScopeEnum{ - "ACTION_GROUP": RollbackWorkflowDetailsScopeActionGroup, - "TARGET": RollbackWorkflowDetailsScopeTarget, -} - -var mappingRollbackWorkflowDetailsScopeEnumLowerCase = map[string]RollbackWorkflowDetailsScopeEnum{ - "action_group": RollbackWorkflowDetailsScopeActionGroup, - "target": RollbackWorkflowDetailsScopeTarget, -} - -// GetRollbackWorkflowDetailsScopeEnumValues Enumerates the set of values for RollbackWorkflowDetailsScopeEnum -func GetRollbackWorkflowDetailsScopeEnumValues() []RollbackWorkflowDetailsScopeEnum { - values := make([]RollbackWorkflowDetailsScopeEnum, 0) - for _, v := range mappingRollbackWorkflowDetailsScopeEnum { - values = append(values, v) - } - return values -} - -// GetRollbackWorkflowDetailsScopeEnumStringValues Enumerates the set of values in String for RollbackWorkflowDetailsScopeEnum -func GetRollbackWorkflowDetailsScopeEnumStringValues() []string { - return []string{ - "ACTION_GROUP", - "TARGET", - } -} - -// GetMappingRollbackWorkflowDetailsScopeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingRollbackWorkflowDetailsScopeEnum(val string) (RollbackWorkflowDetailsScopeEnum, bool) { - enum, ok := mappingRollbackWorkflowDetailsScopeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/rule.go index df7044b9894..2c2fbc061bd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/rule.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,23 +16,19 @@ import ( "strings" ) -// Rule Rule for DYNAMIC selection. +// Rule Rule Selection Criteria type Rule struct { - // Tenancy Id (Root Compartment Id)for which the rule is created. + // Please provide the root compartmentId (TenancyId). CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The Compartment ID to dynamically search resources. - // Provide the compartment ID to which the rule is applicable. + // Resource Compartment Id.Provide the compartmentId the resource belongs to. ResourceCompartmentId *string `mandatory:"true" json:"resourceCompartmentId"` // Rule Conditions Conditions []Condition `mandatory:"true" json:"conditions"` - // Based on what the rule is created. - // It can be based on a resourceProperty or a tag. - // If based on a tag, basis will be 'definedTagEquals' - // If based on a resource property, basis will be 'inventoryProperties' + // Rule to be be applied on. Basis *string `mandatory:"false" json:"basis"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook.go index e4c8a2c48b7..0a14f253096 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,7 +17,6 @@ import ( ) // Runbook Runbook definition. -// Runbooks allow you to capture procedural tasks for handling a workflow. type Runbook struct { // The OCID of the resource. @@ -30,10 +30,10 @@ type Runbook struct { // The type of the runbook. Type RunbookTypeEnum `mandatory:"true" json:"type"` - // Relevance of the runbook. + // Type of runbook structure. RunbookRelevance RunbookRunbookRelevanceEnum `mandatory:"true" json:"runbookRelevance"` - // The lifecycle operation performed by the runbook. + // The lifecycle operation performed by the task. Operation *string `mandatory:"true" json:"operation"` // The OS type for the runbook. @@ -43,7 +43,6 @@ type Runbook struct { Platform *string `mandatory:"true" json:"platform"` // Is the runbook default? - // Sets this runbook as the default for the chosen product/product stack for the specified lifecycle operation. IsDefault *bool `mandatory:"true" json:"isDefault"` // The current state of the Runbook. @@ -62,7 +61,7 @@ type Runbook struct { // Avoid entering confidential information. Description *string `mandatory:"false" json:"description"` - // Estimated time to successfully complete the runbook execution. + // Estimated time to successfully complete the runbook execution EstimatedTime *string `mandatory:"false" json:"estimatedTime"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. @@ -207,33 +206,21 @@ type RunbookLifecycleStateEnum string // Set of constants representing the allowable values for RunbookLifecycleStateEnum const ( - RunbookLifecycleStateActive RunbookLifecycleStateEnum = "ACTIVE" - RunbookLifecycleStateDeleted RunbookLifecycleStateEnum = "DELETED" - RunbookLifecycleStateFailed RunbookLifecycleStateEnum = "FAILED" - RunbookLifecycleStateInactive RunbookLifecycleStateEnum = "INACTIVE" - RunbookLifecycleStateCreating RunbookLifecycleStateEnum = "CREATING" - RunbookLifecycleStateDeleting RunbookLifecycleStateEnum = "DELETING" - RunbookLifecycleStateUpdating RunbookLifecycleStateEnum = "UPDATING" + RunbookLifecycleStateActive RunbookLifecycleStateEnum = "ACTIVE" + RunbookLifecycleStateDeleted RunbookLifecycleStateEnum = "DELETED" + RunbookLifecycleStateFailed RunbookLifecycleStateEnum = "FAILED" ) var mappingRunbookLifecycleStateEnum = map[string]RunbookLifecycleStateEnum{ - "ACTIVE": RunbookLifecycleStateActive, - "DELETED": RunbookLifecycleStateDeleted, - "FAILED": RunbookLifecycleStateFailed, - "INACTIVE": RunbookLifecycleStateInactive, - "CREATING": RunbookLifecycleStateCreating, - "DELETING": RunbookLifecycleStateDeleting, - "UPDATING": RunbookLifecycleStateUpdating, + "ACTIVE": RunbookLifecycleStateActive, + "DELETED": RunbookLifecycleStateDeleted, + "FAILED": RunbookLifecycleStateFailed, } var mappingRunbookLifecycleStateEnumLowerCase = map[string]RunbookLifecycleStateEnum{ - "active": RunbookLifecycleStateActive, - "deleted": RunbookLifecycleStateDeleted, - "failed": RunbookLifecycleStateFailed, - "inactive": RunbookLifecycleStateInactive, - "creating": RunbookLifecycleStateCreating, - "deleting": RunbookLifecycleStateDeleting, - "updating": RunbookLifecycleStateUpdating, + "active": RunbookLifecycleStateActive, + "deleted": RunbookLifecycleStateDeleted, + "failed": RunbookLifecycleStateFailed, } // GetRunbookLifecycleStateEnumValues Enumerates the set of values for RunbookLifecycleStateEnum @@ -251,10 +238,6 @@ func GetRunbookLifecycleStateEnumStringValues() []string { "ACTIVE", "DELETED", "FAILED", - "INACTIVE", - "CREATING", - "DELETING", - "UPDATING", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_collection.go index 9783bf5d66f..499f1f728b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// RunbookCollection Results of a runbook search. Contains RunbookSummary items and other information, such as metadata. +// RunbookCollection Results of a runbook search. Contains boh RunbookSummary items and other information, such as metadata. type RunbookCollection struct { // List of runbooks. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_summary.go index 03cc1b7dc22..ab12cc7c259 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/runbook_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -32,7 +33,7 @@ type RunbookSummary struct { // Type of runbook structure. RunbookRelevance RunbookRunbookRelevanceEnum `mandatory:"true" json:"runbookRelevance"` - // The lifecycle operation performed by the runbook. + // The lifecycle operation performed by the task. Operation *string `mandatory:"true" json:"operation"` // The OS type for the runbook. @@ -42,7 +43,6 @@ type RunbookSummary struct { Platform *string `mandatory:"true" json:"platform"` // Is the runbook default? - // Sets this runbook as the default for the chosen product/product stack for the specified lifecycle operation. IsDefault *bool `mandatory:"true" json:"isDefault"` // The current state of the Runbook. @@ -61,7 +61,7 @@ type RunbookSummary struct { // Avoid entering confidential information. Description *string `mandatory:"false" json:"description"` - // Estimated time to successfully complete the runbook execution. + // Estimated time to successfully complete the runbook execution EstimatedTime *string `mandatory:"false" json:"estimatedTime"` // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/schedule.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/schedule.go index ca026a2de49..c5010cfce18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/schedule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/schedule.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_collection.go index 9cc390a41d5..e4e82f5711f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_summary.go index cf9183b39f7..ae68bf9e176 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduled_fleet_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition.go index b0b707553e3..c0c38acf2c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -45,10 +46,10 @@ type SchedulerDefinition struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // The scheduled date for the next run of the Job. + // Scheduled date for the next run of the Job. TimeOfNextRun *common.SDKTime `mandatory:"false" json:"timeOfNextRun"` - // Activity Initiation Cut Off. + // Activity Initiation Cut Off ActivityInitiationCutOff *int `mandatory:"false" json:"activityInitiationCutOff"` Schedule *Schedule `mandatory:"false" json:"schedule"` @@ -56,22 +57,22 @@ type SchedulerDefinition struct { // Count of Action Groups affected by the Schedule. CountOfAffectedActionGroups *int `mandatory:"false" json:"countOfAffectedActionGroups"` - // Count of Resources affected by the Schedule. + // Count of Resources affected by the Schedule CountOfAffectedResources *int `mandatory:"false" json:"countOfAffectedResources"` - // Count of Targets affected by the Schedule. + // Count of Targets affected by the Schedule CountOfAffectedTargets *int `mandatory:"false" json:"countOfAffectedTargets"` - // All ActionGroup Types that are part of the schedule. + // All ActionGroup Types part of the schedule. ActionGroupTypes []LifeCycleActionGroupTypeEnum `mandatory:"false" json:"actionGroupTypes,omitempty"` - // All application types that are part of the schedule for ENVIRONMENT ActionGroup Type. + // All application types part of the schedule for ENVIRONMENT ActionGroup Type. ApplicationTypes []string `mandatory:"false" json:"applicationTypes"` - // All products that are part of the schedule for PRODUCT ActionGroup Type. + // All products part of the schedule for PRODUCT ActionGroup Type. Products []string `mandatory:"false" json:"products"` - // All LifeCycle Operations that are part of the schedule. + // All LifeCycle Operations part of the schedule LifecycleOperations []string `mandatory:"false" json:"lifecycleOperations"` // Action Groups associated with the Schedule. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_collection.go index c05902e98cf..7bf4c59830f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_summary.go index 9acc16f12e4..4932a898025 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_definition_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job.go index 030dc72a46e..932a301bc70 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -46,36 +47,34 @@ type SchedulerJob struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // The scheduled date and time for the Job. + // Scheduled date for the Job. TimeScheduled *common.SDKTime `mandatory:"false" json:"timeScheduled"` - // Actual start date and time for the Job. + // Actual Start time for the Job TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - // Actual end date and time for the Job. + // Actual End time for the Job TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - // Count of Action Groups affected by the Schedule. - // An action group is a group of entities grouped for a lifecycle activity. - // Example - A Fleet will be considered an Action Group for any lifecycle activity. + // Count of ActionGroups affected by the Schedule. CountOfAffectedActionGroups *int `mandatory:"false" json:"countOfAffectedActionGroups"` - // Count of resources affected by the schedule. + // Count of Resources affected by the Schedule CountOfAffectedResources *int `mandatory:"false" json:"countOfAffectedResources"` - // Count of targets affected by the schedule. + // Count of Targets affected by the Schedule CountOfAffectedTargets *int `mandatory:"false" json:"countOfAffectedTargets"` - // All Action Group types are part of the schedule. + // All ActionGroup Types part of the schedule. ActionGroupTypes []LifeCycleActionGroupTypeEnum `mandatory:"false" json:"actionGroupTypes,omitempty"` - // All application types that are part of the schedule for an ENVIRONMENT action group Type. + // All application types part of the schedule for ENVIRONMENT ActionGroup Type. ApplicationTypes []string `mandatory:"false" json:"applicationTypes"` - // All products that are part of the schedule for a PRODUCT action group type. + // All products part of the schedule for PRODUCT AcionGroup Type. Products []string `mandatory:"false" json:"products"` - // All LifeCycle Operations that are part of the schedule. + // All LifeCycle Operations part of the schedule LifecycleOperations []string `mandatory:"false" json:"lifecycleOperations"` // Action Groups associated with the Schedule. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_aggregation.go deleted file mode 100644 index 4452b437c0f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_aggregation.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// SchedulerJobAggregation Aggregated summary information for SchedulerJob. -type SchedulerJobAggregation struct { - - // Count of jobs in a Tenancy. - Count *int `mandatory:"true" json:"count"` - - Dimensions *SchedulerJobDimension `mandatory:"true" json:"dimensions"` -} - -func (m SchedulerJobAggregation) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m SchedulerJobAggregation) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_aggregation_collection.go deleted file mode 100644 index 5b9e179df53..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_aggregation_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// SchedulerJobAggregationCollection An array of SchedulerJob objects. -type SchedulerJobAggregationCollection struct { - - // List of SchedulerJobAggregation objects. - Items []SchedulerJobAggregation `mandatory:"true" json:"items"` -} - -func (m SchedulerJobAggregationCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m SchedulerJobAggregationCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_collection.go index 9b366019fd9..cdb66ea5e08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// SchedulerJobCollection Results of a schedulerJob search. Contains SchedulerJobSummary items and other information, such as metadata. +// SchedulerJobCollection Results of a schedulerJob search. Contains boh SchedulerJobSummary items and other information, such as metadata. type SchedulerJobCollection struct { // List of schedulerJobs. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_dimension.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_dimension.go deleted file mode 100644 index ad7d9c521e4..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_dimension.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// SchedulerJobDimension Aggregated summary information for a SchedulerJob. -type SchedulerJobDimension struct { - - // A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. - LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"` -} - -func (m SchedulerJobDimension) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m SchedulerJobDimension) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_summary.go index 7ad61fcfc4b..ee66c909328 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scheduler_job_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -46,30 +47,28 @@ type SchedulerJobSummary struct { // The time this resource was last updated. An RFC3339 formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // The scheduled date and time for the Job. + // Scheduled date for the Job.Provide only the date TimeScheduled *common.SDKTime `mandatory:"false" json:"timeScheduled"` - // Count of Action Groups affected by the Schedule. - // An action group is a group of entities grouped for a lifecycle activity. - // Example - A Fleet will be considered an Action Group for any lifecycle activity. + // Count of ActionGroups affected by the Schedule. CountOfAffectedActionGroups *int `mandatory:"false" json:"countOfAffectedActionGroups"` - // Count of resources affected by the schedule. + // Count of Resources affected by the Schedule CountOfAffectedResources *int `mandatory:"false" json:"countOfAffectedResources"` - // Count of targets affected by the schedule. + // Count of Targets affected by the Schedule CountOfAffectedTargets *int `mandatory:"false" json:"countOfAffectedTargets"` - // All Action Group types are part of the schedule. + // All ActionGroup Types part of the schedule. ActionGroupTypes []LifeCycleActionGroupTypeEnum `mandatory:"false" json:"actionGroupTypes,omitempty"` - // All application types that are part of the schedule for an ENVIRONMENT action group Type. + // All application types part of the schedule for ENVIRONMENT ActionGroup Type. ApplicationTypes []string `mandatory:"false" json:"applicationTypes"` - // All products that are part of the schedule for a PRODUCT action group type. + // All products part of the schedule for PRODUCT ActionGroup Type. Products []string `mandatory:"false" json:"products"` - // All LifeCycle Operations that are part of the schedule. + // All LifeCycle Operations part of the schedule LifecycleOperations []string `mandatory:"false" json:"lifecycleOperations"` // Action Groups associated with the Schedule. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scope.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scope.go index 8d5d350d426..7689b33b97f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scope.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/scope.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/script_based_execution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/script_based_execution_details.go index 5c1d03f636b..37fbb947677 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/script_based_execution_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/script_based_execution_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,18 +17,14 @@ import ( "strings" ) -// ScriptBasedExecutionDetails Details for script-based execution. +// ScriptBasedExecutionDetails Details for script based execution type ScriptBasedExecutionDetails struct { Variables *TaskVariable `mandatory:"false" json:"variables"` Content ContentDetails `mandatory:"false" json:"content"` - // Optional command to execute the content. - // You can provide any commands/arguments that can't be part of the script. + // Optional Command to execute the content. Command *string `mandatory:"false" json:"command"` - - // Credentials required for executing the task. - Credentials []ConfigAssociationDetails `mandatory:"false" json:"credentials"` } func (m ScriptBasedExecutionDetails) String() string { @@ -63,10 +60,9 @@ func (m ScriptBasedExecutionDetails) MarshalJSON() (buff []byte, e error) { // UnmarshalJSON unmarshals from json func (m *ScriptBasedExecutionDetails) UnmarshalJSON(data []byte) (e error) { model := struct { - Variables *TaskVariable `json:"variables"` - Content contentdetails `json:"content"` - Command *string `json:"command"` - Credentials []ConfigAssociationDetails `json:"credentials"` + Variables *TaskVariable `json:"variables"` + Content contentdetails `json:"content"` + Command *string `json:"command"` }{} e = json.Unmarshal(data, &model) @@ -88,7 +84,5 @@ func (m *ScriptBasedExecutionDetails) UnmarshalJSON(data []byte) (e error) { m.Command = model.Command - m.Credentials = make([]ConfigAssociationDetails, len(model.Credentials)) - copy(m.Credentials, model.Credentials) return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection.go index 3773cad7c2c..bb99c9a6188 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection_criteria.go index 66356b8f1f7..ca1a3a8be0d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection_criteria.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/selection_criteria.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,12 +16,10 @@ import ( "strings" ) -// SelectionCriteria Rule Selection Criteria for DYNAMIC resource selection for a GENERIC fleet. -// Rules define what resources are members of this fleet. All resources that meet the criteria are added automatically. +// SelectionCriteria Rule Selection Criteria type SelectionCriteria struct { - // Match condition for the rule selection. - // Include resources that match all rules or any of the rules. + // Rule selection match condition. MatchCondition SelectionCriteriaMatchConditionEnum `mandatory:"true" json:"matchCondition"` // Rules. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/set_default_runbook_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/set_default_runbook_details.go deleted file mode 100644 index 332f8ceaad7..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/set_default_runbook_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// SetDefaultRunbookDetails Request to set default Runbook -type SetDefaultRunbookDetails struct { - - // The OCID of the resource. - RunbookId *string `mandatory:"true" json:"runbookId"` -} - -func (m SetDefaultRunbookDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m SetDefaultRunbookDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/set_default_runbook_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/set_default_runbook_request_response.go deleted file mode 100644 index 8c09217cf93..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/set_default_runbook_request_response.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// SetDefaultRunbookRequest wrapper for the SetDefaultRunbook operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SetDefaultRunbook.go.html to see an example of how to use SetDefaultRunbookRequest. -type SetDefaultRunbookRequest struct { - - // Details for setting the Runbook as default. - SetDefaultRunbookDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request SetDefaultRunbookRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request SetDefaultRunbookRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request SetDefaultRunbookRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request SetDefaultRunbookRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request SetDefaultRunbookRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// SetDefaultRunbookResponse wrapper for the SetDefaultRunbook operation -type SetDefaultRunbookResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Runbook instance - Runbook `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response SetDefaultRunbookResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response SetDefaultRunbookResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/sort_order.go index 5e682433037..459c720849e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/sort_order.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/sort_order.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_based_user_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_based_user_action_details.go deleted file mode 100644 index 39f0ea6c565..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_based_user_action_details.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// StepBasedUserActionDetails Details for a user action to be performed on a step. -type StepBasedUserActionDetails struct { - - // Unique identifier for the action group. - ActionGroupId *string `mandatory:"true" json:"actionGroupId"` - - // Resource OCID - ResourceId *string `mandatory:"true" json:"resourceId"` - - // Name of the step on which user action needs to be performed. - StepName *string `mandatory:"true" json:"stepName"` - - // Target associated with the execution. - TargetId *string `mandatory:"false" json:"targetId"` - - // Action to be Performed. - Action UserActionDetailsActionEnum `mandatory:"true" json:"action"` -} - -// GetAction returns Action -func (m StepBasedUserActionDetails) GetAction() UserActionDetailsActionEnum { - return m.Action -} - -func (m StepBasedUserActionDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m StepBasedUserActionDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingUserActionDetailsActionEnum(string(m.Action)); !ok && m.Action != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetUserActionDetailsActionEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m StepBasedUserActionDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeStepBasedUserActionDetails StepBasedUserActionDetails - s := struct { - DiscriminatorParam string `json:"level"` - MarshalTypeStepBasedUserActionDetails - }{ - "STEP_NAME", - (MarshalTypeStepBasedUserActionDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_collection.go deleted file mode 100644 index a7da1a656ec..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// StepCollection Results of a StepSummary search. -type StepCollection struct { - - // List of Execution steps. - Items []StepSummary `mandatory:"true" json:"items"` -} - -func (m StepCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m StepCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_summary.go deleted file mode 100644 index 0b3bd1aa32d..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/step_summary.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// StepSummary Task associated with the Job. -type StepSummary struct { - - // Name of the Step - StepName *string `mandatory:"true" json:"stepName"` - - // Status of the Task - Status JobStatusEnum `mandatory:"true" json:"status"` - - // The OCID of taskRecord assocaited with the step - TaskRecordId *string `mandatory:"false" json:"taskRecordId"` - - // The sequence of the step - Sequence *string `mandatory:"false" json:"sequence"` - - // The time the task started. An RFC3339 formatted datetime string - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The time the task ended. An RFC3339 formatted datetime string - TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"` - - // Is this a rollback task? - IsRollbackTask *bool `mandatory:"false" json:"isRollbackTask"` - - // Description of the step Execution - Description *string `mandatory:"false" json:"description"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m StepSummary) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m StepSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingJobStatusEnum(string(m.Status)); !ok && m.Status != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetJobStatusEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/string_input_argument.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/string_input_argument.go index 65cf841abfc..2a8a1b7a1de 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/string_input_argument.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/string_input_argument.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -19,7 +20,7 @@ import ( // StringInputArgument The details of the String Input argument. type StringInputArgument struct { - // The name of the argument. + // The name of the argument Name *string `mandatory:"true" json:"name"` // The description of the argument. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_compliance_record_counts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_compliance_record_counts_request_response.go deleted file mode 100644 index f065c75e5ae..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_compliance_record_counts_request_response.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// SummarizeComplianceRecordCountsRequest wrapper for the SummarizeComplianceRecordCounts operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SummarizeComplianceRecordCounts.go.html to see an example of how to use SummarizeComplianceRecordCountsRequest. -type SummarizeComplianceRecordCountsRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder SummarizeComplianceRecordCountsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request SummarizeComplianceRecordCountsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request SummarizeComplianceRecordCountsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request SummarizeComplianceRecordCountsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request SummarizeComplianceRecordCountsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request SummarizeComplianceRecordCountsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingSummarizeComplianceRecordCountsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetSummarizeComplianceRecordCountsSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// SummarizeComplianceRecordCountsResponse wrapper for the SummarizeComplianceRecordCounts operation -type SummarizeComplianceRecordCountsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ComplianceRecordAggregationCollection instances - ComplianceRecordAggregationCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response SummarizeComplianceRecordCountsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response SummarizeComplianceRecordCountsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// SummarizeComplianceRecordCountsSortOrderEnum Enum with underlying type: string -type SummarizeComplianceRecordCountsSortOrderEnum string - -// Set of constants representing the allowable values for SummarizeComplianceRecordCountsSortOrderEnum -const ( - SummarizeComplianceRecordCountsSortOrderAsc SummarizeComplianceRecordCountsSortOrderEnum = "ASC" - SummarizeComplianceRecordCountsSortOrderDesc SummarizeComplianceRecordCountsSortOrderEnum = "DESC" -) - -var mappingSummarizeComplianceRecordCountsSortOrderEnum = map[string]SummarizeComplianceRecordCountsSortOrderEnum{ - "ASC": SummarizeComplianceRecordCountsSortOrderAsc, - "DESC": SummarizeComplianceRecordCountsSortOrderDesc, -} - -var mappingSummarizeComplianceRecordCountsSortOrderEnumLowerCase = map[string]SummarizeComplianceRecordCountsSortOrderEnum{ - "asc": SummarizeComplianceRecordCountsSortOrderAsc, - "desc": SummarizeComplianceRecordCountsSortOrderDesc, -} - -// GetSummarizeComplianceRecordCountsSortOrderEnumValues Enumerates the set of values for SummarizeComplianceRecordCountsSortOrderEnum -func GetSummarizeComplianceRecordCountsSortOrderEnumValues() []SummarizeComplianceRecordCountsSortOrderEnum { - values := make([]SummarizeComplianceRecordCountsSortOrderEnum, 0) - for _, v := range mappingSummarizeComplianceRecordCountsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetSummarizeComplianceRecordCountsSortOrderEnumStringValues Enumerates the set of values in String for SummarizeComplianceRecordCountsSortOrderEnum -func GetSummarizeComplianceRecordCountsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingSummarizeComplianceRecordCountsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingSummarizeComplianceRecordCountsSortOrderEnum(val string) (SummarizeComplianceRecordCountsSortOrderEnum, bool) { - enum, ok := mappingSummarizeComplianceRecordCountsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_managed_entity_counts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_managed_entity_counts_request_response.go deleted file mode 100644 index ff635313837..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_managed_entity_counts_request_response.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// SummarizeManagedEntityCountsRequest wrapper for the SummarizeManagedEntityCounts operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SummarizeManagedEntityCounts.go.html to see an example of how to use SummarizeManagedEntityCountsRequest. -type SummarizeManagedEntityCountsRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder SummarizeManagedEntityCountsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request SummarizeManagedEntityCountsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request SummarizeManagedEntityCountsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request SummarizeManagedEntityCountsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request SummarizeManagedEntityCountsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request SummarizeManagedEntityCountsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingSummarizeManagedEntityCountsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetSummarizeManagedEntityCountsSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// SummarizeManagedEntityCountsResponse wrapper for the SummarizeManagedEntityCounts operation -type SummarizeManagedEntityCountsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ManagedEntityAggregationCollection instances - ManagedEntityAggregationCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response SummarizeManagedEntityCountsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response SummarizeManagedEntityCountsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// SummarizeManagedEntityCountsSortOrderEnum Enum with underlying type: string -type SummarizeManagedEntityCountsSortOrderEnum string - -// Set of constants representing the allowable values for SummarizeManagedEntityCountsSortOrderEnum -const ( - SummarizeManagedEntityCountsSortOrderAsc SummarizeManagedEntityCountsSortOrderEnum = "ASC" - SummarizeManagedEntityCountsSortOrderDesc SummarizeManagedEntityCountsSortOrderEnum = "DESC" -) - -var mappingSummarizeManagedEntityCountsSortOrderEnum = map[string]SummarizeManagedEntityCountsSortOrderEnum{ - "ASC": SummarizeManagedEntityCountsSortOrderAsc, - "DESC": SummarizeManagedEntityCountsSortOrderDesc, -} - -var mappingSummarizeManagedEntityCountsSortOrderEnumLowerCase = map[string]SummarizeManagedEntityCountsSortOrderEnum{ - "asc": SummarizeManagedEntityCountsSortOrderAsc, - "desc": SummarizeManagedEntityCountsSortOrderDesc, -} - -// GetSummarizeManagedEntityCountsSortOrderEnumValues Enumerates the set of values for SummarizeManagedEntityCountsSortOrderEnum -func GetSummarizeManagedEntityCountsSortOrderEnumValues() []SummarizeManagedEntityCountsSortOrderEnum { - values := make([]SummarizeManagedEntityCountsSortOrderEnum, 0) - for _, v := range mappingSummarizeManagedEntityCountsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetSummarizeManagedEntityCountsSortOrderEnumStringValues Enumerates the set of values in String for SummarizeManagedEntityCountsSortOrderEnum -func GetSummarizeManagedEntityCountsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingSummarizeManagedEntityCountsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingSummarizeManagedEntityCountsSortOrderEnum(val string) (SummarizeManagedEntityCountsSortOrderEnum, bool) { - enum, ok := mappingSummarizeManagedEntityCountsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_scheduler_job_counts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_scheduler_job_counts_request_response.go deleted file mode 100644 index 302b8179af9..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/summarize_scheduler_job_counts_request_response.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// SummarizeSchedulerJobCountsRequest wrapper for the SummarizeSchedulerJobCounts operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/SummarizeSchedulerJobCounts.go.html to see an example of how to use SummarizeSchedulerJobCountsRequest. -type SummarizeSchedulerJobCountsRequest struct { - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'ASC' or 'DESC'. - SortOrder SummarizeSchedulerJobCountsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request SummarizeSchedulerJobCountsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request SummarizeSchedulerJobCountsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request SummarizeSchedulerJobCountsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request SummarizeSchedulerJobCountsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request SummarizeSchedulerJobCountsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingSummarizeSchedulerJobCountsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetSummarizeSchedulerJobCountsSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// SummarizeSchedulerJobCountsResponse wrapper for the SummarizeSchedulerJobCounts operation -type SummarizeSchedulerJobCountsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of SchedulerJobAggregationCollection instances - SchedulerJobAggregationCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response SummarizeSchedulerJobCountsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response SummarizeSchedulerJobCountsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// SummarizeSchedulerJobCountsSortOrderEnum Enum with underlying type: string -type SummarizeSchedulerJobCountsSortOrderEnum string - -// Set of constants representing the allowable values for SummarizeSchedulerJobCountsSortOrderEnum -const ( - SummarizeSchedulerJobCountsSortOrderAsc SummarizeSchedulerJobCountsSortOrderEnum = "ASC" - SummarizeSchedulerJobCountsSortOrderDesc SummarizeSchedulerJobCountsSortOrderEnum = "DESC" -) - -var mappingSummarizeSchedulerJobCountsSortOrderEnum = map[string]SummarizeSchedulerJobCountsSortOrderEnum{ - "ASC": SummarizeSchedulerJobCountsSortOrderAsc, - "DESC": SummarizeSchedulerJobCountsSortOrderDesc, -} - -var mappingSummarizeSchedulerJobCountsSortOrderEnumLowerCase = map[string]SummarizeSchedulerJobCountsSortOrderEnum{ - "asc": SummarizeSchedulerJobCountsSortOrderAsc, - "desc": SummarizeSchedulerJobCountsSortOrderDesc, -} - -// GetSummarizeSchedulerJobCountsSortOrderEnumValues Enumerates the set of values for SummarizeSchedulerJobCountsSortOrderEnum -func GetSummarizeSchedulerJobCountsSortOrderEnumValues() []SummarizeSchedulerJobCountsSortOrderEnum { - values := make([]SummarizeSchedulerJobCountsSortOrderEnum, 0) - for _, v := range mappingSummarizeSchedulerJobCountsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetSummarizeSchedulerJobCountsSortOrderEnumStringValues Enumerates the set of values in String for SummarizeSchedulerJobCountsSortOrderEnum -func GetSummarizeSchedulerJobCountsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingSummarizeSchedulerJobCountsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingSummarizeSchedulerJobCountsSortOrderEnum(val string) (SummarizeSchedulerJobCountsSortOrderEnum, bool) { - enum, ok := mappingSummarizeSchedulerJobCountsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_credential_entity_specific_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_credential_entity_specific_details.go index 2e16d8611be..4b925d210c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_credential_entity_specific_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_credential_entity_specific_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,13 +17,13 @@ import ( "strings" ) -// TargetCredentialEntitySpecificDetails Target credential details. +// TargetCredentialEntitySpecificDetails Fleet Credential Specific Details. type TargetCredentialEntitySpecificDetails struct { - // OCID of the resource associated with the target for which the credential is created. + // OCID of the resource associated with the target for which credential is created ResourceId *string `mandatory:"true" json:"resourceId"` - // Target name for which the credential is provided. + // Target associated with the Credential Target *string `mandatory:"true" json:"target"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_resource.go index d4e81a9f9fb..d405a164add 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/target_resource.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// TargetResource Resource Information for the Target. +// TargetResource Resource Information for the Target type TargetResource struct { // The OCID of the resource. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task.go index 7d6cf63044e..43cbf1d9b7e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_argument.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_argument.go index ad577018255..d0ea87ac569 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_argument.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_argument.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_execution_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_execution_type.go index f418544d845..d831b6805e0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_execution_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_execution_type.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_notification_preferences.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_notification_preferences.go deleted file mode 100644 index e63b6a45172..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_notification_preferences.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// TaskNotificationPreferences Preferences to send notifications on the task activities. -type TaskNotificationPreferences struct { - - // Enables notification on pause. - ShouldNotifyOnPause *bool `mandatory:"false" json:"shouldNotifyOnPause"` - - // Enables or disables notification on Task Failures. - ShouldNotifyOnTaskFailure *bool `mandatory:"false" json:"shouldNotifyOnTaskFailure"` - - // Enables or disables notification on Task Success. - ShouldNotifyOnTaskSuccess *bool `mandatory:"false" json:"shouldNotifyOnTaskSuccess"` -} - -func (m TaskNotificationPreferences) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m TaskNotificationPreferences) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record.go index c48619a4370..5e3c4e3edec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// TaskRecord Details of a task. +// TaskRecord Description of TaskRecord. type TaskRecord struct { // The OCID of the resource. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_collection.go index 7021d20ca1b..944a5dfc38c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_summary.go index 850e7180fea..d7e858f2de8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_record_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_scope.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_scope.go index 82d20659b2c..63b0206f674 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_scope.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_scope.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_variable.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_variable.go index 74071506161..b61eaa91776 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_variable.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/task_variable.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -16,8 +17,7 @@ import ( "strings" ) -// TaskVariable The variable of the task. -// At least one of the dynamicArguments or output needs to be provided. +// TaskVariable The variable of the task.Atleast one of dynamicArguments or output needs to be provided. type TaskVariable struct { // The input variables for the task. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/time_based_pause_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/time_based_pause_details.go deleted file mode 100644 index 91983b0be53..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/time_based_pause_details.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// TimeBasedPauseDetails Time-based pause details. -type TimeBasedPauseDetails struct { - - // Time in minutes to apply Pause. - DurationInMinutes *int `mandatory:"true" json:"durationInMinutes"` -} - -func (m TimeBasedPauseDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m TimeBasedPauseDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m TimeBasedPauseDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeTimeBasedPauseDetails TimeBasedPauseDetails - s := struct { - DiscriminatorParam string `json:"kind"` - MarshalTypeTimeBasedPauseDetails - }{ - "TIME_BASED", - (MarshalTypeTimeBasedPauseDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_compliance_policy_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_compliance_policy_rule_details.go deleted file mode 100644 index 34aea3c1f58..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_compliance_policy_rule_details.go +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateCompliancePolicyRuleDetails The data to update a CompliancePolicyRule. -type UpdateCompliancePolicyRuleDetails struct { - ProductVersion *ProductVersionDetails `mandatory:"false" json:"productVersion"` - - // PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. - PatchType []string `mandatory:"false" json:"patchType"` - - // Severity to which this CompliancePolicyRule applies. - Severity []ComplianceRuleSeverityEnum `mandatory:"false" json:"severity,omitempty"` - - PatchSelection PatchSelectionDetails `mandatory:"false" json:"patchSelection"` - - // Grace period in days,weeks,months or years the exemption is applicable for the rule. - // This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. - GracePeriod *string `mandatory:"false" json:"gracePeriod"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateCompliancePolicyRuleDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateCompliancePolicyRuleDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - for _, val := range m.Severity { - if _, ok := GetMappingComplianceRuleSeverityEnum(string(val)); !ok && val != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", val, strings.Join(GetComplianceRuleSeverityEnumStringValues(), ","))) - } - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *UpdateCompliancePolicyRuleDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - ProductVersion *ProductVersionDetails `json:"productVersion"` - PatchType []string `json:"patchType"` - Severity []ComplianceRuleSeverityEnum `json:"severity"` - PatchSelection patchselectiondetails `json:"patchSelection"` - GracePeriod *string `json:"gracePeriod"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.ProductVersion = model.ProductVersion - - m.PatchType = make([]string, len(model.PatchType)) - copy(m.PatchType, model.PatchType) - m.Severity = make([]ComplianceRuleSeverityEnum, len(model.Severity)) - copy(m.Severity, model.Severity) - nn, e = model.PatchSelection.UnmarshalPolymorphicJSON(model.PatchSelection.JsonData) - if e != nil { - return - } - if nn != nil { - m.PatchSelection = nn.(PatchSelectionDetails) - } else { - m.PatchSelection = nil - } - - m.GracePeriod = model.GracePeriod - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_compliance_policy_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_compliance_policy_rule_request_response.go deleted file mode 100644 index 080bc5f7f5e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_compliance_policy_rule_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateCompliancePolicyRuleRequest wrapper for the UpdateCompliancePolicyRule operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateCompliancePolicyRule.go.html to see an example of how to use UpdateCompliancePolicyRuleRequest. -type UpdateCompliancePolicyRuleRequest struct { - - // unique CompliancePolicyRule identifier. - CompliancePolicyRuleId *string `mandatory:"true" contributesTo:"path" name:"compliancePolicyRuleId"` - - // The information to be updated. - UpdateCompliancePolicyRuleDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateCompliancePolicyRuleRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateCompliancePolicyRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateCompliancePolicyRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateCompliancePolicyRuleRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateCompliancePolicyRuleRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateCompliancePolicyRuleResponse wrapper for the UpdateCompliancePolicyRule operation -type UpdateCompliancePolicyRuleResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateCompliancePolicyRuleResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateCompliancePolicyRuleResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_details.go index 1e210ffaf88..b8f1466695b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_request_response.go index 2cda0b6e893..370d5fb8649 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_credential_request_response.go @@ -21,10 +21,10 @@ type UpdateFleetCredentialRequest struct { // unique FleetCredential identifier FleetCredentialId *string `mandatory:"true" contributesTo:"path" name:"fleetCredentialId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` - // The credential information to be updated. + // The information to be updated. UpdateFleetCredentialDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_details.go index 634cf33e74a..2c009557ecb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -31,8 +32,7 @@ type UpdateFleetDetails struct { RuleSelectionCriteria *SelectionCriteria `mandatory:"false" json:"ruleSelectionCriteria"` - // A value that represents if auto-confirming of the targets can be enabled. - // This will allow targets to be auto-confirmed in the fleet without manual intervention. + // A value which represents if auto confirming of the targets can be enabled IsTargetAutoConfirm *bool `mandatory:"false" json:"isTargetAutoConfirm"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_details.go index 1366211d08a..325782ef5ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// UpdateFleetPropertyDetails The information to be updated for the fleet property. +// UpdateFleetPropertyDetails The information to be updated. type UpdateFleetPropertyDetails struct { - // Value of the Property. + // Value of the Property Value *string `mandatory:"false" json:"value"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_request_response.go index 2935e8112dc..42b9adf28ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_property_request_response.go @@ -18,10 +18,10 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateFleetProperty.go.html to see an example of how to use UpdateFleetPropertyRequest. type UpdateFleetPropertyRequest struct { - // unique FleetProperty identifier. + // unique FleetProperty identifier FleetPropertyId *string `mandatory:"true" contributesTo:"path" name:"fleetPropertyId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The information to be updated. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_request_response.go index cde8d82eeb1..13dbb99ec58 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateFleet.go.html to see an example of how to use UpdateFleetRequest. type UpdateFleetRequest struct { - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The information to be updated. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_details.go index e64b513ee9c..d2a52216a48 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,7 +16,7 @@ import ( "strings" ) -// UpdateFleetResourceDetails The information to be updated for the resource. +// UpdateFleetResourceDetails The information to be updated. type UpdateFleetResourceDetails struct { // OCID of the tenancy to which the resource belongs to. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_request_response.go index d6be1251dfa..1b4b71687d2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_fleet_resource_request_response.go @@ -21,7 +21,7 @@ type UpdateFleetResourceRequest struct { // unique FleetResource identifier FleetResourceId *string `mandatory:"true" contributesTo:"path" name:"fleetResourceId"` - // Unique Fleet identifier. + // unique Fleet identifier FleetId *string `mandatory:"true" contributesTo:"path" name:"fleetId"` // The information to be updated. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_details.go index 5c3e2cafaef..556fa5016b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -31,25 +32,21 @@ type UpdateMaintenanceWindowDetails struct { MaintenanceWindowType MaintenanceWindowTypeEnum `mandatory:"false" json:"maintenanceWindowType,omitempty"` // Does the maintenenace window cause outage? - // An outage indicates whether a maintenance window can consider operations that require downtime. - // It means a period when the application is not accessible. IsOutage *bool `mandatory:"false" json:"isOutage"` - // Specify the date and time of the day that the maintenance window starts. + // Start time of schedule TimeScheduleStart *common.SDKTime `mandatory:"false" json:"timeScheduleStart"` - // Duration of the maintenance window. - // Specify how long the maintenance window remains open. + // Duration if schedule type is Custom Duration *string `mandatory:"false" json:"duration"` - // Is this a recurring maintenance window? + // Is this is a recurring maintenance window IsRecurring *bool `mandatory:"false" json:"isRecurring"` - // Recurrence rule specification if maintenance window recurring. - // Specify the frequency of running the maintenance window. + // Recurrence rule specification if recurring Recurrences *string `mandatory:"false" json:"recurrences"` - // Task initiation cutoff time for the maintenance window. + // Task initiation cutoff TaskInitiationCutoff *int `mandatory:"false" json:"taskInitiationCutoff"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_request_response.go index 07fe72f0b83..520ef684137 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_maintenance_window_request_response.go @@ -21,7 +21,7 @@ type UpdateMaintenanceWindowRequest struct { // unique MaintenanceWindow identifier MaintenanceWindowId *string `mandatory:"true" contributesTo:"path" name:"maintenanceWindowId"` - // The information to be updated for the maintenance window. + // The information to be updated. UpdateMaintenanceWindowDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_onboarding_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_onboarding_details.go deleted file mode 100644 index d418da42ecb..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_onboarding_details.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateOnboardingDetails The information about updating onboarding. -type UpdateOnboardingDetails struct { - - // A value determining Fleet Application Management tag is enabled or not - IsFamsTagEnabled *bool `mandatory:"false" json:"isFamsTagEnabled"` - - // A value determining if cost tracking tag is enabled or not - IsCostTrackingTagEnabled *bool `mandatory:"false" json:"isCostTrackingTagEnabled"` -} - -func (m UpdateOnboardingDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateOnboardingDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_onboarding_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_onboarding_request_response.go deleted file mode 100644 index 6651c32b4ac..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_onboarding_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateOnboardingRequest wrapper for the UpdateOnboarding operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateOnboarding.go.html to see an example of how to use UpdateOnboardingRequest. -type UpdateOnboardingRequest struct { - - // A filter to return resources whose Onboarding identifier matches the given identifier. - OnboardingId *string `mandatory:"true" contributesTo:"path" name:"onboardingId"` - - // The information to be updated. - UpdateOnboardingDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateOnboardingRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateOnboardingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateOnboardingRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateOnboardingRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateOnboardingRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateOnboardingResponse wrapper for the UpdateOnboarding operation -type UpdateOnboardingResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateOnboardingResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateOnboardingResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_patch_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_patch_details.go deleted file mode 100644 index cb0ea0c5d88..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_patch_details.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdatePatchDetails The patch information to be updated. -type UpdatePatchDetails struct { - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - PatchType *PatchType `mandatory:"false" json:"patchType"` - - // Patch Severity. - Severity PatchSeverityEnum `mandatory:"false" json:"severity,omitempty"` - - // Date when the patch was released. - TimeReleased *common.SDKTime `mandatory:"false" json:"timeReleased"` - - ArtifactDetails ArtifactDetails `mandatory:"false" json:"artifactDetails"` - - Product *PatchProduct `mandatory:"false" json:"product"` - - // Dependent Patches. - DependentPatches []DependentPatchDetails `mandatory:"false" json:"dependentPatches"` - - // OCID of the compartment to which the resource belongs to. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdatePatchDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdatePatchDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingPatchSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetPatchSeverityEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *UpdatePatchDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - Description *string `json:"description"` - PatchType *PatchType `json:"patchType"` - Severity PatchSeverityEnum `json:"severity"` - TimeReleased *common.SDKTime `json:"timeReleased"` - ArtifactDetails artifactdetails `json:"artifactDetails"` - Product *PatchProduct `json:"product"` - DependentPatches []DependentPatchDetails `json:"dependentPatches"` - CompartmentId *string `json:"compartmentId"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Description = model.Description - - m.PatchType = model.PatchType - - m.Severity = model.Severity - - m.TimeReleased = model.TimeReleased - - nn, e = model.ArtifactDetails.UnmarshalPolymorphicJSON(model.ArtifactDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ArtifactDetails = nn.(ArtifactDetails) - } else { - m.ArtifactDetails = nil - } - - m.Product = model.Product - - m.DependentPatches = make([]DependentPatchDetails, len(model.DependentPatches)) - copy(m.DependentPatches, model.DependentPatches) - m.CompartmentId = model.CompartmentId - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_patch_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_patch_request_response.go deleted file mode 100644 index 94e39242ca0..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_patch_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdatePatchRequest wrapper for the UpdatePatch operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdatePatch.go.html to see an example of how to use UpdatePatchRequest. -type UpdatePatchRequest struct { - - // unique Patch identifier - PatchId *string `mandatory:"true" contributesTo:"path" name:"patchId"` - - // The information to be updated. - UpdatePatchDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdatePatchRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdatePatchRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdatePatchRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdatePatchRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdatePatchRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdatePatchResponse wrapper for the UpdatePatch operation -type UpdatePatchResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdatePatchResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdatePatchResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_platform_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_platform_configuration_details.go deleted file mode 100644 index 671e140b626..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_platform_configuration_details.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdatePlatformConfigurationDetails The information to be updated. -type UpdatePlatformConfigurationDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"false" json:"displayName"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - ConfigCategoryDetails ConfigCategoryDetails `mandatory:"false" json:"configCategoryDetails"` -} - -func (m UpdatePlatformConfigurationDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdatePlatformConfigurationDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UnmarshalJSON unmarshals from json -func (m *UpdatePlatformConfigurationDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DisplayName *string `json:"displayName"` - Description *string `json:"description"` - ConfigCategoryDetails configcategorydetails `json:"configCategoryDetails"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DisplayName = model.DisplayName - - m.Description = model.Description - - nn, e = model.ConfigCategoryDetails.UnmarshalPolymorphicJSON(model.ConfigCategoryDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ConfigCategoryDetails = nn.(ConfigCategoryDetails) - } else { - m.ConfigCategoryDetails = nil - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_platform_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_platform_configuration_request_response.go deleted file mode 100644 index c070affe10e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_platform_configuration_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdatePlatformConfigurationRequest wrapper for the UpdatePlatformConfiguration operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdatePlatformConfiguration.go.html to see an example of how to use UpdatePlatformConfigurationRequest. -type UpdatePlatformConfigurationRequest struct { - - // unique PlatformConfiguration identifier - PlatformConfigurationId *string `mandatory:"true" contributesTo:"path" name:"platformConfigurationId"` - - // The information to be updated. - UpdatePlatformConfigurationDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdatePlatformConfigurationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdatePlatformConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdatePlatformConfigurationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdatePlatformConfigurationRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdatePlatformConfigurationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdatePlatformConfigurationResponse wrapper for the UpdatePlatformConfiguration operation -type UpdatePlatformConfigurationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdatePlatformConfigurationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdatePlatformConfigurationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_property_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_property_details.go index 6b4082d76b3..365bd7d74ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_property_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_property_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -23,13 +24,13 @@ type UpdatePropertyDetails struct { // Example: `My new resource` DisplayName *string `mandatory:"false" json:"displayName"` - // Text selection of the property. + // Text selection of the category Selection SelectionEnum `mandatory:"false" json:"selection,omitempty"` - // Format of the value. + // Format of the value ValueType ValueTypeEnum `mandatory:"false" json:"valueType,omitempty"` - // Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). + // Values of the property (must be a single value if selection = 'single choice') Values []string `mandatory:"false" json:"values"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_runbook_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_runbook_details.go deleted file mode 100644 index 9bf17698449..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_runbook_details.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateRunbookDetails The information to be updated. -type UpdateRunbookDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"false" json:"displayName"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // Type of runbook structure. - RunbookRelevance RunbookRunbookRelevanceEnum `mandatory:"false" json:"runbookRelevance,omitempty"` - - // The lifecycle operation performed by the task. - Operation *string `mandatory:"false" json:"operation"` - - // The OS type for the runbook. - OsType OsTypeEnum `mandatory:"false" json:"osType,omitempty"` - - // The platform of the runbook. - Platform *string `mandatory:"false" json:"platform"` - - // Is the runbook default? - IsDefault *bool `mandatory:"false" json:"isDefault"` - - // Estimated time to successfully complete the runbook execution - EstimatedTime *string `mandatory:"false" json:"estimatedTime"` - - Associations *Associations `mandatory:"false" json:"associations"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateRunbookDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateRunbookDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingRunbookRunbookRelevanceEnum(string(m.RunbookRelevance)); !ok && m.RunbookRelevance != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RunbookRelevance: %s. Supported values are: %s.", m.RunbookRelevance, strings.Join(GetRunbookRunbookRelevanceEnumStringValues(), ","))) - } - if _, ok := GetMappingOsTypeEnum(string(m.OsType)); !ok && m.OsType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OsType: %s. Supported values are: %s.", m.OsType, strings.Join(GetOsTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_runbook_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_runbook_request_response.go deleted file mode 100644 index e803af7fd50..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_runbook_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateRunbookRequest wrapper for the UpdateRunbook operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateRunbook.go.html to see an example of how to use UpdateRunbookRequest. -type UpdateRunbookRequest struct { - - // Unique Runbook identifier - RunbookId *string `mandatory:"true" contributesTo:"path" name:"runbookId"` - - // The information to be updated. - UpdateRunbookDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateRunbookRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateRunbookRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateRunbookRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateRunbookRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateRunbookRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateRunbookResponse wrapper for the UpdateRunbook operation -type UpdateRunbookResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateRunbookResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateRunbookResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_definition_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_definition_details.go index d56e97cd981..3f0235a1bc2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_definition_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_definition_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_job_details.go index 83e4d20679e..3749060215e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_job_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_scheduler_job_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -15,10 +16,10 @@ import ( "strings" ) -// UpdateSchedulerJobDetails The information to be updated for the job. +// UpdateSchedulerJobDetails The information to be updated. type UpdateSchedulerJobDetails struct { - // The scheduled date and time for the Job. + // Scheduled date for the Job.Provide only the date TimeScheduled *common.SDKTime `mandatory:"false" json:"timeScheduled"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_task_record_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_task_record_details.go deleted file mode 100644 index 85967cdb51d..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_task_record_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UpdateTaskRecordDetails The information to be updated. -type UpdateTaskRecordDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // Example: `My new resource` - DisplayName *string `mandatory:"false" json:"displayName"` - - // A user-friendly description. To provide some insight about the resource. - // Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - Details *Details `mandatory:"false" json:"details"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"bar-key": "value"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateTaskRecordDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UpdateTaskRecordDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_task_record_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_task_record_request_response.go deleted file mode 100644 index 4d9632fb716..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/update_task_record_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// UpdateTaskRecordRequest wrapper for the UpdateTaskRecord operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/fleetappsmanagement/UpdateTaskRecord.go.html to see an example of how to use UpdateTaskRecordRequest. -type UpdateTaskRecordRequest struct { - - // unique TaskDetail identifier - TaskRecordId *string `mandatory:"true" contributesTo:"path" name:"taskRecordId"` - - // The information to be updated. - UpdateTaskRecordDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateTaskRecordRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateTaskRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateTaskRecordRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateTaskRecordRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request UpdateTaskRecordRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateTaskRecordResponse wrapper for the UpdateTaskRecord operation -type UpdateTaskRecordResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateTaskRecordResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateTaskRecordResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/user_action_based_pause_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/user_action_based_pause_details.go deleted file mode 100644 index 0460cea7777..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/user_action_based_pause_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UserActionBasedPauseDetails User action-based pause details. -type UserActionBasedPauseDetails struct { -} - -func (m UserActionBasedPauseDetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m UserActionBasedPauseDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m UserActionBasedPauseDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeUserActionBasedPauseDetails UserActionBasedPauseDetails - s := struct { - DiscriminatorParam string `json:"kind"` - MarshalTypeUserActionBasedPauseDetails - }{ - "USER_ACTION", - (MarshalTypeUserActionBasedPauseDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/user_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/user_action_details.go deleted file mode 100644 index 2cb050e5006..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/user_action_details.go +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// UserActionDetails User action details. -// This can be performed on a failed/paused task or action group. -type UserActionDetails interface { - - // Action to be Performed. - GetAction() UserActionDetailsActionEnum -} - -type useractiondetails struct { - JsonData []byte - Action UserActionDetailsActionEnum `mandatory:"true" json:"action"` - Level string `json:"level"` -} - -// UnmarshalJSON unmarshals json -func (m *useractiondetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshaleruseractiondetails useractiondetails - s := struct { - Model Unmarshaleruseractiondetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Action = s.Model.Action - m.Level = s.Model.Level - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *useractiondetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Level { - case "STEP_NAME": - mm := StepBasedUserActionDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "ACTION_GROUP": - mm := ActionGroupBasedUserActionDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for UserActionDetails: %s.", m.Level) - return *m, nil - } -} - -// GetAction returns Action -func (m useractiondetails) GetAction() UserActionDetailsActionEnum { - return m.Action -} - -func (m useractiondetails) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m useractiondetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingUserActionDetailsActionEnum(string(m.Action)); !ok && m.Action != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetUserActionDetailsActionEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UserActionDetailsActionEnum Enum with underlying type: string -type UserActionDetailsActionEnum string - -// Set of constants representing the allowable values for UserActionDetailsActionEnum -const ( - UserActionDetailsActionRetry UserActionDetailsActionEnum = "RETRY" - UserActionDetailsActionResume UserActionDetailsActionEnum = "RESUME" -) - -var mappingUserActionDetailsActionEnum = map[string]UserActionDetailsActionEnum{ - "RETRY": UserActionDetailsActionRetry, - "RESUME": UserActionDetailsActionResume, -} - -var mappingUserActionDetailsActionEnumLowerCase = map[string]UserActionDetailsActionEnum{ - "retry": UserActionDetailsActionRetry, - "resume": UserActionDetailsActionResume, -} - -// GetUserActionDetailsActionEnumValues Enumerates the set of values for UserActionDetailsActionEnum -func GetUserActionDetailsActionEnumValues() []UserActionDetailsActionEnum { - values := make([]UserActionDetailsActionEnum, 0) - for _, v := range mappingUserActionDetailsActionEnum { - values = append(values, v) - } - return values -} - -// GetUserActionDetailsActionEnumStringValues Enumerates the set of values in String for UserActionDetailsActionEnum -func GetUserActionDetailsActionEnumStringValues() []string { - return []string{ - "RETRY", - "RESUME", - } -} - -// GetMappingUserActionDetailsActionEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingUserActionDetailsActionEnum(val string) (UserActionDetailsActionEnum, bool) { - enum, ok := mappingUserActionDetailsActionEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// UserActionDetailsLevelEnum Enum with underlying type: string -type UserActionDetailsLevelEnum string - -// Set of constants representing the allowable values for UserActionDetailsLevelEnum -const ( - UserActionDetailsLevelActionGroup UserActionDetailsLevelEnum = "ACTION_GROUP" - UserActionDetailsLevelStepName UserActionDetailsLevelEnum = "STEP_NAME" -) - -var mappingUserActionDetailsLevelEnum = map[string]UserActionDetailsLevelEnum{ - "ACTION_GROUP": UserActionDetailsLevelActionGroup, - "STEP_NAME": UserActionDetailsLevelStepName, -} - -var mappingUserActionDetailsLevelEnumLowerCase = map[string]UserActionDetailsLevelEnum{ - "action_group": UserActionDetailsLevelActionGroup, - "step_name": UserActionDetailsLevelStepName, -} - -// GetUserActionDetailsLevelEnumValues Enumerates the set of values for UserActionDetailsLevelEnum -func GetUserActionDetailsLevelEnumValues() []UserActionDetailsLevelEnum { - values := make([]UserActionDetailsLevelEnum, 0) - for _, v := range mappingUserActionDetailsLevelEnum { - values = append(values, v) - } - return values -} - -// GetUserActionDetailsLevelEnumStringValues Enumerates the set of values in String for UserActionDetailsLevelEnum -func GetUserActionDetailsLevelEnumStringValues() []string { - return []string{ - "ACTION_GROUP", - "STEP_NAME", - } -} - -// GetMappingUserActionDetailsLevelEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingUserActionDetailsLevelEnum(val string) (UserActionDetailsLevelEnum, bool) { - enum, ok := mappingUserActionDetailsLevelEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/value_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/value_type.go index 65c03d6cae6..65f8b9ffce2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/value_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/value_type.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/variable.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/variable.go deleted file mode 100644 index 42a87db374b..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/variable.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Fleet Application Management Service API -// -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. -// - -package fleetappsmanagement - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// Variable Credential Variable. -type Variable struct { - - // Name of the variable. - Name *string `mandatory:"false" json:"name"` - - // The value corresponding to the variable name. - Value *string `mandatory:"false" json:"value"` -} - -func (m Variable) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m Variable) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/vault_secret_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/vault_secret_credential_details.go index cff11f07840..455c3a316b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/vault_secret_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/vault_secret_credential_details.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request.go index 50b2f7920b9..3aeeff83869 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error.go index c67d13f568b..b6fd7c1105b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error_collection.go index dbe86cc2451..89a65d8cdea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_error_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry.go index 058aab86e7c..d1de0cb51e6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry_collection.go index 938dd8d5031..05303815820 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_log_entry_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource.go index 6d42c087934..0ada71ce1c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource_metadata_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource_metadata_key.go index 2428a3f858b..bb539e072d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource_metadata_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_resource_metadata_key.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary.go index 12a169209a4..9e392e66211 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary_collection.go index c53b7d2a3f6..39eb6d3a430 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/work_request_summary_collection.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_component.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_component.go index b588d4a069d..0afe403a67a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_component.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_component.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group.go index e5ab1617c70..cf3703bee29 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -19,7 +20,7 @@ import ( // WorkflowGroup Workflow Group Layout. type WorkflowGroup struct { - // Name of the group. + // Provide the name of the group. GroupName *string `mandatory:"true" json:"groupName"` // Workflow Group Details. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group_component.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group_component.go index 05a64d2a90d..c4d4aa8d7ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group_component.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_group_component.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement @@ -19,11 +20,11 @@ import ( // WorkflowGroupComponent Workflow Group Component Details. type WorkflowGroupComponent struct { - // Name of the group. + // Provide the name of the group. GroupName *string `mandatory:"true" json:"groupName"` // Tasks within the Group. - // Provide the stepName for all applicable tasks. + // Provide the stepName for all tasks that are applicable Steps []string `mandatory:"false" json:"steps"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_task_component.go b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_task_component.go index 453396a6c7b..a64aaa38d38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_task_component.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fleetappsmanagement/workflow_task_component.go @@ -4,7 +4,8 @@ // Fleet Application Management Service API // -// Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. +// Fleet Application Management Service API. Use this API to for all FAMS related activities. +// To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities // package fleetappsmanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/auth_token.go b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/auth_token.go index 587ce95e64a..28e219cf2f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/auth_token.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/auth_token.go @@ -155,17 +155,6 @@ type AuthToken struct { // - returned: default Description *string `mandatory:"false" json:"description"` - // token - // **Added In:** 2010242156 - // **SCIM++ Properties:** - // - caseExact: true - // - type: string - // - mutability: readOnly - // - required: false - // - returned: default - // - idcsSensitive: hash_sc - Token *string `mandatory:"false" json:"token"` - // The user's credential status. // **Added In:** 2109090424 // **SCIM++ Properties:** diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/customer_secret_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/customer_secret_key.go index 4d7fd6323ed..1638e883fd8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/customer_secret_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/customer_secret_key.go @@ -198,15 +198,6 @@ type CustomerSecretKey struct { // - returned: default AccessKey *string `mandatory:"false" json:"accessKey"` - // The secret key. - // **SCIM++ Properties:** - // - caseExact: true - // - type: string - // - mutability: readOnly - // - required: false - // - returned: default - SecretKey *string `mandatory:"false" json:"secretKey"` - User *CustomerSecretKeyUser `mandatory:"false" json:"user"` UrnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser *ExtensionSelfChangeUser `mandatory:"false" json:"urn:ietf:params:scim:schemas:oracle:idcs:extension:selfChange:User"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/o_auth2_client_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/o_auth2_client_credential.go index 4143dd958ee..9919f50b168 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/o_auth2_client_credential.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/o_auth2_client_credential.go @@ -214,17 +214,6 @@ type OAuth2ClientCredential struct { // - uniqueness: none IsResetSecret *bool `mandatory:"false" json:"isResetSecret"` - // Secret - // **SCIM++ Properties:** - // - caseExact: false - // - type: string - // - mutability: readOnly - // - required: false - // - returned: default - // - idcsScimCompliant: false - // - idcsSensitive: hash_sc - Secret *string `mandatory:"false" json:"secret"` - User *OAuth2ClientCredentialUser `mandatory:"false" json:"user"` UrnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser *ExtensionSelfChangeUser `mandatory:"false" json:"urn:ietf:params:scim:schemas:oracle:idcs:extension:selfChange:User"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/smtp_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/smtp_credential.go index d30b98924a1..e37defc4c6f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/smtp_credential.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identitydomains/smtp_credential.go @@ -189,16 +189,6 @@ type SmtpCredential struct { // - uniqueness: none ExpiresOn *string `mandatory:"false" json:"expiresOn"` - // Password - // **SCIM++ Properties:** - // - caseExact: true - // - type: string - // - mutability: readOnly - // - required: false - // - returned: default - // - idcsSensitive: hash_sc - Password *string `mandatory:"false" json:"password"` - User *SmtpCredentialUser `mandatory:"false" json:"user"` UrnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser *ExtensionSelfChangeUser `mandatory:"false" json:"urn:ietf:params:scim:schemas:oracle:idcs:extension:selfChange:User"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go index bea5393999f..6f1d93b5ff5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go @@ -30,8 +30,9 @@ type CreateListenerDetails struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go index 1e6cddab893..ae1c79b543a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go @@ -33,8 +33,9 @@ type Listener struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go index 9814c72eb9f..914f4a4f592 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go @@ -27,8 +27,9 @@ type ListenerDetails struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go index 87d824005a5..5299af72381 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go @@ -27,8 +27,9 @@ type UpdateListenerDetails struct { // Example: `80` Port *int `mandatory:"true" json:"port"` - // The protocol on which the listener accepts connection requests. The supported protocols are HTTP, HTTP2, TCP, and GRPC. - // You can also use the ListProtocols operation to get a list of valid protocols. + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. // Example: `HTTP` Protocol *string `mandatory:"true" json:"protocol"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go index bdc8a7ae676..f0616ef9a5c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go @@ -27,6 +27,7 @@ type BackendSet struct { // Example: `example_backend_set` Name *string `mandatory:"true" json:"name"` + // The health check policy configuration. HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` // The network load balancer policy for the backend set. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go index dac452a9824..666a7490b92 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go @@ -20,6 +20,8 @@ import ( // Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). // **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type BackendSetDetails struct { + + // The health check policy configuration. HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` // The network load balancer policy for the backend set. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go index cb1886532af..e807c241f5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go @@ -15,10 +15,7 @@ import ( "strings" ) -// BackendSetSummary The configuration of a network load balancer backend set. -// For more information about backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +// BackendSetSummary The representation of BackendSetSummary type BackendSetSummary struct { // A user-friendly name for the backend set that must be unique and cannot be changed. @@ -34,6 +31,7 @@ type BackendSetSummary struct { // An array of backends. Backends []Backend `mandatory:"true" json:"backends"` + // The health check policy configuration. HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` // If this parameter is enabled, the network load balancer preserves the source IP of the packet forwarded to the backend servers. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go index b73698b96c4..f7a5faa926c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go @@ -52,10 +52,6 @@ type CreateListenerDetails struct { // The duration for UDP idle timeout in seconds. // Example: `120` UdpIdleTimeout *int `mandatory:"false" json:"udpIdleTimeout"` - - // The duration for L3IP idle timeout in seconds. - // Example: `200` - L3IpIdleTimeout *int `mandatory:"false" json:"l3IpIdleTimeout"` } func (m CreateListenerDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go index 655a86a6ec8..b2da9e1185b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go @@ -52,10 +52,6 @@ type Listener struct { // The duration for UDP idle timeout in seconds. // Example: `120` UdpIdleTimeout *int `mandatory:"false" json:"udpIdleTimeout"` - - // The duration for L3IP idle timeout in seconds. - // Example: `200` - L3IpIdleTimeout *int `mandatory:"false" json:"l3IpIdleTimeout"` } func (m Listener) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go index 3437ab66579..194c1399f6a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go @@ -52,10 +52,6 @@ type ListenerDetails struct { // The duration for UDP idle timeout in seconds. // Example: `120` UdpIdleTimeout *int `mandatory:"false" json:"udpIdleTimeout"` - - // The duration for L3IP idle timeout in seconds. - // Example: `200` - L3IpIdleTimeout *int `mandatory:"false" json:"l3IpIdleTimeout"` } func (m ListenerDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go index f77bb18e515..14afdbfea60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go @@ -22,7 +22,6 @@ const ( ListenerProtocolsTcp ListenerProtocolsEnum = "TCP" ListenerProtocolsUdp ListenerProtocolsEnum = "UDP" ListenerProtocolsTcpAndUdp ListenerProtocolsEnum = "TCP_AND_UDP" - ListenerProtocolsL3Ip ListenerProtocolsEnum = "L3IP" ) var mappingListenerProtocolsEnum = map[string]ListenerProtocolsEnum{ @@ -30,7 +29,6 @@ var mappingListenerProtocolsEnum = map[string]ListenerProtocolsEnum{ "TCP": ListenerProtocolsTcp, "UDP": ListenerProtocolsUdp, "TCP_AND_UDP": ListenerProtocolsTcpAndUdp, - "L3IP": ListenerProtocolsL3Ip, } var mappingListenerProtocolsEnumLowerCase = map[string]ListenerProtocolsEnum{ @@ -38,7 +36,6 @@ var mappingListenerProtocolsEnumLowerCase = map[string]ListenerProtocolsEnum{ "tcp": ListenerProtocolsTcp, "udp": ListenerProtocolsUdp, "tcp_and_udp": ListenerProtocolsTcpAndUdp, - "l3ip": ListenerProtocolsL3Ip, } // GetListenerProtocolsEnumValues Enumerates the set of values for ListenerProtocolsEnum @@ -57,7 +54,6 @@ func GetListenerProtocolsEnumStringValues() []string { "TCP", "UDP", "TCP_AND_UDP", - "L3IP", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go index f50b9d26a9c..a2f8f8e26d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go @@ -52,10 +52,6 @@ type ListenerSummary struct { // The duration for UDP idle timeout in seconds. // Example: `120` UdpIdleTimeout *int `mandatory:"false" json:"udpIdleTimeout"` - - // The duration for L3IP idle timeout in seconds. - // Example: `200` - L3IpIdleTimeout *int `mandatory:"false" json:"l3IpIdleTimeout"` } func (m ListenerSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go index 92dc5380a61..7d16a10bcc3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go @@ -22,7 +22,6 @@ const ( NetworkLoadBalancersProtocolSummaryTcp NetworkLoadBalancersProtocolSummaryEnum = "TCP" NetworkLoadBalancersProtocolSummaryUdp NetworkLoadBalancersProtocolSummaryEnum = "UDP" NetworkLoadBalancersProtocolSummaryTcpAndUdp NetworkLoadBalancersProtocolSummaryEnum = "TCP_AND_UDP" - NetworkLoadBalancersProtocolSummaryL3Ip NetworkLoadBalancersProtocolSummaryEnum = "L3IP" ) var mappingNetworkLoadBalancersProtocolSummaryEnum = map[string]NetworkLoadBalancersProtocolSummaryEnum{ @@ -30,7 +29,6 @@ var mappingNetworkLoadBalancersProtocolSummaryEnum = map[string]NetworkLoadBalan "TCP": NetworkLoadBalancersProtocolSummaryTcp, "UDP": NetworkLoadBalancersProtocolSummaryUdp, "TCP_AND_UDP": NetworkLoadBalancersProtocolSummaryTcpAndUdp, - "L3IP": NetworkLoadBalancersProtocolSummaryL3Ip, } var mappingNetworkLoadBalancersProtocolSummaryEnumLowerCase = map[string]NetworkLoadBalancersProtocolSummaryEnum{ @@ -38,7 +36,6 @@ var mappingNetworkLoadBalancersProtocolSummaryEnumLowerCase = map[string]Network "tcp": NetworkLoadBalancersProtocolSummaryTcp, "udp": NetworkLoadBalancersProtocolSummaryUdp, "tcp_and_udp": NetworkLoadBalancersProtocolSummaryTcpAndUdp, - "l3ip": NetworkLoadBalancersProtocolSummaryL3Ip, } // GetNetworkLoadBalancersProtocolSummaryEnumValues Enumerates the set of values for NetworkLoadBalancersProtocolSummaryEnum @@ -57,7 +54,6 @@ func GetNetworkLoadBalancersProtocolSummaryEnumStringValues() []string { "TCP", "UDP", "TCP_AND_UDP", - "L3IP", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go index fdc59ed7dbc..e0f1ff5a3b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go @@ -48,10 +48,6 @@ type UpdateListenerDetails struct { // The duration for UDP idle timeout in seconds. // Example: `120` UdpIdleTimeout *int `mandatory:"false" json:"udpIdleTimeout"` - - // The duration for L3IP idle timeout in seconds. - // Example: `200` - L3IpIdleTimeout *int `mandatory:"false" json:"l3IpIdleTimeout"` } func (m UpdateListenerDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_accessrequests_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_accessrequests_client.go index f3c5bf275cb..424a4c32ae8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_accessrequests_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_accessrequests_client.go @@ -147,7 +147,7 @@ func (client AccessRequestsClient) approveAccessRequest(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ApproveAccessRequest" err = common.PostProcessServiceError(err, "AccessRequests", "ApproveAccessRequest", apiReferenceLink) return response, err } @@ -205,7 +205,7 @@ func (client AccessRequestsClient) getAccessRequest(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/GetAccessRequest" err = common.PostProcessServiceError(err, "AccessRequests", "GetAccessRequest", apiReferenceLink) return response, err } @@ -263,7 +263,7 @@ func (client AccessRequestsClient) getAuditLogReport(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AuditLogReport/GetAuditLogReport" err = common.PostProcessServiceError(err, "AccessRequests", "GetAuditLogReport", apiReferenceLink) return response, err } @@ -326,7 +326,7 @@ func (client AccessRequestsClient) interactionRequest(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/InteractionRequest" err = common.PostProcessServiceError(err, "AccessRequests", "InteractionRequest", apiReferenceLink) return response, err } @@ -384,7 +384,7 @@ func (client AccessRequestsClient) listAccessRequestHistories(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequestHistories" err = common.PostProcessServiceError(err, "AccessRequests", "ListAccessRequestHistories", apiReferenceLink) return response, err } @@ -442,7 +442,7 @@ func (client AccessRequestsClient) listAccessRequests(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequests" err = common.PostProcessServiceError(err, "AccessRequests", "ListAccessRequests", apiReferenceLink) return response, err } @@ -500,7 +500,7 @@ func (client AccessRequestsClient) listInteractions(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListInteractions" err = common.PostProcessServiceError(err, "AccessRequests", "ListInteractions", apiReferenceLink) return response, err } @@ -563,7 +563,7 @@ func (client AccessRequestsClient) rejectAccessRequest(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RejectAccessRequest" err = common.PostProcessServiceError(err, "AccessRequests", "RejectAccessRequest", apiReferenceLink) return response, err } @@ -626,7 +626,7 @@ func (client AccessRequestsClient) reviewAccessRequest(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ReviewAccessRequest" err = common.PostProcessServiceError(err, "AccessRequests", "ReviewAccessRequest", apiReferenceLink) return response, err } @@ -689,7 +689,7 @@ func (client AccessRequestsClient) revokeAccessRequest(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RevokeAccessRequest" err = common.PostProcessServiceError(err, "AccessRequests", "RevokeAccessRequest", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatoractions_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatoractions_client.go index b413ca57aa7..6687364007b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatoractions_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatoractions_client.go @@ -142,7 +142,7 @@ func (client OperatorActionsClient) getOperatorAction(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/GetOperatorAction" err = common.PostProcessServiceError(err, "OperatorActions", "GetOperatorAction", apiReferenceLink) return response, err } @@ -200,7 +200,7 @@ func (client OperatorActionsClient) listOperatorActions(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/ListOperatorActions" err = common.PostProcessServiceError(err, "OperatorActions", "ListOperatorActions", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrol_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrol_client.go index 89ad306561b..2b51302e031 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrol_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrol_client.go @@ -147,7 +147,7 @@ func (client OperatorControlClient) changeOperatorControlCompartment(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ChangeOperatorControlCompartment" err = common.PostProcessServiceError(err, "OperatorControl", "ChangeOperatorControlCompartment", apiReferenceLink) return response, err } @@ -210,7 +210,7 @@ func (client OperatorControlClient) createOperatorControl(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/CreateOperatorControl" err = common.PostProcessServiceError(err, "OperatorControl", "CreateOperatorControl", apiReferenceLink) return response, err } @@ -272,7 +272,7 @@ func (client OperatorControlClient) deleteOperatorControl(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/DeleteOperatorControl" err = common.PostProcessServiceError(err, "OperatorControl", "DeleteOperatorControl", apiReferenceLink) return response, err } @@ -330,7 +330,7 @@ func (client OperatorControlClient) getOperatorControl(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/GetOperatorControl" err = common.PostProcessServiceError(err, "OperatorControl", "GetOperatorControl", apiReferenceLink) return response, err } @@ -388,7 +388,7 @@ func (client OperatorControlClient) listOperatorControls(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ListOperatorControls" err = common.PostProcessServiceError(err, "OperatorControl", "ListOperatorControls", apiReferenceLink) return response, err } @@ -446,7 +446,7 @@ func (client OperatorControlClient) updateOperatorControl(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/UpdateOperatorControl" err = common.PostProcessServiceError(err, "OperatorControl", "UpdateOperatorControl", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrolassignment_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrolassignment_client.go index 66514381913..135ae8313a1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrolassignment_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/operatoraccesscontrol/operatoraccesscontrol_operatorcontrolassignment_client.go @@ -147,7 +147,7 @@ func (client OperatorControlAssignmentClient) changeOperatorControlAssignmentCom defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ChangeOperatorControlAssignmentCompartment" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "ChangeOperatorControlAssignmentCompartment", apiReferenceLink) return response, err } @@ -210,7 +210,7 @@ func (client OperatorControlAssignmentClient) createOperatorControlAssignment(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/CreateOperatorControlAssignment" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "CreateOperatorControlAssignment", apiReferenceLink) return response, err } @@ -268,7 +268,7 @@ func (client OperatorControlAssignmentClient) deleteOperatorControlAssignment(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/DeleteOperatorControlAssignment" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "DeleteOperatorControlAssignment", apiReferenceLink) return response, err } @@ -326,7 +326,7 @@ func (client OperatorControlAssignmentClient) getAssignmentValidationStatus(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetAssignmentValidationStatus" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "GetAssignmentValidationStatus", apiReferenceLink) return response, err } @@ -384,7 +384,7 @@ func (client OperatorControlAssignmentClient) getOperatorControlAssignment(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetOperatorControlAssignment" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "GetOperatorControlAssignment", apiReferenceLink) return response, err } @@ -442,7 +442,7 @@ func (client OperatorControlAssignmentClient) listOperatorControlAssignments(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ListOperatorControlAssignments" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "ListOperatorControlAssignments", apiReferenceLink) return response, err } @@ -500,7 +500,7 @@ func (client OperatorControlAssignmentClient) updateOperatorControlAssignment(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/UpdateOperatorControlAssignment" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "UpdateOperatorControlAssignment", apiReferenceLink) return response, err } @@ -563,7 +563,7 @@ func (client OperatorControlAssignmentClient) validateOperatorAssignment(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ValidateOperatorAssignment" err = common.PostProcessServiceError(err, "OperatorControlAssignment", "ValidateOperatorAssignment", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go index f5e4835bb51..a5ac2f047f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go @@ -70,10 +70,6 @@ func (m *hostconfigurationmetricgroup) UnmarshalPolymorphicJSON(data []byte) (in mm := HostFilesystemConfiguration{} err = json.Unmarshal(data, &mm) return mm, err - case "HOST_CONTAINERS": - mm := HostContainers{} - err = json.Unmarshal(data, &mm) - return mm, err case "HOST_NETWORK_CONFIGURATION": mm := HostNetworkConfiguration{} err = json.Unmarshal(data, &mm) @@ -139,7 +135,6 @@ const ( HostConfigurationMetricGroupMetricNameEntites HostConfigurationMetricGroupMetricNameEnum = "HOST_ENTITES" HostConfigurationMetricGroupMetricNameFilesystemConfiguration HostConfigurationMetricGroupMetricNameEnum = "HOST_FILESYSTEM_CONFIGURATION" HostConfigurationMetricGroupMetricNameGpuConfiguration HostConfigurationMetricGroupMetricNameEnum = "HOST_GPU_CONFIGURATION" - HostConfigurationMetricGroupMetricNameContainers HostConfigurationMetricGroupMetricNameEnum = "HOST_CONTAINERS" ) var mappingHostConfigurationMetricGroupMetricNameEnum = map[string]HostConfigurationMetricGroupMetricNameEnum{ @@ -152,7 +147,6 @@ var mappingHostConfigurationMetricGroupMetricNameEnum = map[string]HostConfigura "HOST_ENTITES": HostConfigurationMetricGroupMetricNameEntites, "HOST_FILESYSTEM_CONFIGURATION": HostConfigurationMetricGroupMetricNameFilesystemConfiguration, "HOST_GPU_CONFIGURATION": HostConfigurationMetricGroupMetricNameGpuConfiguration, - "HOST_CONTAINERS": HostConfigurationMetricGroupMetricNameContainers, } var mappingHostConfigurationMetricGroupMetricNameEnumLowerCase = map[string]HostConfigurationMetricGroupMetricNameEnum{ @@ -165,7 +159,6 @@ var mappingHostConfigurationMetricGroupMetricNameEnumLowerCase = map[string]Host "host_entites": HostConfigurationMetricGroupMetricNameEntites, "host_filesystem_configuration": HostConfigurationMetricGroupMetricNameFilesystemConfiguration, "host_gpu_configuration": HostConfigurationMetricGroupMetricNameGpuConfiguration, - "host_containers": HostConfigurationMetricGroupMetricNameContainers, } // GetHostConfigurationMetricGroupMetricNameEnumValues Enumerates the set of values for HostConfigurationMetricGroupMetricNameEnum @@ -189,7 +182,6 @@ func GetHostConfigurationMetricGroupMetricNameEnumStringValues() []string { "HOST_ENTITES", "HOST_FILESYSTEM_CONFIGURATION", "HOST_GPU_CONFIGURATION", - "HOST_CONTAINERS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_containers.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_containers.go index 7004897bf50..a7c11d528f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_containers.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_containers.go @@ -34,12 +34,6 @@ type HostContainers struct { // Container Image ContainerImage *string `mandatory:"false" json:"containerImage"` - // Container Image Tag (version) - ContainerImageTag *string `mandatory:"false" json:"containerImageTag"` - - // Container Image Digest - ContainerImageDigest *string `mandatory:"false" json:"containerImageDigest"` - // Container open ports ContainerPorts *string `mandatory:"false" json:"containerPorts"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_io_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_io_statistics.go deleted file mode 100644 index a3b4c7a158c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_io_statistics.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Ops Insights API -// -// Use the Ops Insights API to perform data extraction operations to obtain database -// resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). -// - -package opsi - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// HostIoStatistics Contains io statistics. -type HostIoStatistics struct { - - // Total amount used of the resource metric type (CPU, STORAGE). - Usage *float64 `mandatory:"true" json:"usage"` - - // The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases. - Capacity *float64 `mandatory:"true" json:"capacity"` - - // Resource utilization in percentage. - UtilizationPercent *float64 `mandatory:"true" json:"utilizationPercent"` - - // Change in resource utilization in percentage - UsageChangePercent *float64 `mandatory:"true" json:"usageChangePercent"` - - DiskReadInMBs *float64 `mandatory:"false" json:"diskReadInMBs"` - - DiskWriteInMBs *float64 `mandatory:"false" json:"diskWriteInMBs"` - - DiskIops *float64 `mandatory:"false" json:"diskIops"` -} - -// GetUsage returns Usage -func (m HostIoStatistics) GetUsage() *float64 { - return m.Usage -} - -// GetCapacity returns Capacity -func (m HostIoStatistics) GetCapacity() *float64 { - return m.Capacity -} - -// GetUtilizationPercent returns UtilizationPercent -func (m HostIoStatistics) GetUtilizationPercent() *float64 { - return m.UtilizationPercent -} - -// GetUsageChangePercent returns UsageChangePercent -func (m HostIoStatistics) GetUsageChangePercent() *float64 { - return m.UsageChangePercent -} - -func (m HostIoStatistics) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m HostIoStatistics) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m HostIoStatistics) MarshalJSON() (buff []byte, e error) { - type MarshalTypeHostIoStatistics HostIoStatistics - s := struct { - DiscriminatorParam string `json:"resourceName"` - MarshalTypeHostIoStatistics - }{ - "HOST_IO_STATISTICS", - (MarshalTypeHostIoStatistics)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go index a1da12f0a62..f5c40596ced 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go @@ -70,6 +70,10 @@ func (m *hostperformancemetricgroup) UnmarshalPolymorphicJSON(data []byte) (inte mm := HostCpuUsage{} err = json.Unmarshal(data, &mm) return mm, err + case "HOST_CONTAINERS": + mm := HostContainers{} + err = json.Unmarshal(data, &mm) + return mm, err case "HOST_GPU_USAGE": mm := HostGpuUsage{} err = json.Unmarshal(data, &mm) @@ -130,6 +134,7 @@ const ( HostPerformanceMetricGroupMetricNameGpuUsage HostPerformanceMetricGroupMetricNameEnum = "HOST_GPU_USAGE" HostPerformanceMetricGroupMetricNameGpuProcesses HostPerformanceMetricGroupMetricNameEnum = "HOST_GPU_PROCESSES" HostPerformanceMetricGroupMetricNameIoUsage HostPerformanceMetricGroupMetricNameEnum = "HOST_IO_USAGE" + HostPerformanceMetricGroupMetricNameContainers HostPerformanceMetricGroupMetricNameEnum = "HOST_CONTAINERS" ) var mappingHostPerformanceMetricGroupMetricNameEnum = map[string]HostPerformanceMetricGroupMetricNameEnum{ @@ -141,6 +146,7 @@ var mappingHostPerformanceMetricGroupMetricNameEnum = map[string]HostPerformance "HOST_GPU_USAGE": HostPerformanceMetricGroupMetricNameGpuUsage, "HOST_GPU_PROCESSES": HostPerformanceMetricGroupMetricNameGpuProcesses, "HOST_IO_USAGE": HostPerformanceMetricGroupMetricNameIoUsage, + "HOST_CONTAINERS": HostPerformanceMetricGroupMetricNameContainers, } var mappingHostPerformanceMetricGroupMetricNameEnumLowerCase = map[string]HostPerformanceMetricGroupMetricNameEnum{ @@ -152,6 +158,7 @@ var mappingHostPerformanceMetricGroupMetricNameEnumLowerCase = map[string]HostPe "host_gpu_usage": HostPerformanceMetricGroupMetricNameGpuUsage, "host_gpu_processes": HostPerformanceMetricGroupMetricNameGpuProcesses, "host_io_usage": HostPerformanceMetricGroupMetricNameIoUsage, + "host_containers": HostPerformanceMetricGroupMetricNameContainers, } // GetHostPerformanceMetricGroupMetricNameEnumValues Enumerates the set of values for HostPerformanceMetricGroupMetricNameEnum @@ -174,6 +181,7 @@ func GetHostPerformanceMetricGroupMetricNameEnumStringValues() []string { "HOST_GPU_USAGE", "HOST_GPU_PROCESSES", "HOST_IO_USAGE", + "HOST_CONTAINERS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go index cb8fe76be8c..012651263ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go @@ -84,10 +84,6 @@ func (m *hostresourcestatistics) UnmarshalPolymorphicJSON(data []byte) (interfac mm := HostMemoryStatistics{} err = json.Unmarshal(data, &mm) return mm, err - case "HOST_IO_STATISTICS": - mm := HostIoStatistics{} - err = json.Unmarshal(data, &mm) - return mm, err case "HOST_CPU_STATISTICS": mm := HostCpuStatistics{} err = json.Unmarshal(data, &mm) @@ -143,7 +139,6 @@ const ( HostResourceStatisticsResourceNameMemoryStatistics HostResourceStatisticsResourceNameEnum = "HOST_MEMORY_STATISTICS" HostResourceStatisticsResourceNameStorageStatistics HostResourceStatisticsResourceNameEnum = "HOST_STORAGE_STATISTICS" HostResourceStatisticsResourceNameNetworkStatistics HostResourceStatisticsResourceNameEnum = "HOST_NETWORK_STATISTICS" - HostResourceStatisticsResourceNameIoStatistics HostResourceStatisticsResourceNameEnum = "HOST_IO_STATISTICS" ) var mappingHostResourceStatisticsResourceNameEnum = map[string]HostResourceStatisticsResourceNameEnum{ @@ -151,7 +146,6 @@ var mappingHostResourceStatisticsResourceNameEnum = map[string]HostResourceStati "HOST_MEMORY_STATISTICS": HostResourceStatisticsResourceNameMemoryStatistics, "HOST_STORAGE_STATISTICS": HostResourceStatisticsResourceNameStorageStatistics, "HOST_NETWORK_STATISTICS": HostResourceStatisticsResourceNameNetworkStatistics, - "HOST_IO_STATISTICS": HostResourceStatisticsResourceNameIoStatistics, } var mappingHostResourceStatisticsResourceNameEnumLowerCase = map[string]HostResourceStatisticsResourceNameEnum{ @@ -159,7 +153,6 @@ var mappingHostResourceStatisticsResourceNameEnumLowerCase = map[string]HostReso "host_memory_statistics": HostResourceStatisticsResourceNameMemoryStatistics, "host_storage_statistics": HostResourceStatisticsResourceNameStorageStatistics, "host_network_statistics": HostResourceStatisticsResourceNameNetworkStatistics, - "host_io_statistics": HostResourceStatisticsResourceNameIoStatistics, } // GetHostResourceStatisticsResourceNameEnumValues Enumerates the set of values for HostResourceStatisticsResourceNameEnum @@ -178,7 +171,6 @@ func GetHostResourceStatisticsResourceNameEnumStringValues() []string { "HOST_MEMORY_STATISTICS", "HOST_STORAGE_STATISTICS", "HOST_NETWORK_STATISTICS", - "HOST_IO_STATISTICS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/io_usage_trend.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/io_usage_trend.go deleted file mode 100644 index 06c420118a1..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/io_usage_trend.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Ops Insights API -// -// Use the Ops Insights API to perform data extraction operations to obtain database -// resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). -// - -package opsi - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// IoUsageTrend Usage data for IO interface per usage unit. -type IoUsageTrend struct { - - // The timestamp in which the current sampling period ends in RFC 3339 format. - EndTimestamp *common.SDKTime `mandatory:"true" json:"endTimestamp"` - - // MBs Read. - DiskBytesReadInMBs *float64 `mandatory:"true" json:"diskBytesReadInMBs"` - - // MBs Written. - DiskBytesWrittenInMBs *float64 `mandatory:"true" json:"diskBytesWrittenInMBs"` - - // Read IO operations per second. - DiskIopsRead *float64 `mandatory:"true" json:"diskIopsRead"` - - // Write IO operations per second. - DiskIopsWritten *float64 `mandatory:"true" json:"diskIopsWritten"` - - // IO operations per second. - DiskIops *float64 `mandatory:"true" json:"diskIops"` -} - -func (m IoUsageTrend) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m IoUsageTrend) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/io_usage_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/io_usage_trend_aggregation.go deleted file mode 100644 index 70904a17c3f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/io_usage_trend_aggregation.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Ops Insights API -// -// Use the Ops Insights API to perform data extraction operations to obtain database -// resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). -// - -package opsi - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// IoUsageTrendAggregation Usage data per io interface. -type IoUsageTrendAggregation struct { - - // Mount point is specialized NTFS filesystem object. - MountPoint *string `mandatory:"true" json:"mountPoint"` - - // List of usage data samples for a IO interface. - UsageData []IoUsageTrend `mandatory:"true" json:"usageData"` -} - -func (m IoUsageTrendAggregation) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m IoUsageTrendAggregation) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go index 3a968d2ede8..309d4b081f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go @@ -9133,64 +9133,6 @@ func (client OperationsInsightsClient) summarizeHostInsightHostRecommendation(ct return response, err } -// SummarizeHostInsightIoUsageTrend Returns response with usage time series data with breakdown by IO interface for the time period specified. -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/SummarizeHostInsightIoUsageTrend.go.html to see an example of how to use SummarizeHostInsightIoUsageTrend API. -// A default retry strategy applies to this operation SummarizeHostInsightIoUsageTrend() -func (client OperationsInsightsClient) SummarizeHostInsightIoUsageTrend(ctx context.Context, request SummarizeHostInsightIoUsageTrendRequest) (response SummarizeHostInsightIoUsageTrendResponse, err error) { - var ociResponse common.OCIResponse - policy := common.DefaultRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.summarizeHostInsightIoUsageTrend, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = SummarizeHostInsightIoUsageTrendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = SummarizeHostInsightIoUsageTrendResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(SummarizeHostInsightIoUsageTrendResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into SummarizeHostInsightIoUsageTrendResponse") - } - return -} - -// summarizeHostInsightIoUsageTrend implements the OCIOperation interface (enables retrying operations) -func (client OperationsInsightsClient) summarizeHostInsightIoUsageTrend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/hostInsights/ioUsageTrend", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response SummarizeHostInsightIoUsageTrendResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightIoUsageTrend" - err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightIoUsageTrend", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // SummarizeHostInsightNetworkUsageTrend Returns response with usage time series data with breakdown by network interface for the time period specified. // // # See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go index ddb3eec95a0..f0595338b8c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go @@ -112,7 +112,6 @@ const ( SummarizeHostInsightHostRecommendationAggregationResourceMetricNetwork SummarizeHostInsightHostRecommendationAggregationResourceMetricEnum = "NETWORK" SummarizeHostInsightHostRecommendationAggregationResourceMetricGpuUtilization SummarizeHostInsightHostRecommendationAggregationResourceMetricEnum = "GPU_UTILIZATION" SummarizeHostInsightHostRecommendationAggregationResourceMetricGpuMemoryUsage SummarizeHostInsightHostRecommendationAggregationResourceMetricEnum = "GPU_MEMORY_USAGE" - SummarizeHostInsightHostRecommendationAggregationResourceMetricIo SummarizeHostInsightHostRecommendationAggregationResourceMetricEnum = "IO" ) var mappingSummarizeHostInsightHostRecommendationAggregationResourceMetricEnum = map[string]SummarizeHostInsightHostRecommendationAggregationResourceMetricEnum{ @@ -123,7 +122,6 @@ var mappingSummarizeHostInsightHostRecommendationAggregationResourceMetricEnum = "NETWORK": SummarizeHostInsightHostRecommendationAggregationResourceMetricNetwork, "GPU_UTILIZATION": SummarizeHostInsightHostRecommendationAggregationResourceMetricGpuUtilization, "GPU_MEMORY_USAGE": SummarizeHostInsightHostRecommendationAggregationResourceMetricGpuMemoryUsage, - "IO": SummarizeHostInsightHostRecommendationAggregationResourceMetricIo, } var mappingSummarizeHostInsightHostRecommendationAggregationResourceMetricEnumLowerCase = map[string]SummarizeHostInsightHostRecommendationAggregationResourceMetricEnum{ @@ -134,7 +132,6 @@ var mappingSummarizeHostInsightHostRecommendationAggregationResourceMetricEnumLo "network": SummarizeHostInsightHostRecommendationAggregationResourceMetricNetwork, "gpu_utilization": SummarizeHostInsightHostRecommendationAggregationResourceMetricGpuUtilization, "gpu_memory_usage": SummarizeHostInsightHostRecommendationAggregationResourceMetricGpuMemoryUsage, - "io": SummarizeHostInsightHostRecommendationAggregationResourceMetricIo, } // GetSummarizeHostInsightHostRecommendationAggregationResourceMetricEnumValues Enumerates the set of values for SummarizeHostInsightHostRecommendationAggregationResourceMetricEnum @@ -156,7 +153,6 @@ func GetSummarizeHostInsightHostRecommendationAggregationResourceMetricEnumStrin "NETWORK", "GPU_UTILIZATION", "GPU_MEMORY_USAGE", - "IO", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_io_usage_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_io_usage_trend_aggregation_collection.go deleted file mode 100644 index 7b3204a8bae..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_io_usage_trend_aggregation_collection.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Ops Insights API -// -// Use the Ops Insights API to perform data extraction operations to obtain database -// resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). -// - -package opsi - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// SummarizeHostInsightIoUsageTrendAggregationCollection Top level response object. -type SummarizeHostInsightIoUsageTrendAggregationCollection struct { - - // The start timestamp that was passed into the request. - TimeIntervalStart *common.SDKTime `mandatory:"true" json:"timeIntervalStart"` - - // The end timestamp that was passed into the request. - TimeIntervalEnd *common.SDKTime `mandatory:"true" json:"timeIntervalEnd"` - - // Time duration in milliseconds between data points (one hour or one day). - ItemDurationInMs *int64 `mandatory:"true" json:"itemDurationInMs"` - - // Collection of Usage Data with time stamps for all IO interfaces. - Items []IoUsageTrendAggregation `mandatory:"true" json:"items"` -} - -func (m SummarizeHostInsightIoUsageTrendAggregationCollection) String() string { - return common.PointerString(m) -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (m SummarizeHostInsightIoUsageTrendAggregationCollection) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_io_usage_trend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_io_usage_trend_request_response.go deleted file mode 100644 index 8413b1f9610..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_io_usage_trend_request_response.go +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package opsi - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// SummarizeHostInsightIoUsageTrendRequest wrapper for the SummarizeHostInsightIoUsageTrend operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/SummarizeHostInsightIoUsageTrend.go.html to see an example of how to use SummarizeHostInsightIoUsageTrendRequest. -type SummarizeHostInsightIoUsageTrendRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // Required OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host insight resource. - Id *string `mandatory:"true" contributesTo:"query" name:"id"` - - // Specify time period in ISO 8601 format with respect to current time. - // Default is last 30 days represented by P30D. - // If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. - // Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). - AnalysisTimeInterval *string `mandatory:"false" contributesTo:"query" name:"analysisTimeInterval"` - - // Analysis start time in UTC in ISO 8601 format(inclusive). - // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). - // The minimum allowed value is 2 years prior to the current day. - // timeIntervalStart and timeIntervalEnd parameters are used together. - // If analysisTimeInterval is specified, this parameter is ignored. - TimeIntervalStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalStart"` - - // Analysis end time in UTC in ISO 8601 format(exclusive). - // Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). - // timeIntervalStart and timeIntervalEnd are used together. - // If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. - TimeIntervalEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeIntervalEnd"` - - // Optional OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id) - HostId *string `mandatory:"false" contributesTo:"query" name:"hostId"` - - // For list pagination. The value of the `opc-next-page` response header from - // the previous "List" call. For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // For list pagination. The maximum number of results per page, or items to - // return in a paginated "List" call. - // For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // Choose the type of statistic metric data to be used for forecasting. - Statistic SummarizeHostInsightIoUsageTrendStatisticEnum `mandatory:"false" contributesTo:"query" name:"statistic" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Resource Status - Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request SummarizeHostInsightIoUsageTrendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request SummarizeHostInsightIoUsageTrendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - _, err := request.ValidateEnumValue() - if err != nil { - return http.Request{}, err - } - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request SummarizeHostInsightIoUsageTrendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request SummarizeHostInsightIoUsageTrendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateEnumValue returns an error when providing an unsupported enum value -// This function is being called during constructing API request process -// Not recommended for calling this function directly -func (request SummarizeHostInsightIoUsageTrendRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingSummarizeHostInsightIoUsageTrendStatisticEnum(string(request.Statistic)); !ok && request.Statistic != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Statistic: %s. Supported values are: %s.", request.Statistic, strings.Join(GetSummarizeHostInsightIoUsageTrendStatisticEnumStringValues(), ","))) - } - for _, val := range request.Status { - if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) - } - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// SummarizeHostInsightIoUsageTrendResponse wrapper for the SummarizeHostInsightIoUsageTrend operation -type SummarizeHostInsightIoUsageTrendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of SummarizeHostInsightIoUsageTrendAggregationCollection instances - SummarizeHostInsightIoUsageTrendAggregationCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response SummarizeHostInsightIoUsageTrendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response SummarizeHostInsightIoUsageTrendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// SummarizeHostInsightIoUsageTrendStatisticEnum Enum with underlying type: string -type SummarizeHostInsightIoUsageTrendStatisticEnum string - -// Set of constants representing the allowable values for SummarizeHostInsightIoUsageTrendStatisticEnum -const ( - SummarizeHostInsightIoUsageTrendStatisticAvg SummarizeHostInsightIoUsageTrendStatisticEnum = "AVG" - SummarizeHostInsightIoUsageTrendStatisticMax SummarizeHostInsightIoUsageTrendStatisticEnum = "MAX" -) - -var mappingSummarizeHostInsightIoUsageTrendStatisticEnum = map[string]SummarizeHostInsightIoUsageTrendStatisticEnum{ - "AVG": SummarizeHostInsightIoUsageTrendStatisticAvg, - "MAX": SummarizeHostInsightIoUsageTrendStatisticMax, -} - -var mappingSummarizeHostInsightIoUsageTrendStatisticEnumLowerCase = map[string]SummarizeHostInsightIoUsageTrendStatisticEnum{ - "avg": SummarizeHostInsightIoUsageTrendStatisticAvg, - "max": SummarizeHostInsightIoUsageTrendStatisticMax, -} - -// GetSummarizeHostInsightIoUsageTrendStatisticEnumValues Enumerates the set of values for SummarizeHostInsightIoUsageTrendStatisticEnum -func GetSummarizeHostInsightIoUsageTrendStatisticEnumValues() []SummarizeHostInsightIoUsageTrendStatisticEnum { - values := make([]SummarizeHostInsightIoUsageTrendStatisticEnum, 0) - for _, v := range mappingSummarizeHostInsightIoUsageTrendStatisticEnum { - values = append(values, v) - } - return values -} - -// GetSummarizeHostInsightIoUsageTrendStatisticEnumStringValues Enumerates the set of values in String for SummarizeHostInsightIoUsageTrendStatisticEnum -func GetSummarizeHostInsightIoUsageTrendStatisticEnumStringValues() []string { - return []string{ - "AVG", - "MAX", - } -} - -// GetMappingSummarizeHostInsightIoUsageTrendStatisticEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingSummarizeHostInsightIoUsageTrendStatisticEnum(val string) (SummarizeHostInsightIoUsageTrendStatisticEnum, bool) { - enum, ok := mappingSummarizeHostInsightIoUsageTrendStatisticEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go index b3a7564026e..dc65e64c31c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go @@ -79,7 +79,6 @@ const ( SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricNetwork SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum = "NETWORK" SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricGpuUtilization SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum = "GPU_UTILIZATION" SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricGpuMemoryUsage SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum = "GPU_MEMORY_USAGE" - SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricIo SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum = "IO" ) var mappingSummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum = map[string]SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum{ @@ -90,7 +89,6 @@ var mappingSummarizeHostInsightResourceCapacityTrendAggregationCollectionResourc "NETWORK": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricNetwork, "GPU_UTILIZATION": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricGpuUtilization, "GPU_MEMORY_USAGE": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricGpuMemoryUsage, - "IO": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricIo, } var mappingSummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnumLowerCase = map[string]SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum{ @@ -101,7 +99,6 @@ var mappingSummarizeHostInsightResourceCapacityTrendAggregationCollectionResourc "network": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricNetwork, "gpu_utilization": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricGpuUtilization, "gpu_memory_usage": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricGpuMemoryUsage, - "io": SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricIo, } // GetSummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnumValues Enumerates the set of values for SummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMetricEnum @@ -123,7 +120,6 @@ func GetSummarizeHostInsightResourceCapacityTrendAggregationCollectionResourceMe "NETWORK", "GPU_UTILIZATION", "GPU_MEMORY_USAGE", - "IO", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go index f75c7b9dd30..ed660a5438c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go @@ -88,7 +88,6 @@ const ( SummarizeHostInsightResourceForecastTrendAggregationResourceMetricNetwork SummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum = "NETWORK" SummarizeHostInsightResourceForecastTrendAggregationResourceMetricGpuUtilization SummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum = "GPU_UTILIZATION" SummarizeHostInsightResourceForecastTrendAggregationResourceMetricGpuMemoryUsage SummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum = "GPU_MEMORY_USAGE" - SummarizeHostInsightResourceForecastTrendAggregationResourceMetricIo SummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum = "IO" ) var mappingSummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum = map[string]SummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum{ @@ -99,7 +98,6 @@ var mappingSummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnu "NETWORK": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricNetwork, "GPU_UTILIZATION": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricGpuUtilization, "GPU_MEMORY_USAGE": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricGpuMemoryUsage, - "IO": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricIo, } var mappingSummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnumLowerCase = map[string]SummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum{ @@ -110,7 +108,6 @@ var mappingSummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnu "network": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricNetwork, "gpu_utilization": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricGpuUtilization, "gpu_memory_usage": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricGpuMemoryUsage, - "io": SummarizeHostInsightResourceForecastTrendAggregationResourceMetricIo, } // GetSummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnumValues Enumerates the set of values for SummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnum @@ -132,7 +129,6 @@ func GetSummarizeHostInsightResourceForecastTrendAggregationResourceMetricEnumSt "NETWORK", "GPU_UTILIZATION", "GPU_MEMORY_USAGE", - "IO", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go index 88787928f38..87bb0bbfc13 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go @@ -76,7 +76,6 @@ const ( SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricNetwork SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum = "NETWORK" SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricGpuUtilization SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum = "GPU_UTILIZATION" SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricGpuMemoryUsage SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum = "GPU_MEMORY_USAGE" - SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricIo SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum = "IO" ) var mappingSummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum = map[string]SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum{ @@ -87,7 +86,6 @@ var mappingSummarizeHostInsightResourceStatisticsAggregationCollectionResourceMe "NETWORK": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricNetwork, "GPU_UTILIZATION": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricGpuUtilization, "GPU_MEMORY_USAGE": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricGpuMemoryUsage, - "IO": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricIo, } var mappingSummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnumLowerCase = map[string]SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum{ @@ -98,7 +96,6 @@ var mappingSummarizeHostInsightResourceStatisticsAggregationCollectionResourceMe "network": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricNetwork, "gpu_utilization": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricGpuUtilization, "gpu_memory_usage": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricGpuMemoryUsage, - "io": SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricIo, } // GetSummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnumValues Enumerates the set of values for SummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetricEnum @@ -120,7 +117,6 @@ func GetSummarizeHostInsightResourceStatisticsAggregationCollectionResourceMetri "NETWORK", "GPU_UTILIZATION", "GPU_MEMORY_USAGE", - "IO", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go index 2c6ffe90534..64bcd6d0f22 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go @@ -76,7 +76,6 @@ const ( SummarizeHostInsightResourceUsageAggregationResourceMetricNetwork SummarizeHostInsightResourceUsageAggregationResourceMetricEnum = "NETWORK" SummarizeHostInsightResourceUsageAggregationResourceMetricGpuUtilization SummarizeHostInsightResourceUsageAggregationResourceMetricEnum = "GPU_UTILIZATION" SummarizeHostInsightResourceUsageAggregationResourceMetricGpuMemoryUsage SummarizeHostInsightResourceUsageAggregationResourceMetricEnum = "GPU_MEMORY_USAGE" - SummarizeHostInsightResourceUsageAggregationResourceMetricIo SummarizeHostInsightResourceUsageAggregationResourceMetricEnum = "IO" ) var mappingSummarizeHostInsightResourceUsageAggregationResourceMetricEnum = map[string]SummarizeHostInsightResourceUsageAggregationResourceMetricEnum{ @@ -87,7 +86,6 @@ var mappingSummarizeHostInsightResourceUsageAggregationResourceMetricEnum = map[ "NETWORK": SummarizeHostInsightResourceUsageAggregationResourceMetricNetwork, "GPU_UTILIZATION": SummarizeHostInsightResourceUsageAggregationResourceMetricGpuUtilization, "GPU_MEMORY_USAGE": SummarizeHostInsightResourceUsageAggregationResourceMetricGpuMemoryUsage, - "IO": SummarizeHostInsightResourceUsageAggregationResourceMetricIo, } var mappingSummarizeHostInsightResourceUsageAggregationResourceMetricEnumLowerCase = map[string]SummarizeHostInsightResourceUsageAggregationResourceMetricEnum{ @@ -98,7 +96,6 @@ var mappingSummarizeHostInsightResourceUsageAggregationResourceMetricEnumLowerCa "network": SummarizeHostInsightResourceUsageAggregationResourceMetricNetwork, "gpu_utilization": SummarizeHostInsightResourceUsageAggregationResourceMetricGpuUtilization, "gpu_memory_usage": SummarizeHostInsightResourceUsageAggregationResourceMetricGpuMemoryUsage, - "io": SummarizeHostInsightResourceUsageAggregationResourceMetricIo, } // GetSummarizeHostInsightResourceUsageAggregationResourceMetricEnumValues Enumerates the set of values for SummarizeHostInsightResourceUsageAggregationResourceMetricEnum @@ -120,7 +117,6 @@ func GetSummarizeHostInsightResourceUsageAggregationResourceMetricEnumStringValu "NETWORK", "GPU_UTILIZATION", "GPU_MEMORY_USAGE", - "IO", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go index 750806cc5ef..e79bd13d3f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go @@ -73,7 +73,6 @@ const ( SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricNetwork SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum = "NETWORK" SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricGpuUtilization SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum = "GPU_UTILIZATION" SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricGpuMemoryUsage SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum = "GPU_MEMORY_USAGE" - SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricIo SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum = "IO" ) var mappingSummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum = map[string]SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum{ @@ -84,7 +83,6 @@ var mappingSummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMe "NETWORK": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricNetwork, "GPU_UTILIZATION": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricGpuUtilization, "GPU_MEMORY_USAGE": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricGpuMemoryUsage, - "IO": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricIo, } var mappingSummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnumLowerCase = map[string]SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum{ @@ -95,7 +93,6 @@ var mappingSummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMe "network": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricNetwork, "gpu_utilization": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricGpuUtilization, "gpu_memory_usage": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricGpuMemoryUsage, - "io": SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricIo, } // GetSummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnumValues Enumerates the set of values for SummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetricEnum @@ -117,7 +114,6 @@ func GetSummarizeHostInsightResourceUsageTrendAggregationCollectionResourceMetri "NETWORK", "GPU_UTILIZATION", "GPU_MEMORY_USAGE", - "IO", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go index 2bafda78f9d..0097a6b5108 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go @@ -71,7 +71,6 @@ const ( SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricNetwork SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum = "NETWORK" SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricGpuUtilization SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum = "GPU_UTILIZATION" SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricGpuMemoryUsage SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum = "GPU_MEMORY_USAGE" - SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricIo SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum = "IO" ) var mappingSummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum = map[string]SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum{ @@ -82,7 +81,6 @@ var mappingSummarizeHostInsightResourceUtilizationInsightAggregationResourceMetr "NETWORK": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricNetwork, "GPU_UTILIZATION": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricGpuUtilization, "GPU_MEMORY_USAGE": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricGpuMemoryUsage, - "IO": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricIo, } var mappingSummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnumLowerCase = map[string]SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum{ @@ -93,7 +91,6 @@ var mappingSummarizeHostInsightResourceUtilizationInsightAggregationResourceMetr "network": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricNetwork, "gpu_utilization": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricGpuUtilization, "gpu_memory_usage": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricGpuMemoryUsage, - "io": SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricIo, } // GetSummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnumValues Enumerates the set of values for SummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricEnum @@ -115,7 +112,6 @@ func GetSummarizeHostInsightResourceUtilizationInsightAggregationResourceMetricE "NETWORK", "GPU_UTILIZATION", "GPU_MEMORY_USAGE", - "IO", } } diff --git a/vendor/modules.txt b/vendor/modules.txt index 7c65f49647a..7de32dc3a92 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -225,7 +225,7 @@ github.com/mitchellh/reflectwalk # github.com/oklog/run v1.0.0 ## explicit github.com/oklog/run -# github.com/oracle/oci-go-sdk/v65 v65.76.0 => ./vendor/github.com/oracle/oci-go-sdk +# github.com/oracle/oci-go-sdk/v65 v65.76.0 ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection @@ -248,6 +248,7 @@ github.com/oracle/oci-go-sdk/v65/bds github.com/oracle/oci-go-sdk/v65/blockchain github.com/oracle/oci-go-sdk/v65/budget github.com/oracle/oci-go-sdk/v65/capacitymanagement +github.com/oracle/oci-go-sdk/v65/certificates github.com/oracle/oci-go-sdk/v65/certificatesmanagement github.com/oracle/oci-go-sdk/v65/cloudbridge github.com/oracle/oci-go-sdk/v65/cloudguard diff --git a/website/docs/d/certificates_certificate_authority_bundle.html.markdown b/website/docs/d/certificates_certificate_authority_bundle.html.markdown new file mode 100644 index 00000000000..01b5d2a81a4 --- /dev/null +++ b/website/docs/d/certificates_certificate_authority_bundle.html.markdown @@ -0,0 +1,71 @@ +--- +subcategory: "Certificates" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_certificates_certificate_authority_bundle" +sidebar_current: "docs-oci-datasource-certificates-certificate_authority_bundle" +description: |- +Provides details about a certificate authority bundle in Oracle Cloud Infrastructure Certificates Retrieval service +--- + +# Data Source: oci_certificates_certificate_bundle +This data source provides details about a specific certificate authority bundle in Oracle Cloud Infrastructure Certificates Retrieval service. + +Gets details about the specified certificate authority bundle. + +## Example Usage + +```hcl +data "oci_certificates_certificate_authority_bundle" "test_certificate_authority_bundle" { + #Required + certificate_authority_id = oci_certificates_management_certificate_authority.test_certificate_authority.id + + #Optional + certificate_version_name = oci_certificates_management_certificate_authority.test_certificate_authority.current_version.version_name + stage = "CURRENT" + version_number = oci_certificates_management_certificate_authority.test_certificate_authority.current_version.version_number +} +``` + +## Argument Reference + +The following arguments are supported: + +* `certificate_authority_id` - (Required) The OCID of the certificate authority (CA). +* `certificate_version_name` - (Optional) The name of the certificate authority (CA). (This might be referred to as the +name of the CA version, as every CA consists of at least one version.) Names are unique across versions of a given CA. +* `stage` - (Optional) The rotation state of the certificate authority version. Valid values are: `CURRENT`, `PENDING`, +`LATEST`, `PREVIOUS` or `DEPRECATED`. +* `version_number` - (Optional) The version number of the certificate authority (CA). + +## Attributes Reference + +The following attributes are exported: + +* `cert_chain_pem` - The certificate chain (in PEM format) for this CA version. +* `certificate_authority_id` - The OCID of the certificate authority (CA). +* `certificate_authority_name` - The name of the CA. +* `certificate_pem` - The certificate (in PEM format) for this CA version. +* `revocation_status` - The revocation status of the certificate. +* `serial_number` - A unique certificate identifier used in certificate revocation tracking, formatted as octets. +* `stages` - A list of rotation states for this CA. +* `time_created` - An optional property indicating when the certificate version was created, expressed in RFC 3339 +timestamp format. +* `validity` - The validity of the certificate. +* `version_name` - The name of the CA version. +* `version_number` - The version number of the CA. + +### Revocation Status Reference + +The following attributes are exported: + +* `revocation_reason` - The reason that the CA was revoked. +* `time_revoked` - The time when the CA was revoked. + +### Validity Reference + +The following attributes are exported: + +* `time_of_validity_not_after` - The date on which the CA validity period ends, expressed in RFC 3339 timestamp +format. +* `time_of_validity_not_before` - The date on which the CA validity period begins, expressed in RFC 3339 +timestamp format. diff --git a/website/docs/d/certificates_certificate_bundle.html.markdown b/website/docs/d/certificates_certificate_bundle.html.markdown new file mode 100644 index 00000000000..b0d0a5e1805 --- /dev/null +++ b/website/docs/d/certificates_certificate_bundle.html.markdown @@ -0,0 +1,82 @@ +--- +subcategory: "Certificates" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_certificates_certificate_bundle" +sidebar_current: "docs-oci-datasource-certificates-certificate_bundle" +description: |- +Provides details about a certificate bundle in Oracle Cloud Infrastructure Certificates Retrieval service +--- + +# Data Source: oci_certificates_certificate_bundle +This data source provides details about a specific certificate bundle in Oracle Cloud Infrastructure Certificates Retrieval service. + +Gets details about the specified certificate bundle. + +## Example Usage + +```hcl +data "oci_certificates_certificate_bundle" "test_certificate_bundle" { + #Required + certificate_id = oci_certificates_management_certificate.test_certificate.id + + #Optional + certificate_bundle_type = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY" + certificate_version_name = oci_certificates_management_certificate.test_certificate.current_version.version_name + stage = "CURRENT" + version_number = oci_certificates_management_certificate.test_certificate.current_version.version_number +} +``` + +## Argument Reference + +The following arguments are supported: + +* `certificate_id` - (Required) The OCID of the certificate. +* `certificate_bundle_type` - (Optional) The type of certificate bundle. By default, the private key fields are not +returned. When querying for certificate bundles, to return results with certificate contents, the private key in PEM +format, and the private key passphrase, specify the value of this parameter as CERTIFICATE_CONTENT_WITH_PRIVATE_KEY. +Valid values are: `CERTIFICATE_CONTENT_PUBLIC_ONLY` or `CERTIFICATE_CONTENT_WITH_PRIVATE_KEY`. +* `certificate_version_name` - (Optional) The name of the certificate. (This might be referred to as the name of the +certificate version, as every certificate consists of at least one version.) Names are unique across versions of a +given certificate. +* `stage` - (Optional) The rotation state of the certificate version. Valid values are: `CURRENT`, `PENDING`, `LATEST`, +`PREVIOUS` or `DEPRECATED`. +* `version_number` - (Optional) The version number of the certificate. + +## Attributes Reference + +The following attributes are exported: + +* `cert_chain_pem` - The certificate chain (in PEM format) for the certificate bundle. +* `certificate_bundle_type` - The type of certificate bundle, which indicates whether the private key fields are included. +* `certificate_id` - The OCID of the certificate. +* `certificate_name` - The name of the certificate. +* `certificate_pem` - The certificate (in PEM format) for the certificate bundle. +* `private_key_pem` - The private key (in PEM format) for the certificate. This is only set if `certificate_bundle_type` +is set to `CERTIFICATE_CONTENT_WITH_PRIVATE_KEY`. +* `private_key_pem_passphrase` - The passphrase for the private key. This is only set if `certificate_bundle_type` +is set to `CERTIFICATE_CONTENT_WITH_PRIVATE_KEY`. +* `revocation_status` - The revocation status of the certificate. +* `serial_number` - A unique certificate identifier used in certificate revocation tracking, formatted as octets. +* `stages` - A list of rotation states for the certificate bundle. +* `time_created` - An optional property indicating when the certificate version was created, expressed in RFC 3339 +timestamp format. +* `validity` - The validity of the certificate. +* `version_name` - The name of the certificate version. +* `version_number` - The version number of the certificate. + +### Revocation Status Reference + +The following attributes are exported: + +* `revocation_reason` - The reason that the certificate was revoked. +* `time_revoked` - The time when the certificate was revoked. + +### Validity Reference + +The following attributes are exported: + +* `time_of_validity_not_after` - The date on which the certificate validity period ends, expressed in RFC 3339 timestamp +format. +* `time_of_validity_not_before` - The date on which the certificate validity period begins, expressed in RFC 3339 +timestamp format.