From 0e3c704abe8cf544de6558bc2f759f10cd7838ac Mon Sep 17 00:00:00 2001 From: Francis Chuang Date: Thu, 9 Mar 2023 14:32:10 +1100 Subject: [PATCH 01/25] Add oci_certificates_certificate_bundle and oci_certificates_certificate_authority_bundle data sources --- go.mod | 8 +- go.sum | 8 + internal/client/certificates_clients.go | 33 ++ ...cates_certificate_authority_bundle_test.go | 61 +++ .../certificates_certificate_bundle_test.go | 64 +++ internal/provider/register_datasource.go | 2 + ...ertificate_authority_bundle_data_source.go | 224 +++++++++++ ...ificates_certificate_bundle_data_source.go | 272 +++++++++++++ .../certificates/register_datasource.go | 11 + .../github.com/google/go-cmp/cmp/compare.go | 83 ++-- .../google/go-cmp/cmp/export_panic.go | 1 + .../google/go-cmp/cmp/export_unsafe.go | 1 + .../go-cmp/cmp/internal/diff/debug_disable.go | 1 + .../go-cmp/cmp/internal/diff/debug_enable.go | 1 + .../google/go-cmp/cmp/internal/diff/diff.go | 44 +- .../cmp/internal/flags/toolchain_legacy.go | 10 - .../cmp/internal/flags/toolchain_recent.go | 10 - .../google/go-cmp/cmp/internal/value/name.go | 7 + .../cmp/internal/value/pointer_purego.go | 1 + .../cmp/internal/value/pointer_unsafe.go | 1 + .../google/go-cmp/cmp/internal/value/zero.go | 48 --- .../github.com/google/go-cmp/cmp/options.go | 10 +- vendor/github.com/google/go-cmp/cmp/path.go | 22 +- .../google/go-cmp/cmp/report_compare.go | 13 +- .../google/go-cmp/cmp/report_reflect.go | 24 +- .../google/go-cmp/cmp/report_slices.go | 31 +- .../google/go-cmp/cmp/report_text.go | 1 + .../hashicorp/go-version/CHANGELOG.md | 20 + .../github.com/hashicorp/go-version/README.md | 2 +- .../hashicorp/go-version/constraint.go | 114 +++++- .../hashicorp/go-version/version.go | 23 +- .../hashicorp/terraform-json/LICENSE | 2 + .../hashicorp/terraform-json/README.md | 1 - .../hashicorp/terraform-json/config.go | 3 + .../hashicorp/terraform-json/metadata.go | 104 +++++ .../hashicorp/terraform-json/plan.go | 37 +- .../hashicorp/terraform-json/schemas.go | 60 ++- .../hashicorp/terraform-json/state.go | 50 ++- .../hashicorp/terraform-json/validate.go | 23 +- .../oci-go-sdk/v65/certificates/ca_bundle.go | 45 +++ .../certificate_authority_bundle.go | 74 ++++ ...ate_authority_bundle_version_collection.go | 39 ++ ...ficate_authority_bundle_version_summary.go | 72 ++++ .../v65/certificates/certificate_bundle.go | 237 +++++++++++ .../certificate_bundle_public_only.go | 145 +++++++ .../certificate_bundle_version_collection.go | 39 ++ .../certificate_bundle_version_summary.go | 72 ++++ .../certificate_bundle_with_private_key.go | 151 +++++++ .../v65/certificates/certificates_client.go | 377 ++++++++++++++++++ .../get_ca_bundle_request_response.go | 93 +++++ ...icate_authority_bundle_request_response.go | 159 ++++++++ ...get_certificate_bundle_request_response.go | 207 ++++++++++ ...hority_bundle_versions_request_response.go | 183 +++++++++ ...ficate_bundle_versions_request_response.go | 183 +++++++++ .../v65/certificates/revocation_reason.go | 80 ++++ .../v65/certificates/revocation_status.go | 45 +++ .../oci-go-sdk/v65/certificates/validity.go | 44 ++ .../v65/certificates/version_stage.go | 72 ++++ .../go-cty/cty/function/stdlib/collection.go | 2 +- .../zclconf/go-cty/cty/function/stdlib/csv.go | 13 +- .../go-cty/cty/function/stdlib/format.go | 2 + .../go-cty/cty/function/stdlib/number.go | 38 +- .../zclconf/go-cty/cty/primitive_type.go | 45 +++ .../zclconf/go-cty/cty/value_ops.go | 12 +- vendor/github.com/zclconf/go-cty/cty/walk.go | 35 +- vendor/modules.txt | 11 +- ...certificate_authority_bundle.html.markdown | 71 ++++ ...tificates_certificate_bundle.html.markdown | 82 ++++ 68 files changed, 3801 insertions(+), 258 deletions(-) create mode 100644 internal/client/certificates_clients.go create mode 100644 internal/integrationtest/certificates_certificate_authority_bundle_test.go create mode 100644 internal/integrationtest/certificates_certificate_bundle_test.go create mode 100644 internal/service/certificates/certificates_certificate_authority_bundle_data_source.go create mode 100644 internal/service/certificates/certificates_certificate_bundle_data_source.go create mode 100644 internal/service/certificates/register_datasource.go delete mode 100644 vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go delete mode 100644 vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go delete mode 100644 vendor/github.com/google/go-cmp/cmp/internal/value/zero.go create mode 100644 vendor/github.com/hashicorp/terraform-json/metadata.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_public_only.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_with_private_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificates_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_authority_bundle_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_bundle_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_authority_bundle_versions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_bundle_versions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_reason.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/validity.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/version_stage.go create mode 100644 website/docs/d/certificates_certificate_authority_bundle.html.markdown create mode 100644 website/docs/d/certificates_certificate_bundle.html.markdown diff --git a/go.mod b/go.mod index 2d8afafc55d..aa3f50d9d34 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/gofrs/flock v0.8.1 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.4.2 // indirect - github.com/google/go-cmp v0.5.6 // indirect + github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/gax-go/v2 v2.0.5 // indirect github.com/hashicorp/errwrap v1.0.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect @@ -35,10 +35,10 @@ require ( github.com/hashicorp/go-plugin v1.4.1 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-uuid v1.0.1 // indirect - github.com/hashicorp/go-version v1.3.0 + github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/hcl/v2 v2.8.2 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-json v0.12.0 // indirect + github.com/hashicorp/terraform-json v0.15.0 // indirect github.com/hashicorp/terraform-plugin-go v0.3.0 // indirect github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect @@ -58,7 +58,7 @@ require ( github.com/sony/gobreaker v0.5.0 // indirect github.com/ulikunitz/xz v0.5.8 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect - github.com/zclconf/go-cty v1.8.4 // indirect + github.com/zclconf/go-cty v1.10.0 // indirect go.opencensus.io v0.22.4 // indirect golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect diff --git a/go.sum b/go.sum index 8c236e4188a..88af0a93c31 100644 --- a/go.sum +++ b/go.sum @@ -149,6 +149,8 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0 h1:pMen7vLs8nvgEYhywH3KDWJIJTeEr2ULsVWHWYHQyBs= @@ -195,6 +197,8 @@ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw= github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hcl/v2 v2.3.0/go.mod h1:d+FwDBbOLvpAM3Z6J7gPj/VoAGkNe/gm352ZhjJ/Zv8= @@ -208,6 +212,8 @@ github.com/hashicorp/terraform-exec v0.14.0 h1:UQoUcxKTZZXhyyK68Cwn4mApT4mnFPmEX github.com/hashicorp/terraform-exec v0.14.0/go.mod h1:qrAASDq28KZiMPDnQ02sFS9udcqEkRly002EA2izXTA= github.com/hashicorp/terraform-json v0.12.0 h1:8czPgEEWWPROStjkWPUnTQDXmpmZPlkQAwYYLETaTvw= github.com/hashicorp/terraform-json v0.12.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv1nozM+wskr/bGFJpI= +github.com/hashicorp/terraform-json v0.15.0 h1:/gIyNtR6SFw6h5yzlbDbACyGvIhKtQi8mTsbkNd79lE= +github.com/hashicorp/terraform-json v0.15.0/go.mod h1:+L1RNzjDU5leLFZkHTFTbJXaoqUC6TqXlFgDoOXrtvk= github.com/hashicorp/terraform-plugin-go v0.3.0 h1:AJqYzP52JFYl9NABRI7smXI1pNjgR5Q/y2WyVJ/BOZA= github.com/hashicorp/terraform-plugin-go v0.3.0/go.mod h1:dFHsQMaTLpON2gWhVWT96fvtlc/MF1vSy3OdMhWBzdM= github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 h1:SuI59MqNjYDrL7EfqHX9V6P/24isgqYx/FdglwVs9bg= @@ -340,6 +346,8 @@ github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.8.4 h1:pwhhz5P+Fjxse7S7UriBrMu6AUJSZM5pKqGem1PjGAs= github.com/zclconf/go-cty v1.8.4/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= +github.com/zclconf/go-cty v1.10.0 h1:mp9ZXQeIcN8kAwuqorjH+Q+njbJKjLrvB2yIh4q7U+0= +github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 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 9aec070b572..80b52742071 100644 --- a/internal/provider/register_datasource.go +++ b/internal/provider/register_datasource.go @@ -23,6 +23,7 @@ import ( tf_bds "github.com/oracle/terraform-provider-oci/internal/service/bds" tf_blockchain "github.com/oracle/terraform-provider-oci/internal/service/blockchain" tf_budget "github.com/oracle/terraform-provider-oci/internal/service/budget" + 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" @@ -132,6 +133,7 @@ func init() { tf_bds.RegisterDatasource() tf_blockchain.RegisterDatasource() tf_budget.RegisterDatasource() + tf_certificates.RegisterDatasource() tf_certificates_management.RegisterDatasource() tf_cloud_bridge.RegisterDatasource() tf_cloud_guard.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/google/go-cmp/cmp/compare.go b/vendor/github.com/google/go-cmp/cmp/compare.go index 86d0903b8b5..087320da7f0 100644 --- a/vendor/github.com/google/go-cmp/cmp/compare.go +++ b/vendor/github.com/google/go-cmp/cmp/compare.go @@ -13,21 +13,21 @@ // // The primary features of cmp are: // -// • When the default behavior of equality does not suit the needs of the test, -// custom equality functions can override the equality operation. -// For example, an equality function may report floats as equal so long as they -// are within some tolerance of each other. +// - When the default behavior of equality does not suit the test's needs, +// custom equality functions can override the equality operation. +// For example, an equality function may report floats as equal so long as +// they are within some tolerance of each other. // -// • Types that have an Equal method may use that method to determine equality. -// This allows package authors to determine the equality operation for the types -// that they define. +// - Types with an Equal method may use that method to determine equality. +// This allows package authors to determine the equality operation +// for the types that they define. // -// • If no custom equality functions are used and no Equal method is defined, -// equality is determined by recursively comparing the primitive kinds on both -// values, much like reflect.DeepEqual. Unlike reflect.DeepEqual, unexported -// fields are not compared by default; they result in panics unless suppressed -// by using an Ignore option (see cmpopts.IgnoreUnexported) or explicitly -// compared using the Exporter option. +// - If no custom equality functions are used and no Equal method is defined, +// equality is determined by recursively comparing the primitive kinds on +// both values, much like reflect.DeepEqual. Unlike reflect.DeepEqual, +// unexported fields are not compared by default; they result in panics +// unless suppressed by using an Ignore option (see cmpopts.IgnoreUnexported) +// or explicitly compared using the Exporter option. package cmp import ( @@ -36,33 +36,34 @@ import ( "strings" "github.com/google/go-cmp/cmp/internal/diff" - "github.com/google/go-cmp/cmp/internal/flags" "github.com/google/go-cmp/cmp/internal/function" "github.com/google/go-cmp/cmp/internal/value" ) +// TODO(≥go1.18): Use any instead of interface{}. + // Equal reports whether x and y are equal by recursively applying the // following rules in the given order to x and y and all of their sub-values: // -// • Let S be the set of all Ignore, Transformer, and Comparer options that -// remain after applying all path filters, value filters, and type filters. -// If at least one Ignore exists in S, then the comparison is ignored. -// If the number of Transformer and Comparer options in S is greater than one, -// then Equal panics because it is ambiguous which option to use. -// If S contains a single Transformer, then use that to transform the current -// values and recursively call Equal on the output values. -// If S contains a single Comparer, then use that to compare the current values. -// Otherwise, evaluation proceeds to the next rule. +// - Let S be the set of all Ignore, Transformer, and Comparer options that +// remain after applying all path filters, value filters, and type filters. +// If at least one Ignore exists in S, then the comparison is ignored. +// If the number of Transformer and Comparer options in S is non-zero, +// then Equal panics because it is ambiguous which option to use. +// If S contains a single Transformer, then use that to transform +// the current values and recursively call Equal on the output values. +// If S contains a single Comparer, then use that to compare the current values. +// Otherwise, evaluation proceeds to the next rule. // -// • If the values have an Equal method of the form "(T) Equal(T) bool" or -// "(T) Equal(I) bool" where T is assignable to I, then use the result of -// x.Equal(y) even if x or y is nil. Otherwise, no such method exists and -// evaluation proceeds to the next rule. +// - If the values have an Equal method of the form "(T) Equal(T) bool" or +// "(T) Equal(I) bool" where T is assignable to I, then use the result of +// x.Equal(y) even if x or y is nil. Otherwise, no such method exists and +// evaluation proceeds to the next rule. // -// • Lastly, try to compare x and y based on their basic kinds. -// Simple kinds like booleans, integers, floats, complex numbers, strings, and -// channels are compared using the equivalent of the == operator in Go. -// Functions are only equal if they are both nil, otherwise they are unequal. +// - Lastly, try to compare x and y based on their basic kinds. +// Simple kinds like booleans, integers, floats, complex numbers, strings, +// and channels are compared using the equivalent of the == operator in Go. +// Functions are only equal if they are both nil, otherwise they are unequal. // // Structs are equal if recursively calling Equal on all fields report equal. // If a struct contains unexported fields, Equal panics unless an Ignore option @@ -143,7 +144,7 @@ func rootStep(x, y interface{}) PathStep { // so that they have the same parent type. var t reflect.Type if !vx.IsValid() || !vy.IsValid() || vx.Type() != vy.Type() { - t = reflect.TypeOf((*interface{})(nil)).Elem() + t = anyType if vx.IsValid() { vvx := reflect.New(t).Elem() vvx.Set(vx) @@ -319,7 +320,6 @@ func (s *state) tryMethod(t reflect.Type, vx, vy reflect.Value) bool { } func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value { - v = sanitizeValue(v, f.Type().In(0)) if !s.dynChecker.Next() { return f.Call([]reflect.Value{v})[0] } @@ -343,8 +343,6 @@ func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value { } func (s *state) callTTBFunc(f, x, y reflect.Value) bool { - x = sanitizeValue(x, f.Type().In(0)) - y = sanitizeValue(y, f.Type().In(1)) if !s.dynChecker.Next() { return f.Call([]reflect.Value{x, y})[0].Bool() } @@ -372,19 +370,6 @@ func detectRaces(c chan<- reflect.Value, f reflect.Value, vs ...reflect.Value) { ret = f.Call(vs)[0] } -// sanitizeValue converts nil interfaces of type T to those of type R, -// assuming that T is assignable to R. -// Otherwise, it returns the input value as is. -func sanitizeValue(v reflect.Value, t reflect.Type) reflect.Value { - // TODO(≥go1.10): Workaround for reflect bug (https://golang.org/issue/22143). - if !flags.AtLeastGo110 { - if v.Kind() == reflect.Interface && v.IsNil() && v.Type() != t { - return reflect.New(t).Elem() - } - } - return v -} - func (s *state) compareStruct(t reflect.Type, vx, vy reflect.Value) { var addr bool var vax, vay reflect.Value // Addressable versions of vx and vy @@ -654,7 +639,9 @@ type dynChecker struct{ curr, next int } // Next increments the state and reports whether a check should be performed. // // Checks occur every Nth function call, where N is a triangular number: +// // 0 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 ... +// // See https://en.wikipedia.org/wiki/Triangular_number // // This sequence ensures that the cost of checks drops significantly as diff --git a/vendor/github.com/google/go-cmp/cmp/export_panic.go b/vendor/github.com/google/go-cmp/cmp/export_panic.go index 5ff0b4218c6..ae851fe53f2 100644 --- a/vendor/github.com/google/go-cmp/cmp/export_panic.go +++ b/vendor/github.com/google/go-cmp/cmp/export_panic.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build purego // +build purego package cmp diff --git a/vendor/github.com/google/go-cmp/cmp/export_unsafe.go b/vendor/github.com/google/go-cmp/cmp/export_unsafe.go index 21eb54858e0..e2c0f74e839 100644 --- a/vendor/github.com/google/go-cmp/cmp/export_unsafe.go +++ b/vendor/github.com/google/go-cmp/cmp/export_unsafe.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !purego // +build !purego package cmp diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go index 1daaaacc5ee..36062a604ca 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !cmp_debug // +build !cmp_debug package diff diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go index 4b91dbcacae..a3b97a1ad57 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build cmp_debug // +build cmp_debug package diff diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go index bc196b16cfa..a248e5436d9 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go @@ -127,9 +127,9 @@ var randBool = rand.New(rand.NewSource(time.Now().Unix())).Intn(2) == 0 // This function returns an edit-script, which is a sequence of operations // needed to convert one list into the other. The following invariants for // the edit-script are maintained: -// • eq == (es.Dist()==0) -// • nx == es.LenX() -// • ny == es.LenY() +// - eq == (es.Dist()==0) +// - nx == es.LenX() +// - ny == es.LenY() // // This algorithm is not guaranteed to be an optimal solution (i.e., one that // produces an edit-script with a minimal Levenshtein distance). This algorithm @@ -169,12 +169,13 @@ func Difference(nx, ny int, f EqualFunc) (es EditScript) { // A diagonal edge is equivalent to a matching symbol between both X and Y. // Invariants: - // • 0 ≤ fwdPath.X ≤ (fwdFrontier.X, revFrontier.X) ≤ revPath.X ≤ nx - // • 0 ≤ fwdPath.Y ≤ (fwdFrontier.Y, revFrontier.Y) ≤ revPath.Y ≤ ny + // - 0 ≤ fwdPath.X ≤ (fwdFrontier.X, revFrontier.X) ≤ revPath.X ≤ nx + // - 0 ≤ fwdPath.Y ≤ (fwdFrontier.Y, revFrontier.Y) ≤ revPath.Y ≤ ny // // In general: - // • fwdFrontier.X < revFrontier.X - // • fwdFrontier.Y < revFrontier.Y + // - fwdFrontier.X < revFrontier.X + // - fwdFrontier.Y < revFrontier.Y + // // Unless, it is time for the algorithm to terminate. fwdPath := path{+1, point{0, 0}, make(EditScript, 0, (nx+ny)/2)} revPath := path{-1, point{nx, ny}, make(EditScript, 0)} @@ -195,19 +196,21 @@ func Difference(nx, ny int, f EqualFunc) (es EditScript) { // computing sub-optimal edit-scripts between two lists. // // The algorithm is approximately as follows: - // • Searching for differences switches back-and-forth between - // a search that starts at the beginning (the top-left corner), and - // a search that starts at the end (the bottom-right corner). The goal of - // the search is connect with the search from the opposite corner. - // • As we search, we build a path in a greedy manner, where the first - // match seen is added to the path (this is sub-optimal, but provides a - // decent result in practice). When matches are found, we try the next pair - // of symbols in the lists and follow all matches as far as possible. - // • When searching for matches, we search along a diagonal going through - // through the "frontier" point. If no matches are found, we advance the - // frontier towards the opposite corner. - // • This algorithm terminates when either the X coordinates or the - // Y coordinates of the forward and reverse frontier points ever intersect. + // - Searching for differences switches back-and-forth between + // a search that starts at the beginning (the top-left corner), and + // a search that starts at the end (the bottom-right corner). + // The goal of the search is connect with the search + // from the opposite corner. + // - As we search, we build a path in a greedy manner, + // where the first match seen is added to the path (this is sub-optimal, + // but provides a decent result in practice). When matches are found, + // we try the next pair of symbols in the lists and follow all matches + // as far as possible. + // - When searching for matches, we search along a diagonal going through + // through the "frontier" point. If no matches are found, + // we advance the frontier towards the opposite corner. + // - This algorithm terminates when either the X coordinates or the + // Y coordinates of the forward and reverse frontier points ever intersect. // This algorithm is correct even if searching only in the forward direction // or in the reverse direction. We do both because it is commonly observed @@ -389,6 +392,7 @@ type point struct{ X, Y int } func (p *point) add(dx, dy int) { p.X += dx; p.Y += dy } // zigzag maps a consecutive sequence of integers to a zig-zag sequence. +// // [0 1 2 3 4 5 ...] => [0 -1 +1 -2 +2 ...] func zigzag(x int) int { if x&1 != 0 { diff --git a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go b/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go deleted file mode 100644 index 82d1d7fbf8a..00000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2019, The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !go1.10 - -package flags - -// AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. -const AtLeastGo110 = false diff --git a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go b/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go deleted file mode 100644 index 8646f052934..00000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2019, The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.10 - -package flags - -// AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. -const AtLeastGo110 = true diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go b/vendor/github.com/google/go-cmp/cmp/internal/value/name.go index b6c12cefb47..7b498bb2cb9 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/value/name.go @@ -9,6 +9,8 @@ import ( "strconv" ) +var anyType = reflect.TypeOf((*interface{})(nil)).Elem() + // TypeString is nearly identical to reflect.Type.String, // but has an additional option to specify that full type names be used. func TypeString(t reflect.Type, qualified bool) string { @@ -20,6 +22,11 @@ func appendTypeName(b []byte, t reflect.Type, qualified, elideFunc bool) []byte // of the same name and within the same package, // but declared within the namespace of different functions. + // Use the "any" alias instead of "interface{}" for better readability. + if t == anyType { + return append(b, "any"...) + } + // Named type. if t.Name() != "" { if qualified && t.PkgPath() != "" { diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go index 44f4a5afddc..1a71bfcbd39 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build purego // +build purego package value diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go index a605953d466..16e6860af6e 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !purego // +build !purego package value diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/zero.go b/vendor/github.com/google/go-cmp/cmp/internal/value/zero.go deleted file mode 100644 index 9147a299731..00000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/zero.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2017, The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package value - -import ( - "math" - "reflect" -) - -// IsZero reports whether v is the zero value. -// This does not rely on Interface and so can be used on unexported fields. -func IsZero(v reflect.Value) bool { - switch v.Kind() { - case reflect.Bool: - return v.Bool() == false - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return math.Float64bits(v.Float()) == 0 - case reflect.Complex64, reflect.Complex128: - return math.Float64bits(real(v.Complex())) == 0 && math.Float64bits(imag(v.Complex())) == 0 - case reflect.String: - return v.String() == "" - case reflect.UnsafePointer: - return v.Pointer() == 0 - case reflect.Chan, reflect.Func, reflect.Interface, reflect.Ptr, reflect.Map, reflect.Slice: - return v.IsNil() - case reflect.Array: - for i := 0; i < v.Len(); i++ { - if !IsZero(v.Index(i)) { - return false - } - } - return true - case reflect.Struct: - for i := 0; i < v.NumField(); i++ { - if !IsZero(v.Field(i)) { - return false - } - } - return true - } - return false -} diff --git a/vendor/github.com/google/go-cmp/cmp/options.go b/vendor/github.com/google/go-cmp/cmp/options.go index e57b9eb5392..1f9ca9c4892 100644 --- a/vendor/github.com/google/go-cmp/cmp/options.go +++ b/vendor/github.com/google/go-cmp/cmp/options.go @@ -33,6 +33,7 @@ type Option interface { } // applicableOption represents the following types: +// // Fundamental: ignore | validator | *comparer | *transformer // Grouping: Options type applicableOption interface { @@ -43,6 +44,7 @@ type applicableOption interface { } // coreOption represents the following types: +// // Fundamental: ignore | validator | *comparer | *transformer // Filters: *pathFilter | *valuesFilter type coreOption interface { @@ -336,9 +338,9 @@ func (tr transformer) String() string { // both implement T. // // The equality function must be: -// • Symmetric: equal(x, y) == equal(y, x) -// • Deterministic: equal(x, y) == equal(x, y) -// • Pure: equal(x, y) does not modify x or y +// - Symmetric: equal(x, y) == equal(y, x) +// - Deterministic: equal(x, y) == equal(x, y) +// - Pure: equal(x, y) does not modify x or y func Comparer(f interface{}) Option { v := reflect.ValueOf(f) if !function.IsType(v.Type(), function.Equal) || v.IsNil() { @@ -430,7 +432,7 @@ func AllowUnexported(types ...interface{}) Option { } // Result represents the comparison result for a single node and -// is provided by cmp when calling Result (see Reporter). +// is provided by cmp when calling Report (see Reporter). type Result struct { _ [0]func() // Make Result incomparable flags resultFlags diff --git a/vendor/github.com/google/go-cmp/cmp/path.go b/vendor/github.com/google/go-cmp/cmp/path.go index f01eff318c5..a0a588502ed 100644 --- a/vendor/github.com/google/go-cmp/cmp/path.go +++ b/vendor/github.com/google/go-cmp/cmp/path.go @@ -41,13 +41,13 @@ type PathStep interface { // The type of each valid value is guaranteed to be identical to Type. // // In some cases, one or both may be invalid or have restrictions: - // • For StructField, both are not interface-able if the current field - // is unexported and the struct type is not explicitly permitted by - // an Exporter to traverse unexported fields. - // • For SliceIndex, one may be invalid if an element is missing from - // either the x or y slice. - // • For MapIndex, one may be invalid if an entry is missing from - // either the x or y map. + // - For StructField, both are not interface-able if the current field + // is unexported and the struct type is not explicitly permitted by + // an Exporter to traverse unexported fields. + // - For SliceIndex, one may be invalid if an element is missing from + // either the x or y slice. + // - For MapIndex, one may be invalid if an entry is missing from + // either the x or y map. // // The provided values must not be mutated. Values() (vx, vy reflect.Value) @@ -94,6 +94,7 @@ func (pa Path) Index(i int) PathStep { // The simplified path only contains struct field accesses. // // For example: +// // MyMap.MySlices.MyField func (pa Path) String() string { var ss []string @@ -108,6 +109,7 @@ func (pa Path) String() string { // GoString returns the path to a specific node using Go syntax. // // For example: +// // (*root.MyMap["key"].(*mypkg.MyStruct).MySlices)[2][3].MyField func (pa Path) GoString() string { var ssPre, ssPost []string @@ -159,7 +161,7 @@ func (ps pathStep) String() string { if ps.typ == nil { return "" } - s := ps.typ.String() + s := value.TypeString(ps.typ, false) if s == "" || strings.ContainsAny(s, "{}\n") { return "root" // Type too simple or complex to print } @@ -178,7 +180,7 @@ type structField struct { unexported bool mayForce bool // Forcibly allow visibility paddr bool // Was parent addressable? - pvx, pvy reflect.Value // Parent values (always addressible) + pvx, pvy reflect.Value // Parent values (always addressable) field reflect.StructField // Field information } @@ -282,7 +284,7 @@ type typeAssertion struct { func (ta TypeAssertion) Type() reflect.Type { return ta.typ } func (ta TypeAssertion) Values() (vx, vy reflect.Value) { return ta.vx, ta.vy } -func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", ta.typ) } +func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", value.TypeString(ta.typ, false)) } // Transform is a transformation from the parent type to the current type. type Transform struct{ *transform } diff --git a/vendor/github.com/google/go-cmp/cmp/report_compare.go b/vendor/github.com/google/go-cmp/cmp/report_compare.go index 104bb30538b..2050bf6b46b 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_compare.go +++ b/vendor/github.com/google/go-cmp/cmp/report_compare.go @@ -7,8 +7,6 @@ package cmp import ( "fmt" "reflect" - - "github.com/google/go-cmp/cmp/internal/value" ) // numContextRecords is the number of surrounding equal records to print. @@ -116,7 +114,10 @@ func (opts formatOptions) FormatDiff(v *valueNode, ptrs *pointerReferences) (out } // For leaf nodes, format the value based on the reflect.Values alone. - if v.MaxDepth == 0 { + // As a special case, treat equal []byte as a leaf nodes. + isBytes := v.Type.Kind() == reflect.Slice && v.Type.Elem() == byteType + isEqualBytes := isBytes && v.NumDiff+v.NumIgnored+v.NumTransformed == 0 + if v.MaxDepth == 0 || isEqualBytes { switch opts.DiffMode { case diffUnknown, diffIdentical: // Format Equal. @@ -245,11 +246,11 @@ func (opts formatOptions) formatDiffList(recs []reportRecord, k reflect.Kind, pt var isZero bool switch opts.DiffMode { case diffIdentical: - isZero = value.IsZero(r.Value.ValueX) || value.IsZero(r.Value.ValueY) + isZero = r.Value.ValueX.IsZero() || r.Value.ValueY.IsZero() case diffRemoved: - isZero = value.IsZero(r.Value.ValueX) + isZero = r.Value.ValueX.IsZero() case diffInserted: - isZero = value.IsZero(r.Value.ValueY) + isZero = r.Value.ValueY.IsZero() } if isZero { continue diff --git a/vendor/github.com/google/go-cmp/cmp/report_reflect.go b/vendor/github.com/google/go-cmp/cmp/report_reflect.go index 33f03577f98..2ab41fad3fb 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_reflect.go +++ b/vendor/github.com/google/go-cmp/cmp/report_reflect.go @@ -16,6 +16,13 @@ import ( "github.com/google/go-cmp/cmp/internal/value" ) +var ( + anyType = reflect.TypeOf((*interface{})(nil)).Elem() + stringType = reflect.TypeOf((*string)(nil)).Elem() + bytesType = reflect.TypeOf((*[]byte)(nil)).Elem() + byteType = reflect.TypeOf((*byte)(nil)).Elem() +) + type formatValueOptions struct { // AvoidStringer controls whether to avoid calling custom stringer // methods like error.Error or fmt.Stringer.String. @@ -184,7 +191,7 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } for i := 0; i < v.NumField(); i++ { vv := v.Field(i) - if value.IsZero(vv) { + if vv.IsZero() { continue // Elide fields with zero values } if len(list) == maxLen { @@ -205,12 +212,13 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } // Check whether this is a []byte of text data. - if t.Elem() == reflect.TypeOf(byte(0)) { + if t.Elem() == byteType { b := v.Bytes() - isPrintSpace := func(r rune) bool { return unicode.IsPrint(r) && unicode.IsSpace(r) } + isPrintSpace := func(r rune) bool { return unicode.IsPrint(r) || unicode.IsSpace(r) } if len(b) > 0 && utf8.Valid(b) && len(bytes.TrimFunc(b, isPrintSpace)) == 0 { out = opts.formatString("", string(b)) - return opts.WithTypeMode(emitType).FormatType(t, out) + skipType = true + return opts.FormatType(t, out) } } @@ -281,7 +289,12 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } defer ptrs.Pop() - skipType = true // Let the underlying value print the type instead + // Skip the name only if this is an unnamed pointer type. + // Otherwise taking the address of a value does not reproduce + // the named pointer type. + if v.Type().Name() == "" { + skipType = true // Let the underlying value print the type instead + } out = opts.FormatValue(v.Elem(), t.Kind(), ptrs) out = wrapTrunkReference(ptrRef, opts.PrintAddresses, out) out = &textWrap{Prefix: "&", Value: out} @@ -292,7 +305,6 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } // Interfaces accept different concrete types, // so configure the underlying value to explicitly print the type. - skipType = true // Print the concrete type instead return opts.WithTypeMode(emitType).FormatValue(v.Elem(), t.Kind(), ptrs) default: panic(fmt.Sprintf("%v kind not handled", v.Kind())) diff --git a/vendor/github.com/google/go-cmp/cmp/report_slices.go b/vendor/github.com/google/go-cmp/cmp/report_slices.go index 2ad3bc85ba8..23e444f62f3 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_slices.go +++ b/vendor/github.com/google/go-cmp/cmp/report_slices.go @@ -80,7 +80,7 @@ func (opts formatOptions) CanFormatDiffSlice(v *valueNode) bool { } // Use specialized string diffing for longer slices or strings. - const minLength = 64 + const minLength = 32 return vx.Len() >= minLength && vy.Len() >= minLength } @@ -104,7 +104,7 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { case t.Kind() == reflect.String: sx, sy = vx.String(), vy.String() isString = true - case t.Kind() == reflect.Slice && t.Elem() == reflect.TypeOf(byte(0)): + case t.Kind() == reflect.Slice && t.Elem() == byteType: sx, sy = string(vx.Bytes()), string(vy.Bytes()) isString = true case t.Kind() == reflect.Array: @@ -147,7 +147,10 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { }) efficiencyLines := float64(esLines.Dist()) / float64(len(esLines)) efficiencyBytes := float64(esBytes.Dist()) / float64(len(esBytes)) - isPureLinedText = efficiencyLines < 4*efficiencyBytes + quotedLength := len(strconv.Quote(sx + sy)) + unquotedLength := len(sx) + len(sy) + escapeExpansionRatio := float64(quotedLength) / float64(unquotedLength) + isPureLinedText = efficiencyLines < 4*efficiencyBytes || escapeExpansionRatio > 1.1 } } @@ -171,12 +174,13 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { // differences in a string literal. This format is more readable, // but has edge-cases where differences are visually indistinguishable. // This format is avoided under the following conditions: - // • A line starts with `"""` - // • A line starts with "..." - // • A line contains non-printable characters - // • Adjacent different lines differ only by whitespace + // - A line starts with `"""` + // - A line starts with "..." + // - A line contains non-printable characters + // - Adjacent different lines differ only by whitespace // // For example: + // // """ // ... // 3 identical lines // foo @@ -231,7 +235,7 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { var out textNode = &textWrap{Prefix: "(", Value: list2, Suffix: ")"} switch t.Kind() { case reflect.String: - if t != reflect.TypeOf(string("")) { + if t != stringType { out = opts.FormatType(t, out) } case reflect.Slice: @@ -326,12 +330,12 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { switch t.Kind() { case reflect.String: out = &textWrap{Prefix: "strings.Join(", Value: out, Suffix: fmt.Sprintf(", %q)", delim)} - if t != reflect.TypeOf(string("")) { + if t != stringType { out = opts.FormatType(t, out) } case reflect.Slice: out = &textWrap{Prefix: "bytes.Join(", Value: out, Suffix: fmt.Sprintf(", %q)", delim)} - if t != reflect.TypeOf([]byte(nil)) { + if t != bytesType { out = opts.FormatType(t, out) } } @@ -446,7 +450,6 @@ func (opts formatOptions) formatDiffSlice( // {NumIdentical: 3}, // {NumInserted: 1}, // ] -// func coalesceAdjacentEdits(name string, es diff.EditScript) (groups []diffStats) { var prevMode byte lastStats := func(mode byte) *diffStats { @@ -503,7 +506,6 @@ func coalesceAdjacentEdits(name string, es diff.EditScript) (groups []diffStats) // {NumIdentical: 8, NumRemoved: 12, NumInserted: 3}, // {NumIdentical: 63}, // ] -// func coalesceInterveningIdentical(groups []diffStats, windowSize int) []diffStats { groups, groupsOrig := groups[:0], groups for i, ds := range groupsOrig { @@ -548,7 +550,6 @@ func coalesceInterveningIdentical(groups []diffStats, windowSize int) []diffStat // {NumRemoved: 9}, // {NumIdentical: 64}, // incremented by 10 // ] -// func cleanupSurroundingIdentical(groups []diffStats, eq func(i, j int) bool) []diffStats { var ix, iy int // indexes into sequence x and y for i, ds := range groups { @@ -563,10 +564,10 @@ func cleanupSurroundingIdentical(groups []diffStats, eq func(i, j int) bool) []d nx := ds.NumIdentical + ds.NumRemoved + ds.NumModified ny := ds.NumIdentical + ds.NumInserted + ds.NumModified var numLeadingIdentical, numTrailingIdentical int - for i := 0; i < nx && i < ny && eq(ix+i, iy+i); i++ { + for j := 0; j < nx && j < ny && eq(ix+j, iy+j); j++ { numLeadingIdentical++ } - for i := 0; i < nx && i < ny && eq(ix+nx-1-i, iy+ny-1-i); i++ { + for j := 0; j < nx && j < ny && eq(ix+nx-1-j, iy+ny-1-j); j++ { numTrailingIdentical++ } if numIdentical := numLeadingIdentical + numTrailingIdentical; numIdentical > 0 { diff --git a/vendor/github.com/google/go-cmp/cmp/report_text.go b/vendor/github.com/google/go-cmp/cmp/report_text.go index 0fd46d7ffb6..388fcf57120 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_text.go +++ b/vendor/github.com/google/go-cmp/cmp/report_text.go @@ -393,6 +393,7 @@ func (s diffStats) Append(ds diffStats) diffStats { // String prints a humanly-readable summary of coalesced records. // // Example: +// // diffStats{Name: "Field", NumIgnored: 5}.String() => "5 ignored fields" func (s diffStats) String() string { var ss []string diff --git a/vendor/github.com/hashicorp/go-version/CHANGELOG.md b/vendor/github.com/hashicorp/go-version/CHANGELOG.md index dbae7f7be9c..5f16dd140c3 100644 --- a/vendor/github.com/hashicorp/go-version/CHANGELOG.md +++ b/vendor/github.com/hashicorp/go-version/CHANGELOG.md @@ -1,3 +1,23 @@ +# 1.6.0 (June 28, 2022) + +FEATURES: + +- Add `Prerelease` function to `Constraint` to return true if the version includes a prerelease field ([#100](https://github.com/hashicorp/go-version/pull/100)) + +# 1.5.0 (May 18, 2022) + +FEATURES: + +- Use `encoding` `TextMarshaler` & `TextUnmarshaler` instead of JSON equivalents ([#95](https://github.com/hashicorp/go-version/pull/95)) +- Add JSON handlers to allow parsing from/to JSON ([#93](https://github.com/hashicorp/go-version/pull/93)) + +# 1.4.0 (January 5, 2022) + +FEATURES: + + - Introduce `MustConstraints()` ([#87](https://github.com/hashicorp/go-version/pull/87)) + - `Constraints`: Introduce `Equals()` and `sort.Interface` methods ([#88](https://github.com/hashicorp/go-version/pull/88)) + # 1.3.0 (March 31, 2021) Please note that CHANGELOG.md does not exist in the source code prior to this release. diff --git a/vendor/github.com/hashicorp/go-version/README.md b/vendor/github.com/hashicorp/go-version/README.md index 851a337beb4..4d250509033 100644 --- a/vendor/github.com/hashicorp/go-version/README.md +++ b/vendor/github.com/hashicorp/go-version/README.md @@ -1,5 +1,5 @@ # Versioning Library for Go -[![Build Status](https://circleci.com/gh/hashicorp/go-version/tree/master.svg?style=svg)](https://circleci.com/gh/hashicorp/go-version/tree/master) +[![Build Status](https://circleci.com/gh/hashicorp/go-version/tree/main.svg?style=svg)](https://circleci.com/gh/hashicorp/go-version/tree/main) [![GoDoc](https://godoc.org/github.com/hashicorp/go-version?status.svg)](https://godoc.org/github.com/hashicorp/go-version) go-version is a library for parsing versions and version constraints, diff --git a/vendor/github.com/hashicorp/go-version/constraint.go b/vendor/github.com/hashicorp/go-version/constraint.go index d055759611c..da5d1aca148 100644 --- a/vendor/github.com/hashicorp/go-version/constraint.go +++ b/vendor/github.com/hashicorp/go-version/constraint.go @@ -4,6 +4,7 @@ import ( "fmt" "reflect" "regexp" + "sort" "strings" ) @@ -11,30 +12,40 @@ import ( // ">= 1.0". type Constraint struct { f constraintFunc + op operator check *Version original string } +func (c *Constraint) Equals(con *Constraint) bool { + return c.op == con.op && c.check.Equal(con.check) +} + // Constraints is a slice of constraints. We make a custom type so that // we can add methods to it. type Constraints []*Constraint type constraintFunc func(v, c *Version) bool -var constraintOperators map[string]constraintFunc +var constraintOperators map[string]constraintOperation + +type constraintOperation struct { + op operator + f constraintFunc +} var constraintRegexp *regexp.Regexp func init() { - constraintOperators = map[string]constraintFunc{ - "": constraintEqual, - "=": constraintEqual, - "!=": constraintNotEqual, - ">": constraintGreaterThan, - "<": constraintLessThan, - ">=": constraintGreaterThanEqual, - "<=": constraintLessThanEqual, - "~>": constraintPessimistic, + constraintOperators = map[string]constraintOperation{ + "": {op: equal, f: constraintEqual}, + "=": {op: equal, f: constraintEqual}, + "!=": {op: notEqual, f: constraintNotEqual}, + ">": {op: greaterThan, f: constraintGreaterThan}, + "<": {op: lessThan, f: constraintLessThan}, + ">=": {op: greaterThanEqual, f: constraintGreaterThanEqual}, + "<=": {op: lessThanEqual, f: constraintLessThanEqual}, + "~>": {op: pessimistic, f: constraintPessimistic}, } ops := make([]string, 0, len(constraintOperators)) @@ -66,6 +77,16 @@ func NewConstraint(v string) (Constraints, error) { return Constraints(result), nil } +// MustConstraints is a helper that wraps a call to a function +// returning (Constraints, error) and panics if error is non-nil. +func MustConstraints(c Constraints, err error) Constraints { + if err != nil { + panic(err) + } + + return c +} + // Check tests if a version satisfies all the constraints. func (cs Constraints) Check(v *Version) bool { for _, c := range cs { @@ -77,6 +98,56 @@ func (cs Constraints) Check(v *Version) bool { return true } +// Equals compares Constraints with other Constraints +// for equality. This may not represent logical equivalence +// of compared constraints. +// e.g. even though '>0.1,>0.2' is logically equivalent +// to '>0.2' it is *NOT* treated as equal. +// +// Missing operator is treated as equal to '=', whitespaces +// are ignored and constraints are sorted before comaparison. +func (cs Constraints) Equals(c Constraints) bool { + if len(cs) != len(c) { + return false + } + + // make copies to retain order of the original slices + left := make(Constraints, len(cs)) + copy(left, cs) + sort.Stable(left) + right := make(Constraints, len(c)) + copy(right, c) + sort.Stable(right) + + // compare sorted slices + for i, con := range left { + if !con.Equals(right[i]) { + return false + } + } + + return true +} + +func (cs Constraints) Len() int { + return len(cs) +} + +func (cs Constraints) Less(i, j int) bool { + if cs[i].op < cs[j].op { + return true + } + if cs[i].op > cs[j].op { + return false + } + + return cs[i].check.LessThan(cs[j].check) +} + +func (cs Constraints) Swap(i, j int) { + cs[i], cs[j] = cs[j], cs[i] +} + // Returns the string format of the constraints func (cs Constraints) String() string { csStr := make([]string, len(cs)) @@ -92,6 +163,12 @@ func (c *Constraint) Check(v *Version) bool { return c.f(v, c.check) } +// Prerelease returns true if the version underlying this constraint +// contains a prerelease field. +func (c *Constraint) Prerelease() bool { + return len(c.check.Prerelease()) > 0 +} + func (c *Constraint) String() string { return c.original } @@ -107,8 +184,11 @@ func parseSingle(v string) (*Constraint, error) { return nil, err } + cop := constraintOperators[matches[1]] + return &Constraint{ - f: constraintOperators[matches[1]], + f: cop.f, + op: cop.op, check: check, original: v, }, nil @@ -138,6 +218,18 @@ func prereleaseCheck(v, c *Version) bool { // Constraint functions //------------------------------------------------------------------- +type operator rune + +const ( + equal operator = '=' + notEqual operator = '≠' + greaterThan operator = '>' + lessThan operator = '<' + greaterThanEqual operator = '≥' + lessThanEqual operator = '≤' + pessimistic operator = '~' +) + func constraintEqual(v, c *Version) bool { return v.Equal(c) } diff --git a/vendor/github.com/hashicorp/go-version/version.go b/vendor/github.com/hashicorp/go-version/version.go index 8068834ec84..e87df69906d 100644 --- a/vendor/github.com/hashicorp/go-version/version.go +++ b/vendor/github.com/hashicorp/go-version/version.go @@ -64,7 +64,6 @@ func newVersion(v string, pattern *regexp.Regexp) (*Version, error) { } segmentsStr := strings.Split(matches[1], ".") segments := make([]int64, len(segmentsStr)) - si := 0 for i, str := range segmentsStr { val, err := strconv.ParseInt(str, 10, 64) if err != nil { @@ -72,8 +71,7 @@ func newVersion(v string, pattern *regexp.Regexp) (*Version, error) { "Error parsing version: %s", err) } - segments[i] = int64(val) - si++ + segments[i] = val } // Even though we could support more than three segments, if we @@ -92,7 +90,7 @@ func newVersion(v string, pattern *regexp.Regexp) (*Version, error) { metadata: matches[10], pre: pre, segments: segments, - si: si, + si: len(segmentsStr), original: v, }, nil } @@ -390,3 +388,20 @@ func (v *Version) String() string { func (v *Version) Original() string { return v.original } + +// UnmarshalText implements encoding.TextUnmarshaler interface. +func (v *Version) UnmarshalText(b []byte) error { + temp, err := NewVersion(string(b)) + if err != nil { + return err + } + + *v = *temp + + return nil +} + +// MarshalText implements encoding.TextMarshaler interface. +func (v *Version) MarshalText() ([]byte, error) { + return []byte(v.String()), nil +} diff --git a/vendor/github.com/hashicorp/terraform-json/LICENSE b/vendor/github.com/hashicorp/terraform-json/LICENSE index a612ad9813b..3b97eaf3c31 100644 --- a/vendor/github.com/hashicorp/terraform-json/LICENSE +++ b/vendor/github.com/hashicorp/terraform-json/LICENSE @@ -1,3 +1,5 @@ +Copyright (c) 2019 HashiCorp, Inc. + Mozilla Public License Version 2.0 ================================== diff --git a/vendor/github.com/hashicorp/terraform-json/README.md b/vendor/github.com/hashicorp/terraform-json/README.md index fea0ba26092..4a9cd94a119 100644 --- a/vendor/github.com/hashicorp/terraform-json/README.md +++ b/vendor/github.com/hashicorp/terraform-json/README.md @@ -1,6 +1,5 @@ # terraform-json -[![CircleCI](https://circleci.com/gh/hashicorp/terraform-json/tree/main.svg?style=svg)](https://circleci.com/gh/hashicorp/terraform-json/tree/main) [![GoDoc](https://godoc.org/github.com/hashicorp/terraform-json?status.svg)](https://godoc.org/github.com/hashicorp/terraform-json) This repository houses data types designed to help parse the data produced by diff --git a/vendor/github.com/hashicorp/terraform-json/config.go b/vendor/github.com/hashicorp/terraform-json/config.go index e093cfa8bff..5ebe4bc840c 100644 --- a/vendor/github.com/hashicorp/terraform-json/config.go +++ b/vendor/github.com/hashicorp/terraform-json/config.go @@ -48,6 +48,9 @@ type ProviderConfig struct { // The name of the provider, ie: "aws". Name string `json:"name,omitempty"` + // The fully-specified name of the provider, ie: "registry.terraform.io/hashicorp/aws". + FullName string `json:"full_name,omitempty"` + // The alias of the provider, ie: "us-east-1". Alias string `json:"alias,omitempty"` diff --git a/vendor/github.com/hashicorp/terraform-json/metadata.go b/vendor/github.com/hashicorp/terraform-json/metadata.go new file mode 100644 index 00000000000..70d7ce4380a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-json/metadata.go @@ -0,0 +1,104 @@ +package tfjson + +import ( + "encoding/json" + "errors" + "fmt" + + "github.com/hashicorp/go-version" + "github.com/zclconf/go-cty/cty" +) + +// MetadataFunctionsFormatVersionConstraints defines the versions of the JSON +// metadata functions format that are supported by this package. +var MetadataFunctionsFormatVersionConstraints = "~> 1.0" + +// MetadataFunctions is the top-level object returned when exporting function +// signatures +type MetadataFunctions struct { + // The version of the format. This should always match the + // MetadataFunctionsFormatVersionConstraints in this package, else + // unmarshaling will fail. + FormatVersion string `json:"format_version"` + + // The signatures of the functions available in a Terraform version. + Signatures map[string]*FunctionSignature `json:"function_signatures,omitempty"` +} + +// Validate checks to ensure that MetadataFunctions is present, and the +// version matches the version supported by this library. +func (f *MetadataFunctions) Validate() error { + if f == nil { + return errors.New("metadata functions data is nil") + } + + if f.FormatVersion == "" { + return errors.New("unexpected metadata functions data, format version is missing") + } + + constraint, err := version.NewConstraint(MetadataFunctionsFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(f.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", f.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported metadata functions format version: %q does not satisfy %q", + version, constraint) + } + + return nil +} + +func (f *MetadataFunctions) UnmarshalJSON(b []byte) error { + type rawFunctions MetadataFunctions + var functions rawFunctions + + err := json.Unmarshal(b, &functions) + if err != nil { + return err + } + + *f = *(*MetadataFunctions)(&functions) + + return f.Validate() +} + +// FunctionSignature represents a function signature. +type FunctionSignature struct { + // Description is an optional human-readable description + // of the function + Description string `json:"description,omitempty"` + + // ReturnType is the ctyjson representation of the function's + // return types based on supplying all parameters using + // dynamic types. Functions can have dynamic return types. + ReturnType cty.Type `json:"return_type"` + + // Parameters describes the function's fixed positional parameters. + Parameters []*FunctionParameter `json:"parameters,omitempty"` + + // VariadicParameter describes the function's variadic + // parameter if it is supported. + VariadicParameter *FunctionParameter `json:"variadic_parameter,omitempty"` +} + +// FunctionParameter represents a parameter to a function. +type FunctionParameter struct { + // Name is an optional name for the argument. + Name string `json:"name,omitempty"` + + // Description is an optional human-readable description + // of the argument + Description string `json:"description,omitempty"` + + // IsNullable is true if null is acceptable value for the argument + IsNullable bool `json:"is_nullable,omitempty"` + + // A type that any argument for this parameter must conform to. + Type cty.Type `json:"type"` +} diff --git a/vendor/github.com/hashicorp/terraform-json/plan.go b/vendor/github.com/hashicorp/terraform-json/plan.go index 97635bd4733..274006a0180 100644 --- a/vendor/github.com/hashicorp/terraform-json/plan.go +++ b/vendor/github.com/hashicorp/terraform-json/plan.go @@ -4,11 +4,13 @@ import ( "encoding/json" "errors" "fmt" + + "github.com/hashicorp/go-version" ) -// PlanFormatVersions represents versions of the JSON plan format that -// are supported by this package. -var PlanFormatVersions = []string{"0.1", "0.2"} +// PlanFormatVersionConstraints defines the versions of the JSON plan format +// that are supported by this package. +var PlanFormatVersionConstraints = ">= 0.1, < 2.0" // ResourceMode is a string representation of the resource type found // in certain fields in the plan. @@ -53,6 +55,19 @@ type Plan struct { // The Terraform configuration used to make the plan. Config *Config `json:"configuration,omitempty"` + + // RelevantAttributes represents any resource instances and their + // attributes which may have contributed to the planned changes + RelevantAttributes []ResourceAttribute `json:"relevant_attributes,omitempty"` +} + +// ResourceAttribute describes a full path to a resource attribute +type ResourceAttribute struct { + // Resource describes resource instance address (e.g. null_resource.foo) + Resource string `json:"resource"` + // Attribute describes the attribute path using a lossy representation + // of cty.Path. (e.g. ["id"] or ["objects", 0, "val"]). + Attribute []json.RawMessage `json:"attribute"` } // Validate checks to ensure that the plan is present, and the @@ -66,9 +81,19 @@ func (p *Plan) Validate() error { return errors.New("unexpected plan input, format version is missing") } - if !isStringInSlice(PlanFormatVersions, p.FormatVersion) { - return fmt.Errorf("unsupported plan format version: expected %q, got %q", - PlanFormatVersions, p.FormatVersion) + constraint, err := version.NewConstraint(PlanFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(p.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", p.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported plan format version: %q does not satisfy %q", + version, constraint) } return nil diff --git a/vendor/github.com/hashicorp/terraform-json/schemas.go b/vendor/github.com/hashicorp/terraform-json/schemas.go index 88c2c94bb43..f7c8abd50f6 100644 --- a/vendor/github.com/hashicorp/terraform-json/schemas.go +++ b/vendor/github.com/hashicorp/terraform-json/schemas.go @@ -5,12 +5,13 @@ import ( "errors" "fmt" + "github.com/hashicorp/go-version" "github.com/zclconf/go-cty/cty" ) -// ProviderSchemasFormatVersions represents the versions of -// the JSON provider schema format that are supported by this package. -var ProviderSchemasFormatVersions = []string{"0.1", "0.2"} +// ProviderSchemasFormatVersionConstraints defines the versions of the JSON +// provider schema format that are supported by this package. +var ProviderSchemasFormatVersionConstraints = ">= 0.1, < 2.0" // ProviderSchemas represents the schemas of all providers and // resources in use by the configuration. @@ -38,9 +39,19 @@ func (p *ProviderSchemas) Validate() error { return errors.New("unexpected provider schema data, format version is missing") } - if !isStringInSlice(ProviderSchemasFormatVersions, p.FormatVersion) { - return fmt.Errorf("unsupported provider schema data format version: expected %q, got %q", - ProviderSchemasFormatVersions, p.FormatVersion) + constraint, err := version.NewConstraint(ProviderSchemasFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(p.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", p.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported provider schema format version: %q does not satisfy %q", + version, constraint) } return nil @@ -212,6 +223,43 @@ type SchemaAttribute struct { Sensitive bool `json:"sensitive,omitempty"` } +// jsonSchemaAttribute describes an attribute within a schema block +// in a middle-step internal representation before marshalled into +// a more useful SchemaAttribute with cty.Type. +// +// This avoid panic on marshalling cty.NilType (from cty upstream) +// which the default Go marshaller cannot ignore because it's a +// not nil-able struct. +type jsonSchemaAttribute struct { + AttributeType json.RawMessage `json:"type,omitempty"` + AttributeNestedType *SchemaNestedAttributeType `json:"nested_type,omitempty"` + Description string `json:"description,omitempty"` + DescriptionKind SchemaDescriptionKind `json:"description_kind,omitempty"` + Deprecated bool `json:"deprecated,omitempty"` + Required bool `json:"required,omitempty"` + Optional bool `json:"optional,omitempty"` + Computed bool `json:"computed,omitempty"` + Sensitive bool `json:"sensitive,omitempty"` +} + +func (as *SchemaAttribute) MarshalJSON() ([]byte, error) { + jsonSa := &jsonSchemaAttribute{ + AttributeNestedType: as.AttributeNestedType, + Description: as.Description, + DescriptionKind: as.DescriptionKind, + Deprecated: as.Deprecated, + Required: as.Required, + Optional: as.Optional, + Computed: as.Computed, + Sensitive: as.Sensitive, + } + if as.AttributeType != cty.NilType { + attrTy, _ := as.AttributeType.MarshalJSON() + jsonSa.AttributeType = attrTy + } + return json.Marshal(jsonSa) +} + // SchemaNestedAttributeType describes a nested attribute // which could also be just expressed simply as cty.Object(...), // cty.List(cty.Object(...)) etc. but this allows tracking additional diff --git a/vendor/github.com/hashicorp/terraform-json/state.go b/vendor/github.com/hashicorp/terraform-json/state.go index ad632e49d5c..3c3f6a4b0aa 100644 --- a/vendor/github.com/hashicorp/terraform-json/state.go +++ b/vendor/github.com/hashicorp/terraform-json/state.go @@ -5,11 +5,14 @@ import ( "encoding/json" "errors" "fmt" + + "github.com/hashicorp/go-version" + "github.com/zclconf/go-cty/cty" ) -// StateFormatVersions represents the versions of the JSON state format +// StateFormatVersionConstraints defines the versions of the JSON state format // that are supported by this package. -var StateFormatVersions = []string{"0.1", "0.2"} +var StateFormatVersionConstraints = ">= 0.1, < 2.0" // State is the top-level representation of a Terraform state. type State struct { @@ -50,9 +53,19 @@ func (s *State) Validate() error { return errors.New("unexpected state input, format version is missing") } - if !isStringInSlice(StateFormatVersions, s.FormatVersion) { - return fmt.Errorf("unsupported state format version: expected %q, got %q", - StateFormatVersions, s.FormatVersion) + constraint, err := version.NewConstraint(StateFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(s.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", s.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported state format version: %q does not satisfy %q", + version, constraint) } return nil @@ -163,4 +176,31 @@ type StateOutput struct { // The value of the output. Value interface{} `json:"value,omitempty"` + + // The type of the output. + Type cty.Type `json:"type,omitempty"` +} + +// jsonStateOutput describes an output value in a middle-step internal +// representation before marshalled into a more useful StateOutput with cty.Type. +// +// This avoid panic on marshalling cty.NilType (from cty upstream) +// which the default Go marshaller cannot ignore because it's a +// not nil-able struct. +type jsonStateOutput struct { + Sensitive bool `json:"sensitive"` + Value interface{} `json:"value,omitempty"` + Type json.RawMessage `json:"type,omitempty"` +} + +func (so *StateOutput) MarshalJSON() ([]byte, error) { + jsonSa := &jsonStateOutput{ + Sensitive: so.Sensitive, + Value: so.Value, + } + if so.Type != cty.NilType { + outputType, _ := so.Type.MarshalJSON() + jsonSa.Type = outputType + } + return json.Marshal(jsonSa) } diff --git a/vendor/github.com/hashicorp/terraform-json/validate.go b/vendor/github.com/hashicorp/terraform-json/validate.go index db9db1919ce..97b82d0a979 100644 --- a/vendor/github.com/hashicorp/terraform-json/validate.go +++ b/vendor/github.com/hashicorp/terraform-json/validate.go @@ -4,8 +4,14 @@ import ( "encoding/json" "errors" "fmt" + + "github.com/hashicorp/go-version" ) +// ValidateFormatVersionConstraints defines the versions of the JSON +// validate format that are supported by this package. +var ValidateFormatVersionConstraints = ">= 0.1, < 2.0" + // Pos represents a position in a config file type Pos struct { Line int `json:"line"` @@ -110,10 +116,19 @@ func (vo *ValidateOutput) Validate() error { return nil } - supportedVersion := "0.1" - if vo.FormatVersion != supportedVersion { - return fmt.Errorf("unsupported validation output format version: expected %q, got %q", - supportedVersion, vo.FormatVersion) + constraint, err := version.NewConstraint(ValidateFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(vo.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", vo.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported validation output format version: %q does not satisfy %q", + version, constraint) } return nil diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go new file mode 100644 index 00000000000..8f9bf795641 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// 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 CA bundle. + Id *string `mandatory:"true" json:"id"` + + // 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 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 CaBundle) 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/certificate_authority_bundle.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go new file mode 100644 index 00000000000..d5baf83e096 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2023, 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/certificates/certificate_authority_bundle_version_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go new file mode 100644 index 00000000000..fad700a4655 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// CertificateAuthorityBundleVersionCollection The results of a certificate authority (CA) version search. Results contain CA version summary objects and other data. +type CertificateAuthorityBundleVersionCollection struct { + + // A list of CA version summary objects. + Items []CertificateAuthorityBundleVersionSummary `mandatory:"true" json:"items"` +} + +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 CertificateAuthorityBundleVersionCollection) 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/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..e866c4858d7 --- /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, 2023, 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..6aa7b7aff92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle.go @@ -0,0 +1,237 @@ +// Copyright (c) 2016, 2018, 2023, 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 + 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"` + CertificatePem *string `mandatory:"false" json:"certificatePem"` + CertChainPem *string `mandatory:"false" json:"certChainPem"` + VersionName *string `mandatory:"false" json:"versionName"` + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` + 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: + return *m, nil + } +} + +//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 +} + +//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 +} + +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..f3d5699bebe --- /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, 2023, 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/certificates/certificate_bundle_version_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go new file mode 100644 index 00000000000..30f6dae7806 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// CertificateBundleVersionCollection The results of a certificate bundle versions search. Results contain certificate bundle version summary objects. +type CertificateBundleVersionCollection struct { + + // A list of certificate bundle version summary objects. + Items []CertificateBundleVersionSummary `mandatory:"true" json:"items"` +} + +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 CertificateBundleVersionCollection) 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/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..16eed0432ef --- /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, 2023, 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..dec96e902ce --- /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, 2023, 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..91f98272a76 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificates_client.go @@ -0,0 +1,377 @@ +// Copyright (c) 2016, 2018, 2023, 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) { + 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/certificates/get_ca_bundle_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go new file mode 100644 index 00000000000..9f1959031b8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// GetCaBundleRequest wrapper for the GetCaBundle operation +// +// 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 GetCaBundleRequest. +type GetCaBundleRequest struct { + + // The OCID of the CA bundle. + CaBundleId *string `mandatory:"true" contributesTo:"path" name:"caBundleId"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCaBundleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCaBundleRequest) 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 GetCaBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +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 GetCaBundleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCaBundleResponse wrapper for the GetCaBundle operation +type GetCaBundleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // 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. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetCaBundleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +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..c166667cc8e --- /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, 2023, 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..3bd35c42f04 --- /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, 2023, 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..16cb070ce1f --- /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, 2023, 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..dd4fa3614e7 --- /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, 2023, 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..cf1da2df2ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_reason.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2023, 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/certificates/revocation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go new file mode 100644 index 00000000000..17e0d2f6e72 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// RevocationStatus The current revocation status of the certificate or certificate authority (CA). +type RevocationStatus struct { + + // 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 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 RevocationStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + 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 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} 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..3eef35e7dec --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/validity.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2023, 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..82ac5eb07b2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/version_stage.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2023, 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/zclconf/go-cty/cty/function/stdlib/collection.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go index f50f196e2ca..279a20ee535 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go @@ -538,7 +538,7 @@ func flattener(flattenList cty.Value) ([]cty.Value, []cty.ValueMarks, bool) { // Any dynamic types could result in more collections that need to be // flattened, so the type cannot be known. - if val.Type().Equals(cty.DynamicPseudoType) { + if val == cty.DynamicVal { isKnown = false } diff --git a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go index 5070a5adf57..339d04dbdbd 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go @@ -30,7 +30,7 @@ var CSVDecodeFunc = function.New(&function.Spec{ return cty.DynamicPseudoType, fmt.Errorf("missing header line") } if err != nil { - return cty.DynamicPseudoType, err + return cty.DynamicPseudoType, csvError(err) } atys := make(map[string]cty.Type, len(headers)) @@ -64,7 +64,7 @@ var CSVDecodeFunc = function.New(&function.Spec{ break } if err != nil { - return cty.DynamicVal, err + return cty.DynamicVal, csvError(err) } vals := make(map[string]cty.Value, len(cols)) @@ -91,3 +91,12 @@ var CSVDecodeFunc = function.New(&function.Spec{ func CSVDecode(str cty.Value) (cty.Value, error) { return CSVDecodeFunc.Call([]cty.Value{str}) } + +func csvError(err error) error { + switch err := err.(type) { + case *csv.ParseError: + return fmt.Errorf("CSV parse error on line %d: %w", err.Line, err.Err) + default: + return err + } +} diff --git a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go index 63881f58531..8b17758950c 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go @@ -114,6 +114,8 @@ var FormatListFunc = function.New(&function.Spec{ continue } iterators[i] = arg.ElementIterator() + case arg == cty.DynamicVal: + unknowns[i] = true default: singleVals[i] = arg } diff --git a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go index 7bbe584b0a1..4effeb7bb8d 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go @@ -371,14 +371,21 @@ var CeilFunc = function.New(&function.Spec{ }, Type: function.StaticReturnType(cty.Number), Impl: func(args []cty.Value, retType cty.Type) (ret cty.Value, err error) { - var val float64 - if err := gocty.FromCtyValue(args[0], &val); err != nil { - return cty.UnknownVal(cty.String), err + f := args[0].AsBigFloat() + + if f.IsInf() { + return cty.NumberVal(f), nil } - if math.IsInf(val, 0) { - return cty.NumberFloatVal(val), nil + + i, acc := f.Int(nil) + switch acc { + case big.Exact, big.Above: + // Done. + case big.Below: + i.Add(i, big.NewInt(1)) } - return cty.NumberIntVal(int64(math.Ceil(val))), nil + + return cty.NumberVal(f.SetInt(i)), nil }, }) @@ -393,14 +400,21 @@ var FloorFunc = function.New(&function.Spec{ }, Type: function.StaticReturnType(cty.Number), Impl: func(args []cty.Value, retType cty.Type) (ret cty.Value, err error) { - var val float64 - if err := gocty.FromCtyValue(args[0], &val); err != nil { - return cty.UnknownVal(cty.String), err + f := args[0].AsBigFloat() + + if f.IsInf() { + return cty.NumberVal(f), nil } - if math.IsInf(val, 0) { - return cty.NumberFloatVal(val), nil + + i, acc := f.Int(nil) + switch acc { + case big.Exact, big.Below: + // Done. + case big.Above: + i.Sub(i, big.NewInt(1)) } - return cty.NumberIntVal(int64(math.Floor(val))), nil + + return cty.NumberVal(f.SetInt(i)), nil }, }) diff --git a/vendor/github.com/zclconf/go-cty/cty/primitive_type.go b/vendor/github.com/zclconf/go-cty/cty/primitive_type.go index 7b3d1196cd0..603901732b1 100644 --- a/vendor/github.com/zclconf/go-cty/cty/primitive_type.go +++ b/vendor/github.com/zclconf/go-cty/cty/primitive_type.go @@ -52,6 +52,51 @@ func (t primitiveType) GoString() string { } } +// rawNumberEqual is our cty-specific definition of whether two big floats +// underlying cty.Number are "equal" for the purposes of the Value.Equals and +// Value.RawEquals methods. +// +// The built-in equality for big.Float is a direct comparison of the mantissa +// bits and the exponent, but that's too precise a check for cty because we +// routinely send numbers through decimal approximations and back and so +// we only promise to accurately represent the subset of binary floating point +// numbers that can be derived from a decimal string representation. +// +// In respect of the fact that cty only tries to preserve numbers that can +// reasonably be written in JSON documents, we use the string representation of +// a decimal approximation of the number as our comparison, relying on the +// big.Float type's heuristic for discarding extraneous mantissa bits that seem +// likely to only be there as a result of an earlier decimal-to-binary +// approximation during parsing, e.g. in ParseNumberVal. +func rawNumberEqual(a, b *big.Float) bool { + switch { + case (a == nil) != (b == nil): + return false + case a == nil: // b == nil too then, due to previous case + return true + default: + // This format and precision matches that used by cty/json.Marshal, + // and thus achieves our definition of "two numbers are equal if + // we'd use the same JSON serialization for both of them". + const format = 'f' + const prec = -1 + aStr := a.Text(format, prec) + bStr := b.Text(format, prec) + + // The one exception to our rule about equality-by-stringification is + // negative zero, because we want -0 to always be equal to +0. + const posZero = "0" + const negZero = "-0" + if aStr == negZero { + aStr = posZero + } + if bStr == negZero { + bStr = posZero + } + return aStr == bStr + } +} + // Number is the numeric type. Number values are arbitrary-precision // decimal numbers, which can then be converted into Go's various numeric // types only if they are in the appropriate range. diff --git a/vendor/github.com/zclconf/go-cty/cty/value_ops.go b/vendor/github.com/zclconf/go-cty/cty/value_ops.go index 8c37535c885..cdcc1506f01 100644 --- a/vendor/github.com/zclconf/go-cty/cty/value_ops.go +++ b/vendor/github.com/zclconf/go-cty/cty/value_ops.go @@ -116,9 +116,9 @@ func (val Value) GoString() string { // Use RawEquals to compare if two values are equal *ignoring* the // short-circuit rules and the exception for null values. func (val Value) Equals(other Value) Value { - if val.IsMarked() || other.IsMarked() { - val, valMarks := val.Unmark() - other, otherMarks := other.Unmark() + if val.ContainsMarked() || other.ContainsMarked() { + val, valMarks := val.UnmarkDeep() + other, otherMarks := other.UnmarkDeep() return val.Equals(other).WithMarks(valMarks, otherMarks) } @@ -191,7 +191,7 @@ func (val Value) Equals(other Value) Value { switch { case ty == Number: - result = val.v.(*big.Float).Cmp(other.v.(*big.Float)) == 0 + result = rawNumberEqual(val.v.(*big.Float), other.v.(*big.Float)) case ty == Bool: result = val.v.(bool) == other.v.(bool) case ty == String: @@ -1283,9 +1283,7 @@ func (val Value) AsBigFloat() *big.Float { } // Copy the float so that callers can't mutate our internal state - ret := *(val.v.(*big.Float)) - - return &ret + return new(big.Float).Copy(val.v.(*big.Float)) } // AsValueSlice returns a []cty.Value representation of a non-null, non-unknown diff --git a/vendor/github.com/zclconf/go-cty/cty/walk.go b/vendor/github.com/zclconf/go-cty/cty/walk.go index d17f48ccd1e..87ba32e796b 100644 --- a/vendor/github.com/zclconf/go-cty/cty/walk.go +++ b/vendor/github.com/zclconf/go-cty/cty/walk.go @@ -33,10 +33,15 @@ func walk(path Path, val Value, cb func(Path, Value) (bool, error)) error { return nil } + // The callback already got a chance to see the mark in our + // call above, so can safely strip it off here in order to + // visit the child elements, which might still have their own marks. + rawVal, _ := val.Unmark() + ty := val.Type() switch { case ty.IsObjectType(): - for it := val.ElementIterator(); it.Next(); { + for it := rawVal.ElementIterator(); it.Next(); { nameVal, av := it.Element() path := append(path, GetAttrStep{ Name: nameVal.AsString(), @@ -46,8 +51,8 @@ func walk(path Path, val Value, cb func(Path, Value) (bool, error)) error { return err } } - case val.CanIterateElements(): - for it := val.ElementIterator(); it.Next(); { + case rawVal.CanIterateElements(): + for it := rawVal.ElementIterator(); it.Next(); { kv, ev := it.Element() path := append(path, IndexStep{ Key: kv, @@ -134,6 +139,12 @@ func transform(path Path, val Value, t Transformer) (Value, error) { ty := val.Type() var newVal Value + // We need to peel off any marks here so that we can dig around + // inside any collection values. We'll reapply these to any + // new collections we construct, but the transformer's Exit + // method gets the final say on what to do with those. + rawVal, marks := val.Unmark() + switch { case val.IsNull() || !val.IsKnown(): @@ -141,14 +152,14 @@ func transform(path Path, val Value, t Transformer) (Value, error) { newVal = val case ty.IsListType() || ty.IsSetType() || ty.IsTupleType(): - l := val.LengthInt() + l := rawVal.LengthInt() switch l { case 0: // No deep transform for an empty sequence newVal = val default: elems := make([]Value, 0, l) - for it := val.ElementIterator(); it.Next(); { + for it := rawVal.ElementIterator(); it.Next(); { kv, ev := it.Element() path := append(path, IndexStep{ Key: kv, @@ -161,25 +172,25 @@ func transform(path Path, val Value, t Transformer) (Value, error) { } switch { case ty.IsListType(): - newVal = ListVal(elems) + newVal = ListVal(elems).WithMarks(marks) case ty.IsSetType(): - newVal = SetVal(elems) + newVal = SetVal(elems).WithMarks(marks) case ty.IsTupleType(): - newVal = TupleVal(elems) + newVal = TupleVal(elems).WithMarks(marks) default: panic("unknown sequence type") // should never happen because of the case we are in } } case ty.IsMapType(): - l := val.LengthInt() + l := rawVal.LengthInt() switch l { case 0: // No deep transform for an empty map newVal = val default: elems := make(map[string]Value) - for it := val.ElementIterator(); it.Next(); { + for it := rawVal.ElementIterator(); it.Next(); { kv, ev := it.Element() path := append(path, IndexStep{ Key: kv, @@ -190,7 +201,7 @@ func transform(path Path, val Value, t Transformer) (Value, error) { } elems[kv.AsString()] = newEv } - newVal = MapVal(elems) + newVal = MapVal(elems).WithMarks(marks) } case ty.IsObjectType(): @@ -212,7 +223,7 @@ func transform(path Path, val Value, t Transformer) (Value, error) { } newAVs[name] = newAV } - newVal = ObjectVal(newAVs) + newVal = ObjectVal(newAVs).WithMarks(marks) } default: diff --git a/vendor/modules.txt b/vendor/modules.txt index 0149c4b2c2e..d7662bdb295 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -99,8 +99,8 @@ github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/golang/protobuf/ptypes/empty github.com/golang/protobuf/ptypes/timestamp -# github.com/google/go-cmp v0.5.6 -## explicit; go 1.8 +# github.com/google/go-cmp v0.5.9 +## explicit; go 1.13 github.com/google/go-cmp/cmp github.com/google/go-cmp/cmp/internal/diff github.com/google/go-cmp/cmp/internal/flags @@ -146,7 +146,7 @@ github.com/hashicorp/go-safetemp # github.com/hashicorp/go-uuid v1.0.1 ## explicit github.com/hashicorp/go-uuid -# github.com/hashicorp/go-version v1.3.0 +# github.com/hashicorp/go-version v1.6.0 ## explicit github.com/hashicorp/go-version # github.com/hashicorp/hcl/v2 v2.8.2 @@ -167,7 +167,7 @@ github.com/hashicorp/logutils github.com/hashicorp/terraform-exec/internal/version github.com/hashicorp/terraform-exec/tfexec github.com/hashicorp/terraform-exec/tfinstall -# github.com/hashicorp/terraform-json v0.12.0 +# github.com/hashicorp/terraform-json v0.15.0 ## explicit; go 1.13 github.com/hashicorp/terraform-json # github.com/hashicorp/terraform-plugin-go v0.3.0 @@ -269,6 +269,7 @@ github.com/oracle/oci-go-sdk/v65/bastion 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/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 @@ -381,7 +382,7 @@ github.com/ulikunitz/xz/lzma ## explicit github.com/vmihailenco/msgpack github.com/vmihailenco/msgpack/codes -# github.com/zclconf/go-cty v1.8.4 +# github.com/zclconf/go-cty v1.10.0 ## explicit; go 1.12 github.com/zclconf/go-cty/cty github.com/zclconf/go-cty/cty/convert 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. From 885d842b212201d910dae3d58d834f7e5dd8cc49 Mon Sep 17 00:00:00 2001 From: Terraform Team Automation Date: Fri, 21 Jul 2023 18:32:47 +0000 Subject: [PATCH 02/25] Added - Support for Custom hostname Terraform Instance Pools - Custom hostname support --- .../compute/instance_pool/instance_pool.tf | 2 + .../core_cluster_network_test.go | 6 +++ .../core_instance_pool_test.go | 32 ++++++++++------ .../core/core_cluster_network_resource.go | 17 ++++++++- .../core/core_instance_pool_data_source.go | 8 ++++ .../core/core_instance_pool_resource.go | 38 +++++++++++++++++++ .../docs/d/core_instance_pool.html.markdown | 2 + .../docs/d/core_instance_pools.html.markdown | 2 + .../docs/r/core_instance_pool.html.markdown | 6 +++ 9 files changed, 101 insertions(+), 12 deletions(-) diff --git a/examples/compute/instance_pool/instance_pool.tf b/examples/compute/instance_pool/instance_pool.tf index 9a9975e3951..11c31ee449e 100644 --- a/examples/compute/instance_pool/instance_pool.tf +++ b/examples/compute/instance_pool/instance_pool.tf @@ -270,6 +270,8 @@ resource "oci_core_instance_pool" "test_instance_pool" { size = 2 state = "RUNNING" display_name = "TestInstancePool" + instance_display_name_formatter = "host-$${launchCount}" + instance_hostname_formatter = "host-$${launchCount}" placement_configurations { availability_domain = data.oci_identity_availability_domain.ad.name diff --git a/internal/integrationtest/core_cluster_network_test.go b/internal/integrationtest/core_cluster_network_test.go index c036c1cae93..db05f332ad7 100644 --- a/internal/integrationtest/core_cluster_network_test.go +++ b/internal/integrationtest/core_cluster_network_test.go @@ -171,6 +171,8 @@ func TestCoreClusterNetworkResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "instance_pools.0.display_name", "hpc-cluster-network-pool"), resource.TestCheckResourceAttr(resourceName, "instance_pools.0.freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "instance_pools.0.id"), + resource.TestCheckResourceAttr(resourceName, "instance_pools.0.instance_display_name_formatter", ""), + resource.TestCheckResourceAttr(resourceName, "instance_pools.0.instance_hostname_formatter", ""), resource.TestCheckResourceAttrSet(resourceName, "instance_pools.0.instance_configuration_id"), resource.TestCheckResourceAttr(resourceName, "instance_pools.0.placement_configurations.#", "1"), resource.TestCheckResourceAttr(resourceName, "instance_pools.0.size", "1"), @@ -219,6 +221,8 @@ func TestCoreClusterNetworkResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "instance_pools.0.freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "instance_pools.0.id"), resource.TestCheckResourceAttrSet(resourceName, "instance_pools.0.instance_configuration_id"), + resource.TestCheckResourceAttr(resourceName, "instance_pools.0.instance_display_name_formatter", ""), + resource.TestCheckResourceAttr(resourceName, "instance_pools.0.instance_hostname_formatter", ""), resource.TestCheckResourceAttr(resourceName, "instance_pools.0.placement_configurations.#", "1"), resource.TestCheckResourceAttr(resourceName, "instance_pools.0.size", "1"), resource.TestCheckResourceAttrSet(resourceName, "instance_pools.0.state"), @@ -309,6 +313,8 @@ func TestCoreClusterNetworkResource_basic(t *testing.T) { resource.TestCheckResourceAttr(datasourceName, "cluster_networks.0.instance_pools.0.display_name", "hpc-cluster-network-pool2"), resource.TestCheckResourceAttr(datasourceName, "cluster_networks.0.instance_pools.0.freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(datasourceName, "cluster_networks.0.instance_pools.0.id"), + resource.TestCheckResourceAttr(datasourceName, "cluster_networks.0.instance_pools.0.instance_display_name_formatter", ""), + resource.TestCheckResourceAttr(datasourceName, "cluster_networks.0.instance_pools.0.instance_hostname_formatter", ""), resource.TestCheckResourceAttrSet(datasourceName, "cluster_networks.0.instance_pools.0.instance_configuration_id"), resource.TestCheckResourceAttr(datasourceName, "cluster_networks.0.instance_pools.0.placement_configurations.#", "0"), resource.TestCheckResourceAttr(datasourceName, "cluster_networks.0.instance_pools.0.size", "2"), diff --git a/internal/integrationtest/core_instance_pool_test.go b/internal/integrationtest/core_instance_pool_test.go index 7c1b1390766..e571980c8f8 100644 --- a/internal/integrationtest/core_instance_pool_test.go +++ b/internal/integrationtest/core_instance_pool_test.go @@ -46,15 +46,17 @@ var ( } CoreInstancePoolRepresentation = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "instance_configuration_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_instance_configuration.test_instance_configuration.id}`}, - "placement_configurations": acctest.RepresentationGroup{RepType: acctest.Required, Group: CoreInstancePoolPlacementConfigurationsRepresentation}, - "size": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, - "state": acctest.Representation{RepType: acctest.Optional, Create: `Running`}, - "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, - "display_name": acctest.Representation{RepType: acctest.Optional, Create: `backend-servers-pool`, Update: `displayName2`}, - "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, - "load_balancers": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstancePoolLoadBalancersRepresentation}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "instance_configuration_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_instance_configuration.test_instance_configuration.id}`}, + "placement_configurations": acctest.RepresentationGroup{RepType: acctest.Required, Group: CoreInstancePoolPlacementConfigurationsRepresentation}, + "size": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `Running`}, + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `backend-servers-pool`, Update: `displayName2`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, + "load_balancers": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstancePoolLoadBalancersRepresentation}, + "instance_display_name_formatter": acctest.Representation{RepType: acctest.Optional, Create: `host-$${launchCount}`, Update: `host2-$${launchCount}`}, + "instance_hostname_formatter": acctest.Representation{RepType: acctest.Optional, Create: `host-$${launchCount}`, Update: `host2-$${launchCount}`}, } CoreInstancePoolRepresentationWithLifecycleSizeIgnoreChanges = map[string]interface{}{ @@ -148,8 +150,8 @@ var ( CoreInstancePoolResourceDependencies = utils.OciImageIdsVariable + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details.launch_details.launch_options", instanceLaunchOptionsRepresentationForInstanceConfiguration, CoreInstancePoolConfigurationPoolRepresentation)) + acctest.GenerateResourceFromRepresentationMap("oci_core_instance", "test_instance", acctest.Required, acctest.Create, CoreInstanceRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", acctest.Required, acctest.Create, CoreSubnetRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Required, acctest.Create, CoreVcnRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", acctest.Optional, acctest.Create, CoreSubnetRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Optional, acctest.Create, CoreVcnRepresentation) + AvailabilityDomainConfig + DefinedTagsDependencies + acctest.GenerateResourceFromRepresentationMap("oci_load_balancer_backend_set", "test_backend_set", acctest.Required, acctest.Create, backendSetRepresentation) + @@ -216,6 +218,8 @@ func TestCoreInstancePoolResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), resource.TestCheckResourceAttrSet(resourceName, "instance_configuration_id"), + resource.TestCheckResourceAttr(resourceName, "instance_display_name_formatter", "host-${launchCount}"), + resource.TestCheckResourceAttr(resourceName, "instance_hostname_formatter", "host-${launchCount}"), resource.TestCheckResourceAttr(resourceName, "load_balancers.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "load_balancers.0.backend_set_name"), resource.TestCheckResourceAttrSet(resourceName, "load_balancers.0.id"), @@ -260,6 +264,8 @@ func TestCoreInstancePoolResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), resource.TestCheckResourceAttrSet(resourceName, "instance_configuration_id"), + resource.TestCheckResourceAttr(resourceName, "instance_display_name_formatter", "host-${launchCount}"), + resource.TestCheckResourceAttr(resourceName, "instance_hostname_formatter", "host-${launchCount}"), resource.TestCheckResourceAttr(resourceName, "load_balancers.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "load_balancers.0.backend_set_name"), resource.TestCheckResourceAttrSet(resourceName, "load_balancers.0.id"), @@ -296,6 +302,8 @@ func TestCoreInstancePoolResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), resource.TestCheckResourceAttrSet(resourceName, "instance_configuration_id"), + resource.TestCheckResourceAttr(resourceName, "instance_display_name_formatter", "host2-${launchCount}"), + resource.TestCheckResourceAttr(resourceName, "instance_hostname_formatter", "host2-${launchCount}"), resource.TestCheckResourceAttr(resourceName, "load_balancers.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "load_balancers.0.backend_set_name"), resource.TestCheckResourceAttrSet(resourceName, "load_balancers.0.id"), @@ -487,6 +495,8 @@ func TestCoreInstancePoolResource_basic(t *testing.T) { resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "displayName2"), resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttr(singularDatasourceName, "instance_display_name_formatter", "host2-${launchCount}"), + resource.TestCheckResourceAttr(singularDatasourceName, "instance_hostname_formatter", "host2-${launchCount}"), resource.TestCheckResourceAttr(singularDatasourceName, "load_balancers.#", "1"), resource.TestCheckResourceAttrSet(singularDatasourceName, "load_balancers.0.id"), resource.TestCheckResourceAttrSet(singularDatasourceName, "load_balancers.0.instance_pool_id"), diff --git a/internal/service/core/core_cluster_network_resource.go b/internal/service/core/core_cluster_network_resource.go index 2cf95cba032..aad4c219acf 100644 --- a/internal/service/core/core_cluster_network_resource.go +++ b/internal/service/core/core_cluster_network_resource.go @@ -67,12 +67,19 @@ func CoreClusterNetworkResource() *schema.Resource { Computed: true, Elem: schema.TypeString, }, - // Computed "id": { Type: schema.TypeString, Computed: true, }, + "instance_display_name_formatter": { + Type: schema.TypeString, + Computed: true, + }, + "instance_hostname_formatter": { + Type: schema.TypeString, + Computed: true, + }, "compartment_id": { Type: schema.TypeString, Computed: true, @@ -704,6 +711,14 @@ func InstancePoolToMap(obj oci_core.InstancePool) map[string]interface{} { result["instance_configuration_id"] = string(*obj.InstanceConfigurationId) } + if obj.InstanceDisplayNameFormatter != nil { + result["instance_display_name_formatter"] = string(*obj.InstanceDisplayNameFormatter) + } + + if obj.InstanceHostnameFormatter != nil { + result["instance_hostname_formatter"] = string(*obj.InstanceHostnameFormatter) + } + loadBalancers := []interface{}{} for _, item := range obj.LoadBalancers { loadBalancers = append(loadBalancers, InstancePoolLoadBalancerAttachmentToMap(item)) diff --git a/internal/service/core/core_instance_pool_data_source.go b/internal/service/core/core_instance_pool_data_source.go index 38084976930..4cdaf27478c 100644 --- a/internal/service/core/core_instance_pool_data_source.go +++ b/internal/service/core/core_instance_pool_data_source.go @@ -84,6 +84,14 @@ func (s *CoreInstancePoolDataSourceCrud) SetData() error { s.D.Set("instance_configuration_id", *s.Res.InstanceConfigurationId) } + if s.Res.InstanceDisplayNameFormatter != nil { + s.D.Set("instance_display_name_formatter", *s.Res.InstanceDisplayNameFormatter) + } + + if s.Res.InstanceHostnameFormatter != nil { + s.D.Set("instance_hostname_formatter", *s.Res.InstanceHostnameFormatter) + } + loadBalancers := []interface{}{} for _, item := range s.Res.LoadBalancers { if item.LifecycleState != oci_core.InstancePoolLoadBalancerAttachmentLifecycleStateDetached { diff --git a/internal/service/core/core_instance_pool_resource.go b/internal/service/core/core_instance_pool_resource.go index a57c421f526..61278584f52 100644 --- a/internal/service/core/core_instance_pool_resource.go +++ b/internal/service/core/core_instance_pool_resource.go @@ -127,6 +127,16 @@ func CoreInstancePoolResource() *schema.Resource { Computed: true, Elem: schema.TypeString, }, + "instance_display_name_formatter": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "instance_hostname_formatter": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, "load_balancers": { Type: schema.TypeList, Optional: true, @@ -312,6 +322,16 @@ func (s *CoreInstancePoolResourceCrud) Create() error { request.InstanceConfigurationId = &tmp } + if instanceDisplayNameFormatter, ok := s.D.GetOkExists("instance_display_name_formatter"); ok { + tmp := instanceDisplayNameFormatter.(string) + request.InstanceDisplayNameFormatter = &tmp + } + + if instanceHostnameFormatter, ok := s.D.GetOkExists("instance_hostname_formatter"); ok { + tmp := instanceHostnameFormatter.(string) + request.InstanceHostnameFormatter = &tmp + } + if loadBalancers, ok := s.D.GetOkExists("load_balancers"); ok { interfaces := loadBalancers.([]interface{}) tmp := make([]oci_core.AttachLoadBalancerDetails, len(interfaces)) @@ -450,6 +470,16 @@ func (s *CoreInstancePoolResourceCrud) Update() error { request.InstanceConfigurationId = &tmp } + if instanceDisplayNameFormatter, ok := s.D.GetOkExists("instance_display_name_formatter"); ok { + tmp := instanceDisplayNameFormatter.(string) + request.InstanceDisplayNameFormatter = &tmp + } + + if instanceHostnameFormatter, ok := s.D.GetOkExists("instance_hostname_formatter"); ok { + tmp := instanceHostnameFormatter.(string) + request.InstanceHostnameFormatter = &tmp + } + tmp := s.D.Id() request.InstancePoolId = &tmp @@ -540,6 +570,14 @@ func (s *CoreInstancePoolResourceCrud) SetData() error { s.D.Set("instance_configuration_id", *s.Res.InstanceConfigurationId) } + if s.Res.InstanceDisplayNameFormatter != nil { + s.D.Set("instance_display_name_formatter", *s.Res.InstanceDisplayNameFormatter) + } + + if s.Res.InstanceHostnameFormatter != nil { + s.D.Set("instance_hostname_formatter", *s.Res.InstanceHostnameFormatter) + } + loadBalancers := []interface{}{} for _, item := range s.Res.LoadBalancers { if item.LifecycleState != oci_core.InstancePoolLoadBalancerAttachmentLifecycleStateDetached { diff --git a/website/docs/d/core_instance_pool.html.markdown b/website/docs/d/core_instance_pool.html.markdown index 32f7cb5dcd6..71bb1e9cb2d 100644 --- a/website/docs/d/core_instance_pool.html.markdown +++ b/website/docs/d/core_instance_pool.html.markdown @@ -38,6 +38,8 @@ The following attributes are exported: * `freeform_tags` - 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. * `instance_configuration_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated with the instance pool. +* `instance_display_name_formatter` - A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format +* `instance_hostname_formatter` - A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format * `load_balancers` - The load balancers attached to the instance pool. * `backend_set_name` - The name of the backend set on the load balancer. * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer attachment. diff --git a/website/docs/d/core_instance_pools.html.markdown b/website/docs/d/core_instance_pools.html.markdown index 248ba555890..30802ff238f 100644 --- a/website/docs/d/core_instance_pools.html.markdown +++ b/website/docs/d/core_instance_pools.html.markdown @@ -50,6 +50,8 @@ The following attributes are exported: * `freeform_tags` - 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. * `instance_configuration_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated with the instance pool. +* `instance_display_name_formatter` - A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format +* `instance_hostname_formatter` - A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format * `load_balancers` - The load balancers attached to the instance pool. * `backend_set_name` - The name of the backend set on the load balancer. * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer attachment. diff --git a/website/docs/r/core_instance_pool.html.markdown b/website/docs/r/core_instance_pool.html.markdown index 75545acdf56..680b7b9980d 100644 --- a/website/docs/r/core_instance_pool.html.markdown +++ b/website/docs/r/core_instance_pool.html.markdown @@ -45,6 +45,8 @@ resource "oci_core_instance_pool" "test_instance_pool" { defined_tags = {"Operations.CostCenter"= "42"} display_name = var.instance_pool_display_name freeform_tags = {"Department"= "Finance"} + instance_display_name_formatter = var.instance_pool_instance_display_name_formatter + instance_hostname_formatter = var.instance_pool_instance_hostname_formatter load_balancers { #Required backend_set_name = oci_load_balancer_backend_set.test_backend_set.name @@ -64,6 +66,8 @@ The following arguments are supported: * `display_name` - (Optional) (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. * `freeform_tags` - (Optional) (Updatable) 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `instance_configuration_id` - (Required) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated with the instance pool. +* `instance_display_name_formatter` - (Optional) (Updatable) A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format +* `instance_hostname_formatter` - (Optional) (Updatable) A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format * `load_balancers` - (Optional) The load balancers to attach to the instance pool. * `backend_set_name` - (Required) The name of the backend set on the load balancer to add instances to. * `load_balancer_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to attach to the instance pool. @@ -103,6 +107,8 @@ The following attributes are exported: * `freeform_tags` - 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. * `instance_configuration_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated with the instance pool. +* `instance_display_name_formatter` - A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format +* `instance_hostname_formatter` - A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format * `load_balancers` - The load balancers attached to the instance pool. * `backend_set_name` - The name of the backend set on the load balancer. * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer attachment. From 3f0c308defb3af4f9c3b07b2c6bb125b1ba5ec00 Mon Sep 17 00:00:00 2001 From: Nathan Marasigan Date: Wed, 24 May 2023 16:59:07 +0000 Subject: [PATCH 03/25] Added - Support for Budgets - Single Use Budgets --- examples/budget/{ => budget}/main.tf | 86 +++-------- examples/budget/single_use_budget/main.tf | 128 +++++++++++++++++ .../integrationtest/budget_budget_test.go | 136 +++++++++--------- .../budget/budget_budget_data_source.go | 9 ++ .../service/budget/budget_budget_resource.go | 69 ++++++++- .../budget/budget_budgets_data_source.go | 9 ++ website/docs/d/budget_budget.html.markdown | 4 +- website/docs/d/budget_budgets.html.markdown | 7 +- website/docs/r/budget_budget.html.markdown | 10 +- 9 files changed, 303 insertions(+), 155 deletions(-) rename examples/budget/{ => budget}/main.tf (52%) create mode 100644 examples/budget/single_use_budget/main.tf diff --git a/examples/budget/main.tf b/examples/budget/budget/main.tf similarity index 52% rename from examples/budget/main.tf rename to examples/budget/budget/main.tf index 36fcb484fd6..f55c97cdb28 100644 --- a/examples/budget/main.tf +++ b/examples/budget/budget/main.tf @@ -27,7 +27,7 @@ variable "subscription_id" { } provider "oci" { - provider = "4.67.0" + # version = "4.67.0" region = var.region tenancy_ocid = var.tenancy_ocid user_ocid = var.user_ocid @@ -52,40 +52,6 @@ resource "oci_budget_budget" "test_budget" { budget_processing_period_start_offset = "11" } -resource "oci_budget_budget" "test_budget_invoice" { - #Required - amount = "1" - compartment_id = var.tenancy_ocid - reset_period = "MONTHLY" - target_type = "COMPARTMENT" - - targets = [ - var.subscription_id - ] - - #Optional - description = "budget invoice description" - display_name = "budget_invoice" - processing_period_type = "INVOICE" -} - -# get budget should happen after alert rule is successful -# as alert rule creation updates the `alert_rule_count` field -data "oci_budget_budget" "budget1" { - budget_id = oci_budget_budget.test_budget.id - depends_on = [ - data.oci_budget_alert_rule.test_alert_rule - ] -} - -data "oci_budget_budget" "budget_invoice" { - budget_id = oci_budget_budget.test_budget_invoice.id - depends_on = [ - data.oci_budget_alert_rule.test_alert_rule - ] -} - - data "oci_budget_budgets" "test_budgets" { #Required compartment_id = var.tenancy_ocid @@ -96,40 +62,22 @@ data "oci_budget_budgets" "test_budgets" { output "budget" { value = { - amount = data.oci_budget_budget.budget1.amount - compartment_id = data.oci_budget_budget.budget1.compartment_id - reset_period = data.oci_budget_budget.budget1.reset_period - targets = data.oci_budget_budget.budget1.targets[0] - description = data.oci_budget_budget.budget1.description - display_name = data.oci_budget_budget.budget1.display_name - alert_rule_count = data.oci_budget_budget.budget1.alert_rule_count - state = data.oci_budget_budget.budget1.state - time_created = data.oci_budget_budget.budget1.time_created - time_updated = data.oci_budget_budget.budget1.time_updated - version = data.oci_budget_budget.budget1.version + amount = oci_budget_budget.test_budget.amount + compartment_id = oci_budget_budget.test_budget.compartment_id + reset_period = oci_budget_budget.test_budget.reset_period + targets = oci_budget_budget.test_budget.targets[0] + description = oci_budget_budget.test_budget.description + display_name = oci_budget_budget.test_budget.display_name + alert_rule_count = oci_budget_budget.test_budget.alert_rule_count + state = oci_budget_budget.test_budget.state + time_created = oci_budget_budget.test_budget.time_created + time_updated = oci_budget_budget.test_budget.time_updated + version = oci_budget_budget.test_budget.version } # These values are not always present - // actual_spend = data.oci_budget_budget.budget1.actual_spend - // forecasted_spend = data.oci_budget_budget.budget1.forecasted_spend - // time_spend_computed = data.oci_budget_budget.budget1.time_spend_computed -} - -output "budget_invoice" { - value = { - amount = data.oci_budget_budget.budget_invoice.amount - compartment_id = data.oci_budget_budget.budget_invoice.compartment_id - reset_period = data.oci_budget_budget.budget_invoice.reset_period - targets = data.oci_budget_budget.budget_invoice.targets[0] - description = data.oci_budget_budget.budget_invoice.description - display_name = data.oci_budget_budget.budget_invoice.display_name - alert_rule_count = data.oci_budget_budget.budget_invoice.alert_rule_count - state = data.oci_budget_budget.budget_invoice.state - time_created = data.oci_budget_budget.budget_invoice.time_created - time_updated = data.oci_budget_budget.budget_invoice.time_updated - version = data.oci_budget_budget.budget_invoice.version - - processing_period_type = data.oci_budget_budget.budget_invoice.processing_period_type - } + // actual_spend = oci_budget_budget.test_budget.actual_spend + // forecasted_spend = oci_budget_budget.test_budget.forecasted_spend + // time_spend_computed = oci_budget_budget.test_budget.time_spend_computed } resource "oci_budget_alert_rule" "test_alert_rule" { @@ -178,6 +126,4 @@ data "oci_budget_alert_rules" "test_alert_rules" { #Optional // display_name = oci_budget_alert_rule.test_alert_rule.display_name state = "ACTIVE" -} - - +} \ No newline at end of file diff --git a/examples/budget/single_use_budget/main.tf b/examples/budget/single_use_budget/main.tf new file mode 100644 index 00000000000..26975f12238 --- /dev/null +++ b/examples/budget/single_use_budget/main.tf @@ -0,0 +1,128 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +/* + * This example shows how to use the single use budget and alert rule resources. + */ + +variable "tenancy_ocid" { +} + +variable "user_ocid" { +} + +variable "fingerprint" { +} + +variable "private_key_path" { +} + +variable "compartment_ocid" { +} + +variable "region" { +} + +variable "subscription_id" { +} + +provider "oci" { + # version = "4.67.0" + region = var.region + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path +} + +resource "oci_budget_budget" "test_single_use_budget" { + # Required + amount = "1" + compartment_id = var.tenancy_ocid + reset_period = "MONTHLY" + target_type = "COMPARTMENT" + + targets = [ + var.compartment_ocid, + ] + + # Optional + description = "budget single use" + display_name = "budget2" + processing_period_type = "SINGLE_USE" + start_date = "2023-07-12T16:01:19.847222+05:30" + end_date = "2023-08-12T16:01:19.847222+05:30" +} + + +data "oci_budget_budgets" "test_budgets" { + #Required + compartment_id = var.tenancy_ocid + #Optional + // display_name = oci_budget_budget.test_budget.display_name + // state = "ACTIVE" +} + +output "budget_single_use" { + value = { + amount = oci_budget_budget.test_single_use_budget.amount + compartment_id = oci_budget_budget.test_single_use_budget.compartment_id + reset_period = oci_budget_budget.test_single_use_budget.reset_period + targets = oci_budget_budget.test_single_use_budget.targets[0] + description = oci_budget_budget.test_single_use_budget.description + display_name = oci_budget_budget.test_single_use_budget.display_name + alert_rule_count = oci_budget_budget.test_single_use_budget.alert_rule_count + state = oci_budget_budget.test_single_use_budget.state + time_created = oci_budget_budget.test_single_use_budget.time_created + time_updated = oci_budget_budget.test_single_use_budget.time_updated + version = oci_budget_budget.test_single_use_budget.version + processing_period_type = oci_budget_budget.test_single_use_budget.processing_period_type + } +} + +resource "oci_budget_alert_rule" "test_alert_rule" { + #Required + budget_id = oci_budget_budget.test_single_use_budget.id + threshold = "100" + threshold_type = "ABSOLUTE" + type = "ACTUAL" + + #Optional + description = "alertRuleDescription" + display_name = "alertRule" + message = "possible overspend" + recipients = "JohnSmith@example.com" +} + +output "alert_rule" { + value = { + budget_id = data.oci_budget_alert_rule.test_alert_rule.budget_id + recipients = data.oci_budget_alert_rule.test_alert_rule.recipients + description = data.oci_budget_alert_rule.test_alert_rule.description + display_name = data.oci_budget_alert_rule.test_alert_rule.display_name + message = data.oci_budget_alert_rule.test_alert_rule.message + recipients = data.oci_budget_alert_rule.test_alert_rule.recipients + state = data.oci_budget_alert_rule.test_alert_rule.state + threshold = data.oci_budget_alert_rule.test_alert_rule.threshold + threshold_type = data.oci_budget_alert_rule.test_alert_rule.threshold_type + time_created = data.oci_budget_alert_rule.test_alert_rule.time_created + time_updated = data.oci_budget_alert_rule.test_alert_rule.time_updated + type = data.oci_budget_alert_rule.test_alert_rule.type + version = data.oci_budget_alert_rule.test_alert_rule.version + } +} + +data "oci_budget_alert_rule" "test_alert_rule" { + #Required + budget_id = oci_budget_budget.test_single_use_budget.id + alert_rule_id = oci_budget_alert_rule.test_alert_rule.id +} + +data "oci_budget_alert_rules" "test_alert_rules" { + #Required + budget_id = oci_budget_budget.test_single_use_budget.id + + #Optional + // display_name = oci_budget_alert_rule.test_alert_rule.display_name + state = "ACTIVE" +} \ No newline at end of file diff --git a/internal/integrationtest/budget_budget_test.go b/internal/integrationtest/budget_budget_test.go index 76057777443..59fd7fe9124 100644 --- a/internal/integrationtest/budget_budget_test.go +++ b/internal/integrationtest/budget_budget_test.go @@ -8,6 +8,7 @@ import ( "fmt" "strconv" "testing" + "time" tf_client "github.com/oracle/terraform-provider-oci/internal/client" "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" @@ -60,7 +61,8 @@ var ( "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, "processing_period_type": acctest.Representation{RepType: acctest.Optional, Create: `MONTH`}, - "target_compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "target_compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "target_type": acctest.Representation{RepType: acctest.Optional, Create: `COMPARTMENT`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTagChange}, } @@ -93,19 +95,31 @@ var ( "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTagChange}, } - //Budget with Processing Period Type = INVOICE - budgetRepresentationWithInvoicePeriod = map[string]interface{}{ - "amount": acctest.Representation{RepType: acctest.Required, Create: `100`, Update: `200`}, - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.tenancy_ocid}`}, - "reset_period": acctest.Representation{RepType: acctest.Required, Create: `MONTHLY`}, - "budget_processing_period_start_offset": acctest.Representation{RepType: acctest.Optional, Create: `10`, Update: `11`}, - "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "value"})}`, Update: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "updatedValue"})}`}, - "description": acctest.Representation{RepType: acctest.Optional, Create: `description`, Update: `description2`}, - "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, - "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, - "processing_period_type": acctest.Representation{RepType: acctest.Required, Create: `INVOICE`, Update: `MONTH`}, - "target_type": acctest.Representation{RepType: acctest.Required, Create: `COMPARTMENT`}, - "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTagChange}, + timeNow = time.Date(2050, 8, 15, 14, 30, 45, 100, time.UTC) + timeNowTruncated = time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 0, 0, 0, 0, time.UTC) + endDate = timeNow.AddDate(0, 2, 0).Format(time.RFC3339Nano) + expectedEndDate = timeNowTruncated.AddDate(0, 2, 0).Format(time.RFC3339Nano) + startDate = timeNow.AddDate(0, 1, 0).Format(time.RFC3339Nano) + expectedStartDate = timeNowTruncated.AddDate(0, 1, 0).Format(time.RFC3339Nano) + + // Single Usage Budgets + budgetRepresentationWithSingleUseBudget = map[string]interface{}{ + "amount": acctest.Representation{RepType: acctest.Required, Create: `10000`, Update: `20000`}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.tenancy_ocid}`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, + "description": acctest.Representation{RepType: acctest.Optional, Create: `test`, Update: `test2`}, + "reset_period": acctest.Representation{RepType: acctest.Required, Create: `MONTHLY`}, + "processing_period_type": acctest.Representation{RepType: acctest.Optional, Create: `SINGLE_USE`}, + "targets": acctest.Representation{RepType: acctest.Required, Create: []string{`${var.compartment_id}`}}, + "target_type": acctest.Representation{RepType: acctest.Required, Create: `COMPARTMENT`}, + "start_date": acctest.Representation{RepType: acctest.Optional, Create: startDate}, + "end_date": acctest.Representation{RepType: acctest.Optional, Create: endDate}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDateChange}, + } + + // Ignore changes to start and end dates once created + ignoreDateChange = map[string]interface{}{ + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`start_date`, `end_date`}}, } // Ignore changes in defined tag in case a tenancy has a `tag default` @@ -126,8 +140,6 @@ func TestBudgetBudgetResource_basic(t *testing.T) { compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) tenancyId := utils.GetEnvSettingWithBlankDefault("tenancy_ocid") - subscriptionId := utils.GetEnvSettingWithBlankDefault("subscription_id") - subIdVariableStr := fmt.Sprintf("variable \"subscription_id\" { default = \"%s\" }\n", subscriptionId) resourceName := "oci_budget_budget.test_budget" datasourceName := "data.oci_budget_budgets.test_budgets" singularDatasourceName := "data.oci_budget_budget.test_budget" @@ -138,61 +150,6 @@ func TestBudgetBudgetResource_basic(t *testing.T) { acctest.GenerateResourceFromRepresentationMap("oci_budget_budget", "test_budget", acctest.Optional, acctest.Create, budgetRepresentationWithTargetTypeAsCompartmentAndTargets), "budget", "budget", t) acctest.ResourceTest(t, testAccCheckBudgetBudgetDestroy, []resource.TestStep{ - { - // verify create invoice type budget - Config: config + compartmentIdVariableStr + subIdVariableStr + BudgetResourceDependencies + - acctest.GenerateResourceFromRepresentationMap("oci_budget_budget", "test_budget", acctest.Required, acctest.Create, - acctest.RepresentationCopyWithNewProperties(budgetRepresentationWithInvoicePeriod, map[string]interface{}{ - "targets": acctest.Representation{RepType: acctest.Required, Create: []string{`${var.subscription_id}`}}, - })), - Check: acctest.ComposeAggregateTestCheckFuncWrapper( - resource.TestCheckResourceAttr(resourceName, "amount", "100"), - resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId), - resource.TestCheckResourceAttr(resourceName, "reset_period", "MONTHLY"), - resource.TestCheckResourceAttr(resourceName, "target_type", "COMPARTMENT"), - resource.TestCheckResourceAttr(resourceName, "targets.#", "1"), - resource.TestCheckResourceAttr(resourceName, "target_compartment_id", subscriptionId), - resource.TestCheckResourceAttr(resourceName, "processing_period_type", "INVOICE"), - - func(s *terraform.State) (err error) { - resId, err = acctest.FromInstanceState(s, resourceName, "id") - return err - }, - ), - }, - - { - // verify update invoice type budget - Config: config + compartmentIdVariableStr + subIdVariableStr + BudgetResourceDependencies + - acctest.GenerateResourceFromRepresentationMap("oci_budget_budget", "test_budget", acctest.Optional, acctest.Update, - acctest.RepresentationCopyWithNewProperties(budgetRepresentationWithInvoicePeriod, map[string]interface{}{ - "targets": acctest.Representation{RepType: acctest.Required, Create: []string{`${var.subscription_id}`}}, - })), - Check: acctest.ComposeAggregateTestCheckFuncWrapper( - resource.TestCheckResourceAttr(resourceName, "amount", "200"), - resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId), - resource.TestCheckResourceAttr(resourceName, "reset_period", "MONTHLY"), - resource.TestCheckResourceAttr(resourceName, "target_type", "COMPARTMENT"), - resource.TestCheckResourceAttr(resourceName, "targets.#", "1"), - resource.TestCheckResourceAttr(resourceName, "description", "description2"), - resource.TestCheckResourceAttr(resourceName, "display_name", "displayName2"), - resource.TestCheckResourceAttr(resourceName, "processing_period_type", "MONTH"), - resource.TestCheckResourceAttr(resourceName, "budget_processing_period_start_offset", "11"), - - func(s *terraform.State) (err error) { - resId2, err = acctest.FromInstanceState(s, resourceName, "id") - if resId != resId2 { - return fmt.Errorf("Resource recreated when it was supposed to be updated.") - } - return err - }, - ), - }, - - { - // delete before next Creat - Config: config + compartmentIdVariableStr + BudgetResourceDependencies, - }, // verify Create for TargetType = Compartment { @@ -214,6 +171,7 @@ func TestBudgetBudgetResource_basic(t *testing.T) { { Config: config + compartmentIdVariableStr + BudgetResourceDependencies, }, + // verify Create with optionals for TargetType = Compartment { Config: config + compartmentIdVariableStr + BudgetResourceDependencies + @@ -270,6 +228,7 @@ func TestBudgetBudgetResource_basic(t *testing.T) { }, ), }, + // verify Create for TargetType = Tag { Config: config + compartmentIdVariableStr + BudgetResourceDependencies + @@ -290,6 +249,37 @@ func TestBudgetBudgetResource_basic(t *testing.T) { { Config: config + compartmentIdVariableStr + BudgetResourceDependencies, }, + + // create Single Use Budget + { + Config: config + compartmentIdVariableStr + BudgetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_budget_budget", "test_budget", acctest.Optional, acctest.Create, budgetRepresentationWithSingleUseBudget), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "amount", "10000"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId), + resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"), + resource.TestCheckResourceAttr(resourceName, "description", "test"), + resource.TestCheckResourceAttr(resourceName, "reset_period", "MONTHLY"), + resource.TestCheckResourceAttr(resourceName, "processing_period_type", "SINGLE_USE"), + resource.TestCheckResourceAttr(resourceName, "targets.#", "1"), + resource.TestCheckResourceAttr(resourceName, "target_type", "COMPARTMENT"), + resource.TestCheckResourceAttr(resourceName, "start_date", expectedStartDate), + resource.TestCheckResourceAttr(resourceName, "end_date", expectedEndDate), + resource.TestCheckResourceAttrSet(resourceName, "time_created"), + resource.TestCheckResourceAttrSet(resourceName, "time_updated"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // delete before next Create + { + Config: config + compartmentIdVariableStr + BudgetResourceDependencies, + }, + // verify Create with optionals for TargetType = Tag { Config: config + compartmentIdVariableStr + BudgetResourceDependencies + @@ -430,6 +420,7 @@ func TestBudgetBudgetResource_basic(t *testing.T) { }, ), }, + // verify datasource { Config: config + @@ -441,7 +432,6 @@ func TestBudgetBudgetResource_basic(t *testing.T) { resource.TestCheckResourceAttr(datasourceName, "display_name", "displayName2"), resource.TestCheckResourceAttr(datasourceName, "state", "ACTIVE"), resource.TestCheckResourceAttr(datasourceName, "target_type", "COMPARTMENT"), - resource.TestCheckResourceAttr(datasourceName, "budgets.#", "1"), resource.TestCheckResourceAttrSet(datasourceName, "budgets.0.actual_spend"), resource.TestCheckResourceAttrSet(datasourceName, "budgets.0.alert_rule_count"), @@ -464,6 +454,7 @@ func TestBudgetBudgetResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(datasourceName, "budgets.0.version"), ), }, + // verify singular datasource { Config: config + @@ -490,6 +481,7 @@ func TestBudgetBudgetResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(singularDatasourceName, "version"), ), }, + // verify resource import { Config: config + BudgetRequiredOnlyResource, diff --git a/internal/service/budget/budget_budget_data_source.go b/internal/service/budget/budget_budget_data_source.go index 9201300cbb3..e9e298e9561 100644 --- a/internal/service/budget/budget_budget_data_source.go +++ b/internal/service/budget/budget_budget_data_source.go @@ -5,6 +5,7 @@ package budget import ( "context" + "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" oci_budget "github.com/oracle/oci-go-sdk/v65/budget" @@ -98,6 +99,10 @@ func (s *BudgetBudgetDataSourceCrud) SetData() error { s.D.Set("display_name", *s.Res.DisplayName) } + if s.Res.EndDate != nil { + s.D.Set("end_date", s.Res.EndDate.Format(time.RFC3339Nano)) + } + if s.Res.ForecastedSpend != nil { s.D.Set("forecasted_spend", int(*s.Res.ForecastedSpend)) } @@ -108,6 +113,10 @@ func (s *BudgetBudgetDataSourceCrud) SetData() error { s.D.Set("reset_period", s.Res.ResetPeriod) + if s.Res.StartDate != nil { + s.D.Set("start_date", s.Res.StartDate.Format(time.RFC3339Nano)) + } + s.D.Set("state", s.Res.LifecycleState) if s.Res.TargetCompartmentId != nil { diff --git a/internal/service/budget/budget_budget_resource.go b/internal/service/budget/budget_budget_resource.go index c3c2a162131..3d7a93c570f 100644 --- a/internal/service/budget/budget_budget_resource.go +++ b/internal/service/budget/budget_budget_resource.go @@ -5,9 +5,11 @@ package budget import ( "context" + "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" oci_budget "github.com/oracle/oci-go-sdk/v65/budget" + oci_common "github.com/oracle/oci-go-sdk/v65/common" "github.com/oracle/terraform-provider-oci/internal/client" "github.com/oracle/terraform-provider-oci/internal/tfresource" @@ -62,6 +64,12 @@ func BudgetBudgetResource() *schema.Resource { Optional: true, Computed: true, }, + "end_date": { + Type: schema.TypeString, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.TimeDiffSuppressFunction, + }, "freeform_tags": { Type: schema.TypeMap, Optional: true, @@ -73,20 +81,26 @@ func BudgetBudgetResource() *schema.Resource { Optional: true, Computed: true, }, + "start_date": { + Type: schema.TypeString, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.TimeDiffSuppressFunction, + }, + // target_compartment_id conflicts with targets "target_compartment_id": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, - ConflictsWith: []string{"target_type"}, - Deprecated: tfresource.FieldDeprecatedForAnother("target_compartment_id", "target_type"), + ConflictsWith: []string{"targets"}, + Deprecated: tfresource.FieldDeprecatedForAnother("target_compartment_id", "targets"), }, "target_type": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - ConflictsWith: []string{"target_compartment_id"}, + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, }, "targets": { Type: schema.TypeList, @@ -96,6 +110,7 @@ func BudgetBudgetResource() *schema.Resource { Elem: &schema.Schema{ Type: schema.TypeString, }, + ConflictsWith: []string{"target_compartment_id"}, }, // Computed @@ -233,6 +248,14 @@ func (s *BudgetBudgetResourceCrud) Create() error { request.DisplayName = &tmp } + if endDate, ok := s.D.GetOkExists("end_date"); ok { + tmp, err := time.Parse(time.RFC3339, endDate.(string)) + if err != nil { + return err + } + request.EndDate = &oci_common.SDKTime{Time: tmp} + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) } @@ -245,6 +268,14 @@ func (s *BudgetBudgetResourceCrud) Create() error { request.ResetPeriod = oci_budget.ResetPeriodEnum(resetPeriod.(string)) } + if startDate, ok := s.D.GetOkExists("start_date"); ok { + tmp, err := time.Parse(time.RFC3339, startDate.(string)) + if err != nil { + return err + } + request.StartDate = &oci_common.SDKTime{Time: tmp} + } + if targetCompartmentId, ok := s.D.GetOkExists("target_compartment_id"); ok { tmp := targetCompartmentId.(string) request.TargetCompartmentId = &tmp @@ -329,6 +360,14 @@ func (s *BudgetBudgetResourceCrud) Update() error { request.DisplayName = &tmp } + if endDate, ok := s.D.GetOkExists("end_date"); ok { + tmp, err := time.Parse(time.RFC3339, endDate.(string)) + if err != nil { + return err + } + request.EndDate = &oci_common.SDKTime{Time: tmp} + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) } @@ -341,6 +380,14 @@ func (s *BudgetBudgetResourceCrud) Update() error { request.ResetPeriod = oci_budget.ResetPeriodEnum(resetPeriod.(string)) } + if startDate, ok := s.D.GetOkExists("start_date"); ok { + tmp, err := time.Parse(time.RFC3339, startDate.(string)) + if err != nil { + return err + } + request.StartDate = &oci_common.SDKTime{Time: tmp} + } + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "budget") response, err := s.Client.UpdateBudget(context.Background(), request) @@ -397,6 +444,10 @@ func (s *BudgetBudgetResourceCrud) SetData() error { s.D.Set("display_name", *s.Res.DisplayName) } + if s.Res.EndDate != nil { + s.D.Set("end_date", s.Res.EndDate.Format(time.RFC3339Nano)) + } + if s.Res.ForecastedSpend != nil { s.D.Set("forecasted_spend", *s.Res.ForecastedSpend) } @@ -407,6 +458,10 @@ func (s *BudgetBudgetResourceCrud) SetData() error { s.D.Set("reset_period", s.Res.ResetPeriod) + if s.Res.StartDate != nil { + s.D.Set("start_date", s.Res.StartDate.Format(time.RFC3339Nano)) + } + s.D.Set("state", s.Res.LifecycleState) if s.Res.TargetCompartmentId != nil { diff --git a/internal/service/budget/budget_budgets_data_source.go b/internal/service/budget/budget_budgets_data_source.go index 4999504f36c..0a46697ee85 100644 --- a/internal/service/budget/budget_budgets_data_source.go +++ b/internal/service/budget/budget_budgets_data_source.go @@ -5,6 +5,7 @@ package budget import ( "context" + "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" oci_budget "github.com/oracle/oci-go-sdk/v65/budget" @@ -146,6 +147,10 @@ func (s *BudgetBudgetsDataSourceCrud) SetData() error { budget["display_name"] = *r.DisplayName } + if r.EndDate != nil { + budget["end_date"] = r.EndDate.Format(time.RFC3339Nano) + } + if r.ForecastedSpend != nil { budget["forecasted_spend"] = *r.ForecastedSpend } @@ -160,6 +165,10 @@ func (s *BudgetBudgetsDataSourceCrud) SetData() error { budget["reset_period"] = r.ResetPeriod + if r.StartDate != nil { + budget["start_date"] = r.StartDate.Format(time.RFC3339Nano) + } + budget["state"] = r.LifecycleState if r.TargetCompartmentId != nil { diff --git a/website/docs/d/budget_budget.html.markdown b/website/docs/d/budget_budget.html.markdown index 246ce798b21..44263fc1402 100644 --- a/website/docs/d/budget_budget.html.markdown +++ b/website/docs/d/budget_budget.html.markdown @@ -40,11 +40,13 @@ The following attributes are exported: * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `description` - The description of the budget. * `display_name` - The display name of the budget. Avoid entering confidential information. +* `end_date` - The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `forecasted_spend` - The forecasted spend in currency by the end of the current budget cycle. * `freeform_tags` - 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - The OCID of the budget. -* `processing_period_type` - The type of the budget processing period. Valid values are INVOICE and MONTH. +* `processing_period_type` - The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE. * `reset_period` - The reset period for the budget. +* `start_date` - The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `state` - The current state of the budget. * `target_compartment_id` - This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty. * `target_type` - The type of target on which the budget is applied. diff --git a/website/docs/d/budget_budgets.html.markdown b/website/docs/d/budget_budgets.html.markdown index c9609b0e708..f951c5df965 100644 --- a/website/docs/d/budget_budgets.html.markdown +++ b/website/docs/d/budget_budgets.html.markdown @@ -16,8 +16,7 @@ By default, ListBudgets returns budgets of the 'COMPARTMENT' target type, and th To list all budgets, set the targetType query parameter to ALL (for example: 'targetType=ALL'). -Additional targetTypes would be available in future releases. Clients should ignore new targetTypes, -or upgrade to the latest version of the client SDK to handle new targetTypes. +Clients should ignore new targetTypes, or upgrade to the latest version of the client SDK to handle new targetTypes. ## Example Usage @@ -65,11 +64,13 @@ The following attributes are exported: * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `description` - The description of the budget. * `display_name` - The display name of the budget. Avoid entering confidential information. +* `end_date` - The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `forecasted_spend` - The forecasted spend in currency by the end of the current budget cycle. * `freeform_tags` - 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - The OCID of the budget. -* `processing_period_type` - The type of the budget processing period. Valid values are INVOICE and MONTH. +* `processing_period_type` - The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE. * `reset_period` - The reset period for the budget. +* `start_date` - The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `state` - The current state of the budget. * `target_compartment_id` - This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty. * `target_type` - The type of target on which the budget is applied. diff --git a/website/docs/r/budget_budget.html.markdown b/website/docs/r/budget_budget.html.markdown index 81ad29a7151..781d797ad3a 100644 --- a/website/docs/r/budget_budget.html.markdown +++ b/website/docs/r/budget_budget.html.markdown @@ -27,8 +27,10 @@ resource "oci_budget_budget" "test_budget" { defined_tags = {"Operations.CostCenter"= "42"} description = var.budget_description display_name = var.budget_display_name + end_date = var.budget_end_date freeform_tags = {"Department"= "Finance"} processing_period_type = var.budget_processing_period_type + start_date = var.budget_start_date target_compartment_id = oci_identity_compartment.test_compartment.id target_type = var.budget_target_type targets = var.budget_targets @@ -45,9 +47,11 @@ The following arguments are supported: * `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `description` - (Optional) (Updatable) The description of the budget. * `display_name` - (Optional) (Updatable) The displayName of the budget. Avoid entering confidential information. +* `end_date` - (Optional) (Updatable) The date when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `freeform_tags` - (Optional) (Updatable) 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` -* `processing_period_type` - (Optional) (Updatable) The type of the budget processing period. Valid values are INVOICE and MONTH. +* `processing_period_type` - (Optional) (Updatable) The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE. * `reset_period` - (Required) (Updatable) The reset period for the budget. Valid value is MONTHLY. +* `start_date` - (Optional) (Updatable) The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `target_compartment_id` - (Optional) This is DEPRECATED. Set the target compartment ID in targets instead. * `target_type` - (Optional) The type of target on which the budget is applied. * `targets` - (Optional) The list of targets on which the budget is applied. If targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs. If targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain exactly one item. @@ -68,11 +72,13 @@ The following attributes are exported: * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `description` - The description of the budget. * `display_name` - The display name of the budget. Avoid entering confidential information. +* `end_date` - The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `forecasted_spend` - The forecasted spend in currency by the end of the current budget cycle. * `freeform_tags` - 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/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - The OCID of the budget. -* `processing_period_type` - The type of the budget processing period. Valid values are INVOICE and MONTH. +* `processing_period_type` - The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE. * `reset_period` - The reset period for the budget. +* `start_date` - The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. * `state` - The current state of the budget. * `target_compartment_id` - This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty. * `target_type` - The type of target on which the budget is applied. From 95db98ffa83372e78fa00fb590f8f76008b9e6e5 Mon Sep 17 00:00:00 2001 From: Terraform Team Automation Date: Fri, 21 Jul 2023 18:56:56 +0000 Subject: [PATCH 04/25] Added - Model Compose and Model Alias features to custom Models in document service --- examples/aiDocument/main.tf | 42 +++- .../integrationtest/ai_document_model_test.go | 98 ++++++++- .../ai_document_processor_job_test.go | 6 +- .../ai_document_model_data_source.go | 18 ++ .../ai_document/ai_document_model_resource.go | 192 ++++++++++++++---- .../ai_document_processor_job_resource.go | 22 ++ .../docs/d/ai_document_model.html.markdown | 5 + .../docs/d/ai_document_models.html.markdown | 5 + .../d/ai_document_processor_job.html.markdown | 3 +- .../docs/r/ai_document_model.html.markdown | 48 ++++- .../r/ai_document_processor_job.html.markdown | 7 +- 11 files changed, 385 insertions(+), 61 deletions(-) diff --git a/examples/aiDocument/main.tf b/examples/aiDocument/main.tf index 7dbb63fd2ac..74012075e25 100644 --- a/examples/aiDocument/main.tf +++ b/examples/aiDocument/main.tf @@ -22,7 +22,7 @@ resource "oci_ai_document_project" "test_project" { compartment_id = var.compartment_id } -resource "oci_ai_document_model" "test_model" { +resource "oci_ai_document_model" "test_model1" { #Required compartment_id = var.compartment_id model_type = "KEY_VALUE_EXTRACTION" @@ -38,6 +38,44 @@ resource "oci_ai_document_model" "test_model" { #Optional display_name = "test_tf_model" is_quick_mode = "false" - max_training_time_in_hours = "0.5" + model_version = var.model_model_version +} + +resource "oci_ai_document_model" "test_model2" { + #Required + compartment_id = var.compartment_id + model_type = "KEY_VALUE_EXTRACTION" + project_id = oci_ai_document_project.test_project.id + + training_dataset { + bucket = "tf_test_bucket" + dataset_type = "OBJECT_STORAGE" + namespace = "axgexwaxnm7k" + object = "tf_test_aadhar_1686719828190.jsonl" + } + + #Optional + display_name = "test_tf_model2" + is_quick_mode = "false" + model_version = var.model_model_version +} + +resource "oci_ai_document_model" "test_compose_model" { + #Required + compartment_id = var.compartment_id + model_type = "KEY_VALUE_EXTRACTION" + project_id = oci_ai_document_project.test_project.id + + component_models { + model_id = oci_ai_document_model.test_model1.id + } + + component_models { + model_id = oci_ai_document_model.test_model2.id + } + + #Optional + display_name = "test_compose_model" + is_quick_mode = "false" model_version = var.model_model_version } diff --git a/internal/integrationtest/ai_document_model_test.go b/internal/integrationtest/ai_document_model_test.go index f4a7413a593..1a51bc340db 100644 --- a/internal/integrationtest/ai_document_model_test.go +++ b/internal/integrationtest/ai_document_model_test.go @@ -61,6 +61,46 @@ var ( "model_version": acctest.Representation{RepType: acctest.Optional, Create: `modelVersion`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreAiDocumentDefinedTagsChangesRepresentation}, } + + AiDocumentModelRepresentation2 = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "model_type": acctest.Representation{RepType: acctest.Required, Create: `KEY_VALUE_EXTRACTION`}, + "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_ai_document_project.test_project.id}`}, + "training_dataset": acctest.RepresentationGroup{RepType: acctest.Required, Group: AiDocumentModelTrainingDatasetRepresentation2}, + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, + "description": acctest.Representation{RepType: acctest.Optional, Create: `description`, Update: `description2`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"freeformTags": "freeformTags"}, Update: map[string]string{"freeformTags": "freeformTags2"}}, + "is_quick_mode": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "max_training_time_in_hours": acctest.Representation{RepType: acctest.Optional, Create: `0.5`}, + "model_version": acctest.Representation{RepType: acctest.Optional, Create: `modelVersion`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreAiDocumentDefinedTagsChangesRepresentation}, + } + + AiDocumentComposeModelRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "model_type": acctest.Representation{RepType: acctest.Required, Create: `KEY_VALUE_EXTRACTION`}, + "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_ai_document_project.test_project.id}`}, + "component_models": []acctest.RepresentationGroup{ + {RepType: acctest.Optional, Group: AiDocumentModelComponentModelRepresentation1}, + {RepType: acctest.Optional, Group: AiDocumentModelComponentModelRepresentation2}, + }, + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, + "description": acctest.Representation{RepType: acctest.Optional, Create: `description`, Update: `description2`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"freeformTags": "freeformTags"}, Update: map[string]string{"freeformTags": "freeformTags2"}}, + "is_quick_mode": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "max_training_time_in_hours": acctest.Representation{RepType: acctest.Optional, Create: `0.5`}, + "model_version": acctest.Representation{RepType: acctest.Optional, Create: `modelVersion`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreAiDocumentDefinedTagsChangesRepresentation}, + } + AiDocumentModelComponentModelRepresentation1 = map[string]interface{}{ + "model_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_ai_document_model.test_model.id}`}, + } + AiDocumentModelComponentModelRepresentation2 = map[string]interface{}{ + "model_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_ai_document_model.test_model2.id}`}, + } + AiDocumentModelTrainingDatasetRepresentation = map[string]interface{}{ "dataset_type": acctest.Representation{RepType: acctest.Required, Create: `OBJECT_STORAGE`}, "bucket": acctest.Representation{RepType: acctest.Required, Create: `tf_test_bucket`}, @@ -68,8 +108,20 @@ var ( "object": acctest.Representation{RepType: acctest.Required, Create: `tf_test_dataset_1680065500556.jsonl`}, } + AiDocumentModelTrainingDatasetRepresentation2 = map[string]interface{}{ + "dataset_type": acctest.Representation{RepType: acctest.Required, Create: `OBJECT_STORAGE`}, + "bucket": acctest.Representation{RepType: acctest.Required, Create: `tf_test_bucket`}, + "namespace": acctest.Representation{RepType: acctest.Required, Create: `axgexwaxnm7k`}, + "object": acctest.Representation{RepType: acctest.Required, Create: `tf_test_aadhar_1686719828190.jsonl`}, + } + AiDocumentModelResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_ai_document_project", "test_project", acctest.Required, acctest.Create, AiDocumentProjectRepresentation) + DefinedTagsDependencies + + AiDocumentComposeModelResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_ai_document_project", "test_project", acctest.Required, acctest.Create, AiDocumentProjectRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_ai_document_model", "test_model", acctest.Required, acctest.Create, AiDocumentModelRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_ai_document_model", "test_model2", acctest.Required, acctest.Create, AiDocumentModelRepresentation2) + + DefinedTagsDependencies ) // issue-routing-tag: ai_document/default @@ -88,6 +140,7 @@ func TestAiDocumentModelResource_basic(t *testing.T) { resourceName := "oci_ai_document_model.test_model" datasourceName := "data.oci_ai_document_models.test_models" singularDatasourceName := "data.oci_ai_document_model.test_model" + composeResourceName := "oci_ai_document_model.test_compose_model" var resId, resId2 string // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. @@ -120,6 +173,39 @@ func TestAiDocumentModelResource_basic(t *testing.T) { { Config: config + compartmentIdVariableStr + AiDocumentModelResourceDependencies, }, + + // verify Create Compose Model + { + Config: config + compartmentIdVariableStr + AiDocumentComposeModelResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_ai_document_model", "test_compose_model", acctest.Optional, acctest.Create, AiDocumentComposeModelRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(composeResourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(composeResourceName, "description", "description"), + resource.TestCheckResourceAttr(composeResourceName, "display_name", "displayName"), + resource.TestCheckResourceAttr(composeResourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(composeResourceName, "id"), + resource.TestCheckResourceAttr(composeResourceName, "is_quick_mode", "false"), + resource.TestCheckResourceAttr(composeResourceName, "max_training_time_in_hours", "0.5"), + resource.TestCheckResourceAttr(composeResourceName, "model_type", "KEY_VALUE_EXTRACTION"), + resource.TestCheckResourceAttr(composeResourceName, "model_version", "modelVersion"), + resource.TestCheckResourceAttrSet(composeResourceName, "project_id"), + resource.TestCheckResourceAttr(composeResourceName, "component_models.#", "2"), + resource.TestCheckResourceAttrSet(composeResourceName, "component_models.0.model_id"), + resource.TestCheckResourceAttrSet(composeResourceName, "state"), + resource.TestCheckResourceAttrSet(composeResourceName, "time_created"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, composeResourceName, "id") + return err + }, + ), + }, + + // delete before next Create + { + Config: config + compartmentIdVariableStr + AiDocumentModelResourceDependencies, + }, + // verify Create with optionals { Config: config + compartmentIdVariableStr + AiDocumentModelResourceDependencies + @@ -246,13 +332,14 @@ func TestAiDocumentModelResource_basic(t *testing.T) { acctest.GenerateDataSourceFromRepresentationMap("oci_ai_document_model", "test_model", acctest.Required, acctest.Create, AiDocumentAiDocumentModelSingularDataSourceRepresentation) + compartmentIdVariableStr + AiDocumentModelResourceConfig, Check: acctest.ComposeAggregateTestCheckFuncWrapper( - resource.TestCheckResourceAttrSet(singularDatasourceName, "model_id"), resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "component_models.#", "0"), resource.TestCheckResourceAttr(singularDatasourceName, "description", "description2"), resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "displayName2"), resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "is_composed_model"), resource.TestCheckResourceAttr(singularDatasourceName, "is_quick_mode", "false"), resource.TestCheckResourceAttr(singularDatasourceName, "max_training_time_in_hours", "0.5"), resource.TestCheckResourceAttr(singularDatasourceName, "metrics.#", "1"), @@ -271,11 +358,10 @@ func TestAiDocumentModelResource_basic(t *testing.T) { }, // verify resource import { - Config: config + AiDocumentModelRequiredOnlyResource, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{}, - ResourceName: resourceName, + Config: config + AiDocumentModelRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ResourceName: resourceName, }, }) } diff --git a/internal/integrationtest/ai_document_processor_job_test.go b/internal/integrationtest/ai_document_processor_job_test.go index 8c114bcc7b4..a6a680e163a 100644 --- a/internal/integrationtest/ai_document_processor_job_test.go +++ b/internal/integrationtest/ai_document_processor_job_test.go @@ -52,7 +52,7 @@ var ( AiDocumentProcessorJobProcessorConfigFeaturesRepresentation = map[string]interface{}{ "feature_type": acctest.Representation{RepType: acctest.Required, Create: `DOCUMENT_CLASSIFICATION`}, "generate_searchable_pdf": acctest.Representation{RepType: acctest.Optional, Create: `false`}, - "max_results": acctest.Representation{RepType: acctest.Optional, Create: `5`}, + "max_results": acctest.Representation{RepType: acctest.Optional, Create: `10`}, } ) @@ -121,7 +121,7 @@ func TestAiDocumentProcessorJobResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "processor_config.0.features.#", "1"), resource.TestCheckResourceAttr(resourceName, "processor_config.0.features.0.feature_type", "DOCUMENT_CLASSIFICATION"), resource.TestCheckResourceAttr(resourceName, "processor_config.0.features.0.generate_searchable_pdf", "false"), - resource.TestCheckResourceAttr(resourceName, "processor_config.0.features.0.max_results", "5"), + resource.TestCheckResourceAttr(resourceName, "processor_config.0.features.0.max_results", "10"), resource.TestCheckResourceAttr(resourceName, "processor_config.0.is_zip_output_enabled", "false"), resource.TestCheckResourceAttr(resourceName, "processor_config.0.processor_type", "GENERAL"), resource.TestCheckResourceAttrSet(resourceName, "state"), @@ -155,7 +155,7 @@ func TestAiDocumentProcessorJobResource_basic(t *testing.T) { resource.TestCheckResourceAttr(singularDatasourceName, "processor_config.0.features.#", "1"), resource.TestCheckResourceAttr(singularDatasourceName, "processor_config.0.features.0.feature_type", "DOCUMENT_CLASSIFICATION"), resource.TestCheckResourceAttr(singularDatasourceName, "processor_config.0.features.0.generate_searchable_pdf", "false"), - resource.TestCheckResourceAttr(singularDatasourceName, "processor_config.0.features.0.max_results", "5"), + resource.TestCheckResourceAttr(singularDatasourceName, "processor_config.0.features.0.max_results", "10"), resource.TestCheckResourceAttr(singularDatasourceName, "processor_config.0.is_zip_output_enabled", "false"), resource.TestCheckResourceAttr(singularDatasourceName, "processor_config.0.processor_type", "GENERAL"), resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), diff --git a/internal/service/ai_document/ai_document_model_data_source.go b/internal/service/ai_document/ai_document_model_data_source.go index 79bf548eb3a..c5a8f8788d4 100644 --- a/internal/service/ai_document/ai_document_model_data_source.go +++ b/internal/service/ai_document/ai_document_model_data_source.go @@ -66,10 +66,20 @@ func (s *AiDocumentModelDataSourceCrud) SetData() error { s.D.SetId(*s.Res.Id) + if s.Res.AliasName != nil { + s.D.Set("alias_name", *s.Res.AliasName) + } + if s.Res.CompartmentId != nil { s.D.Set("compartment_id", *s.Res.CompartmentId) } + componentModels := []interface{}{} + for _, item := range s.Res.ComponentModels { + componentModels = append(componentModels, ComponentModelToMap(item)) + } + s.D.Set("component_models", componentModels) + if s.Res.DefinedTags != nil { s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) } @@ -85,6 +95,10 @@ func (s *AiDocumentModelDataSourceCrud) SetData() error { s.D.Set("freeform_tags", s.Res.FreeformTags) s.D.Set("freeform_tags", s.Res.FreeformTags) + if s.Res.IsComposedModel != nil { + s.D.Set("is_composed_model", *s.Res.IsComposedModel) + } + if s.Res.IsQuickMode != nil { s.D.Set("is_quick_mode", *s.Res.IsQuickMode) } @@ -126,6 +140,10 @@ func (s *AiDocumentModelDataSourceCrud) SetData() error { s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) } + if s.Res.TenancyId != nil { + s.D.Set("tenancy_id", *s.Res.TenancyId) + } + if s.Res.TestingDataset != nil { testingDatasetArray := []interface{}{} if testingDatasetMap := DatasetToMap(&s.Res.TestingDataset); testingDatasetMap != nil { diff --git a/internal/service/ai_document/ai_document_model_resource.go b/internal/service/ai_document/ai_document_model_resource.go index ffaa1533e6b..5f4463a8984 100644 --- a/internal/service/ai_document/ai_document_model_resource.go +++ b/internal/service/ai_document/ai_document_model_resource.go @@ -46,6 +46,11 @@ func AiDocumentModelResource() *schema.Resource { Type: schema.TypeString, Required: true, }, + "model_id": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + }, "model_type": { Type: schema.TypeString, Required: true, @@ -56,46 +61,19 @@ func AiDocumentModelResource() *schema.Resource { Required: true, ForceNew: true, }, - "training_dataset": { + + // Optional + "component_models": { Type: schema.TypeList, - Required: true, + Optional: true, + Computed: true, ForceNew: true, - MaxItems: 1, - MinItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ // Required - "dataset_type": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, - ValidateFunc: validation.StringInSlice([]string{ - "DATA_SCIENCE_LABELING", - "OBJECT_STORAGE", - }, true), - }, // Optional - "bucket": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - }, - "dataset_id": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - }, - "namespace": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - }, - "object": { + "model_id": { Type: schema.TypeString, Optional: true, Computed: true, @@ -106,8 +84,6 @@ func AiDocumentModelResource() *schema.Resource { }, }, }, - - // Optional "defined_tags": { Type: schema.TypeMap, Optional: true, @@ -200,6 +176,57 @@ func AiDocumentModelResource() *schema.Resource { }, }, }, + "training_dataset": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "dataset_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "DATA_SCIENCE_LABELING", + "OBJECT_STORAGE", + }, true), + }, + + // Optional + "bucket": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "dataset_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "namespace": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "object": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, "validation_dataset": { Type: schema.TypeList, Optional: true, @@ -253,6 +280,10 @@ func AiDocumentModelResource() *schema.Resource { }, // Computed + "is_composed_model": { + Type: schema.TypeBool, + Computed: true, + }, "labels": { Type: schema.TypeList, Computed: true, @@ -427,6 +458,10 @@ func AiDocumentModelResource() *schema.Resource { Computed: true, Elem: schema.TypeString, }, + "tenancy_id": { + Type: schema.TypeString, + Computed: true, + }, "time_created": { Type: schema.TypeString, Computed: true, @@ -519,6 +554,23 @@ func (s *AiDocumentModelResourceCrud) Create() error { request.CompartmentId = &tmp } + if componentModels, ok := s.D.GetOkExists("component_models"); ok { + interfaces := componentModels.([]interface{}) + tmp := make([]oci_ai_document.ComponentModel, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "component_models", stateDataIndex) + converted, err := s.mapToComponentModel(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("component_models") { + request.ComponentModels = tmp + } + } + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) if err != nil { @@ -606,7 +658,18 @@ func (s *AiDocumentModelResourceCrud) Create() error { } workId := response.OpcWorkRequestId - return s.getModelFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "ai_document"), oci_ai_document.ActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) + var identifier *string + identifier = response.Id + if identifier != nil { + s.D.SetId(*identifier) + } + + err = s.getModelFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "ai_document"), oci_ai_document.ActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) + if err != nil { + return err + } + + return nil } func (s *AiDocumentModelResourceCrud) getModelFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, @@ -798,7 +861,12 @@ func (s *AiDocumentModelResourceCrud) Update() error { } workId := response.OpcWorkRequestId - return s.getModelFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "ai_document"), oci_ai_document.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) + err = s.getModelFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "ai_document"), oci_ai_document.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) + if err != nil { + return err + } + + return nil } func (s *AiDocumentModelResourceCrud) Delete() error { @@ -822,10 +890,17 @@ func (s *AiDocumentModelResourceCrud) Delete() error { } func (s *AiDocumentModelResourceCrud) SetData() error { + if s.Res.CompartmentId != nil { s.D.Set("compartment_id", *s.Res.CompartmentId) } + componentModels := []interface{}{} + for _, item := range s.Res.ComponentModels { + componentModels = append(componentModels, ComponentModelToMap(item)) + } + s.D.Set("component_models", componentModels) + if s.Res.DefinedTags != nil { s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) } @@ -841,6 +916,10 @@ func (s *AiDocumentModelResourceCrud) SetData() error { s.D.Set("freeform_tags", s.Res.FreeformTags) s.D.Set("freeform_tags", s.Res.FreeformTags) + if s.Res.IsComposedModel != nil { + s.D.Set("is_composed_model", *s.Res.IsComposedModel) + } + if s.Res.IsQuickMode != nil { s.D.Set("is_quick_mode", *s.Res.IsQuickMode) } @@ -882,6 +961,10 @@ func (s *AiDocumentModelResourceCrud) SetData() error { s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) } + if s.Res.TenancyId != nil { + s.D.Set("tenancy_id", *s.Res.TenancyId) + } + if s.Res.TestingDataset != nil { testingDatasetArray := []interface{}{} if testingDatasetMap := DatasetToMap(&s.Res.TestingDataset); testingDatasetMap != nil { @@ -927,6 +1010,27 @@ func (s *AiDocumentModelResourceCrud) SetData() error { return nil } +func ComponentModelToMap(obj oci_ai_document.ComponentModel) map[string]interface{} { + result := map[string]interface{}{} + + if obj.ModelId != nil { + result["model_id"] = string(*obj.ModelId) + } + + return result +} + +func (s *AiDocumentModelResourceCrud) mapToComponentModel(fieldKeyFormat string) (oci_ai_document.ComponentModel, error) { + var componentModel oci_ai_document.ComponentModel + + if modelId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "model_id")); ok { + tmp := modelId.(string) + componentModel.ModelId = &tmp + } + + return componentModel, nil +} + func (s *AiDocumentModelResourceCrud) mapToDataset(fieldKeyFormat string) (oci_ai_document.Dataset, error) { var baseObject oci_ai_document.Dataset //discriminator @@ -1382,6 +1486,12 @@ func ModelSummaryToMap(obj oci_ai_document.ModelSummary) map[string]interface{} result["compartment_id"] = string(*obj.CompartmentId) } + componentModels := []interface{}{} + for _, item := range obj.ComponentModels { + componentModels = append(componentModels, ComponentModelToMap(item)) + } + result["component_models"] = componentModels + if obj.DefinedTags != nil { result["defined_tags"] = tfresource.DefinedTagsToMap(obj.DefinedTags) } @@ -1401,6 +1511,10 @@ func ModelSummaryToMap(obj oci_ai_document.ModelSummary) map[string]interface{} result["id"] = string(*obj.Id) } + if obj.IsComposedModel != nil { + result["is_composed_model"] = bool(*obj.IsComposedModel) + } + if obj.LifecycleDetails != nil { result["lifecycle_details"] = string(*obj.LifecycleDetails) } @@ -1425,6 +1539,10 @@ func ModelSummaryToMap(obj oci_ai_document.ModelSummary) map[string]interface{} result["system_tags"] = tfresource.SystemTagsToMap(obj.SystemTags) } + if obj.TenancyId != nil { + result["tenancy_id"] = string(*obj.TenancyId) + } + if obj.TestingDataset != nil { testingDatasetArray := []interface{}{} if testingDatasetMap := DatasetToMap(&obj.TestingDataset); testingDatasetMap != nil { diff --git a/internal/service/ai_document/ai_document_processor_job_resource.go b/internal/service/ai_document/ai_document_processor_job_resource.go index 4fb485fa0c5..fb055b3323a 100644 --- a/internal/service/ai_document/ai_document_processor_job_resource.go +++ b/internal/service/ai_document/ai_document_processor_job_resource.go @@ -179,6 +179,12 @@ func AiDocumentProcessorJobResource() *schema.Resource { Computed: true, ForceNew: true, }, + "tenancy_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, // Computed }, @@ -460,6 +466,10 @@ func (s *AiDocumentProcessorJobResourceCrud) mapToDocumentFeature(fieldKeyFormat tmp := modelId.(string) details.ModelId = &tmp } + if tenancyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "tenancy_id")); ok { + tmp := tenancyId.(string) + details.TenancyId = &tmp + } baseObject = details case strings.ToLower("KEY_VALUE_EXTRACTION"): details := oci_ai_document.DocumentKeyValueExtractionFeature{} @@ -467,6 +477,10 @@ func (s *AiDocumentProcessorJobResourceCrud) mapToDocumentFeature(fieldKeyFormat tmp := modelId.(string) details.ModelId = &tmp } + if tenancyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "tenancy_id")); ok { + tmp := tenancyId.(string) + details.TenancyId = &tmp + } baseObject = details case strings.ToLower("LANGUAGE_CLASSIFICATION"): details := oci_ai_document.DocumentLanguageClassificationFeature{} @@ -504,12 +518,20 @@ func DocumentFeatureToMap(obj oci_ai_document.DocumentFeature) map[string]interf if v.ModelId != nil { result["model_id"] = string(*v.ModelId) } + + if v.TenancyId != nil { + result["tenancy_id"] = string(*v.TenancyId) + } case oci_ai_document.DocumentKeyValueExtractionFeature: result["feature_type"] = "KEY_VALUE_EXTRACTION" if v.ModelId != nil { result["model_id"] = string(*v.ModelId) } + + if v.TenancyId != nil { + result["tenancy_id"] = string(*v.TenancyId) + } case oci_ai_document.DocumentLanguageClassificationFeature: result["feature_type"] = "LANGUAGE_CLASSIFICATION" diff --git a/website/docs/d/ai_document_model.html.markdown b/website/docs/d/ai_document_model.html.markdown index 516031f2102..5966dbdb2da 100644 --- a/website/docs/d/ai_document_model.html.markdown +++ b/website/docs/d/ai_document_model.html.markdown @@ -32,12 +32,16 @@ The following arguments are supported: The following attributes are exported: +* `alias_name` - the alias name of the model. * `compartment_id` - The compartment identifier. +* `component_models` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) collection of active custom Key Value models that need to be composed. + * `model_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of active custom Key Value model that need to be composed. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` * `description` - An optional description of the model. * `display_name` - A human-friendly name for the model, which can be changed. * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `id` - A unique identifier that is immutable after creation. +* `is_composed_model` - Set to true when the model is created by using multiple key value extraction models. * `is_quick_mode` - Set to true when experimenting with a new model type or dataset, so model training is quick, with a predefined low number of passes through the training data. * `labels` - The collection of labels used to train the custom model. * `lifecycle_details` - A message describing the current state in more detail, that can provide actionable information if training failed. @@ -72,6 +76,7 @@ The following attributes are exported: * `project_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. * `state` - The current state of the model. * `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. For example: `{"orcl-cloud": {"free-tier-retained": "true"}}` +* `tenancy_id` - The tenancy id of the model. * `testing_dataset` - The base entity which is the input for creating and training a model. * `bucket` - The name of the Object Storage bucket that contains the input data file. * `dataset_id` - OCID of the Data Labeling dataset. diff --git a/website/docs/d/ai_document_models.html.markdown b/website/docs/d/ai_document_models.html.markdown index ad827a00d5c..4ad34f1d233 100644 --- a/website/docs/d/ai_document_models.html.markdown +++ b/website/docs/d/ai_document_models.html.markdown @@ -48,12 +48,16 @@ The following attributes are exported: The following attributes are exported: +* `alias_name` - the alias name of the model. * `compartment_id` - The compartment identifier. +* `component_models` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) collection of active custom Key Value models that need to be composed. + * `model_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of active custom Key Value model that need to be composed. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` * `description` - An optional description of the model. * `display_name` - A human-friendly name for the model, which can be changed. * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `id` - A unique identifier that is immutable after creation. +* `is_composed_model` - Set to true when the model is created by using multiple key value extraction models. * `is_quick_mode` - Set to true when experimenting with a new model type or dataset, so model training is quick, with a predefined low number of passes through the training data. * `labels` - The collection of labels used to train the custom model. * `lifecycle_details` - A message describing the current state in more detail, that can provide actionable information if training failed. @@ -88,6 +92,7 @@ The following attributes are exported: * `project_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. * `state` - The current state of the model. * `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. For example: `{"orcl-cloud": {"free-tier-retained": "true"}}` +* `tenancy_id` - The tenancy id of the model. * `testing_dataset` - The base entity which is the input for creating and training a model. * `bucket` - The name of the Object Storage bucket that contains the input data file. * `dataset_id` - OCID of the Data Labeling dataset. diff --git a/website/docs/d/ai_document_processor_job.html.markdown b/website/docs/d/ai_document_processor_job.html.markdown index 4d96fc04a8b..81ce73819f8 100644 --- a/website/docs/d/ai_document_processor_job.html.markdown +++ b/website/docs/d/ai_document_processor_job.html.markdown @@ -46,7 +46,7 @@ The following attributes are exported: * `OBJECT_STORAGE_LOCATIONS`: A list of object locations in Object Storage. * `INLINE_DOCUMENT_CONTENT`: The content of an inline document. * `lifecycle_details` - The detailed status of FAILED state. -* `output_location` - The Object Storage Location. +* `output_location` - The object storage location where to store analysis results. * `bucket` - The Object Storage bucket name. * `namespace` - The Object Storage namespace. * `prefix` - The Object Storage folder name. @@ -63,6 +63,7 @@ The following attributes are exported: * `generate_searchable_pdf` - Whether or not to generate a searchable PDF file. * `max_results` - The maximum number of results to return. * `model_id` - The custom model ID. + * `tenancy_id` - The custom model tenancy ID when modelId represents aliasName. * `is_zip_output_enabled` - Whether or not to generate a ZIP file containing the results. * `language` - The document language, abbreviated according to the BCP 47 Language-Tag syntax. * `processor_type` - The type of the processor. diff --git a/website/docs/r/ai_document_model.html.markdown b/website/docs/r/ai_document_model.html.markdown index cebd756b215..7d0a9f7a88d 100644 --- a/website/docs/r/ai_document_model.html.markdown +++ b/website/docs/r/ai_document_model.html.markdown @@ -12,6 +12,7 @@ This resource provides the Model resource in Oracle Cloud Infrastructure Ai Docu Create a new model. + Updates the model metadata only selected path parameter. ## Example Usage @@ -19,20 +20,17 @@ Create a new model. resource "oci_ai_document_model" "test_model" { #Required compartment_id = var.compartment_id + model_id = var.model_model_id model_type = var.model_model_type project_id = oci_ai_document_project.test_project.id - training_dataset { - #Required - dataset_type = var.model_training_dataset_dataset_type + + #Optional + alias_name = var.model_alias_name + component_models { #Optional - bucket = var.model_training_dataset_bucket - dataset_id = oci_data_labeling_service_dataset.test_dataset.id - namespace = var.model_training_dataset_namespace - object = var.model_training_dataset_object + model_id = oci_ai_document_model.test_model.id } - - #Optional defined_tags = var.model_defined_tags description = var.model_description display_name = var.model_display_name @@ -40,6 +38,13 @@ resource "oci_ai_document_model" "test_model" { is_quick_mode = var.model_is_quick_mode max_training_time_in_hours = var.model_max_training_time_in_hours model_version = var.model_model_version + operations { + + #Optional + operation = var.model_operations_operation + path = var.model_operations_path + value = var.model_operations_value + } testing_dataset { #Required dataset_type = var.model_testing_dataset_dataset_type @@ -50,6 +55,16 @@ resource "oci_ai_document_model" "test_model" { namespace = var.model_testing_dataset_namespace object = var.model_testing_dataset_object } + training_dataset { + #Required + dataset_type = var.model_training_dataset_dataset_type + + #Optional + bucket = var.model_training_dataset_bucket + dataset_id = oci_data_labeling_service_dataset.test_dataset.id + namespace = var.model_training_dataset_namespace + object = var.model_training_dataset_object + } validation_dataset { #Required dataset_type = var.model_validation_dataset_dataset_type @@ -67,15 +82,23 @@ resource "oci_ai_document_model" "test_model" { The following arguments are supported: +* `alias_name` - (Optional) the alias name of the model. * `compartment_id` - (Required) (Updatable) The compartment identifier. +* `component_models` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) list of active custom Key Value models that need to be composed. + * `model_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of active custom Key Value model that need to be composed. * `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` * `description` - (Optional) (Updatable) An optional description of the model. * `display_name` - (Optional) (Updatable) A human-friendly name for the model, which can be changed. * `freeform_tags` - (Optional) (Updatable) A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `is_quick_mode` - (Optional) Set to true when experimenting with a new model type or dataset, so the model training is quick, with a predefined low number of passes through the training data. * `max_training_time_in_hours` - (Optional) The maximum model training time in hours, expressed as a decimal fraction. +* `model_id` - (Required) * `model_type` - (Required) The type of the Document model. * `model_version` - (Optional) The model version +* `operations` - (Optional) (Updatable) + * `operation` - (Optional) (Updatable) + * `path` - (Optional) (Updatable) + * `value` - (Optional) (Updatable) * `project_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. * `testing_dataset` - (Optional) The base entity which is the input for creating and training a model. * `bucket` - (Required when dataset_type=OBJECT_STORAGE) The name of the Object Storage bucket that contains the input data file. @@ -83,7 +106,7 @@ The following arguments are supported: * `dataset_type` - (Required) The dataset type, based on where it is stored. * `namespace` - (Required when dataset_type=OBJECT_STORAGE) The namespace name of the Object Storage bucket that contains the input data file. * `object` - (Required when dataset_type=OBJECT_STORAGE) The object name of the input data file. -* `training_dataset` - (Required) The base entity which is the input for creating and training a model. +* `training_dataset` - (Optional) The base entity which is the input for creating and training a model. * `bucket` - (Required when dataset_type=OBJECT_STORAGE) The name of the Object Storage bucket that contains the input data file. * `dataset_id` - (Required when dataset_type=DATA_SCIENCE_LABELING) OCID of the Data Labeling dataset. * `dataset_type` - (Required) The dataset type, based on where it is stored. @@ -104,12 +127,16 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: +* `alias_name` - the alias name of the model. * `compartment_id` - The compartment identifier. +* `component_models` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) collection of active custom Key Value models that need to be composed. + * `model_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of active custom Key Value model that need to be composed. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` * `description` - An optional description of the model. * `display_name` - A human-friendly name for the model, which can be changed. * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `id` - A unique identifier that is immutable after creation. +* `is_composed_model` - Set to true when the model is created by using multiple key value extraction models. * `is_quick_mode` - Set to true when experimenting with a new model type or dataset, so model training is quick, with a predefined low number of passes through the training data. * `labels` - The collection of labels used to train the custom model. * `lifecycle_details` - A message describing the current state in more detail, that can provide actionable information if training failed. @@ -144,6 +171,7 @@ The following attributes are exported: * `project_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. * `state` - The current state of the model. * `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. For example: `{"orcl-cloud": {"free-tier-retained": "true"}}` +* `tenancy_id` - The tenancy id of the model. * `testing_dataset` - The base entity which is the input for creating and training a model. * `bucket` - The name of the Object Storage bucket that contains the input data file. * `dataset_id` - OCID of the Data Labeling dataset. diff --git a/website/docs/r/ai_document_processor_job.html.markdown b/website/docs/r/ai_document_processor_job.html.markdown index 9ccbef928de..2c0da3d09fa 100644 --- a/website/docs/r/ai_document_processor_job.html.markdown +++ b/website/docs/r/ai_document_processor_job.html.markdown @@ -49,6 +49,7 @@ resource "oci_ai_document_processor_job" "test_processor_job" { generate_searchable_pdf = var.processor_job_processor_config_features_generate_searchable_pdf max_results = var.processor_job_processor_config_features_max_results model_id = oci_ai_document_model.test_model.id + tenancy_id = oci_identity_tenancy.test_tenancy.id } processor_type = var.processor_job_processor_config_processor_type @@ -78,7 +79,7 @@ The following arguments are supported: * `source_type` - (Required) The type of input location. The allowed values are: * `OBJECT_STORAGE_LOCATIONS`: A list of object locations in Object Storage. * `INLINE_DOCUMENT_CONTENT`: The content of an inline document. -* `output_location` - (Required) The Object Storage Location. +* `output_location` - (Required) The object storage location where to store analysis results. * `bucket` - (Required) The Object Storage bucket name. * `namespace` - (Required) The Object Storage namespace. * `prefix` - (Required) The Object Storage folder name. @@ -94,6 +95,7 @@ The following arguments are supported: * `generate_searchable_pdf` - (Applicable when feature_type=TEXT_EXTRACTION) Whether or not to generate a searchable PDF file. * `max_results` - (Applicable when feature_type=DOCUMENT_CLASSIFICATION | LANGUAGE_CLASSIFICATION) The maximum number of results to return. * `model_id` - (Applicable when feature_type=DOCUMENT_CLASSIFICATION | KEY_VALUE_EXTRACTION) The custom model ID. + * `tenancy_id` - (Applicable when feature_type=DOCUMENT_CLASSIFICATION | KEY_VALUE_EXTRACTION) The custom model tenancy ID when modelId represents aliasName. * `is_zip_output_enabled` - (Optional) Whether or not to generate a ZIP file containing the results. * `language` - (Optional) The document language, abbreviated according to the BCP 47 Language-Tag syntax. * `processor_type` - (Required) The type of the processor. @@ -119,7 +121,7 @@ The following attributes are exported: * `OBJECT_STORAGE_LOCATIONS`: A list of object locations in Object Storage. * `INLINE_DOCUMENT_CONTENT`: The content of an inline document. * `lifecycle_details` - The detailed status of FAILED state. -* `output_location` - The Object Storage Location. +* `output_location` - The object storage location where to store analysis results. * `bucket` - The Object Storage bucket name. * `namespace` - The Object Storage namespace. * `prefix` - The Object Storage folder name. @@ -136,6 +138,7 @@ The following attributes are exported: * `generate_searchable_pdf` - Whether or not to generate a searchable PDF file. * `max_results` - The maximum number of results to return. * `model_id` - The custom model ID. + * `tenancy_id` - The custom model tenancy ID when modelId represents aliasName. * `is_zip_output_enabled` - Whether or not to generate a ZIP file containing the results. * `language` - The document language, abbreviated according to the BCP 47 Language-Tag syntax. * `processor_type` - The type of the processor. From f3335550c2f81c38a90e52f7922d4e06a649742c Mon Sep 17 00:00:00 2001 From: Terraform Team Automation Date: Fri, 21 Jul 2023 17:55:07 +0000 Subject: [PATCH 05/25] Added - Support for Tersi for Test Connectivity feature GoldenGate Test Connectivity for Connections associated with Deployments --- .../golden_gate/golden_gate_deployment_backup_resource.go | 2 +- .../service/golden_gate/golden_gate_trail_files_data_source.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/golden_gate/golden_gate_deployment_backup_resource.go b/internal/service/golden_gate/golden_gate_deployment_backup_resource.go index 06221a16eb7..8125293b8e3 100644 --- a/internal/service/golden_gate/golden_gate_deployment_backup_resource.go +++ b/internal/service/golden_gate/golden_gate_deployment_backup_resource.go @@ -95,7 +95,7 @@ func GoldenGateDeploymentBackupResource() *schema.Resource { Computed: true, }, "size_in_bytes": { - Type: schema.TypeFloat, + Type: schema.TypeFloat, // keep TypeFloat instead of the computed TypeString Computed: true, }, "state": { diff --git a/internal/service/golden_gate/golden_gate_trail_files_data_source.go b/internal/service/golden_gate/golden_gate_trail_files_data_source.go index afd453dd78c..6cce387f5e2 100644 --- a/internal/service/golden_gate/golden_gate_trail_files_data_source.go +++ b/internal/service/golden_gate/golden_gate_trail_files_data_source.go @@ -73,7 +73,7 @@ func GoldenGateTrailFilesDataSource() *schema.Resource { Computed: true, }, "size_in_bytes": { - Type: schema.TypeFloat, + Type: schema.TypeFloat, // keep TypeFloat instead of the computed TypeString Computed: true, }, "time_last_updated": { From cff4ab77791021063dfe6ae1644ac825b93cb581 Mon Sep 17 00:00:00 2001 From: Viral Sinha Date: Fri, 21 Jul 2023 15:18:56 -0700 Subject: [PATCH 06/25] Vendored - oci-go-sdk v65.45.0 changes for existing & new services --- go.mod | 2 +- go.sum | 2 - .../v65/aidocument/component_model.go | 2 +- .../v65/aidocument/create_model_details.go | 26 ++--- .../oci-go-sdk/v65/budget/alert_rule.go | 2 +- .../v65/budget/alert_rule_summary.go | 2 +- .../oci-go-sdk/v65/budget/alert_type.go | 2 +- .../oracle/oci-go-sdk/v65/budget/budget.go | 10 +- .../oci-go-sdk/v65/budget/budget_client.go | 35 +++--- .../oci-go-sdk/v65/budget/budget_summary.go | 10 +- .../v65/budget/create_alert_rule_details.go | 2 +- .../v65/budget/create_budget_details.go | 10 +- .../oci-go-sdk/v65/budget/lifecycle_state.go | 2 +- .../v65/budget/processing_period_type.go | 18 +-- .../oci-go-sdk/v65/budget/reset_period.go | 2 +- .../oracle/oci-go-sdk/v65/budget/sort_by.go | 2 +- .../oci-go-sdk/v65/budget/sort_order.go | 2 +- .../oci-go-sdk/v65/budget/target_type.go | 2 +- .../oci-go-sdk/v65/budget/threshold_type.go | 2 +- .../v65/budget/update_alert_rule_details.go | 2 +- .../v65/budget/update_budget_details.go | 10 +- .../v65/core/create_instance_pool_details.go | 8 ++ .../oci-go-sdk/v65/core/instance_pool.go | 8 ++ .../v65/core/update_instance_pool_details.go | 8 ++ .../copy_deployment_backup_details.go | 51 +++++++++ ...copy_deployment_backup_request_response.go | 106 ++++++++++++++++++ .../v65/goldengate/goldengate_client.go | 63 +++++++++++ .../v65/goldengate/operation_type.go | 4 + vendor/modules.txt | 2 +- 29 files changed, 340 insertions(+), 57 deletions(-) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/goldengate/copy_deployment_backup_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/goldengate/copy_deployment_backup_request_response.go diff --git a/go.mod b/go.mod index 2d8afafc55d..df917ca58aa 100644 --- a/go.mod +++ b/go.mod @@ -76,6 +76,6 @@ require ( ) // Uncomment this line to get OCI Go SDK from local source instead of github -//replace github.com/oracle/oci-go-sdk => ../../oracle/oci-go-sdk +replace github.com/oracle/oci-go-sdk/v65 v65.44.0 => ./vendor/github.com/oracle/oci-go-sdk go 1.18 diff --git a/go.sum b/go.sum index 8c236e4188a..aaeb6a3ea56 100644 --- a/go.sum +++ b/go.sum @@ -289,8 +289,6 @@ 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.44.0 h1:zTZNvfw0L60OIg3DDHoNMp8s76nD4DtueJyCPL/oXBs= -github.com/oracle/oci-go-sdk/v65 v65.44.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/component_model.go b/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/component_model.go index ae006ba87c3..24ac35d932a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/component_model.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/component_model.go @@ -19,7 +19,7 @@ import ( type ComponentModel struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of active custom Key Value model that need to be composed. - ModelId *string `mandatory:"true" json:"modelId"` + ModelId *string `mandatory:"false" json:"modelId"` } func (m ComponentModel) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/create_model_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/create_model_details.go index db5b613da5d..14d2b998a8f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/create_model_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aidocument/create_model_details.go @@ -25,8 +25,6 @@ type CreateModelDetails struct { // The compartment identifier. CompartmentId *string `mandatory:"true" json:"compartmentId"` - TrainingDataset Dataset `mandatory:"true" json:"trainingDataset"` - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. ProjectId *string `mandatory:"true" json:"projectId"` @@ -45,6 +43,8 @@ type CreateModelDetails struct { // The maximum model training time in hours, expressed as a decimal fraction. MaxTrainingTimeInHours *float64 `mandatory:"false" json:"maxTrainingTimeInHours"` + TrainingDataset Dataset `mandatory:"false" json:"trainingDataset"` + TestingDataset Dataset `mandatory:"false" json:"testingDataset"` ValidationDataset Dataset `mandatory:"false" json:"validationDataset"` @@ -91,6 +91,7 @@ func (m *CreateModelDetails) UnmarshalJSON(data []byte) (e error) { ModelVersion *string `json:"modelVersion"` IsQuickMode *bool `json:"isQuickMode"` MaxTrainingTimeInHours *float64 `json:"maxTrainingTimeInHours"` + TrainingDataset dataset `json:"trainingDataset"` TestingDataset dataset `json:"testingDataset"` ValidationDataset dataset `json:"validationDataset"` ComponentModels []ComponentModel `json:"componentModels"` @@ -99,7 +100,6 @@ func (m *CreateModelDetails) UnmarshalJSON(data []byte) (e error) { DefinedTags map[string]map[string]interface{} `json:"definedTags"` ModelType ModelModelTypeEnum `json:"modelType"` CompartmentId *string `json:"compartmentId"` - TrainingDataset dataset `json:"trainingDataset"` ProjectId *string `json:"projectId"` }{} @@ -118,6 +118,16 @@ func (m *CreateModelDetails) UnmarshalJSON(data []byte) (e error) { m.MaxTrainingTimeInHours = model.MaxTrainingTimeInHours + nn, e = model.TrainingDataset.UnmarshalPolymorphicJSON(model.TrainingDataset.JsonData) + if e != nil { + return + } + if nn != nil { + m.TrainingDataset = nn.(Dataset) + } else { + m.TrainingDataset = nil + } + nn, e = model.TestingDataset.UnmarshalPolymorphicJSON(model.TestingDataset.JsonData) if e != nil { return @@ -153,16 +163,6 @@ func (m *CreateModelDetails) UnmarshalJSON(data []byte) (e error) { m.CompartmentId = model.CompartmentId - nn, e = model.TrainingDataset.UnmarshalPolymorphicJSON(model.TrainingDataset.JsonData) - if e != nil { - return - } - if nn != nil { - m.TrainingDataset = nn.(Dataset) - } else { - m.TrainingDataset = nil - } - m.ProjectId = model.ProjectId return diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule.go index 32a214fad57..a1cea9ea4f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule_summary.go index 9385982e711..65249fc0038 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_rule_summary.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_type.go index 6f49a580300..6a969960ae2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/alert_type.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget.go index 1e0874c67a7..136b54dfbfb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget @@ -56,9 +56,15 @@ type Budget struct { // The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight. BudgetProcessingPeriodStartOffset *int `mandatory:"false" json:"budgetProcessingPeriodStartOffset"` - // The type of the budget processing period. Valid values are INVOICE and MONTH. + // The budget processing period type. Valid values are INVOICE, MONTH, and SINGLE_USE. ProcessingPeriodType ProcessingPeriodTypeEnum `mandatory:"false" json:"processingPeriodType,omitempty"` + // The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + StartDate *common.SDKTime `mandatory:"false" json:"startDate"` + + // The time when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + EndDate *common.SDKTime `mandatory:"false" json:"endDate"` + // The type of target on which the budget is applied. TargetType TargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_client.go index f62d717af15..29a8fcf62a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_client.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget @@ -93,9 +93,10 @@ func (client *BudgetClient) ConfigurationProvider() *common.ConfigurationProvide // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/CreateAlertRule.go.html to see an example of how to use CreateAlertRule API. +// A default retry strategy applies to this operation CreateAlertRule() func (client BudgetClient) CreateAlertRule(ctx context.Context, request CreateAlertRuleRequest) (response CreateAlertRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -155,9 +156,10 @@ func (client BudgetClient) createAlertRule(ctx context.Context, request common.O // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/CreateBudget.go.html to see an example of how to use CreateBudget API. +// A default retry strategy applies to this operation CreateBudget() func (client BudgetClient) CreateBudget(ctx context.Context, request CreateBudgetRequest) (response CreateBudgetResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -217,9 +219,10 @@ func (client BudgetClient) createBudget(ctx context.Context, request common.OCIR // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/DeleteAlertRule.go.html to see an example of how to use DeleteAlertRule API. +// A default retry strategy applies to this operation DeleteAlertRule() func (client BudgetClient) DeleteAlertRule(ctx context.Context, request DeleteAlertRuleRequest) (response DeleteAlertRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -274,9 +277,10 @@ func (client BudgetClient) deleteAlertRule(ctx context.Context, request common.O // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/DeleteBudget.go.html to see an example of how to use DeleteBudget API. +// A default retry strategy applies to this operation DeleteBudget() func (client BudgetClient) DeleteBudget(ctx context.Context, request DeleteBudgetRequest) (response DeleteBudgetResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -331,9 +335,10 @@ func (client BudgetClient) deleteBudget(ctx context.Context, request common.OCIR // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/GetAlertRule.go.html to see an example of how to use GetAlertRule API. +// A default retry strategy applies to this operation GetAlertRule() func (client BudgetClient) GetAlertRule(ctx context.Context, request GetAlertRuleRequest) (response GetAlertRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -388,9 +393,10 @@ func (client BudgetClient) getAlertRule(ctx context.Context, request common.OCIR // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/GetBudget.go.html to see an example of how to use GetBudget API. +// A default retry strategy applies to this operation GetBudget() func (client BudgetClient) GetBudget(ctx context.Context, request GetBudgetRequest) (response GetBudgetResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -445,9 +451,10 @@ func (client BudgetClient) getBudget(ctx context.Context, request common.OCIRequ // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/ListAlertRules.go.html to see an example of how to use ListAlertRules API. +// A default retry strategy applies to this operation ListAlertRules() func (client BudgetClient) ListAlertRules(ctx context.Context, request ListAlertRulesRequest) (response ListAlertRulesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -500,15 +507,15 @@ func (client BudgetClient) listAlertRules(ctx context.Context, request common.OC // ListBudgets Gets a list of budgets in a compartment. // By default, ListBudgets returns budgets of the 'COMPARTMENT' target type, and the budget records with only one target compartment OCID. // To list all budgets, set the targetType query parameter to ALL (for example: 'targetType=ALL'). -// Additional targetTypes would be available in future releases. Clients should ignore new targetTypes, -// or upgrade to the latest version of the client SDK to handle new targetTypes. +// Clients should ignore new targetTypes, or upgrade to the latest version of the client SDK to handle new targetTypes. // // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/ListBudgets.go.html to see an example of how to use ListBudgets API. +// A default retry strategy applies to this operation ListBudgets() func (client BudgetClient) ListBudgets(ctx context.Context, request ListBudgetsRequest) (response ListBudgetsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -563,9 +570,10 @@ func (client BudgetClient) listBudgets(ctx context.Context, request common.OCIRe // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/UpdateAlertRule.go.html to see an example of how to use UpdateAlertRule API. +// A default retry strategy applies to this operation UpdateAlertRule() func (client BudgetClient) UpdateAlertRule(ctx context.Context, request UpdateAlertRuleRequest) (response UpdateAlertRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -620,9 +628,10 @@ func (client BudgetClient) updateAlertRule(ctx context.Context, request common.O // See also // // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/budget/UpdateBudget.go.html to see an example of how to use UpdateBudget API. +// A default retry strategy applies to this operation UpdateBudget() func (client BudgetClient) UpdateBudget(ctx context.Context, request UpdateBudgetRequest) (response UpdateBudgetResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_summary.go index 91b6ff3f6d2..73fda50113a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/budget_summary.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget @@ -56,9 +56,15 @@ type BudgetSummary struct { // The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight. BudgetProcessingPeriodStartOffset *int `mandatory:"false" json:"budgetProcessingPeriodStartOffset"` - // The type of the budget processing period. Valid values are INVOICE and MONTH. + // The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE. ProcessingPeriodType ProcessingPeriodTypeEnum `mandatory:"false" json:"processingPeriodType,omitempty"` + // The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + StartDate *common.SDKTime `mandatory:"false" json:"startDate"` + + // The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + EndDate *common.SDKTime `mandatory:"false" json:"endDate"` + // The type of target on which the budget is applied. TargetType TargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_alert_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_alert_rule_details.go index 5f1c028728b..6aadbf08f10 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_alert_rule_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_alert_rule_details.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_budget_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_budget_details.go index c489629120b..e15ae71a82d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_budget_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/create_budget_details.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget @@ -43,9 +43,15 @@ type CreateBudgetDetails struct { // The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight. BudgetProcessingPeriodStartOffset *int `mandatory:"false" json:"budgetProcessingPeriodStartOffset"` - // The type of the budget processing period. Valid values are INVOICE and MONTH. + // The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE. ProcessingPeriodType ProcessingPeriodTypeEnum `mandatory:"false" json:"processingPeriodType,omitempty"` + // The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + StartDate *common.SDKTime `mandatory:"false" json:"startDate"` + + // The date when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + EndDate *common.SDKTime `mandatory:"false" json:"endDate"` + // The type of target on which the budget is applied. TargetType TargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/lifecycle_state.go index 986b0c48681..794caf7f280 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/lifecycle_state.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/processing_period_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/processing_period_type.go index 630c2b1b987..ceff12a06cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/processing_period_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/processing_period_type.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget @@ -18,18 +18,21 @@ type ProcessingPeriodTypeEnum string // Set of constants representing the allowable values for ProcessingPeriodTypeEnum const ( - ProcessingPeriodTypeInvoice ProcessingPeriodTypeEnum = "INVOICE" - ProcessingPeriodTypeMonth ProcessingPeriodTypeEnum = "MONTH" + ProcessingPeriodTypeInvoice ProcessingPeriodTypeEnum = "INVOICE" + ProcessingPeriodTypeMonth ProcessingPeriodTypeEnum = "MONTH" + ProcessingPeriodTypeSingleUse ProcessingPeriodTypeEnum = "SINGLE_USE" ) var mappingProcessingPeriodTypeEnum = map[string]ProcessingPeriodTypeEnum{ - "INVOICE": ProcessingPeriodTypeInvoice, - "MONTH": ProcessingPeriodTypeMonth, + "INVOICE": ProcessingPeriodTypeInvoice, + "MONTH": ProcessingPeriodTypeMonth, + "SINGLE_USE": ProcessingPeriodTypeSingleUse, } var mappingProcessingPeriodTypeEnumLowerCase = map[string]ProcessingPeriodTypeEnum{ - "invoice": ProcessingPeriodTypeInvoice, - "month": ProcessingPeriodTypeMonth, + "invoice": ProcessingPeriodTypeInvoice, + "month": ProcessingPeriodTypeMonth, + "single_use": ProcessingPeriodTypeSingleUse, } // GetProcessingPeriodTypeEnumValues Enumerates the set of values for ProcessingPeriodTypeEnum @@ -46,6 +49,7 @@ func GetProcessingPeriodTypeEnumStringValues() []string { return []string{ "INVOICE", "MONTH", + "SINGLE_USE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/reset_period.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/reset_period.go index b4bdbbda90d..546f1201d96 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/reset_period.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/reset_period.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_by.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_by.go index cbbdc50b951..2c8832ef15b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_by.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_by.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_order.go index 0b01bc01a61..6a8effce6a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_order.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/sort_order.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/target_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/target_type.go index 3d80cbce979..4b471f99d07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/target_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/target_type.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/threshold_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/threshold_type.go index 0e173dfdbd2..d8ef4806855 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/threshold_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/threshold_type.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_alert_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_alert_rule_details.go index 7833a7b9f6b..40a52972462 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_alert_rule_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_alert_rule_details.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_budget_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_budget_details.go index f4b53856124..9bd97d93737 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_budget_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/budget/update_budget_details.go @@ -4,7 +4,7 @@ // Budgets API // -// Use the Budgets API to manage budgets and budget alerts. +// Use the Budgets API to manage budgets and budget alerts. For more information, see Budgets Overview (https://docs.cloud.oracle.com/iaas/Content/Billing/Concepts/budgetsoverview.htm). // package budget @@ -30,9 +30,15 @@ type UpdateBudgetDetails struct { // The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight. BudgetProcessingPeriodStartOffset *int `mandatory:"false" json:"budgetProcessingPeriodStartOffset"` - // The type of the budget processing period. Valid values are INVOICE and MONTH. + // The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE. ProcessingPeriodType ProcessingPeriodTypeEnum `mandatory:"false" json:"processingPeriodType,omitempty"` + // The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + StartDate *common.SDKTime `mandatory:"false" json:"startDate"` + + // The time when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time. + EndDate *common.SDKTime `mandatory:"false" json:"endDate"` + // The reset period for the budget. ResetPeriod ResetPeriodEnum `mandatory:"false" json:"resetPeriod,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go index 8032d0b9000..3db2af6d63a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go @@ -57,6 +57,14 @@ type CreateInstancePoolDetails struct { // The load balancers to attach to the instance pool. LoadBalancers []AttachLoadBalancerDetails `mandatory:"false" json:"loadBalancers"` + + // A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. + // The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format + InstanceDisplayNameFormatter *string `mandatory:"false" json:"instanceDisplayNameFormatter"` + + // A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. + // The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format + InstanceHostnameFormatter *string `mandatory:"false" json:"instanceHostnameFormatter"` } func (m CreateInstancePoolDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go index 4fea0a086ad..a9271f29e07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go @@ -66,6 +66,14 @@ type InstancePool struct { // The load balancers attached to the instance pool. LoadBalancers []InstancePoolLoadBalancerAttachment `mandatory:"false" json:"loadBalancers"` + + // A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. + // The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format + InstanceDisplayNameFormatter *string `mandatory:"false" json:"instanceDisplayNameFormatter"` + + // A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. + // The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format + InstanceHostnameFormatter *string `mandatory:"false" json:"instanceHostnameFormatter"` } func (m InstancePool) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go index e693420517f..11188f51728 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go @@ -54,6 +54,14 @@ type UpdateInstancePoolDetails struct { // use the CreateComputeCapacityReport // operation. Size *int `mandatory:"false" json:"size"` + + // A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. + // The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format + InstanceDisplayNameFormatter *string `mandatory:"false" json:"instanceDisplayNameFormatter"` + + // A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. + // The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format + InstanceHostnameFormatter *string `mandatory:"false" json:"instanceHostnameFormatter"` } func (m UpdateInstancePoolDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/copy_deployment_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/copy_deployment_backup_details.go new file mode 100644 index 00000000000..51d21a69a7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/copy_deployment_backup_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// GoldenGate API +// +// Use the Oracle Cloud Infrastructure GoldenGate APIs to perform data replication operations. +// + +package goldengate + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CopyDeploymentBackupDetails The information about the copy for a Deployment Backup. +type CopyDeploymentBackupDetails struct { + + // Name of namespace that serves as a container for all of your buckets + NamespaceName *string `mandatory:"true" json:"namespaceName"` + + // Name of the bucket where the object is to be uploaded in the object storage + BucketName *string `mandatory:"true" json:"bucketName"` + + // A 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"` + + // Tags defined 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 CopyDeploymentBackupDetails) 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 CopyDeploymentBackupDetails) 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/goldengate/copy_deployment_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/copy_deployment_backup_request_response.go new file mode 100644 index 00000000000..9f7f1d63ca7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/copy_deployment_backup_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2023, 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 goldengate + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CopyDeploymentBackupRequest wrapper for the CopyDeploymentBackup operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/goldengate/CopyDeploymentBackup.go.html to see an example of how to use CopyDeploymentBackupRequest. +type CopyDeploymentBackupRequest struct { + + // A unique DeploymentBackup identifier. + DeploymentBackupId *string `mandatory:"true" contributesTo:"path" name:"deploymentBackupId"` + + // A placeholder for any additional metadata to describe the copy of a Deployment Backup. + CopyDeploymentBackupDetails `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 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"` + + // A token that uniquely identifies a request so it can be retried, in case of a timeout or server error, + // without the 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 was deleted and purged + // from the system, then a retry of the original creation request is 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 CopyDeploymentBackupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CopyDeploymentBackupRequest) 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 CopyDeploymentBackupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CopyDeploymentBackupRequest) 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 CopyDeploymentBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CopyDeploymentBackupResponse wrapper for the CopyDeploymentBackup operation +type CopyDeploymentBackupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + // status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please include the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CopyDeploymentBackupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CopyDeploymentBackupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/goldengate_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/goldengate_client.go index 7fd9f1ddefa..9c30f3dd787 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/goldengate_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/goldengate_client.go @@ -537,6 +537,69 @@ func (client GoldenGateClient) collectDeploymentDiagnostic(ctx context.Context, return response, err } +// CopyDeploymentBackup Creates a copy of a Deployment Backup. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/goldengate/CopyDeploymentBackup.go.html to see an example of how to use CopyDeploymentBackup API. +// A default retry strategy applies to this operation CopyDeploymentBackup() +func (client GoldenGateClient) CopyDeploymentBackup(ctx context.Context, request CopyDeploymentBackupRequest) (response CopyDeploymentBackupResponse, 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.copyDeploymentBackup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CopyDeploymentBackupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CopyDeploymentBackupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CopyDeploymentBackupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CopyDeploymentBackupResponse") + } + return +} + +// copyDeploymentBackup implements the OCIOperation interface (enables retrying operations) +func (client GoldenGateClient) copyDeploymentBackup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/deploymentBackups/{deploymentBackupId}/actions/copyToBucket", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CopyDeploymentBackupResponse + 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/goldengate/20200407/DeploymentBackup/CopyDeploymentBackup" + err = common.PostProcessServiceError(err, "GoldenGate", "CopyDeploymentBackup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateConnection Creates a new Connection. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/operation_type.go index 52c3fd52aba..e146421af9e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/operation_type.go @@ -33,6 +33,7 @@ const ( OperationTypeGoldengateDeploymentBackupCreate OperationTypeEnum = "GOLDENGATE_DEPLOYMENT_BACKUP_CREATE" OperationTypeGoldengateDeploymentBackupDelete OperationTypeEnum = "GOLDENGATE_DEPLOYMENT_BACKUP_DELETE" OperationTypeGoldengateDeploymentBackupCancel OperationTypeEnum = "GOLDENGATE_DEPLOYMENT_BACKUP_CANCEL" + OperationTypeGoldengateDeploymentBackupCopy OperationTypeEnum = "GOLDENGATE_DEPLOYMENT_BACKUP_COPY" OperationTypeGoldengateConnectionCreate OperationTypeEnum = "GOLDENGATE_CONNECTION_CREATE" OperationTypeGoldengateConnectionUpdate OperationTypeEnum = "GOLDENGATE_CONNECTION_UPDATE" OperationTypeGoldengateConnectionDelete OperationTypeEnum = "GOLDENGATE_CONNECTION_DELETE" @@ -63,6 +64,7 @@ var mappingOperationTypeEnum = map[string]OperationTypeEnum{ "GOLDENGATE_DEPLOYMENT_BACKUP_CREATE": OperationTypeGoldengateDeploymentBackupCreate, "GOLDENGATE_DEPLOYMENT_BACKUP_DELETE": OperationTypeGoldengateDeploymentBackupDelete, "GOLDENGATE_DEPLOYMENT_BACKUP_CANCEL": OperationTypeGoldengateDeploymentBackupCancel, + "GOLDENGATE_DEPLOYMENT_BACKUP_COPY": OperationTypeGoldengateDeploymentBackupCopy, "GOLDENGATE_CONNECTION_CREATE": OperationTypeGoldengateConnectionCreate, "GOLDENGATE_CONNECTION_UPDATE": OperationTypeGoldengateConnectionUpdate, "GOLDENGATE_CONNECTION_DELETE": OperationTypeGoldengateConnectionDelete, @@ -93,6 +95,7 @@ var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ "goldengate_deployment_backup_create": OperationTypeGoldengateDeploymentBackupCreate, "goldengate_deployment_backup_delete": OperationTypeGoldengateDeploymentBackupDelete, "goldengate_deployment_backup_cancel": OperationTypeGoldengateDeploymentBackupCancel, + "goldengate_deployment_backup_copy": OperationTypeGoldengateDeploymentBackupCopy, "goldengate_connection_create": OperationTypeGoldengateConnectionCreate, "goldengate_connection_update": OperationTypeGoldengateConnectionUpdate, "goldengate_connection_delete": OperationTypeGoldengateConnectionDelete, @@ -134,6 +137,7 @@ func GetOperationTypeEnumStringValues() []string { "GOLDENGATE_DEPLOYMENT_BACKUP_CREATE", "GOLDENGATE_DEPLOYMENT_BACKUP_DELETE", "GOLDENGATE_DEPLOYMENT_BACKUP_CANCEL", + "GOLDENGATE_DEPLOYMENT_BACKUP_COPY", "GOLDENGATE_CONNECTION_CREATE", "GOLDENGATE_CONNECTION_UPDATE", "GOLDENGATE_CONNECTION_DELETE", diff --git a/vendor/modules.txt b/vendor/modules.txt index 0149c4b2c2e..bee99a2e060 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -248,7 +248,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.44.0 +# github.com/oracle/oci-go-sdk/v65 v65.44.0 => ./vendor/github.com/oracle/oci-go-sdk ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection From 70dc8506067f43260d9b0c1a6dfe2d3eaba876ee Mon Sep 17 00:00:00 2001 From: Viral Sinha Date: Fri, 21 Jul 2023 16:19:42 -0700 Subject: [PATCH 07/25] Finalize changelog and release for version v5.6.0 --- CHANGELOG.md | 8 ++++++++ internal/globalvar/version.go | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1274c83c46b..dc7c13f1766 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 5.6.0 (Unreleased) + +### Added +- Support for Tersi for Test Connectivity feature GoldenGate Test Connectivity for Connections associated with Deployments +- Model Compose and Model Alias features to custom Models in document service +- Support for Budgets - Single Use Budgets +- Support for Custom hostname Terraform Instance Pools - Custom hostname support + ## 5.5.0 (Unreleased) ### Added diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index ab6154cea7f..d102ab19d9f 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -7,8 +7,8 @@ import ( "log" ) -const Version = "5.5.0" -const ReleaseDate = "2023-07-19" +const Version = "5.6.0" +const ReleaseDate = "2023-07-26" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) From b0c28b7bc45f5bc0b4c4497102a6b7f686146bc8 Mon Sep 17 00:00:00 2001 From: Varun Date: Tue, 25 Jul 2023 20:13:46 +0000 Subject: [PATCH 08/25] Vendored - oci-go-sdk for release version v65 --- go.mod | 4 ++-- go.sum | 2 ++ vendor/github.com/oracle/oci-go-sdk/v65/common/version.go | 2 +- vendor/modules.txt | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index df917ca58aa..e7d61916f4f 100644 --- a/go.mod +++ b/go.mod @@ -53,7 +53,7 @@ require ( github.com/mitchellh/mapstructure v1.1.2 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/oklog/run v1.0.0 // indirect - github.com/oracle/oci-go-sdk/v65 v65.44.0 + github.com/oracle/oci-go-sdk/v65 v65.45.0 github.com/pmezard/go-difflib v1.0.0 // indirect github.com/sony/gobreaker v0.5.0 // indirect github.com/ulikunitz/xz v0.5.8 // indirect @@ -76,6 +76,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.44.0 => ./vendor/github.com/oracle/oci-go-sdk +//replace github.com/oracle/oci-go-sdk => ../../oracle/oci-go-sdk go 1.18 diff --git a/go.sum b/go.sum index aaeb6a3ea56..5217f818551 100644 --- a/go.sum +++ b/go.sum @@ -289,6 +289,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.45.0 h1:EpCst/iZma9s8eYS0QJ9qsTmGxX5GPehYGN1jwGIteU= +github.com/oracle/oci-go-sdk/v65 v65.45.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 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 90df5fb7d5e..c97ae2dc7b7 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 = "44" + minor = "45" patch = "0" tag = "" ) diff --git a/vendor/modules.txt b/vendor/modules.txt index bee99a2e060..ac48a82781d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -248,7 +248,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.44.0 => ./vendor/github.com/oracle/oci-go-sdk +# github.com/oracle/oci-go-sdk/v65 v65.45.0 ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection From f0f0ed46173d1cc06e0ff6699a8c75feb12b1084 Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Wed, 26 Jul 2023 13:25:04 -0700 Subject: [PATCH 09/25] Added - Release for v5.6.0 --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc7c13f1766..e6042d8e019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 5.6.0 (Unreleased) +## 5.6.0 (July 26, 2023) ### Added - Support for Tersi for Test Connectivity feature GoldenGate Test Connectivity for Connections associated with Deployments @@ -6,7 +6,7 @@ - Support for Budgets - Single Use Budgets - Support for Custom hostname Terraform Instance Pools - Custom hostname support -## 5.5.0 (Unreleased) +## 5.5.0 (July 19, 2023) ### Added - Support for Remove internal-only additionalCapabilities parameter from Container Instances Public SDK/CLI and Terraform From 9064e68aa40e6e0de6c27f7c91b1da599ad8142a Mon Sep 17 00:00:00 2001 From: tf-oci-pub Date: Wed, 26 Jul 2023 20:29:31 +0000 Subject: [PATCH 10/25] Added - README.md of service examples with magic button --- examples/zips/adm.zip | Bin 1859 -> 1859 bytes examples/zips/aiAnomalyDetection.zip | Bin 3302 -> 3302 bytes examples/zips/aiDocument.zip | Bin 1736 -> 1793 bytes examples/zips/aiVision.zip | Bin 1655 -> 1655 bytes examples/zips/always_free.zip | Bin 3850 -> 3850 bytes examples/zips/analytics.zip | Bin 2765 -> 2765 bytes examples/zips/announcements_service.zip | Bin 2717 -> 2717 bytes examples/zips/api_gateway.zip | Bin 27070 -> 27070 bytes examples/zips/apm.zip | Bin 16986 -> 16986 bytes examples/zips/appmgmt_control.zip | Bin 2681 -> 2681 bytes examples/zips/artifacts.zip | Bin 7103 -> 7103 bytes examples/zips/audit.zip | Bin 1804 -> 1804 bytes examples/zips/autoscaling.zip | Bin 5682 -> 5682 bytes examples/zips/bastion.zip | Bin 4998 -> 4998 bytes examples/zips/big_data_service.zip | Bin 7245 -> 7245 bytes examples/zips/blockchain.zip | Bin 1898 -> 1898 bytes examples/zips/budget.zip | Bin 2380 -> 3741 bytes examples/zips/certificatesManagement.zip | Bin 10431 -> 10431 bytes examples/zips/cloudBridge.zip | Bin 9946 -> 9946 bytes examples/zips/cloudMigrations.zip | Bin 8427 -> 8427 bytes examples/zips/cloudguard.zip | Bin 21656 -> 21656 bytes examples/zips/compute.zip | Bin 45887 -> 46855 bytes examples/zips/computeinstanceagent.zip | Bin 3311 -> 3311 bytes examples/zips/concepts.zip | Bin 4863 -> 4863 bytes examples/zips/container_engine.zip | Bin 20446 -> 20446 bytes examples/zips/container_instances.zip | Bin 3204 -> 3129 bytes examples/zips/database.zip | Bin 133904 -> 133909 bytes examples/zips/databaseTools.zip | Bin 3784 -> 3784 bytes examples/zips/databasemanagement.zip | Bin 6032 -> 6032 bytes examples/zips/databasemigration.zip | Bin 3707 -> 3707 bytes examples/zips/datacatalog.zip | Bin 2819 -> 2819 bytes examples/zips/dataflow.zip | Bin 3602 -> 3602 bytes examples/zips/dataintegration.zip | Bin 5203 -> 5203 bytes examples/zips/datalabeling.zip | Bin 2175 -> 2175 bytes examples/zips/datasafe.zip | Bin 41897 -> 41897 bytes examples/zips/datascience.zip | Bin 48846 -> 48846 bytes examples/zips/devops.zip | Bin 42339 -> 42339 bytes examples/zips/disaster_recovery.zip | Bin 13688 -> 13731 bytes examples/zips/dns.zip | Bin 12059 -> 12059 bytes examples/zips/em_warehouse.zip | Bin 2424 -> 2424 bytes examples/zips/email.zip | Bin 4640 -> 4640 bytes examples/zips/events.zip | Bin 1807 -> 1807 bytes examples/zips/fast_connect.zip | Bin 8345 -> 8345 bytes examples/zips/functions.zip | Bin 3475 -> 3475 bytes examples/zips/fusionapps.zip | Bin 12252 -> 12252 bytes examples/zips/goldengate.zip | Bin 5136 -> 5136 bytes examples/zips/health_checks.zip | Bin 8824 -> 8824 bytes examples/zips/id6.zip | Bin 1003 -> 1003 bytes examples/zips/identity.zip | Bin 16320 -> 16320 bytes examples/zips/identity_data_plane.zip | Bin 1948 -> 1948 bytes examples/zips/identity_domains.zip | Bin 31309 -> 31309 bytes examples/zips/integration.zip | Bin 2004 -> 2004 bytes examples/zips/jms.zip | Bin 11623 -> 11623 bytes examples/zips/kms.zip | Bin 7652 -> 7652 bytes examples/zips/license_manager.zip | Bin 5213 -> 5213 bytes examples/zips/limits.zip | Bin 2522 -> 2522 bytes examples/zips/load_balancer.zip | Bin 6517 -> 6517 bytes examples/zips/log_analytics.zip | Bin 16315 -> 16315 bytes examples/zips/logging.zip | Bin 9045 -> 9045 bytes examples/zips/management_agent.zip | Bin 3044 -> 3044 bytes examples/zips/management_dashboard.zip | Bin 5586 -> 5586 bytes examples/zips/marketplace.zip | Bin 3062 -> 3062 bytes examples/zips/media_services.zip | Bin 9156 -> 9156 bytes examples/zips/metering_computation.zip | Bin 4442 -> 4442 bytes examples/zips/monitoring.zip | Bin 3630 -> 3630 bytes examples/zips/mysql.zip | Bin 7901 -> 7901 bytes examples/zips/network_firewall.zip | Bin 4573 -> 4573 bytes examples/zips/network_load_balancer.zip | Bin 6539 -> 6539 bytes examples/zips/networking.zip | Bin 39056 -> 39056 bytes examples/zips/nosql.zip | Bin 4137 -> 4137 bytes examples/zips/notifications.zip | Bin 6647 -> 6647 bytes examples/zips/object_storage.zip | Bin 8939 -> 8939 bytes examples/zips/ocvp.zip | Bin 4324 -> 4324 bytes examples/zips/onesubscription.zip | Bin 7807 -> 7807 bytes examples/zips/opa.zip | Bin 1629 -> 1629 bytes examples/zips/opensearch.zip | Bin 2613 -> 2613 bytes examples/zips/operator_access_control.zip | Bin 6781 -> 6781 bytes examples/zips/opsi.zip | Bin 26028 -> 26028 bytes examples/zips/optimizer.zip | Bin 2311 -> 2311 bytes .../zips/oracle_cloud_vmware_solution.zip | Bin 3979 -> 3979 bytes examples/zips/oracle_content_experience.zip | Bin 2090 -> 2090 bytes examples/zips/oracle_digital_assistant.zip | Bin 3038 -> 3038 bytes examples/zips/osmanagement.zip | Bin 8728 -> 8728 bytes examples/zips/osp_gateway.zip | Bin 3540 -> 3540 bytes examples/zips/osub_billing_schedule.zip | Bin 1704 -> 1704 bytes .../zips/osub_organization_subscription.zip | Bin 1757 -> 1757 bytes examples/zips/osub_subscription.zip | Bin 1795 -> 1795 bytes examples/zips/osub_usage.zip | Bin 1749 -> 1749 bytes examples/zips/pic.zip | Bin 8004 -> 8004 bytes examples/zips/queue.zip | Bin 2696 -> 2696 bytes examples/zips/recovery.zip | Bin 4505 -> 4505 bytes examples/zips/resourcemanager.zip | Bin 6565 -> 6565 bytes examples/zips/serviceManagerProxy.zip | Bin 1691 -> 1691 bytes examples/zips/service_catalog.zip | Bin 3853 -> 3853 bytes examples/zips/service_connector_hub.zip | Bin 2758 -> 2758 bytes examples/zips/service_mesh.zip | Bin 9180 -> 9180 bytes examples/zips/stack_monitoring.zip | Bin 9255 -> 9255 bytes examples/zips/storage.zip | Bin 23828 -> 26432 bytes examples/zips/streaming.zip | Bin 2116 -> 2116 bytes examples/zips/usage_proxy.zip | Bin 3238 -> 3238 bytes examples/zips/vault_secret.zip | Bin 1767 -> 1767 bytes examples/zips/vbs_inst.zip | Bin 1787 -> 1787 bytes examples/zips/visual_builder.zip | Bin 1860 -> 1860 bytes examples/zips/vn_monitoring.zip | Bin 3387 -> 3387 bytes .../zips/vulnerability_scanning_service.zip | Bin 2340 -> 2340 bytes examples/zips/web_app_acceleration.zip | Bin 2374 -> 2374 bytes examples/zips/web_app_firewall.zip | Bin 2814 -> 2814 bytes ..._application_acceleration_and_security.zip | Bin 6483 -> 6483 bytes 108 files changed, 0 insertions(+), 0 deletions(-) diff --git a/examples/zips/adm.zip b/examples/zips/adm.zip index 5e067fa99c11592e5c0b4099ee132ed2b9d8056b..e46c6e420c0b33f2da28b18dacb2a72c7e92f118 100644 GIT binary patch delta 178 zcmX@icbJbiz?+$civa}IE&er;S6M~9>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRiq zEq0JPAl}$|fr%NYb#er=Axv!Y1m>M!F&`EknAqlemHM+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^d zwAexFfOuo;1tw;o*2xjfhA^?o6PR~`#e7(FU}Br=Sppcrf|pngnSmN7A7qmO^Htd_ TQ26z1_9*-ZY*t{tEV~*2a>+>9 diff --git a/examples/zips/aiAnomalyDetection.zip b/examples/zips/aiAnomalyDetection.zip index 82ac15541263cf188c0b6596ca7330e3705a7f70..915321c31793714cef18739b537cff6a094bcead 100644 GIT binary patch delta 178 zcmaDR`Am{Gz?+$civa}IE&er;*GNUZ>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjp zOLmYtAl|t6DLXSz>*Q_@2bkF8OB_eQVlz3dVPczab4D|Q1ueN9n1LE6*Ko^#`Lns* TQTQx8eklAB9#1g;0FN2~3e!Nn delta 178 zcmaDR`Am{Gz?+$civa|-7QLCsYozjZ+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$_Y zE!jcpfOzBLr|ir?t&_Vs9AILTFL4|Ji_PS;hKX&y%^A%I7PRDcUEJ{=DL$Y`*nUBGSu-XEhCA#N)70ug zk|11K!Og(P@{*Z>fu$O#^=*i6{%i+|L`;e$~<|y|*rBC9tO( zZm1~VcyQ|f>Km-l7gYWRt^RhwR-r8Y+1c6O#k>w~?^(1VN6z^6FC$AIwP*pJMLfFE ziHxpyCYZUEUf86e7La;sml5lg(qHu=?Z?+WcG!Po*7Z6Q=2Ls-nsXQH-~3n;Zyxxv zTBm1L$dbAs?gbZ?%-(hCut(mT!t6%vW8Ln)+LdwlighAt-_?aqEbfwgIWJn|)5;>@ zy|0@ef12@Jm1Ao1!j75WKCWq=@^Q~*k@5wHw76y+`FuO`Rj!bFb^ZD{md+I!Q#VC+ zysr01+I0GH&HmV{(zm6y_S@ ztG{8`wr_rX+oIY(w&+IPzAGu8Y>r*+?c9sXJGc}lNeLsjcnzE?{8*JEe6&pNW< zpx_l=y=9jVd|w`XpMOrsC#B1(>}S8_1g`pK=d|p-*5p(+-{*fq^-H<0dEQqu@Qhmd zc&p__NzN3Zx09E|{XM(gZME^kPW~t9f4}|v{Wo_%;|p7k+;V|k)5Y(#R$KlJ-Mx4J ztL@t+c-zSR>)s~ab+mKmo80%a>^Re$&OP}5RAN^9{pM%97xumW6mj4F;TL95@)H53 zAP!LSo4l6E0-XMUNo?{ProGG{u{F%bFtN?gn1dL>g4V1S%pgVfY%*x6bn*gL6PT1D zC;?Y;hu1F#+91Hlz@Wq+0c0^S0GSL+8gDW&Oy0|+%Ern7(*QO*j!l~J#^fqCRZT1@ UJ;0ll4P*if5Vir0No57`09>MS4FCWD delta 775 zcmZqVJHg8v;LXg!#Q*|Zi{4D+)nfm;ZC%RuZR;l5NeKf*!u~I+Ui6odfkBOhfkB!< zX7U?Wxq40pW{@fnF0J5ZU}Sm8%)r1>4K$-S*th?-g23MA;R^37b=6lsj{7!Y-J(_U zSxZb}x2m@!&N*uMfWhxg$nX2&8_c_Q?+&tzXsa~-d{27CR;wa5Dc7z~9DnE9_^P=t zvOKBnFpnPdst!AzgN0V1i_~s$O%P+>x_)b%jE4Ju4Nz8Wq24JS@8y_gWPSd%4bM!^}8 zT&B-atA$qd{&{oe>b2hnVJ}wgeE0Fkh3HRpA0OQFewp}~`+m-Y3kAGy>}M-n@jqE+ zS`m0Ztp3B{PruiT#{IpQH|_gv{nzpnoq6BO3+_&ZT`M>@3#MVUbZ)~F7E4$(ptZT4G+ zI|=EgciV;gH9S%exU*z_blve(gUMj}kBh#SDk6lIUp)H#Vd;X4uhhRDQ!XlhBne7R zBEW>e0ZLAjpD|g0(-SbIOjc#y%M22G%4`f1+bqu##0VBFVYL7ysmTItGJL41Zt_i5 z6POfOsXm)D(*mZ+6IsP3b2AIDv4YbgNTUKs>0pXx)4_>0Qp_NcNPVyfP;_Je6-JQI)3v6wLfHBSD(Dg##J#cGSfU&-o%!slnR2lE5j)Bug| BJ@fzo delta 156 zcmey)^PPt`z?+$civa|-7QLCstHJ(t+q#tR+ty9AkzxjkMCyY@fTA1wuP}myCZ{o( z!NevnX4(T5OJX*JiEW<6912nRiN%Z=sB!WKRvEA&FIHO={z_IC6h1$jJ(wTJrUn3m Cq(^7~ diff --git a/examples/zips/always_free.zip b/examples/zips/always_free.zip index 13fb6d348d533f6dd79ad79a4179d688ed5ca63a..ba3ae4a0a2c2f032b197fbe0aaba5d4406676c39 100644 GIT binary patch delta 156 zcmeB@>yqOQ@MdP=VgP}4i+@ez)n-?3I+&u_ba0}*6f;O9#t19|6x}%0iwh()`4N{T zOl-0e_kOV06K)fj*k*a2a7M6TC9fqjP~+qVJ{d6o3a4g+HIq3Cw@Orv?Du Cd_2Ga delta 156 zcmeB@>yqOQ@MdP=VgP}yMQrdRCM-z?+$civa}IE&er;SCd`6>0pXx)4_?hQp_NcC?l{4P;}$u97d4PWF{s9 znAm1ZCJ7d>UrdRCM-z?+$civa|-7QLCstI7U#+q#tR+ty9Am0|{oL>YlafT9~G=P-hVCNnV^ zz{ECNGD)z21w+`(VS0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj3 z8+MR7Al|q#fSDPnb@Cr(XPDSzH hWJOLHu%as*UMPGA&Oj9YW=lr5Y#;QYQkWIl$`D zY}i5SfOzA|0A^;O*2#aEonc~=-B?b7#e`VxU}BrYS(6#Tf_vFq;ewp(P{Di-XJ(*j hlNC8-z>2PLc%kqeI0I4mn>l?@_=;S?V17B58UO;{SHb`Q diff --git a/examples/zips/api_gateway.zip b/examples/zips/api_gateway.zip index 9c9fad0b5737e9821be8e38dd7f14f957fe655df..b347289d9a7209b6b908ab1398fc745f752e67b6 100644 GIT binary patch delta 1197 zcmdmYnQ`A`M&1B#W)?065LmbP*F;`zcJ-!%DVj|OCodEb;Y3Kp*dR$rF@x0ZaRv(k z)o*5FT*V3!n;avcHrbk8m?t!ZlYtpw5?I4zQFd>*j&ybr7O;*wZgX^#C*S0@gDaHd zv4$v&5r7Cn+y*gmpMWb|A(!BMX0VBCL@Z%~li!FO0E?{`wZO22Tg)A%ZgZrVwjfwx zySg!k!h7mgaE0<33Cw~(pN4^h3`%HEKFB69nO8>)yT6}nd%*RZ>9BHuEwVE)feTie zgffB!FPiFO*sfw`3Rjq5HirqU@V^DbNyvc_Yv~AAxYUxJ4Xkjzy%~myoDQ~dg}x38 zAffib*#SdghzlZw7P;tgLrqkh9FWe-g(ZS@0}uum27HA0DK*F%!{8%9PH-3S23tTP z*drVwi0r3z;hu1X|H4}#3fp2VL1}C9!dMxwiyp>!f%zZfAbj80Kot1{u|6pBdU25` z@+;$9QRD^UA?jh~ABdHnJTu-9Ma`S|U=)60f;)yL-mtPx(kYYQ#z{t_vxM}@=+N9DCVDm@?mbY%M1t0&&X5*0I?DHrT_o{ delta 1197 zcmdmYnQ`A`M&1B#W)?065ZGGuW+JaP``2yjQoe6nH+i9e2q!`!#s*13iW#JKk26>Z zsD3jW<0@8=*yI=iwaM1(!aSiNoD9qelfW7#i?Vyeb)>V4uz+>cahs!?JozTK9bBOt zk2OSLi~vLs;x>qh`vhF!3b_R5GlNZBBVq{?ocu=Q09b6js0D^C++yx9b(NY>}Ob30$z! zB$N>>c+pfJ!*&%jQ@FwevpGy)h5s!ePC^chSW8E^!ljn%Y+!}!?aeSut^2})a&7skqfUGy-<3(Wr*2jTn12BOFxi1k5{*Nclp zkzX0-iXtx%4^a;@|3Iwtdv zzAVWfMgDnG7z#f=*$GAc;bdDBd8HI*6#4cPi21NE`j`SSALd7ybm_^pshTKeoJjRX wF~c;?4@G`y8mgaU(p^yGo6=GBzfbo>k&nsuH z^&6iAGJ%99&(uFbS`#&*w8SFudSkV9=Q?$gMFs z#+;K2>PnzXH?QX23AGdG2RRE&W5D+8=d*@e&d6^DvD`|?5GFXeNN6Wmp`Nf2lFN}o za&n6>#0ca7cr5G+Ghws7$bNRP5g(Ziy1dpAXH-^HsYN>FAlIlMpt`gPM zfeU(Q`auL|YUv^AMh=$OS|&&`5Z^j$L!uuPKW*AjBd+T>VJNiKjey%VM|TaxE^mEb z42662^WX{%4H9ADr!+ZUmwoa+LqQA;pA8{~fSllNWDU{KYHSEf-ILdw%7DZ8hOsS} zf8HFzH#c!Xk)LZ~gTns}m4~TMH1$T2KWFNNVxE;*Ad382GfxzG3G)CH`7U!O6!~}N zsOlpv>`~P3vT#7*uQijNY;LKCVn(}VFp8Q#mL4ebX;!Fi{9`FS`HPh%(gJ2CNuI2Z?|PlfBuUVTw0TWzS{?TihZHws^9?IWM~9Qi4F2g-Li_eLkOwf#C%Q1B1?FL2ix7 zG3K0HP*(z7x_LGCPNy6ltp846-(_-qI<1mpyFBWs9;R%1g@>YlvbR0bTzH;iq; z{PX4zzPX7Diu_y?8x;O;s60%4qNz8E{5exE6!Wai0#W4Gnt7tgOPB|s$ak4Lp~$~8 zM^ztbVUMDImxTigf32DHWOGYB6f@c_gHhD{vGhQZPqRXG;~z`u$zQB=QPenFqpI0v z9fl&WXOoL!$6lLA6nP8VVif*aTPqaxb4{ctyVxnBh;^AuPhMoFj-v0i9VC2V@fU6n k2|rkToU~6vF(c3+8b$v(hZ+?597oi!xaJ5^Z{nl|0OS9GIsgCw diff --git a/examples/zips/appmgmt_control.zip b/examples/zips/appmgmt_control.zip index 7b99da0cfc4a91943a52da86976d4abb02a140a8..02153b6f825d74ee53447c0ea3308cb5a55c59b1 100644 GIT binary patch delta 274 zcmew<@>7I2z?+$civa}IE&er;SD#(I>0pXx)4|F9%u>uCp#)p75KwsHl0zVo$(f86 zFrm#W7^4`$f~?HW=vpV|Fnhrj?qzO;D0F4@#89}2H2|)Vlg$UBFoNBd8EEU|2OKhB u8@981qwrNY+@O51$pxHjU^P7)fhcPJb3|aMspJetQS*s24$KecQUd@<>1^fz delta 274 zcmew<@>7I2z?+$civa|-7QLCstIz&*+q#tR+ty9?XO?0H2_@Kqg@D2nmmC6#OwMGq zfC+70!5GB|7G!01M%OwyhuI6Ra4&N!M4>CICx*gJtO0O^oNPW2g%Rww%s^WwKj4r7 u+pwM88-=gJ;RfZ4O)lVM1FPxb2t-lypCbZ8O(kbIikeTHabSKhml^=|A$@TG diff --git a/examples/zips/artifacts.zip b/examples/zips/artifacts.zip index d68960944fae4ea8587b88c6ebfae1dbb63c2dde..d196b52de4e421860ade09d1b7364266a19eac76 100644 GIT binary patch delta 612 zcmdmQzTccTz?+$civa}IE&er;SCd`6>0pXx)4_?hQp_NcC^MMI4?7JZ*ayVdUUd<5&Q@5Fivy>66u!YM4L*WB1FStTOZXt** zZoEct!Ft{Ri0(^#ju^Vl`O9DmCvV|j2(~3cAQmRJd5?fB3s~@uh&d=ACU2CG0rO2o zU7&oi$@-FPV6oYvei&lhVu2|7>cqS;)Vvl;!Vt?BcSX^6O&rr~H;D`sH5Vk@FwC)# fjKC1vBP=VW(AXRubF(B_GZEKFd*8O*lG=7Gh2 zGKatwhOm5rDD-AGhY3#ZWZw-jk;4H)^JH_79P1cuW1B=ZT^}`V377IktS10C;q2{$%5{6j5xGRdjYvPz@yGdlAsJS5FhGC9{ fWCVuTCP@breIio+7;0LjS}?@4rL)0eGo{r4#5xpF diff --git a/examples/zips/audit.zip b/examples/zips/audit.zip index df73827ad66af28ef34e9e945757a6fc03432b49..1a141c9c8894b576a8f289078369623927c23881 100644 GIT binary patch delta 178 zcmeC->*3=K@MdP=VgP}4i+@ezRaH@MI+&sf#HAJ742&!n T!gpbFMBy)IvjOv;v8e$7t;{~E delta 178 zcmeC->*3=K@MdP=VgP}yMQ0pXx)4_@MQp_Nc7*ntaP;}#r6)Yg3$ZDb`+KY>-;U`jKWV4c1Pi#MB^KYIHJf; a6>&o0{}gdS;m3=jntw#p6)evqrUn4$rH4WQ delta 340 zcmdm_vq^_Hz?+$civa|-7QLCstIhs(+q#tR+ty9AmtqEq#F&CbfT9~`tY85NO?GCr zgo#aVX59-BV}pxrZf0A>1Qs;lG=?eMoWBpTmH#1Tb) as)!Q`|EGux3O`;H)%+u(u3&i{F*N{1h@6K2 diff --git a/examples/zips/bastion.zip b/examples/zips/bastion.zip index 8318d805b2a803bc8216b64d4fa94a6284a7c16d..3d978d5fe9a56dcdad3d318e621c2aa638d60c51 100644 GIT binary patch delta 303 zcmZouZ&T+D@MdP=VgP}4i+@ezRcBXkI+&u_ba0}z6f;O9LKiFo6rI>}7$h<|h|v@# zG`Wv)7g)@j$q**CxtZxc6Id{n)c`Iyht;1EEclKMp;C?gHAGN^6Cvos>B|CEIfvH> zuKgK!+(4p delta 303 zcmZouZ&T+D@MdP=VgP}yMQ0pXx)4|COTvE&+p+s}A5KwsI`~VJ+(Bw}X zb}+HY=A3)LV&6EO(X~#F#ZFx{MkCZFs(+ delta 483 zcmX?Wan^!2z?+$civa|-7QLCsYry_>+q#tR+ty8X;F4kn2_>3?g@D2v=Lc|rgeHID zu!D(BHs{;}7W>BOjIMQZESDEd-R5;%ii}`|m$+?^74iWM40{F*u2Dt=?H`nkSWd>_?5pY7*3Km->;0d?mmjELZSn!{aC0x)>I1*yWa{QKfQP`=n?0Vy`H8efS(6g3AVA~4ig rNqV8EStbe7gD^)@DgZ@Iw^TR^pGDdo!`xiB7{tBTr2W8Z)MeBF^UvD- diff --git a/examples/zips/blockchain.zip b/examples/zips/blockchain.zip index beabc127c44a878a9028a046ad5070f6dd22d9d7..ab590fba7d16449716bf484c5b318c5e7536fe91 100644 GIT binary patch delta 155 zcmaFG_ll10pXx)4_>$Qp_NcXhX0FP;}$uolGF1$^Oh1 zFtN#f%zMFNek{f?vCSPUL5yI*yQ~(>K#h|hvdMt?=4|#T{26R+$oxs{j$p0}yBYu) C9z78N delta 155 zcmaFG_ll1q!dfT9~G?_>fAP4;KD zfQe1+W8MoE^J6iFiEZv+31S2b-et9525OxAkWB{6H)pd);m=@mL*`FncLZ}?*wp|A CPDX_Q diff --git a/examples/zips/budget.zip b/examples/zips/budget.zip index ef53365e877306d58d8df369b1b3e522750bf703..363db5bb4100b535ca3bbe6c547935b8d065e77d 100644 GIT binary patch literal 3741 zcmb7`c|6qlAIAsdJ{OaFP@*A66T;-aGs9qVS%b!qf*?zrnq(4f^e+E{*d#F{>7qmqHb;ZbA^dL*NY<=*bP0W%>+BFA{2f#P^n7h zsys}gQQ=nCf_MSxp@tHR&Vx8(A{oNgVO^jkjjyj_*lts;Z%dvuG(UQ7msS~cVj}ZM z0!MG}QsdqL&vPRVUn763ty%T5l9+T1+mh;J9X06PE4N#p+CEr7o&(zc&pJ{v7;Ad> zC5~r5SjRts9_O*1GJekA)3MBA+=L>>5i;O_W0Ivr40YUjE02v6_25DRF+&kZG-pFq z+JnqDH~gdaf?a0xg-#vmQ3Rh^xWD{~VHR^KPrd&qQi|JJQ3dbBd##IUHSHI=MKN5i30Aj9&3Bt#r%jmA3yoQ-1cNDc9 z&dolGfkrDWdZsMeaT?6plE>GRhj@78(ALVV>ZqO=Xe^DkFAX(~$6V~bR^kR%+crLR z-WXLq#qsv6afA&C?q9>)h(1lRP9rwQ0sBDwolJB&>C7$8HafyRtB2dbrNxP}bZg_V zm2sd~0=_umb+T|<^-CGedvTY}arb%3=3C|)XBAlM@fe9yh&Fl>mKD7{c8_g_{pE|V zVaiHETgnTb??R!rBw<=ERHT+gQ&Il0HKjqbr*&;`6|NC_%d5(uxbCB?S1z5{^IJ!7 z9XssDaWRD)^8tM+B=CxYx_WcQmi?3{$!`J6(@eMwTqpSy-u&Qvr%8;se8QvGBdTwh zZP8yyvmc$4jL1j=)jh8*He)bh$O(?VYiS+9N$9xA!`$ER8opHI1?Qd{w5TVh-k)bn zA{n#7!UR4%Di5#2IKnIg`ZY~Ua=Inn4>*`0z)i@&+>4N2?A+GDw$4{zi* zFtD{%);?-aRARY3oLH72!Wm0tPLr%X{y2ga8rztf507U_S>X{bmCPmP*wcKRK!zoR%6nrl&5To#+vN{bC<1a>cj&^6M?u;IfeZC6F0cD8j9JU)YN2c z6jxc8=Z|!GULV+QF?D>|+OeXprq0Z-?qNI0B4YGxG1WJlaTC+NmNaCRmOzMl#ljwc zyt!pX?7sbp)TRosedEnc8A`3S<^L{~jFHSuGH=(M4mZ!f-EM&(GkJ)S4^c*T^i0>} zJ8-t1Chj1tnDy12aT{gUOWdg=ZevnVd_jAC<~(fe6r7Ht0DM4N>nFTLue(0QvO7JT zU(Mct#&m%d>;^hRv89B~y9z6rC%JMMvxuss-Z5_&xQ-G)-=#7i4r>y<@$*2)*e>1I zllIj1rm+0}ls!%j0Pr0!a?Er!br8D$He{2GjJo8wuYTA8C5gm=* z78>#b5s4eLU5F|+gXw5TjY>4(8IYqv^pMn2B+WeBiUkB5^#*R^&t*^>(McVXK|czO z5M+j~XtF<}ih)0CvfUog50D0r#>WyU?CT|Kc|#Cdula~T+T)4BYNMqVf-_B%raH&n zF1g%?8Hl!+jD;)(sVzsDwV)*V$8$J>-#oj6%oavBV|qCGTxv3#hPv#pVgV2s`CN<# zsP=4WjaZrxlD+ z-IJp0$XYTFE6qq93E3qk-+J<$$$$8O&)|#obaBTx`1@iU{<8^ugh!S=-#3AceG`EE z5c`Mxz{888$gx}QfJ3(U*-5t6x-|l5USrxHcSOf_@$LT%Z3c0=@Iwm8J~N=5Wms}D zyjhI3<~4!l?NVSs6HKkU2ly!99*=tpBp~ey{rkDaY2MHo*@W{)4U)}8bX6v)Gm61k= zPP0!am!1?4-_@=^x^(R1t|9eq*h^$?p?Fg1)7yy97Z!8ZB!zervzch~w3zkUrIH-o z4U`!1LO;bl&l5$}is)7+1a=H@sL?yv9^s6^^$9H*=t8V==@f0p&VygJ&Z@~o_tLR3 zj;HAqNlOna-M=mHAhx}_)Dv^qs(6t1i5vsoY((drICtnRXi(hE%hZ0lLQs&>&o}8 zHl~>o>v=B3M-I!{+nI!Z3bW|lbbv$OTi z1aUiR@TcNnL$?<-Bg8G@$mYv!A0fK3NF8#d#{F5L%^mN!w1jZRAWRIxXWIaK?n@jPW{7vwn3#o*nUvvOVC9y}nncPT@jBdaLxnRMvv;8;KJ-pu&ux%hbV> z4sa9u{?`km3*@;)zjde8*CRbw)b>I)JLinZ$XWw|2twd{09`Df2tE#FrdZ&vj-blg zRIN7FH=aiZZD#T<@++UyEBB4>t{tAK(YMVm8{frwvUNzEwYY0oPYzdnC)6X={L00A z#eSiEr;0^Ix!OvbY!uFe;BlJ`vU{UDbAi>GJY}MMA$~`0$F)cWv26ItQ97MM)nYq# z4FI#fplbWFi+i{*PPJ5YaW&n=kIv0}px!|8SjgokBqI3XU1%`WI=)WpiGYC`TH*1^ zb1A0;X8{+Dcd{R@XJ`}oJ$x)T-=PSio!{IF?!ZhP*}j$j&StaSt}Pn*38tDaoAuaO?u};eQ-tO;7-SS5LwM$d@pKkx2@@fA_`QIe*KdAqd@&BOi8xi2w@G}QczfJt# zt8wtkdA?e?=6av17C;hFB?eyXZYvQ`eQY|w&yQv)YAUFfiKMZd-#L( wIsBDAF#5ma4>FBVjBSvyTuU>Iy{v=eGRnSHV;E)0zNVS7 zpIeIT;T9To6`Cx`exfWxF5S~T=id9i=l$dTKF{->_peWpE(q33y*2Tn@S99j@XTLG<+|saz)b2Pu<$ za1LAm$Im;TiE3nrEs5+;N10=UWp&PKd?b*g`}w9O`(~mZzvvtCnYGA?8PK{TH!V9& z9o*?z3g3>~>C$nr$e+!8d7_95)8?2+e~tR+pe8~wy(=VCok~m}khCnvYs$2u2uYp_ zwdpySGBvZ+ZUfW{h3E@<^C*A4{#Dg{Sm!d%(1U{O6(L+)Xi1dB$>}SCr&C2Mz+@~W zx_%Tfb{kQuL(T8!b|VDZ4L}6JIWGLmHM5%n@KPVBQg-Ya!Mn+`f$PH>;2P8=mkrM@ zqC#}3xu)}ECu`>E8-3;4Kg@X3-q0Ktl@vD#qybGg;c{=BUY*Hj`-HPW&(Qoi_RHGY zVqh_4LC?GiMlojFYjbSLPwILzIa$8@;WIhAc6el-P~WO@LY{2(P0zf}9>PFGD9xH4 z`@48GOVxgaHd3fgx18KN_AsZ8&EujSgC{$=sahoknKFIsHbSpCv{lAak*HHsu9A6H zVU+RGs6jS!t(ANtzDkh#lAW#5<}~<7Dq_>M86ryqI+>FICCQVk+ zP+x;YFZU>kuCw5eAiK};V{!wnPnOHE>#Xd;v*2;6yk~X0xg2MO)MW<80JjC!=a#MB zoF={Fw18Qpj+V4)eHB~~i-Wr~ZO)icgeGJiQliKObsa0`XulqeM*F@=ZpT+)E9-XM z%X(K>W3bhgMC@}`QOpx0JzR)yn0{yMR>nQ%FgtK;y=;{1UFmv#i4>*I2q|VH7aAGJ zblhV2e4PJg5|PLyRX8rw_A|kdv*A7HgPB;Wqxc@*h{ML`e1#w6>#=m=lw zMT~K>(u!TWQR1~v?l6Xxm5KGqX|OOi??!!+#E8)=dktt=T1{>dhADx+VXQ8|zmJfB z&!dy6vQuQzOZx$|G~Q>(V5}Vsf)%j13t)a&lIezXY0$RTH6bEp+_)j}w6WVD zW2vU>HQmwB*t)_^ijAE}#;f!Uqv)``jV@gzIf%4WyYu*--MQE{#V$~VL_xmVRjVl7 zge*16+uQ4&K~mY{c;9zDjNrW1HOJSz6GMwMn?lr-Qc#zdOxwT#X!KxZhxK;1G?b@l z1ko6i3-;^wZS2@B`M|_ZC*~nH&oe#9sr6SL&FQi$cNpM+%%8IA<#_*GUSg$U5Bx{T z<4z_ho6Wd`N^zQWXJ_RO3{UhPPg}4A-!2#Ms^_LAVmZ=~*i>da_7;^!<{9 diff --git a/examples/zips/certificatesManagement.zip b/examples/zips/certificatesManagement.zip index 82c34084c655de3af25236a1eaafa8ce81301d18..60853218559af877c7ded11f456fcb3798323e9c 100644 GIT binary patch delta 769 zcmdlVxId6Lz?+$civa}IE&er;*Nk1g>0pXx)4|COTp|0U^pQedI0iC`h1 z;?1^<$&4Ve$%~m>V1kq1F&z{HiiLqqh7!h;H!>+t4qy@H2@T<7U`AL3Hgd8&OFT^b z=2n&%h?%#94JX&I@nYBE%@zpPv6yWOL`M{dJzQ`BM;Ju#C#M5g5aKb2eX(3VaD^MV z;+VjG5ajhmRtWaPGY^eB=UEvT7?l|q{Goo}o~$6vG5Hv;BHV~~yf0b7M%)s1Mm7R0 z<|u-2=}eJ}5QVu?!59jkNR_}%jF--Xxc-7n5QaiG*&?{Y{j!-5h1&8ipkST+Q9%Z5 z?L_$qF#n<&gwL&zkHVj$5QL&$KrtLezEd$5MZQv1da|*S8H$>2rFaxRkFqa{o@!-3 z6#3W6Q7H21D$ywNPgIIg&R>Io?FVj2x#{!9%u E007f97ytkO delta 769 zcmdlVxId6Lz?+$civa|-7QLCsYsUU{+q#tR+ty8X;1Zb_$Hoj2P4_|)l>!T0O#}-8 z6>qj>OlAa$Oj>Z zH@C9HK+L=)Y&f}wjTgHPZ?-_Vj>T+SAUdKr?BRk7IKm);KRF%1f)I~E?2F~{fh*j= z6~_ejgCMUjvO=&Qo_T28InT<#z^Kf?;1Bf!_hbcWj>*S(72!s_<9*2rHsY4BGqMq2 zF-H-EOJ|B)gec6F3dT_QM5+XCV!U)7#Pt_sf-n@i$riyC?w8GkDAbmB0R`*ij|wti zYbVM_fcY2IAbf6xd=&m1g&-950*c`%@|}vgDDsu6(vyvq%uv*HE5)Pmd6a!o^i(VR zp~$~hjzW=7SBXZEf1*;1B44Q*h$8<+6=EOEkGX1zDDofFno#slQBOdT7t?3}^Ji+P F0RS;tVgCRC diff --git a/examples/zips/cloudBridge.zip b/examples/zips/cloudBridge.zip index e27149f703611a675b8b5a4884a1d77b8dab3597..2b6f628294f940f0655e53b919e573de43bc0532 100644 GIT binary patch delta 810 zcmccRd&`$Mz?+$civa}IE&er;SDRhE>0pXx)4|Cf`9wGo5-~kRdwPBUcCz}qj zGcXA2Ffgc07L=8ocvBdx2x!8_&v)3FK?cUCPgYRi;NoOpMwlxFl9{Z*X$4cgIg>Mp z2`spe+YZ?tu$Tf*FkE33k10gq2T8TbcNF=t8O+D;4p$$;ufhyAq*=%u!{B>D&Txeq z!rvLez7jaK+F=YNMzV zPzuFR*RJG>qUN1aAPPTG*&T&{O4$j+3_TS$6gAUSFzo@kM?)3WJ*BE47-qdz^+Yi% MOf4GB-=d}l01F61UjP6A delta 810 zcmccRd&`$Mz?+$civa|-7QLCstIhs(+q#tR+ty9~$S1;ykccrtl8_Pvstv1jKG}4L zoq<7Ehk-$5vY@Qw#GArkML-iae!j!b3^FiAeX@cA2Nx#;Gs0Xckj!KaPAiz|&6%7* zOklx%+;+(JfW;Jeg5e6QcuXM*KS-)gzN5&G&0s!$cewf(eidf0AD!WD+gW0pW`5SLbPGcdBeWM*JssRqiTs!OnAhpL;b zFD}Il(t5}rECdwZEWx;w86-CO3X2W8y2&Q2-f)F&tbuG`g}1nUFcf<6b(W zhAI@Z$57}a9tc;sMBEpm@Qb7^GcXt?D@x0NZ3vd~f$(J^{DV@lDDn={UMTWwq$5$} z)n%eklr5Y%UsxHBf9jb1! zzPJ=KNb4bgunL#18dczgAu?Dh%72e|Z!BFVMlM7e4k7q3- zSYaNYElhCoCcXn;u~L2unAqkm{6P?foPt&uCZ-FzAruN4F@bfz6n4Q-7$_1ASGZZk z7^+ar9z&szcpzNi5^-OM!Y`7x%)nrntSBu5wjo%`2f~+y@DEDGqR2Z)d!fj$k&Z-> zSC@%GkzXuRjly@3^+w^Zm32eWFDmDOB3~~Tf+GJ_E(k?FQ$7<#{)@aXihQy{JeYq} GK@9+h#siiB diff --git a/examples/zips/cloudguard.zip b/examples/zips/cloudguard.zip index 4785de2a4a11eb5e9ff8a1d64b63c72c8c3ee669..5dc31d47d70266814febe3dd319d6ad3311a38e3 100644 GIT binary patch delta 1072 zcmbQSl5xgLM&1B#W)?065LmbP*F;_|cJ-!%DVj|OCmZUDa3Un4Es-Rom_cfHgn@;C z>Nkrr9%cfGO}@=+jjnF86-yLc;cS*!EMSEeoX!{u=W}|&6@CE9gB6+yT45-hA{YTz z_*u|`4XjX4!U85ZIagvQSWHtAVj{#pU}sOBE*S_@xB0!~Y=|w1E~=CHl=vneP-Mlh z?WJM}T!V|!OlGjj4^#~?6q>5J!4)>Cr9qtaTE`wkp`R`y=vM0rKup|cV1}Vk!Y}}C zV!k0iBSQ3<--VexV23vhVCskF>r=J-~kDRpB^bFYU({bG1R>B%s^37 z;uVOY=DAk{ikd`k4-7S@z0)wnf_>aj^zHV6nS*ensc$@rnvKEIlP~&eW0)o9mxQ8j zk)J(=8fO0x6g8Fpz8Gp=_@jnNUVsaRnkxZuDCUF&x?-r=9hiV2W*g*)qHjS^GKLz} X;4Bn18-rnCga{MKkT9^Cq7XFzwIaO; delta 1072 zcmbQSl5xgLM&1B#W)?065ZGGuW+JZ^``2yjQoe6nH`!2EgcBhVZHXiy#SBurBMdAA zRKHo2@h}reZ1QbpYjky!tyrSq3TLy-VgW0(;B>}NIG@uCuJ8j;9<0zz&w&XF?4USiGeE=w{?dF2_!s` z!)~vO2V5bKt2)HtW*!#Iz(g>)&_f1n!vqg^C|_*y2Mz|f8w^q~+CfAF0G4n80CKR4=mYRVJ{Iaf7Jo;1z(;Y* z#(BhhXA-RRs1+Izs_3okcF%5IKNZ!w!_{|+vcW^$4B@jQ>Y@Pvuq*%oJH!n;m{kh- z4h9yHA_i@k6_tGL{a_yCBR@TAUt^>O7=m9BQRk;-1$E zmZih;InePF;TzXWb^YSoeKGcHB{egX&7|iByluAzC)XH{A^ne=MFQTq_~$btp@*R`{#4coT*S#XNl&!+(166kw8KPx9w9`4 z^f*v|-B<{=3yvw%Vgir|h2o(>LWE?6)~8RrF9KjlFb_XwWSg!^EOW9KZJ3CD#1dvR z^(2rxMN_`2(c{av`=SqnNua_i$?7%R{8?!LgGQW<%^UWuf)x5E7*tR+{NUtufNG0e zH$gvpKYa{_N+idRry`!Iq`_k`lJRDb&+;`uV8;5UfQQ0#gN_w7(rbGao-foa-^As5 z#+o(y%UHLOvyNRNlWfQO_?l<2$(dj*9Y1IXUI+nPFut(3l(a zwk`CUuz9NOOl^DCb#p#g&Oox}_JHFT_>?%Y83DJtuNsUb^O0$z0S!w+Ie4ItU|Na@ zbZ8Wk4DJ)%s1Fsl?_4Y<22B_atO;bPd$p%E6LT5m&I}!W@^09Obo{`HA5@B<@*q!K zp*NT<4D85Z;`noWG^018$F*^x(5=;|Zz+jCd(ENQblYs8k7x{2VtmnaoqLC4OpkaN zC>`u1q@eq_acSSIU1h<((-n4o9+zGoL|}4w{?1&!3C*f0wQ_1E+o7%S;n(wYr;yJE zV&;BI)8(n}s1a+92+$Btb#_U!uY^fN?6r@10x2-JR?kaP$27hK>(hbZz8!I89+2sy zf5JIsmu~*vp15Sc8+pq0x!g4SIe7A6m2mWVRH_4JeQy>kdFrFCGjz2>tJy;u3s4Js z3%?Sd#oGQ630~d2<1*uG4Xe&tsSOt08gKD+7?z2+dEbS+U-UbH{9d@qo)NKL*tilJ z+0{0YTQI7m(!=0w%4MHlW``AxSW}kmEBjMYxqgFoEE{~I9EF`Bg^2$J>&|+Mu|1FRR?=N+O=wu+g9fBP$Bu zM^ioI8GasR5y(Z%mp0r*W0lRLq_iL`s@XL3?QHMAtPiy>(yEfspFhpwkTn4{L(E}*(Nhctq=h%O@B@a~*4O-@@4=Coc< zc-jo8s%?t-zQK@z#*<+zHoxW9e(~5D*V~iBz2PDTzk+$?Km~QduStdEls~o`+&R6e z)mE8CLnZe`&Rh~@{E&i>WxnWwxVwjNHLi)RWF%1f)fuI`Gfg_))_yb&5V&bVgk?M+ zSk+H6U}_Zdux+%}=sb zNm^Vtu4k>o^EIO0_?qQr4%aQjw( z&%K69h%dVzT<^s7HspsUN5Gpeo#sfu3cA)r z{FUodV`9?$$GDjDSgB8G4EeQmfy5utk+6Ua`5ZbeM>-0Z_RwP;*D1DIeI`ztm5+7uuGSq zH)0*{1KJmB>SECqK09bF+vd}vdT>`}H<~7*eKMqM)!16KvCp42b7^387p3;xp{GL1 z9LNTeo`7Mgf=!==zZ_ZCA~bh3j~S2!G=oLb8I7bLzCfs#e!{5@(ZL%_cKHR>Xq+wA${QHWcSNd^&5;RMue_dLBTk91 z)8_0qYry8fVkbQ1+$mn+f50g$47-4+JT%p>5og_Eq3#3Y<@3DhdumU?s-E$C9Wsw3 zOqI({{*s}a$(%ZOZBUAWU8aNK;!}B=WvR=jZa}^lU+d&)=IIfVMsg~V?FW__P`{qQ zm02qV>O3Y(vvf_j@B@oSzVRs|3b08Fp(eta!ts`h`;h9kr~AI`)C)K-=~+sfWML@r z*|fd$=hepE8I_ziGe@fcgBIzx;2k79RmMo}VK`|sjcuf`=`0W}4MD#2VEWWPtnd%D zg+Q3>A3yWVuS6AU9$@S2b~6>s%P7#5+y7Lj zqHmLzI^1yu#I?*U5F1ow*1{27V@`)&yy*fsZ^VBxh8GCmt^Xv z<6VlpFB#mt9D5uN3OXo~;Y{|xUuZIL1u}RHWNb`rNx3>`!>UE>p871UoPNEW0_3rx zROX2VckA$eG-#xOI^uO8A4{4%%_klMhnmU`$E!0B zU7=Hti-==h;nTC-BVPZ>9M^o}?>~2suFjwPyx}t{j7{!W1nCvpR;BMp5w)cdlh;SS z^>GGCR_88u`$p&DXV1!NwSxOADli83Y@B!$>o8yX7H4XYx{x{iu$Z8XEvc+aUoWDAzAuhL09wb^S{h1&$_n}quMb{a&NA0V^hPJEXR<%v|s*bBl zdoADU6_xd@g|=b)Cu~^)jm{i2aL-<#AiyCMycUkTZA+@(4Brf%*j&>yXLBQRX4D}-xLcU*-5j-X0HQf zck36-mR05HM0PN=9W8WSU9rD!J0O1(Z!0t>gz(nhNOcsJD^f8Pq(uY8nCc0a(~IhDTfR9{DSzJi z^6i8WWE>z8nhkm=BNL=Q9)s|e^pklmQ+Spkj7b@4-fK9;xV?0XgfUC!YIqwtpg!wR zhzX8A|3q0CHrb+2Vednj-SRI~BV3Jql@H)saLVxd)k_;rN)V2f*k|hAY$Z(zu9GZu zmIe#~!b*u7I_Sm(Q21+P4GJXVC<*D4?3nf*$MV8(u-${3^-2{9={ex<$`{vKJX@dcCc{VE@ zE_ie~>9$XW9er9d$%8aLe8qJAUZVhv(#R_D(Tr89a8d9{1{h174MsAg#boUj41_9o zcls{GM|FcnPwU)YpJ+x{JZEjzX$=_0{cc$%YZld%Z)itbgyyiB{@njdOK`&X_Nquc z^1#D_Cb@;IhSd&HvlUIAq2*Pv1IOvaDZw{0&u~A~Xkz#sH5T%8%FQOOCF2i!Qp!%GG^GKD zjNQo0NLa|!UCMz5om|?Fz%1mYOQH`YxSP#v;G5W395_Ia_&Ma{K4iNQ^rq*0!e_mQ<_$AtxuqX>)C#3;0ZfL?3=x zt9nez?+6R`ZIPRO`pJcg)rkZB!(?kS`}UMR?NM4etfecW@?_bk)wW!ftK;?A?m;Fd zGnX}*|KG0^Fs8%5+ctO29I%;#s|EX?gZJ;#&FX*qJpwt5U`PMA(0Q-~ z{FONbbxgpEfodp%nS_`T+!HZ8 zU>*=VOa<5iBnF~K!=4hu)!?J2!cQ!17bGwWZtZ%NC=sVsCr2@u>DtIo@{MIc@>y7E zV6HlygkxjA&$-H>#o-t`w~f2)(Kv#Mngb^m;wgcoQYgi>Pk2!HDhXoQBG+I5i`FA_ z8Vp=s1)?7DnKwz)JD6~VyhMuuEQO?VeuA=2C>-?fNyI?Rb%cA-1Cd;%;vSF2)ug{A zreNd)j8rvr(WGhmWy-{Z_|F_6F90?PdL6kGIn|y9VM*O)c}P*ej5v|lI{lmd&w=d< z92ucFL4-*)5e-2ewXn$o6VvJws^OBx1qq(6l_<}S983v!ed==6x7jf;sE7ungAVuj z_CiM$S>fq_t-ZkCGLmmULy0uqK`FC0YaYxD<6#?ZtAPf&127$gG72RHA+8?k7bj-xv(Y*i<`2N zRL#?5Gr^3&!J=JWm&kJN-m-Mwal=gn^(5jaV5!+!7Yyba*h!te>jOGJd=xFh|C9S! zpQZCbHU`D$&8*m?W0m4i+=&VYR8D^Vh}^9ieiDDOtRFsg$F)~SyL}ckm%tMXuE!I_ zc6xO7Z6ssJ7q#-^Tx|ps^*)WXg#yA$j(xtdc7nQe^^!GGt_*Ruf^L$?OUZqfAm!sr z>sH2Ii*knN6AfxSW~ z2u@URi|DLql|Jdp=Cdjf`iL5voC~}o9ROE{FtNpp=}(=U7}BiGhOoWj6%2(-W5Yk; z6n;8oiL)V+{>|PucAMARn8C;YqubAO5in9H6KGsC9RZkkY)tV;_?Uuji}7`1;7{Ym z6h;v&g6CVWpE{>S4ysNX3JT1ae?OOGk~avtO7tSex^{4?HJ0HM7@@4j2ntl4CN|c} z<9Zkx#4JypklOdU*W8uX7Q_OufkDpcWqzU|0ykJTO!0*fk-1G0M|=K59fc%UVX^O) z{}D*CvN)lsC*;9k-M3Z-wZn{Ik-oy(US+{UV57@to~wiMgDslOje>WfKut)xHv!OAAe z-!1OoEvIH@scmQgp0k^DY2o5hcwvE?wwWU+oxe1RK|Xp=VlHw>99xyz7D#Kz#L68+ zO>ZMt<)-O-R1u?8G2l67hGbN7Iy!cq&dpQid>*WO{VXD{+E5Zy=~5D2Oaufz`;^u4 zK8Wn}oN%+O8^qN0nEHvIWkP5Kk%y33U^uR6p{|C4F#*}EgTpu5;TjIu3vo3ZEfI83 zW>OT)KxS|<_ZJRkgsI)Inq&o@TJ3C|A{YOLCrH#vcuRt1{2ucKWy!X1d?Up>Pdpo` zY7Tk6+Qn9^;Z0O}^2pM%W7{v{!M8B$W3=~;<#1I$^o|v3Q|C$rIcKtp0u((C~<cp*Btr%m*J2Lnk9A^o*l zDZBCmMByI(m7L*hVJ^8qwkIus2<`A3PlWv(7)=~YpA+Tr8k%VoGs^hE>C~ciQ0XQX zZ)p*U?IUrCOuvaNLLH74B&J@5AVX?9nYP1@M)N>sm&?iqcU!8P*v?ML>DaxBVp6>7 zE>*(BP#;kaOB|2LNQ9}gQ6YWJo|>=9_ESI0^xRUB%&{^7LljC8;zegO)c-)ppI90Xn-Do zXG)o|$>M;kTK)O`2le|d4L|+JF{L>|Qf~L-%dySq>#BGxg*115;CJ`%C$e0wl&%c> zi$AE&P%1daUzkg+Nh}V*DSY|@3Z336u#$5ZZ#*LJMG<0l2hV%b!ztBBneMl1v$o3O zD)J|~@J#A0t&^0gk;K7*`$;pFmRs4S-HCNNc`cTUZ%zl$$;g+|Zyak2cmq10Uhv7) zklVL*clyk?#M{OriyQrV1hd^4*b+jBnIc2BPV$mipr*8Wxpb-aAdRd9Z>-S$&Dsi` zlS928dn&82(i0ceRd9O*8Az%yhM9|k7^uDSGP6cLBtc?;y~?`NV}gBA+Rtlrb!5)B zPs`zAHM0<-d!3ny@?tka&ChQNNI>miit<1)AT*<#x-0`Ozx z*GARPR_;&pyJ0htp(0pbrcHr)vlTL)`IyJ)CW(bagW3a#*v7}O2cVhG2>e4AY2zCJ zLe!0d7}6<-D#V+eiAztKgivaYK`IoTv&3XFh+1~e+BwSJ!)0}P-|*DVGZgW1&3nCk zXl!J_d9X#5|9sv#L9SKyg3izKc{x@wrW%J_Xi`7(OMaN@<n6V7mN_5GBj@k}c zrwt^{FDUU1!8~PGogfFMB~1Y>gALAZ{hadygQMbFC(NjTO5v*2?vBRM3k^MfkBs&* zU&fwIxq&UYymjLyuYsiwQBRX=9{O$M$w;R?elZy%<6 zZ-G;`MtJIW1oMx}B(|7+#Gtn}J}W6H4rcV;&sODl0$8hk%LtB`t53YVQWVHtas%b(N+bZ(IucXe6r zRpB4cv0WAD7!e`3yEZ(L&NaDd@X-|WEgbDH^gWJp`h~Gle~cKr?`E6MkMAUguzK_J z^OzV5&in(8OD<=lO*Uui?4nh_{tmzQADwKkEakqE&w@-$I*sVt0wnaCED9<))4iL{ z--#K#KC6~EVH-?G4l$r?U}Bu@kF-GgcGfE4H8m^ccR?E8IkL~3T}pCzh7j?Z7v&@< z1F65R80+ImL46Shvy-sq5e~@;kVA;QX^p{|-ADM%=u+biv^jzYDaMh1-$iRnJ?CJ> zfCGRhqt*WuCyX)lx7CH3DHXW9_QBmd|Gx{1+W5cC2&9+Jw`~L8q}!&$zkyRpfA66Q zlV9Fmu~uaA{=UftQUR&KbPqqCN%fSz439b`aOfRWm;C6gB57&RjcWd>b;OQM6dUO8w1{!QtD1Xn@R3R};0a&ew z5?Mub06+pHHCO=z(3^J{$g?2$Cxq~4x1d<4@}CFYKUe?& z8?Y}S3Fatf{IBum`0Ragh_!e~BZ&Q;@jM8D|8DxwRER1jhE>!7a~3m!CyUYVseVCJ zoq7-z1NfsJCgR@+D1Jwv9v498WD95|A01e+@?0pgwWCP8xA?>+) zp>SILL%;$nTH*a~IIHEvu!HuHa7ga$8`S2#mft;_Bo4nBzdL}0|Bnvf|I8Y43Sh;Y zp#*k^f3GLh34-J+SRzO^{r<4rbCP+-K>_bnVBSRw%@U$YVptLvs7Z83!n>I6jzj`P zE9C*z4p;ukA*eU?-dAaBkTiUP^1t3{JfVafw?9jCXU?{Y81~W^s@?Ybp}7~E^=}6Ay_l-1iD9jRej5VsRNtR9a}t6EHN*xTrMqDX38i@iq(Qp7TM&?x1_?zF3F#C?e%uv& zdEam5XJ(l>=UmsR`|R#>_72^KZ(oJSQj$eLLzmLro4<74t$>m*~p%Q|N*mWc{g_ToMGHy5DC7r6#n;}^q0 zfn&NQ{U=r$!r6SM+!A(-x;6_^OAU*W3Th1e0HVW#nixb9;{rAms5N4;HH<1*%(G6TkdLA&ajuHV<`u>8k#f}g^X12u zrm2;jU%HQ;?d6{*-W3wkZV9>Q1*UtrCF`QG#M1DVk?~>!G*~|qFgTc!=eOAxILCH6 zKJyHua^@r_OYH99dJ~1GisCHlF>?y(KJGq=-Q&|g>mI%pVQNE-gM7;ZEjC8f9LU-; zF(ido72BE!MCy$h(WMueXX8Ln!<53IMN+H8q-A}qHz=x5z#Q~40S@&SQ%78FXCV>Y zlG&ppGyjzt#t8CINzsijoglNnLL&hr00=o_-2u<4@Iy*@{%TyS#y!F z22@U>Eh)4}MBMPwKG9oKEDpQqZ`(lFq3#)j92GmX+poS790WzXcST{mqUupT4+Mm4 z5{A}ZG-&uE^r(g_4e0UMd5k+Epv8n^q<7ej;UakWzY(T~yXSI2uC^V^8L}6;hh)-4 zKo{|gI+D^{((t}yRxc-Gb2b40xl>*5OU%#IXO~kUmi?{7?M3#W6_w}~d6&)ixc46J zHJlcbpQP*u0h0q$KNkTtivg*ZTT(&p3UaPN@4gY-KXha2r#`MokD{*=8BB>ff9pe$ zOPyxZBTK2;*{bb7MZoJ2B&hJ+rtagx7BP{B(hAr_p?Mc~h0x!&Cn{Qla&(Ag6`r&9Q{iJm=I1lxjSgen ztKqf6NnXnytp;+_b1o9R10L0f=J#9BzOpUYH)>_A3-xKwQGSnjDCayCQiZ7eDJ6m+ zA#TXL+F(nCX91iB;ya!}!-w=}Hd9rQjt$Mv4(GFS?d4nBXNiBWUQIDPohqNvA3tPa z+6{vn6zq8{a{k3?z~UD%3eKjPz;l`~gtHStmb~hh9+?Sy9?=3VsJG`ri4i=+&Ykht zeK@}G%snu!l{&pQle_ewCU{d}S&uGn^PH8Vl;)mW5Kbkg#?eVsJ9JjW& zt^h*tAg{IiV~dH|(ybUiXW~H`Tu;zIHGQ2X21TI4yx4*`8rTH`r6D zAgxy@s>*T)gqtNrX$6sZ;Av9?$u41L?$lxlmU>kke!@G|Jg`{}v8IjroUj)e-)c*K3rBD;PmqH2kMzEG}j21Q^F=aH4w{cv1mXI zc66bu)Zk!ysjAJBVmwKXM&=^+^k_R}vs`nhG-cDBM6& zlfypyRjbY)jj`^FAzWO4ko=N17_W4)+U2xR7Pb2zNmTmnIDbc$Eu1)>Vc_-7V?Gat=?3ZyV~+cY^v|R zQF1XLQJ3LS%Ud#-2g{k6%mdktM%coseyuHnUXb(k!_OOQImLZrT#o@N$v~v@NCDxX`k&v2!b zv@=^P&+yh;)T~BFMnrz`dW-aj=tMk9v_8ji08RPhzY&k{iD|k2jW=x7^A4PCZyG*` z$UlrSTv>RltuSnM7O#)TK_-eP-AQbK5$MNg7`We(+e_JVKD-~-wqH=};?aN6DiV1S ziX5L?-2{=-S+-doqZXxG!tSR@0VDUpXp|o1(hf7@;0DX*(%>q1CqQBhBk*roOVne0`y^?GVwbrxV~!RA z-_&oba5D5gac(okdGqtez}EWYtmoTf-#9~7+Onx&b*akmI5~~k(_AsJ#fGnD{a?pZ z#+$=a=F0OENiO&x!X*YSmZapG0oK|=Zn0Qkkxyco4!2D+$JdnkYPs(0d*&#|jvS=K zqr*WKsJ_*HllckvPVN#K9nH7#-83hsB10`uMUC}qrle@hrkDyTeURj zgu8#zh&tr_BxjyvJX5}HthBSXgTRG#cJ88eFIKAKY26bOUEhV{#W5Hpx(cBNMA2GLuiZ=LonxICzE3@!StS{d%S^S{r;s zEXpBN99iUYJ5pPlB4&1c(K5l5iuRz%he(^l_26h@JS@=?2Oit99`3Q1Hwb>&UV^g$g8mLZBOAB>) zAk^O0Eu*=~=z@61mBUE(lZoqbdkhp#mI;06bA>oQxjR0R=x?cxDdOiJMBvM2S5`ru zG{QrC{rcnXU2CMLwE4aD*6sVCg|P=(#_5pIJ%FXi0*9T=Gjz&O9*KiSBwfaFLeXg= z^ZUD?6QVuwyZl0O22xW(41LkH&o8L+gPmO}=g792C->x{J)VW-6-;j2XZ$&1TKo!( zasH({i}}u2-_D&vU0g*K>AgZdw$QEKmGSZDR{zHroNW^OUwLeh?j$u;MteAxI%cv# z?jZ(MCE8AwkG$}@>!tT|O4j$$MBz|5y~*1{#VPcVCHar=YA(+!49qnYtir#2{u%mI z+f^Csv-t6js#bW7&ZN59_9$;Ki4ebs`-Ob+^m+ENvV5=Cvs>|V!(O~D#TM>DBZ`5o zraz1J)UDI(dry-1seCBCZgnoAxQ7EuL^T;=O6_{Jv2$p;z2#Ep95?nSpi+VBpAY)bM|Cts z(W~d}YE{MWunj~}UEn{!a`nH<&JT4R*s`Ie`B#~v$q3tk2DPQGT~g?%BS7Og>nUF= z2lQxR^lg34YbB$B0!-;<`0zi$Ckz#@fhevVfRy1~ ztuO!FN`x$=uN_BOh{4LAw1K4s170thfSdzth5Wa^(Bbiw6JXzg3tI0TN69N)wY%dK zEMq0t>%Fu(%9RaPZ>!riyBgX39EL>p{!3T$?u99-A+X~96oB=6QM)71UzK&aA5Q`P zhGf7eH&h@Kf^!uasDm_P|3>|!Hz;_1iK2o70t`u^unhmduv-6YXwtd?*IOo#86XH< z(O%r5aT>)0fnIQeK#Z3w8YO@ph<6=;E>IbbJCzJO^!^AYH{cV<0XGPg1PViFh-qJ6 zNXyNphCNZrJ5KLhL!ZD($iZ|fi4%kuS$$dEx)fuFzU0c)}G6KfH8wKJ1iwBRXjj&M0{#coR1BXwQm#^~Il(10AH*G$qTq+v~UPGSp2 znKcrk&C$6vU0&ecH89+&Sn?LcLYybab&ph;iKw8gm+ysC`hJxWVJ3zZx^+NUcY_oW z>Tb`XZK|dK_}&07A>!erU3i7c1Gz)m(RS9=jxUKgi97nQdC|UEq?OcfrJCz@v^G-|89#n)?zXI_1MG!NiDqe2j*QUExgkwbO`-q7uT zj6A1Nsp9MQ5B044%939%jq!Nc_#w`{I7j8c;Z7endu*;QXB8Tq2bpFH{sLX!RSQ3n z4rNf)o?4PWiyF0ftn^xq-2gij4~LO*SR~!y&6>HxhBJXh*GrOEoB#{UoW86S>+Ic* zV3ZliIiaWBsYU;bp-=O|6pvOQzltGVpEDFtZl@>B5gKC`MzM_++CMlI5I8z8T{byc znht*_wa>Wv&h%xv;&heVj0aybo`ZaBs+q^#bc+KUSs6#Sx`h`<W6d$y1ck+=wSnXRnEK#XxQ1``}_ z5lU^uj^`DKtJIpQ62)WC4U?>U#6`S#d+bxCm1tqZ$C^;R@-2ex;0{NhoIG8F(Cie!A6GzvBfaX#j?TNl4EX3G$dM808IhC9=T^eV#)41}6_XsOEs5!7S|c z!aAb|2TvH5Cj;5zxcP#xlGsTO?(& z`fP5|R50AeAwjf=9CV(U$J~mU z@gm*#F*Q7b=}Icf%|xD=$_Q^{9dtr4YSSeau@}`F-t}+73%A;_91te<;PZcJk=5!6 z9{<){ZjK~`)YsfNI``B`e&@x9^|gZ6uAcAGbb;w6g27DBc^UmyAMf#0$NQ~5K{0_u z2#4f&NC|NYWo+gV-)zQI+7@MHS5kakK1ODp$*WU*%k~H8Wx$i^>}-r_)#wtC@fPV) zF%cax>|hBwQ(E>|khhtQv0$AwHvih=QVWH)X`jd0=rS~6 zlLl@br~QnF)8slj-G$23%E+Bb^jQ8%kPOE%7O8yv5-!UcZ(_dg{D2&SRm}%*<}bM8 zSAv(6)25ip^Dr^!{c$GHl;3tiXw{NPTL#E1`RK7jRB&4rP_2{12&|7h&B%Kt2VDBz zi&ds&d#Q%X7r__s7*^929h+LP!fz_5woMuGDeTQ#Nt&qb!*{;M>KW0avRVTZBA2Eh zGdnTs(z3904v-&Ds|Sc%$xJG8&D$vhRA>6CdKXjNaEl+gEF?LNLddirC~`W?Xn6g0 z0gI~662A1O1|J%h`~>&m%{h!n&_xc(#XH{&QDUw&57@4n{1XnHm(MNyqw8h>$Gcu#Y%+^}8PJ>@Vb>khHh7`Fw3eL4nk9_Y~HM9OU7b zTT0YeKTI$4;|b+1&XQL5;O&=xnuZuLX7Vp9rA3=#Oz_tCkU14}zfR!oD7L4KL*$nyw2 zEwlZWJ*ugwZbK06i7nBPz#+cpqH?_K2AAS1xM_PouXDWhPlbZu?p21(h$ynA)1Rvc zZ~f?dLv!SsFwnfn1)1o{8gcnvy4m{T{y@|qwGgk&+N0fC31D!5>~=nN8LOs$NUM8_ z^BFOXsA5?Y5^px)n4wO>f#gXBwleqER2|{St&*Z})2mB*RV=r(U6q zp?FYH*f3ur%VCz+?}u*5-J{$S*JFsFVSqg;PTWm3xTDVzAJP?W7d6 z7&`khmq|2hJ~pkA*uHMPzq(^)Ex267^V5EK4B2R(C?5Cc(fQb-P7Pv@6ouB~w<;N* zm~2Y+jESOph#5Dc%evfe|AG_p|5erAz}miz`QZ5BE$+{>BVAN8r5uIHwS9IIxAYIf ztJDx?t>!>)SoJ%SAZI7Lp9Q1(Hfb_x_k`Drn1H`*y?{Y=muC$TC&6xiTJq14nU<#${j_2m1e?}}=6;VD(|4sPq_UeX<{)`h^1-ULX4Ld0NM1Wa zND%TLt1&avP0MHCZ`K15!tt)E^)tmqiT8Z`Tq67!WVT(s-CMR6{C?CTjZ4mD)ic>x z$(2-|W%W{>j&-aVY)j2*N=COAd*a^vX0%s9SEPy~pwuD~JQ6CYH!#g+Tm8t*zSeDd zL8suOO0;@qu>nMQxU{B);I?k9N%97-5gRqv9ucQzHNz2G>b*4i*=MS8c}?~o_RdTW zvy?oI%K0g|?k^x?9K3%kscoPz@jia;PO~N_i=3o$ex9%OSG$i#89$mEHFdIl7l{^s zVwDsZYI@7srrVznE4W9-lW(!CEwR*mtv~8`x?vX_VelaxLJ+Z)>M%kICMlb=)HKmE zZa*RPx7(g;bCjcbw~DAF!Q1aHUx`3W?PF527f2( zj~7|%)}E8431zA0*~|T0BoC#}t+ZOo_*w$cE?i!9l5RHGk8j65?2rM2oLpUeoLziy z)-xiH+Me4qL+~V=ws4O*QCy`L-NHUrKMbwWzB9Ro$Zh=9wuq`P_|9$tL;Ut9Rv{XnKY5el zjvofCpHgGQeB)`QgKj@&``;?^4_v;d-C2UCKxhU&ekv;Sy(t<>PFjvCza`< zNTu$J6#BM^mV#Lj_s$rg%&3xX`+Gq6AzTC73{YjrXA~^`vI`%h?7s zMWMZ+_N-JO~ z)E~NbJbvog8GM)f;!&^o;9H6GE0p;sqyyoET(0iaF#dzEIH6a%|3`jNr?`(6rwE2M-j9V(fEQ2ACaOs>on zzaf)mN#4K*WJ%nxuV*RVkab?G-jGNBC5vUl_*e0xODTZfY?>P!)Ep70e1%acqX0s3 zSZ-j(a^!Bvk8)LRaB6a4d0*8vJ`C}?Dxxzzt zyuWv8KwW{$vnwh+dE2Z2~FFC%X_p%^TZ6HoJXZM%ZFBhTS@`{`pOQzaj2Jb3x8n(rM8!%->7}_(xhnm z$AkpXmcd$cHA$D#3}0yuH5*#s-sm}WCUl3!;#n?d!Uz`xx__fQOklJOHnms2*vl#4 zvu$7nK+yjB`d?+!-zfV8#>%X~zrli*?NC7huVxGNnpr`6RU5RA+Q~`2Etg~DfC>WL zy^-7mjPMA822fN|UXh^wv@0p#e>h%c33$7rT^-NWyQ$+6Vd)G->{i~4cs~8buJkgZ z>3I+*P1^hejKW6NIN5ib9fT#8OW5oods;_4kTI1iJYe1l@S%JMN zX?(9pIG5A>??Hyv`sva)vL6(NTXWq8sNWmE<=p69IE?VScNl?K|4z5Dh627h9O`nn z5*;|GVZWNh|7Wx%qM@YAZ0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjZ zCw7oJAfCAH5HnEc)c>`r;Ck&;h!)AgWqIDW{b%u znC0N+y=7j;1~zXRmlHG4yve@YGGP8Mt^gE%4!1X$zY8jVlRFYcK7^+T%slr5Y#;QYQkWIl$^t zo!CL@fOz7%L(D*(lZzQ`VM3d?Ge$Ck1%;WtjfgQXtaF3$oh~*8hJV5g41SXpnJp%t zV3vcM_m+7X8`!*QTu#hD^CtUp%Yga6xB^i4Io#f0{w}EeP3}k(`4FBWF#jZv8UTnw BW2OKA diff --git a/examples/zips/concepts.zip b/examples/zips/concepts.zip index 010d8d41be50ec8acbed7c24379fe4f16f0d914b..68c8180330405e6e041b04fee52b02b0418c0471 100644 GIT binary patch delta 445 zcmeyb`d^hdz?+$civa}IE&er;SA$)>>0pXx)4_>0Qp_NcNK=@|WGPN5L7-6B^kdyq zFEBDNWV0|ZXiauxQJU<_&&$Qhzzos~#2bIUVg%`({EW#CtQjb_S(}*^B52Iw0~c&# zX@v;#u{k1J1J+&4<^flDh)swIEO?#621B7ar!!n(Bc}&M;Tdi-nBZhio?T$g$9N23 zVw?Z*1VXG1;xhv|eDViAvB?PnY+!|}_?)3)GGIPGzaI*}p5F(B|CT=r!;DM;e-t&h g1i~=X1POYfsM#kNh{87%azWuw7qSQQZwjda0L%BVrvLx| delta 445 zcmeyb`d^hdz?+$civa|-7QLCstHJ(t+q#tR+ty9AkzxjkM4G}xCQETj2?B+}rXTB` zdV!IFA)AGPL2I%ji_&CYeqJt424;{}Al~@%6(dORkIfO;8nEtSHV?SMLu^7!V8QDgHW&)cIi2AO8#z573eRwx!2~CB^6Ua@KE`7R z6WjccClF$F5T6;y;gdh`iA_!rU;`^$#petalL7Pj`TbD%_5404{I~p37-nP&_@k(~ gB@l+8CP>f=Ma@3JKoq{AkP8Zbx{y7Xe^W>e0Q$JfrT_o{ diff --git a/examples/zips/container_engine.zip b/examples/zips/container_engine.zip index c59d867562bcce992b9d95249dad75d8488eb2b7..fca4c280bf8fac52c6b5513826f523901bfdf5e3 100644 GIT binary patch delta 859 zcmcaNpYh&&M&1B#W)?065LmbP*F;_ecJ-!%DVj|OCnrjaa3UlU-H;@tm_ce!`+|jl z>Nm?X9%APMiiNcW=m*RK>M}5xTxhQ_nV*vfu11M-3l~V==$Wd z11l7kcE?ayC+!DUcv+f}1FZ16vK>rtvW&_Bu-JVSOPJVZdDT!xuwc2G1%`>2)$HL4 zCDs42gB42YJ76fR(?_ye-+>9NP|V01t~iT`7Fw}ATMPP`v`oY2r5~fW4u&_deX{JBK Ik30O;06}Y9F#rGn delta 859 zcmcaNpYh&&M&1B#W)?065ZGGuW+JZv``2yjQoe6nH#t#SgcBi==!PUA#SBt=+7~PY zRKHoC@en&7P%Nx1KtEs>P?v$h(I@2*fT5b`Z3kF z*D|*m8|qx`^xOYk5z(?BDQOWH1d@*VPJj4zeBZDiKKJK`DP1a15NLd7CfN}95&5D2 zi}ZV*brm+E;y!pZwtgURvD>X15oWWveM%^61L}ps{ILC;cf?x%y*-))+GZR+%m3KE zBeN_@Krn76?^EQ&`i!CxEtl8TSGSir@}@Y391~;DgXKd;>L7QMn}eamA~ZfX=>rB1 zP*+;~#|m0mhOEOkA-ss9g|%I#85YKAm2vF=-$MNn`+etV6<2M6WKyl_GdVxp?e;M2 zm6=+2B3&pX%)2i?ZL8^@>}A^BdC}@qA4GGTz9_Mg{Np?BWg%H?1|lfY5dxAxo#S4` zpOYND`Sr^Z|JzrHzoe&2^zmc)v_2pb3jHn(iRx|26daZ45BSRJ$gBZ}nwf~)&ZS0| zmI^cP7f$txhTO*EAp>tO@V3HLxe{j}d_?ta;qq#+&0cbNSmcHDnc+YjaQTfFA~=01 zjhK$-e*3Hm-&il@w|-D+#kO9GY@xph8ft?36a@&U!T0IGjpO-6-pfWR06qU6S5m-f zZ}oB;Sf4b0N0^?RY8Y!;uRFJUZG~bm3MD>9;xwBXWlez5ZdOsM&dj*X#9J=3W@bsq z6fZf1g>Ncz1C~P@wRBS2*>pJXvjo2&lp4X_fW7hU6=SOrDB$%4e z9o@+(@~(@_Paq7{cMwo`7KM>9O3$PXap%a`zT4C$Pqz}`Nkm?4bjk>$tG3{v)|<3J zHk#va9#+fHy{<&p-u)5OQtpq8CyQKuH!Ys1I%VoqZb#o>M}x6X#iNjk(yhH($8%D} zTb%b$qQ4XzH8?sjH-BN3(`B9!66@@fGs!zYpqDJT_gZ7U1aNn=ScmGYBBS3si=~N) zVBt*{^vVXpBN}@xT$$YW3Mx00{w*rW#mzElN*0l8y+}H8^CINNY0{!)&ww39;~bt~ z{m16apx}vCdM?;zEhU<)YeqUEY4fiqc;;SxU0*ybHv&ByU0tXxl~;4+b3DTd4RZHm zpL!h3VR!2Rs7y5oN!3~YBgG)2LxVcAbVTMbCr7wId%js>$b`)omc9&U)mLUgn(nf9 z_o6~)Pt+b7v*lFESD`)HLJPpwG$?s3p=$~qK+;eQh%bnYMkag7iF_vgn z0W4OHA$R_*9H4;=%4^OeA2HVCpS(l{#N>vls=7HQJnl5C3u}1R7lHC)m+yIhzuDM+ zs48it{2YAZo?#Vdmw#bXh;9S%c!zCr>?~R@L$gRb)|}?PS`?tZKg2rWvUQ(hsUTMT zcuF!mTD**KpRD_2BWn_$L)T<`A20m^1X9Hm+$t;`T<>mQ{hDI*!Q8i^a8~y%b$D++E)si7+IIGll$Tu0Dj(*vwBi?wA?mAmA!W`PZTi9JR^ z8j_ae9}YLU-g4ikVRx&K-@&{b3JJ`KwfpUftzP8f@Az&dqgtBb@L$`9b13>quY?0? zH=f@Dbc~~=QFMiSP0InOZ^?^6I>W*#-B}Y4Thg!5YMezdOZOyB1zHBeT;=GvA=Sv|@VuM_aXCS65H1 zx%C)(Bf-~_#G)NeK+b9PgobjqDl>|n6dY5No#mhwhcQ>{+5gqWF1z(CncWqTgK+~@ zqsAZdqwsDPqFLhuz{%4{7wpqyE2>QR6k-(LS6Dkv!H5MKIHEmD> zwuHX$kCuY>vUQ=pZT^bn>6iKb3U2ECkVoW(`62zN&&yf%w_HY8tD$2qNhd4kB=}P{ zaKV)GjVl4ZT&Pflt1#s^xAkRIl%#<5NaBlJbE2avb6_R>5Q)WoH8apI^-Hrd_Q9;6 z|LapmD69+oy=@tX;Aa2c9!9~>Nc}v%lCc7RH!>1r)#ZMzWQLWj`M>C=wM15J%K((I hAhU-dklp?ZQb4F}5x{;T2ZY>DN?xP{8S_LQx5Z6ZDkFebT|FJO`YtETb0)02tsS1SsN8C8zZtNuQH*z^n%BUO#!j zZ^s>!sewlaVWZkxRwOaPVt4;QD|7hbpJ)=!#ge$S9~|t++h)skp+at8gessMNnT|S z$!xql<>Jz8H{t|F+EnjNg-?wqaZ38q+*`Syo$({fJE7;Y-8Dj^ac8Xf-BT98_(hVYEGmSbTckO!=`{#oO#qrqFd|I~NN?CWkXi3KYkB zhP5a7t9U8;H(J4#TC`9ly*sI^{d*wA*)kQq{fHk?Lh4zjG%7kkQ!BzH$i!!&2|e4< zi5AOtSdMnv7+c)_KvU}|vfufNi_El|F-2);wxw)S4^UCKuFwgscR~}GiQPN)_58bv z3HwzY71gdgM|Q$u^(o8>TBg3;sgV-c!B@e7ngW?wmT#7ipi}xmaRJLogTs?O{y`gS z+?0hM_bSi$5bCr0m{GwK9)~4^s65H)9n2mIJtxqbkQ8nN7xf&G0v=|%tu(W9a_PO9 zF}@495aWUCfOS@#+fZgFq96*W86j;rs2YZoE&i=Q=fUU(!SRd8w0}OW0$1N zx_>ISulcemeA-^LiM=XSBq+n;@`NiIg8V2uT|b6EJ!h57mto+wc_LLoEyKZVsWhUJVF!EvGBLn>Uz-wt8>twJnu#HGBv&Q-Qx};4b zg)1#0pq@2Ex@@4`%%<~Of4eE<_?^`{{4zgA?<_ppM+N4$2GDFUx(EIuRwE>I6K5a` ziZ#AmKK{)^07vvsUnj2;4%6@xiu{#izY+`eJIZn-%Yy6al2h&H4fE)TX^q}V7pT2N zYTj8Bm2%(0ZDix3jDY>PLu9Lh_A5F%unHKN&ok8C;DLyD{bDWc z*X&~DZEk57q6cx%5AoK<=Z4yN>ycToW@$<-VW`ZYCLlw9IfUjeESN&{t^-mxIDarmq)0x?KwK$z$4@&2A)PQ%q>1F zKLQK|!pN&jTjkBFj_yKzQE67m4PY7ZP@7A~nMW`vf+S0vZlPMW9sC?KrUi$BVM-+<~_m-uyOtEYRl7eOWM~C_gImEAmzMC&4Li!hKpN!Oh>|B zg&y~F;iE5Wq^{t3VRjyljze=y*Zc@+U09mSOHohn#f=c7-=}ldvX&yZJmYgBBFO=( zkAjv8e^wxjs;eg=>)EgbtDWUiYdZSm4%N!=9Y zl7OyJm+7jg#aPq+$~Yh|c}KSmpj#eJ^iA7g@UPxFe>hJo@XjqyhqJT>60lYAobB+*z$b{xPm>l-`eZXy{ zNHr=8W|(5D)t0A%&#sc{>=!5)gC@FpSyIy)CXP7jS+8GAeLmmmu$5%IVxBM4__0*Q z-_=>2uVTG2?9){;`55?%OB2UIhM@m@Gf@)UN`Kv)U=Aimz%QDJ z!Qlwq6OuU{03iK~Mh0@KQMWZQyliQr;O}LR{Gar{QNkL|$aMM>!^tf?d8zH6$nrM< Cz!3rf diff --git a/examples/zips/database.zip b/examples/zips/database.zip index 5ae1880f8aece3cd8a62258018b30ccb2da361f0..f510b404122e1a88424652822944653cc315f336 100644 GIT binary patch delta 9860 zcmZ`RkU3L>luDGI-?`^F=iYPj^ZC>tYp?ZPYkk++`>ef5ND)X*5fEKxOXCruuzzx{ z{74jC$gdt#yj3Hnn7La}I&mEz4VFT`+<+=`7fmYh4DSrfiFYlyr1ESFrV`kP$Y3y5 zIT%$5AyZc&2(ely%b9)B?6 z01A!;YAFps6bdc};vyTIXK)lR=#1OF6;z=jj%JBCVnU|(^)5taExHbqu^JlbXhaXi z*W<$365%unI4u{sseIWUK%rdbp-`4H9dF1%Tgm{PS)MO}>vrXT1I+H(2%F5evpJ#b z$zGt&VuQS6q{h)<5L+tq(_=Yy+DY=FxV^OeG9*K$9ep`2JVQT^M8z(T8Z($K#N0Fw zH9^aV5*0Vk3bSCg%!@{Hb5~k{%e=2kGv9{QAVG+g+lrLVjKXH2-wGISRW4;k0Beo9n=zMc7F&fhF{56<4YsG?>0*L)=ot3!IQ|ACG zY%{R=&DzS4Q^a1^0fm zusoieGNC0Y7BdFy%_$9UO#$}iWa@ia;vNor^`kAh!v{@>U7-6urMyU%(f%A^o&OkG zwTd04xcRKWT2!-ZH%B;s&k9u2Hw5hu?x-t5I8o2p$BRa-9EwxSd@HEI$_SlKCpHW% z92^zAqmT|m0=pNE2Ue)O56I92Iq5Bk0bsRsALi(Rvg=^-W?BqrELsm?{CLVZGmH}wwG?0UI zUjqs5eyC5Ji$Z=*GX51uxDt#60F-EJS7ZFQE>(`$Orn8>YuPbh#C6PR}fTOvp^lDnbgyKGjXH z3(tH!|C^1Ujc`LPXKt&T%QP2S$ttZoj=EO3&V6)sAt`P4`KJreD3m5q_}HQ|ALk1& zPl$?Pjyb3I-#MIKf1h&$4e@+FN7$AB6ZO(junaNhPEh|g9vUm^_GKQ#b!MIlBN}$C zD$2~wkxRNQI(u7~_g3!^Z|x9Y{QJW$cEJ5q)F0m?4$Rs|XAytM2Nqh>4`i?sa67hm z;)&;S?THl)alG_b{MTpj$zTVVW?ph^TPfzkr{b6*{uxt#wh5E54m}%1yD+qZBW$j4 zLlJAN5=)xk#<G2X<`( zzKik54mEN%EdGHVd1;GVn>DMTXMk@TM|ig_OLV%8{y;RjnYuf~Q51T64gIpRM;r8q zX?9x<>J|bbDIb6sS8n7{2de)7v$^iW?^8$k2YjcoNLm_}}W-ij8Il>&(!eC+GizEQGigE!jo&~g! z_Juqo0R9mw{6_-N(J;y-0X{+%&XWR7sP@=wfN$4A6IpN*)qW?(CDxe(Y*BHfJU}N& zxZj`(c@TlnyTeTtQu+p@XKXhpiw@8M1GdTjL}l$`YXb~Rp-eH)gw0`Ft8$gQ z&|DS#fqD#A19)Q=R;htZltZmBNGr8~9$puq4c4K^ z&N@JwyFZbzv^NBZmB3S?36!e?G#PNnTiO5ig$Yvt&s+Ey;fa7dwcoWasMk>X(HGZ^ ztYeoDs zc~*&MXP=;oZWqk!y8l2ea<18RD%~a3*)dkUF^h|$ie6To_1JUr z>(-}#js~3+r)k(;ky&kK_hG+%irvIdAB%qf5dPN7cYKaihZ*xHYg|Z;thgX&HqJPq z++ek_;newOd?5=huf`Zb8m*B#`WSBQ2X@`om002`ad)GCwMg0$(X;)QSxXY{WhL5) zzR|e9@#cZ2r3X`;l+vIs%TN1jWm@W0l)r>+4me+L-Pd-pS%3bkt9@37<3|qqQ|}%r z^YDwg+7iUpr9ssPwl3d&Kl2P`T?!9VKd+QSyJN>RhP?`vtrMG zzIS7Fc*mHfS_4ZavNvFH=0XR(5zU7IiDkWwjUNkq)eA-gJL0w`>1~s=uF0wIKiYmw znt74pyMBIC?!6VWCZCkw@|(Y`y{y(~tqwybm&dGC0m_hJRXrIPiBf3q;JHGFp74}< z)Ge0Idm5c5{IGIM))qdY;Es1=3%4cwsq0zz;Qg%|(YH&x|4DC9k1jv0qMVa@ zEyQGH1S5Ryj|XKs!8{q%MJj!1-;2KIdfDiH6OJq>f7QK9@>Eq?)5^m=L$*^2-LGt> zZZbsqAAat3GF)V~^P)B-`^~B$AAwNCpLVG+$s&z9qvtxxuC?1Y`|A4}u_8_W{L5{w zdY$C#<_wlb(u2aek?HR45g+cI_mSU!+Ab%0Kx5mg3IVP10wtq3^Zu~SZ!E=Y~nV~s>PRa{wq}GKc zT=Z9!7!{N<8&eBUQM3->lkh9CsqKBocQj|Pe~;YX%9`6Q?P;&73d{Ac_IpwNsg{GQq#Gsg0-wMLIa{aiQP(`g$P>(tQic-gOD*?*T$Z~v7IgN}L~ zGOW!fwd603on0N+LSOs9HH}wZORiIHnAhU)C3*FAi@s<&SbvAo6V7xBzrNpOu&m|c z)FYEQjL?YeY-xo@dt=9Ilivru@38&Y_v5DRy_~zr&}&9+*2JvT-a(K4R>>frz_<}3 z)@8$ea_$=z+*;k0T4vz3ees=D4Ssn+^nsUN0&S9>w|;n?pAvcW^{~UQPp6iQ$QHUy zE_yj>qZ)M}(4oJ-qB+!?@kO>lu-RgOFJNp^vn%O@LR9xcL+?GsgTiS~rB&SXhLc0O z3KAqU{|ajNoMcR?4_6%juQ}?|XZgrLug81uEPtO~IFXT^W+c^Z5#(Tz^;|Eo{LXI4 z>!WU3H}kw~dy?q{l(>ui-pT^_>}uDLZPTo6qsMAQc(Oj;DZ*A0};mbWqpPN@wSV7kd&VI z!;yb;8-=Z3?vlKie&E`wgajeyf?%_X(YCcdJ-1~UJnNgLYFj$(S(O7<)>kU8`Ct&_ zyF92&TWD#+x2oe4C6{Es&X*Un3aaagn0%)Ysefcm{BfUHeQU#$6@d$`Dly_;D|p(R zxSX;2sQa#z^!`nb7k8N5%THJSSI(e9%kamwk=V059pmeT+EnWIq>HgcPTe**d*x6T z)oG`p*ZO5EX`gx<>mJWpQ4ySRS7ne*>P2k^~Fza z1Z&!*SVW5|h)jClS5dKWXnE1QKtywMasu)G%4h_2vmnv?i3NZw4kWm_%y>z z>e=`=rH{>)Cib^Qit<9m>Z}djq(*56Me=9I8D4rRQPuaQ_i?U%-baZeIx-^*FKrTd zbl|Dr5s)%ZYWLcWbE}G8J7?6k9gnb;)>{14^+vpOTh2oIhk&Z(+74G9zG+EZKPoyF zMJw}rYJ03mUpa&KR$h*Ia^Uklr?x)l+i1)X6|~jQKWJ*l+8Gl6{_Xjt()VP=17oLq!`fO|@ZT(>L+7yQ<=jH!o{9M!FbnQh|=dx2T0wh)Lx@Aw^ zN?j^QdsZF1;zd?WrEcLv>EiEY;kW)6*+^yDjm-53Xbvbly(P!gE-Q0a_IPP_<+oS+ zUtFzjx%MzT=*(4~nj%><;}WaL3ud&?E1u8G<02L^E|uiiIlZ%|xISp~joq;;H(saY zw#P$B?I(kj#};o2f&Gq5pA+j(xd@GRoS3N5y_gYdL3K77+8KSv&#$ol%4bV=MZ?E$ z`v!I#+$a4k!_p^5Nzy{rqUKQJTPMjgv8lW73k7wBc&g8BAARz*HmO`{sFuD^bN4~D zG~fR6Lv%&`xH0#%%rh?z&f4$Pp+EGfV_4(oWZk3MpWjWZ&w4%SOl&+^duHNf_#}<6 zsiBL80KNOd8@I5>5EP*E&pBg&UcI?TO<@xdhR;fICZLfY8KE|t19af!)-5#$k+`mv z1z3O#+fcAQK<^jax;^$F1lRRg3kK04*wPs+;hMp?pEI?fN@svxrMZEAI&%iULYoaB z4+VlB*i5*9kXJ0o!<|d_x;q#~FDu=v)SxHMKoHXP22wN6tTb<~VcFdqY)5IR@CWFN z0e3{^0l*7S?OFghg-+)Nfn4JBKoEltuF8ACHeCDkUZ8;%<6a2x#>Mcn3;LP~nT8R0 zM=mLH+iwgg!*75t>}%j0G?n@=AdlOB4g)4=5IPZD3`9l%fUG3sA+mE-CCh5shCg zu6v(r0oZ`vto|(o_;X|7th+!B&9S3E6{;1Yiq4#4{9}MW9~U+}26NCl4i^J`_KQ4} zSOOH#uzmqLw50@S6UDhDU_B}+n^sgS1&4prp+kM8z<{Xu=Tov`?^9q#)LH!uI1s_^ zJOj=|oyBFqhbYM{1DlBwy>j41l;o9zEkwy56=ccn3d}o}+=5DAL$pe)1Zz+UfhoBv zj4902zX~oCLMbNcsseUIiT!h6OO)KlB^bPVHLxN&OsEEqL@Qbi*hrK_)_}D{tKk~p zO4RYK#Yn<@4b%cBqK7#pQ@i06 z*?Y|^GLBUXCc(THw*X^ego>?XN=Zefuw_&g+>Kp|aZoPjRjPmD0Q z8(0vnn!Cwoict@FS6}ZTS6Qx?yb)u2vEIP)`ie_1HvW18%!%<-ydnEC>LcS^>%(*~ zoM84@yR@Htf*k1wJBaWS1LVd(HURvHI^u(5$@xKS17QyH_^EVAa|kRUnlgrfJ5e$@ zg!L%KLg-s^M~=J&n}}B1-(eEWVgEaFRjl8WbxPmQ$cw`VGB24Q$c-T}Ob#k;7;9ZD z@Tp;p1xyn9k=(iiAAvV9m4FfQX73*%pPJh~VXccH*L=csFp2$VGEU`ZaxG0q$*1O% zQF5bde<4fKzhGZvjBNO1o&H2&-Vc5yZ?}=JWXAlzkxSkCjm+4lG4fHp)bGFuUz^8%rX@ZI$RV%v@T)E5>Y)NiVjL{OwUMF3a~vLA&lv(HU`j)0 z#=&gdwK5wFed9;}H=>|m6pA=y*et;qF!e$epy&xOH-(?di^C#z<tV0#SLt!r`d&2eC37lSiNM3ypug=+vtggqS!M0;GfLHTEP+O=Q zP{nY55YI?&8H52SF&b!c)e*Bl#O}Sc>2;_x3X~5W`jA?*5H!T>{(wu}ISM z*cUZvZaW0JodO3Mi z`vXkdoe!A1hZLa?{8UNevXTJ2+%&!1UI?V2AOSK2e1y8=rUVTiLhi+Ebz|SF&Y^lthvuOQD-fA_);16t~?naU@x~D(z)yl3b}o z)hu^y~A{AJ06?_gUWOeV%tFDVaMynOnftijAF@#Q0YbFq9y$ zoNMyIoxi?5xI;V0Bbs2#$p%xQEPJ2`%{~Jn32_|1`8?sFISW;qAwrV_K?n`jmX`+1 z0fU(EP=_YPwrByb6&sVcoNXf;qQL#5BCSi1k7mNfY7$lM&1H%yzt80l7QxDQAU+`f z(M)$KL;f#-ApdrI9ugbVAyoPtk3A+mz@tD$%q`;II!~mz-{?eW8wG6VX?d^fDJZUD zK|72nE)>cp#IP+nn=8=`NTkc`B$6R*>rKf-T|NW>tvpuIc5j3g=1{3*PUQ6=Ez z{f*zJWH-!9(cZ~MA}%`18DTW{8=|y)d7tb?Ne#4E(i>sSpL|64AD6wUY zl*VS(p~G;FJQDZ+l*;UGjm`^7^gODWMxG17@ib&OPiZS%9kgR^cZ=B z1YdzaM10-7{Z<8fV%5Y5!NZLWCR^-+CHl^l?J7#>!ab#0Flz=EF9a_i`J%(2kH_7-y@G_9EhKhUQA-0 z*A$w!3Lj%ke9`_|l(X|7lejd%2<7w)L@R_9bwwZ(wNwxXidsGx3o>nhMWU-y{=cvQ#f230tgsJ{Tt7McUbc$?OU8abYf7AYf9uaeiG(!42aSf!D3_@${- z`U7lqF*{9OU6NLpx|jx~pdFMUdn@H9DtjvxLye1Z^F?N_(@yI^JEeV)e)D=*sV$k7 zuv8MN>i~bS9`4=gyHTa38M^b(b2I5E?NJtLh_xK#E<4Th*qJ+nT4~Q;jfk^)s8fJJ%R5?dnH@2m zabJNN37b|FpxwJ8nOGnIh45StG^t3~rCu9y=! zPd2b27PWt#n<#@@z-9nnagq=$D*~xa0fBi1=m|qFFZr^an1ZOXakTD&E11Nl3MW)+ z&4z@hjc_^K;-D>dh0CEI$g?QSi>m&N;ys!RPXU>qfCQ9b1{Pk*Z)&YEgDQ1%*Q(8H z?9^h{YE(V*fMVC`$Qvt6+O$alJ@cL|Oya|qs{(UH^e4i}8m)&PnT)&xIp}4|IuH~{ zLS4LoAL1ASi&>moFyuTL1|l@up@rUs4q*o@@99t|4+6z#is{L@DMvKM1Jl^qrmg<= z9ZB5Y*4tMM;SirABOyktcztJ129e))pvBib!@T?CegvT7R}vX)n-30sgbb|Fd>FF> ztmD!X*#Rfg#i5Hl0J|2UaUM{?fC?4!0`xGmgbkA7W3tly`G6k5+ zDx^Ue5?>!DMJP@ci2k-;KvyXMohV?LYoipvCBPWPsvKU!YDuJ7T3m<}A`Puj1j1PS z%oM?&sLfC%fE6dbQVC?B(cZ5Lu7spuVT>!iJjY>q+iU0Sms*GXzgxiTPIW*$zOx@VaGaoWJB z#JE*LqQ~i~YFR&@S;z4Mmh|>eYAm&Aq_)E3zAee!GEiQu+d@R=BK2VD1u#rA;eJ1% zy*1NxrTnVzD&C^kvzU;Aw}+4bxo!3+^VTs zc@?HJ9_A}j4qb>Jrd!;hmfh~(!6zdBr&#pq7>nwADh(z(J^xbJbHQ7>^0`KO=IOE< z8w{(j>2cENVfO@Z}S1@`&c1+3q6RQuy}?LW$qR$kA8R=hi< ztj1~g)m3QmFZY8hy23?Xep42{c+m4H$JxE?mxD!$s&d|raC}{>FV(^Rp@Uky{p{61 zo=s4dZC1;-kB5z>eM>&j4;5HIe5=JR#QO{OKj6A<^KE4~+p>VeB%9VES8XK?P=0{?cx_c|1$EWyaRS6XGsVJL*>g-e3 z-48`bPN&CF>Nf3rc=pnvv|TIQc&O32daDdnJ(HqqI)CauEaI_Pvnon6wlIC?a*vaw zJreqLZa3UGdHvfz?b`CW{Ft-;l1Zbl7R5z_>87F4nB(2&Dc@s^-hJ@#U&CY3YrQYC)PLd%m3MS7n_3@xj5;{h zwe5g?bc=~A$)-H!Rhi(B{?r9+4pph_-94H`XSZIscq?4TOD`|NVC^0!nQM={TV!Pd zd5ezasmO42q{{g}^8Lr{?^@9YF9YohieNx}1fX)ZVPvpsKh zJp5^3!XK8&SHpxat*f};pGcD|jw&B)E?Q#YEo!whXGvwQmW;9Vm*(gE1-IPRO9gLR zp7;KEn@*IEptGlMw#T8&)LBxMh35@=q`pVNU;FC4TJ*Z=Jy)5Rf3>-7@tFE!sCvsC z6>8c3wY)E<^bQS*ob7m-(UdmNPx?+6Gg9Ye97sG%~soF+V>q!kN!+oYw#Vb_C))v0uM>o3Er%kCDA<}K}b`%ZLsgy;H$ zpEMra*z9!rztv~e3!gjgkGWi@(5X{>vsf{I=_9AfOIovH;R9S5--|^mA3L}08@p-$ zMdIxA*!{K15S#PGnD(08=F1#KE=XlJH{1=kQr4P2`ES>WmmC@D`-Mfgeamzl>RlVw zZ3@pXKDdTDHJg#oruaQg;LN<=Gy3 zTfE8f?$R>akDOOVS=~WjE;_%}D6Nv!Et4M&s9CYfyQL>yEVb*`*1JEUcx7fT zaLM*f8{;;X9XuyW1ft9Fzs)!*Et986NguiQ63vf-VFJT>Vr85dK(B!!o?LVSyc zq|G&#TLmoB^WutTU-?A1ggj3FCZFWdV^p2gvoiYDvNA6XlRYA8Tw2;Lc7AHFR=+jV zGFLa6{WcpZ=yxM^=kBN}d)@%ErfTsb+1F0yX`;!sN!`0Ge-z3;8_SWD_}9b!-0sCf za@jYxS5KT~1>zwo=2YgiTSqu5{Wy@D%pF zr!gI;Ax6_YqMR~VDUDX#;D+qmDz{7uR79d463V%RKoQ)Kd@^@#BmhYdT8 zBo!cOMfvcu31OAuLZz|B9F9@z@R`0r{V%VQx#(Zz!X8I{);BFldsuRRedn2<-!&c< zK_Mbh;%~lLP4yHci9N<{uDp&mReOk%+a&_E6hOX!Wbj^j2EWJ+`n0+ZTo4wR8`8%oH7rT&`% zOCeeBg$oGOXAJ@|DR&#tkIutZ_CSke7-N0ZG+?144>!r%nX@0=W;?i#s(_!?RzmlF z0>1gxfz?HKXBL^e&R`hbUAopOL2mm24^-_2B#Cw)Zg-ZU+07m7L*r881<=<5Rs$Qo z!7j|N+uq;|I;9)#XCY_p2hr&Gs(c9S#kehx!&5qRI}j{F!v0?%aG(Ed?#X40%!9rD zLU3A^L7D7i?xYMdCuG6~|3?k^O{8-|SX`b80R|`{?JyQ{bQl0=^kO5Kb2jdw2bw$v zu$_?(V^#UhORf|nihR(bSRhPX1F%$f#sKV@177KnR6-810DGyW--`u0NQh~?DT)x4 zlf0OyOd46#BGNd&S-{&v4ViW@P?EtYIiGVzwVyl(+|X)=LxpZ?teLWn2iQvp{eC>C zlt;o2FV5&Y1ImlR?#=~n^XY&#<^cbsj?>ivY>HsXY~Qs7ew z^9jHUGh7?Y+nL@}0;JGHkCy@+#*FY?XyA4D<%NmK4j7DIM z$Gqsx90l_|;ter7gKvm<_BPE$1H;_iM2xD_TcY*)w?sXg-_21l>o48`eLO;iW}@bc z&2w?atV_2LZ6&qx7FYv)@7Vje#{+T}T zH=akVpGZmXpF2PpaIud>JjXu*XS^OTKrGm>0b(&u41k?@sRN(pD3~pz$#V=6o4oZP zk+EX%HzA=w_Cv&`nmt4;4Dn$ivbbSl6J!5OY$IWxiKRRE8Mx#9@f#r?_D>_khPiKa zu5_^@P(Mn%dF;lBdTPgrxilXqHq5edVxj)|g-FTz0?>;Vi#Xg=DUiklP{+FxH9*0~`=10ch_-F}V_%b?XanC};!&vJpb$DCve+0G0Sngn9dkQtD`YeJl(IrXOS z^N>h4l}V((aX=q11$Qh^EjR-M*kg?Vg-T|C5?(bjqn%~&G%|V6rjI2-^9TH~o;^ba zi;LLDj0uk%hkgvz{(v_M+@SJ{A^my&V|#e-ftGC*SoGmfzxx zSZAzS|3@C4HYnt?ZYUePS&7YCz*15D3+9+&a)?0Evp@(jhWTPW3-c6tF|?TB10~BS zu(i@0YXaaOKLm4lE(1Av0S-J_5G41{le=nG`REo&GVn1R5ItQy#~?Tex1cOQMkg-JAEdCfLZAdTvKq9TOyeDz57S9I+a{`{);S!EvL_`i*_n4W%c)HnPEj4pIG92Wk7-$4i#*c`|C0rzu zCk6f)4i3_KD2jtjxclMhghGCM7Cruqm5^x=t0o)9k<~hf@lX(h7#<|>EpZIYlF;FJ zAo?2>YFw}iqj-!*gVl2cHuH;05=mtaHi;xi8aCYznR1iWm`WLj5s@c1y4uuWImX{6 zOoT)lj;dpb5L!Ik9VFn~XGc+?*W6^Z`7&HYR54de5@{_iXrl~nHO87LK93obs-<*) z;e|sTBS<2x!%1C+Uh|L%`wnCDAulgM!w4^z!dTvr0%fkBB$6^tSrk(SSxC_;9pNR* Ladwn4n*RR)o@36H diff --git a/examples/zips/databaseTools.zip b/examples/zips/databaseTools.zip index 488f1c633274786d0e5c43ac2151109ec529e2ce..6d387346d045e2b313bbfd331b188aa94ed6ed47 100644 GIT binary patch delta 189 zcmX>hdqS2sz?+$civa}IE&er;SC?JA>0pXx)4_?3Qp_NcI7_eyP;}$G39KNY$%bs! zFtN$SZ2Q4trtD@gvCT#7A&g+blN=UsK@QIC%wWMoJl4!W(X%ZX}-@h&y=^pBezUDM_6G delta 189 zcmX>hdqS2sz?+$civa|-7QLCstIPg%+q#tR+ty8Vlwt;n#94wxfTA1cO<)BHO*Uk+ zhKWrsX4?-IGi5h}iES=o4`Bogp5(BA3vzI7X9f!%;<081nl_172F#V`bw}oQ@OmP1 SKl8dEb0hiOK-|fT_|yPCb5(8t diff --git a/examples/zips/databasemanagement.zip b/examples/zips/databasemanagement.zip index 1fd53748c0e0c958798590769a092b8b9c665b05..644bfdd81b20ee6b79187d8e31ba10c98fc12eff 100644 GIT binary patch delta 178 zcmbQBKS7^2z?+$civa}IE&er;*GNUZ>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjp zOLmYtAl|rmh7dDQ>ts7&2bkF8R^k0%F?SJbnAqk{k#I(^;A2q-W}wE&{bDj;zN?r! T3V)rL9|~Vi+!M^t5?2ENan3)% delta 178 zcmbQBKS7^2z?+$civa|-7QLCsYozjZ+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$_Y zE!jcpfOzBL8A8lJt&{D99bjUUTZQ+7#oR@#VPcy*MZy`uf{#TVn1LE6_lwDZ`L1H_ TDExI|ekgo7aZfNmOI!^Ai^oYd diff --git a/examples/zips/databasemigration.zip b/examples/zips/databasemigration.zip index 1fbaf9c6ca3e5efafbbed2db7e0ed4f0ab7e1bd0..10f4213e9aeacb7338c156e4f7d4fd5307949486 100644 GIT binary patch delta 276 zcmew@^IL{Dz?+$civa}IE&er;*N|Pk>0pXx)4|DW7^Rp&LP_>uA)xTY75hOVld~AD z(N#@8$>MIbe15-1f{sOD7-X umI3o0aQi~}Vw`XXPxj~WL{YViClrNm$m@Yc*KA&AWL1;+g23ERJ~aT6>}tmV delta 276 zcmew@^IL{Dz?+$civa|-7QLCsYsmg}+q#tR+ty89!zjfJ5=ycM3ju{EuGkL}nViLF zjjn3)Nk(^=vd!X5yV$@AuW(qw1w}bS7{P)$T&5Vhk8-)d6iyc4&H<~d=eB1CS~~e4 vw+xv7fZG?!7vqFGc(Ol_CyJ_FJfSFjLtYOox@Pk_BdeOk7X;>p@~Hs;S^;}f diff --git a/examples/zips/datacatalog.zip b/examples/zips/datacatalog.zip index 04662d396119a2eaf158abf8a76d1ac5d87ec631..9c22a54437bfd69d8b0a093eee4d62c7f7490cc7 100644 GIT binary patch delta 229 zcmZn`YZl`T@MdP=VgP}4i+@ez)n-?3I+&u_ba0}*6f;O9#sn+^6x}#|H6uu9vMZAj zOl)%<({v`VpaiQWOmK1p>prlUB%3*0ESzl@SWJW+Zs2Br_E3n4%Q-BWfi_HD$teR? g#Kh@@!cXILK;fU@bVuPEa=D`LXK+FE-{n#R0LpDx{Qv*} delta 229 zcmZn`YZl`T@MdP=VgP}yMQ>0pXx)4_>0Qp_NcNPVyfP;_H|9w$g>5|0pXx)4|CJ+)~USp#(Fq5KwsI+@DM!p~*9u zZDC@Q?=tTJi_KwiMAtf*ku?OSZgULlHHcX#tbl ze26oM5p1$Jw-biRwcKHFg}1opK}@dZ^MwflP5uSee1_ka8R+!M0fI7MzP5l13V))2 zH^L0hk098+$ AeE>YuR%1Ma`?amC!gp0z|G7e0<@e1Wc}o3P79da z=0lu8j9`<+xt%afuH_DcE4;-$4`OmPpD#=hX!0+x<}>`Z%s{744iJ<9^R)$BQ1}xC zyrF!t$>)UFz-s;p_@k)F7feFoe-?~F;pYpvVVH4UC;&x`r*H}i|GaQCn6E3M1^_0h BvmXEe diff --git a/examples/zips/datalabeling.zip b/examples/zips/datalabeling.zip index eaca5e69be8f7ed8143da0cd92911cc22337c00b..01686453b44676be15fc0ed9a75c33ce99d75c76 100644 GIT binary patch delta 193 zcmew_@Lzy8z?+$civa}IE&er;SBG7_>0pXx)4_=jQp_NcSR1eiP;}!0enybcV7{5aVpD|m(1ShMr><24+$zlo<+pNkO22ohYX2lFNZSrn58L*;TY+fjQH+Dx9 S{z`Ta6uvNrGngOAp#}itb4@V- delta 193 zcmew_@Lzy8z?+$civa|-7QLCstHb_v+q#tR+ty8VkYWaj#M*#GfT9~0@H2vhCU0Ui zhKX%{!}uK{_>9>KCOBE0Wj|QqOBPd@*k)DMFo?oBHY;YJX_I%e$$%BzV)H`byRkc> S@K>^Xpzwt`oWcA^4mALfHCX}x diff --git a/examples/zips/datasafe.zip b/examples/zips/datasafe.zip index 2d2291be3962dc56d9c58234e39754b3cdb123b1..3ae35b9033c6137e665e797b9c30e53cae0c6240 100644 GIT binary patch delta 3551 zcmZ`)X;4#F6b=N4M1rBgVR<5@VZcBQ#sM`ffu>tp>77H;dUN2l!fq z%L*5=2G9IfLQ<{FYfGM|L@Lk(dOL!quhmBql3XQ{X-}9+^@pKGxdXdQK8GYc?$Yh9 zEYGZ74Z)Trim3TSZ1jeEI=}T251?C*%3|hAgl94;n{cNsYNNm(JvTT5eTcMs-&ark z;Ubaz?je!n!CmcA2#%F?$OE8B9?oxdP3}h3eeAW~nSs?5s@TH=ZHfRXyEv}Yih$3R zYj|M1&uYq8p^6m&r&L)yFx2-a%J|GrF9H_$XYjyF{&Nm4W}^7TSD2@?bVE?4DEo4d zl?O&F_ov$wX*F;sL@7E)wyN_XTlfs=OP!Q@!k~sbN_Pkfm5Z|2(^nPB@4xS`xXBG3 zdHT;`U*w6BLnkTG;;=-K#g7ikS5 z?ps=+n&7BuDuVQJl+H^8F4PHDU)5cptRd+{NT3LOBRY>)9T4*oWxls2%^Apc-+_nH z%~1|(z%d*q(tWmS6$G91hUT?&7)cQytWBc~E_%L!z@Yzx^`$DgMP(SHMZkBBMs|$=pBR%VFs4`y%WO-zF{bwh9r&`wB<7`iGR>(T3mps1l zox{awFNwqecQ^ULbcYIdK>#O@?E5hNPs;F3rjD=2Ei0FbnJrVps?K08VXhul#;r{y zJYJhUO7RnhNL8h|+)`;>__EUF2=3P9B+;Z>x$(~0S$1_^4$oel*Fu3)r5cDbDMa91 zCZWB@O+~aGpM3ExV#yb7k;(iRPP4=CM!Ao*s@%M=>a7KW>h}ty^j09HmRm~q@2*-n zNmeK%nF=3p{ShZp-&vf^mpW6tlmbU(p-^Y`TDSvtn1!4Cyg7nq{IEAkM7?fbK2P1d zug8UL3-)oF`_n^xg$ADYzX0C*JVfcEuOH^qL*KZ-9Ri&==U&hppw|>>D9eGlr)9P* zMZ{>fn0dy#mO;u`q$Tg0ulK=)jl5T3;&WD4_Hc(53772Rx0P+4aI0YbTh?moPlizg z%MUFUNyPfyB@_K*KR}c-A7(U@h^|i{kZ+(>r5zqz3wo|&#KQu@yU8Cif?a- zNAV9El2QCh4+Hw6D-ovk=njPGt6?Cd@nwXuG}1abUuGH;P)>SN0m9#IYCv&i8w1VF zI)u63yc=P5wxpo=7cJBa&YOhROccM^x(DUQ4KT3jm5hUflmg z$Ms&MqvH&gK_GAjLEx8pn3;A4D$i=sR-d2UiR2p3;p^c1IeZ;3eOV~~c;8->@7w1 zd(Yo;K7Y$uk+ojxBA1Zg^~%Rq#d6u-H%3eTxiJbhS8r>Uo0P2PCpoP8vrC^8vrBgH z)i9^!PGk+9`mBJ&TA9bjJa>sypz-aR8<55^}tOC(e7Fqz^DLydAfc8PozNqAhP zTbx;*8J!ve&5INfbBWmKP1iJj>qTxrw;qv2&y@&IWmGodPF>JOf#18Ya|C)3X?MS^ z9{bHnBKg%#BFTe0n#B+pBkPd+L6dwLztvT_3sv`l$67}QR#UKICl9nL{G{ySMWsdr ze5PE*1LM3_QpO5Zj0iZX%H)B;-ak;rr#?Cnu)sH+2afvAI=GOD;1^$F{-ves12RO} zmjWz2Fl?zW-KIzr3b%ulqH|=cIvcc+&yc>*NvX&5YPhX*g@9nWD2qLPRiXUeyLOA4 zT;QR*?=1Fto+v4Jf)XtZNf2o)3)##AzYd9YVP#B~s-Z4Q@jpFc3a4j8j{Zvc1!{AV zMla$X*9g@FModu=q>m%C9wKm|Rn0~bg=$}9bg6y&T7H3EEMNTR^#Vl^zWF6PFV-Wzn_%T_K5 zDzn#B;tH1xzIK!fzDTB~5{moDt(@Cx80uO8f26pJdWS7#B1N#>XPu0*J>F3v>!eQd z=;k+e7o$8R5E)_FVriRGQKrUgn9#+Qq zh7umH$r_>fF@3nI(o}A)w9J25X>$a3>v9rl(s*v1qjr{EotMM2SLd}*;ACkiL>Lt! z@OGon-WQEUv>vZ~@hxJ`7jBV>{Af3BHduN}P znX+UNqseUI8Sj_}DPxg_yl>u~`{pKyj_VK4ob z*Oa4pUrh>%yVh<&@%q}eDE_E+Gm7sx_%e!revt0R?H^ZXMDc5N2T*=yeIANW)LT$| zOG6xrzt@n2;+K0E&>dQVFs+BSB1~Tm13`^1B8<6_*2(!Y-58H@(wYho{#H{1iYwa~ zXl~Xb%)RCv2(zsv8O1+qpKDhMY)eP++BU3# z)V}lxuD$dKKI4lW3`mbgBA$&$i;nB(&apSq_wUE>xzyJ(U_Ks>FdrSqy|b-_ zf$S4u2-AN8d-TM{KxF$egsE!JV!t^LrrT3d+-Svd;=#{W?18ppt_SN8hdwxLYMEOVhcAre^8c-rvTzHY-_J+T?k X9@)dV-H4Yz4r4FF&QOj+XF~o14I$Nf diff --git a/examples/zips/datascience.zip b/examples/zips/datascience.zip index fa41426cb9a5a6525dc5fe9b1556c459e90f631b..0e707c1173434ccc1a953aeb854d6ef3967a4f5b 100644 GIT binary patch delta 952 zcmX^2m+9PJCf)#VW)?065LmbP*F;`zcJ-!%DVj|OCo9TIF@uC+%)vrHVUW<~S{oH< zP7$DT4v>b)52Y;;(lUENIwn7qfrufQGTBbn6`>B(n2Q#UFzL;bmNS^Z=4`RH0Sh9V zBVywLQwVjAmNZ!Ls&HQ<36af05uez=672E*Fp15v@r#^fF0e$!R!fi@CpYer0rM|! zb%pZ9CI{?;IN55OJBpgcXndaS!5DfPxBH{$`Lx{&g&(&g426GfM>K{R!8>Cy#4hc0 z!Vojt<$+?>f?b$uSay4&sga)CwObv-tjoK7F~pqqpt^O}9zPVbwD#Jf@H_Xy>_UX$ Sm%Yvy=0@)G0gJ8Jrv?C(Qk32R delta 952 zcmX^2m+9PJCf)#VW)?065ZGGuW+JaP``2yjQoe6nH(60uiWwvnV-6Mq3WJ0;*V?E^ zbBX|!bAU8Vekg5;ke1mC(lPm=3`7jcl*x9ot_XFQ#$2>;gh_9fw4A{NHfM{q4OkG_ z91$B2m_n#?w4}j`SB3i`Nr-F~iul9^mSB(fhe>RXjb~&93nr$Rzy;@|1TlgIKc-s2 z1y7gcK^)PQt2X&$1|L`g;t&xe@BhxQhHJ6S^kM;<)0GP`9I9L#9$I0a6PB5pvoSDK z$ulr$PTrUyF?mBS=VXCByj+|N%%Fe=;>{X)fe@G1l)(ME8SWmNatD}=r~za)Bi(wpxPRIJt3`448j; zt1FZ*HaTD)#K~6M+)>mlM&t8r55~~bxZNK`&!_EPDEzn`VJQ4-JEAen2;LcsA$Dn} z6NZ@CE)Nv57VN@Q!?N2GO^x*AuHEVwW?kOxiy`K;2i2{+_V}TgrM1@4IXmZYZ&U2n~ zdB4>~+3KQ9S(G0n595U2^{KymmB}I7obxuFbH3NR1u7MaAi;Y$&F_sRp3nCY50AaM z=H4Kzc2K@9X%T z4EQX*kdDKcu-9M4KaR3*}DO8`U{~^&N)I9;$^{8q6{KHCw9^)s z8}v})(LiB(u!Mlfe|`7Zk5Ai#3GGLX4G-Ov0>`g5w_ z@t%_`naNtnJQ0{|&N{ms4n zpo1G@axmq@!>~P^r9aQPLq~VpWb-+p;fnIk!(v*i;r>kVNnttMX-f#NHSWtrJdoTN}A|350<`5oD$rYvId6hFLTiqyk7uqrSiW#R~Sf{Qs+P2fx1k(hx_%VzB)cN zu-sq?%st$A)(4wiYE;o0MwJ#So8!Y@_MY<2(?==H^o#QzS}ePneS7(0qmb$hBfHCV z>V=O6XxlWz2B(4Aozz})7NYnQcN{dgq$AAz77N0dT8mNqcI$g6ZfJW4+0$($2(M{B zh3sqXc?iEe6$h!VT?pfL9YvUMx0oaLQSTNtiG4nC7ohy|jw8r^&>?CR^9`Muh=05@ z2iYq9jM_mVw; zcmLf$FXF#&Nt}q!q;nCh>lET(Q$Q(-#Lz cSMUvHOf@6S@{}2Iny2v%KAfiSIrD1re+(LRuK)l5 delta 2654 zcmZuxYfO`86#guwjD}LBLN_Rb4#Qy4$$)qXE7VDZfd!gS9L#c2W~U+@C|MzKa&Ng> zI1E80 zyx;1gY;{qlD##6xD>>nJt@hVGReaFe_1Vh5uFv+lH$%BX5g>REB>TLP#Pj(c;^DDZ z*IXL}7c|O@ekgb(%kskJk^{miE=Ru4A2%;IG2Bam3X0pLNcG{E7C5TN_PL1|_)cME z>AQoH1Bjez<=f18Rq2)!XQq0ufAWmFkl_>?Z^#I4A&e%IInW|oG*mX<@?4Fkffi|$ z=|QcHk#KI}M^U6o8*SwRIqs8}Ic^u|V>LV|5_+^6R_U@fGLTl%(JpyfSl4|?d|yRx zXTYb?`E(qaF}r-&8OJ?`^rW}oZrAI|U@kz|sv!MLtc|v~ zT%QWnJvzuw36u~J`LFF9|KW+8(~F8614r1+SBPI*QZ zJlb`PB{NwIhNJ$;=JZ;IW3v9t*zb=!Vys}eJH|}%Fd#guM1l(yrl0y-XWIqG7}q!qT5*-KL|vWvcW#q3nd4jOk{c&$l)IBH<*@ll;MoA_ClY4TPTC z0_&%wt0UQ#f)+31+=GHRI*LFG-H>FoE=xPZg%>r_YaS|ok2oc`%_a2=H&EiFD|pp< zh&i3sb-KxpGUfzcH&JuGyy$;~6?H7vU6Dfxe>_~^k26=&O$j%9voh3ovscD-FKRs3 zc98MT+Op|<|E^-EDa@C=j^>}9KJ4OWxe98_8~l275IPtlIc%@^etWLJCcE9tYJ6=U z-avM<8WCN6mw#>gVAyC$ggX;qaNiRlA)NcB<`*je+Npeh%7i-K=?>Nz=pODlioJEb zYGAqE;-7n<;iMNfx747fH8RzDC~t}mdC_~yIZYp>Fw-wi_t0V)P3+st7aN15W+mC3 zp*dCfXn?*=M{H;|QoEDdYt8v6{@4`-O)V)1bFamMFs9Z*6u;H_K8hRL-a+U!IDBBxYr8f%Vy7nNB_O6o%V;zfv9o^XoDinXWw+_Wuda>@(v$*E( zXRA?ui(AYW`-<#yAinv&j}hL~--zN*`b$v!IM`AAANUZ(+XuwBSWo+DEsD>0ZE-Id zgLwDf4)!7bGv~zlhQbOiD5A9f;pZTKT(JI{-@SpSugN)(?MX`!|l&m1j9 z@r6-wUSixjb{NGUj^X`Qk7NDMy|$R&JyDGEgFI!(c6so9XeX^GJ~)Z@yX}IF#+kk- eSh|33Fm0*{VV0-Nh|@fcZ}7o1eb0uA@&5sng%lM4 diff --git a/examples/zips/disaster_recovery.zip b/examples/zips/disaster_recovery.zip index 3659b9b405dacbb82634367519f1cf39e93b870c..084410def131e17aa0bd9be67a8b7e61b4657a36 100644 GIT binary patch literal 13731 zcmeHtbyU@BxAi8aOFE@Hq+7aM8U*RCO}Bt_cQ;6HKw6|jT9htnX^;*9@AjPYy+_V_ zu1DTGzA?UUjJp}sAMClF#hmN6)?AO0EEF^X;QI@df2IE04}W|i01yI9+zf2&txX)6 zjV&Av9Gy&n`alySI~Nn6JF}W9JOGN?zr&ao{ORn52!Mdzf&u`bJ;8sj^xwWI^UvSZ z7^rU#v~w~sao%8!y z|8mYf^#!{z7Bt@jeFp^o7qx{>>C~MJc3g5fyuX0T zKep-YAq|6+aC*p7><9L3NA+}j&*ieJ$i$Tq)QdkwB~9>-nup4(V$^NgAj;t}dx#7i z$H65U<&y1KLZTUol*)DBLHB-RI7tvuFf))Mp4^l68XUVYF9~@wNUy8TB}=xWuh~89 z-_PC@nLPZs4Sk}2t8#U1{SY3WioOl9Iz*-eOQkR%T&1Iol}yF*UAK(PxXGr-Vgx8I zSd8g&A`Oa}XD33|GT>lv>R7Q--+K{4hM*d9RVr3hf}_8bG$no?&|{n$OGPIo2yMaj zB(-HvDO5)@fs+4(W(@ya7s`BTBNQdADEkIo57UJ=5&cwa8hz2o}OTsCNz?HVG#{TbIk zL*L8W_og?^Dm*Q<-{5MP_9_5kh!<*);-p8rEFFE6sc0g!E{u!G3rn#)@hU!FZ9BZ~ z)sC1ZbJ12e6^;O|J0;DmE>csdYJC80r84^mDL+WI2ZgUI_Fww~0~@d&nqy37C{?t{ z=hBu>i9b`Fo0XrtRILSZWkPYQG|S0Lc=_ZX7OeOeOuLAfciCm@Jbw|@I?GBG_EPj% zp@+2mn~Ng8G>+N>XRS0e=~vl0VP{ZIwbRa%jb85LYG@0ieNiTupeR#4g`V&xp!9a|1tExduRu#`qS@E*ZW?$VxYAZ^P%0`xKOA z!O@i`Fe@kc(d_5|ze2J^Z_0**yk(!@X*KA)U}QSTBu-%eJk@csef)~+dnx%-;U%hb zvWsB76F>q0-1k?wp|g>diPJxbI#Nm2Hh=|f!7(hhMsfg@ZVh~)z6~?_Tv4Ur`BTpb zvAlT!BRH7x;!=&Q#jmHh43o%yrSZ39Aj0~BC2asMuYn~lN=^zH$-B$4h_V(sTk#K1 z_#%n67tc3W-pP&y*S0yWRtQTd>CFw`1FhYQQwVtlibHK^*)ZGpGh5@4jeEBrCm0Fi z5UtOniPiL+pHf>y?LuW)FgoPTm}BoQ=)9ZcvtFz8o-5Y(jL+KV>v zKcOym*3LF2zZdF%NNbN;hwU5-lE6ECVK;(N+lr5-!I>U?lgKoq6?^Ctc__il0b25?4jY z?aALw`XLZsSih=Wfe;8NnT)X~CiHMZOkg00URHr;C#D>i$P2I!|1xo_rtNs4w`fku ziCvXa70;k!Uvz=o(~qM*MTzZbwo@9z{S?*&{bC*m5o9&A%mkI=skZ|#GtRcHnXn}p z&`4uO>>3n&<9?03cy^J()1B&ULiT!Z4duwOyb+NyEk?3ZKVexysdj=m`_rVtqe9%q zkF9WnmXDgC8)JM(niwUA)8hp4+Cb;-@CD}4?I#;2E5NJ6qhmqH%z&=2we{8|#Jn!M zVztiKG4*Q$C-V(9BU4oGqmCK8DNzZ5^q3RD<6+~lZYt|Q%Y&*_#$Etg{d|bR2n}wv zDMbF!pg&n3Zgdb?Nlg@Oc^4I8*y!e@abY6rhf}HPS+V_i>v4rhTf+xO_M?F4srFSa z)+heZhG9W_sBZ(tx)=yruKe1p)|E{2{n-1SmBV<}Vp^M#PA{#)hg%!rL#=P=?K6&Q ze~v_3Xr^fw^#Cx(=qr9ZAsE8Q;mei(R{IbTvbxw#GKVpP@1q7|f;_c#!g4Ztnc1PP zrPa1Gt&^k)$}_4krAcyFt<)-Q3VrS{I85lROSYHk)#6t-Q;Q6zbhQ1**Lw=xKTGB5 z*Dyq5C*Ia4nXj%unk49ZX&T#Zz!`e=Z;sUisO0%)gaVtj$85qeBfX0dThqqpWKQQ} zIkU{8RZ#LZb$T9`0Cd0AceXz1Qk=ojiR9E3w~Y9v)u$#nuB5nKauT{X zva!@BS))1Odshzb2dv%=B#yY)l;O4UA0wK@^#)9kydaXkbx1 zW+2q2b(pmm5)moJjENDdQ0ksYn_e|8Je}PILFEp#u{GO1oO3|hCMNR~u>0KN9-sPt zxxU;*0>p*F^ift*_gP!&(ZR|o=04J^Fn}{BGqRK!#IY`2Xp}V)myB?`7K?GeHEnqQ zC1LA8LTw?EWo9fy1L=kOZLAFG{1iRqSP|Sb(@Gi5Y+h{R3UB8!?+4A83YJ2Od|k@{ zjMln-Y&CgEVlqJMJ8d4f2YF4AXGYT2md5MGC5oeik+t@4fwki(h4o8_tTs+x!nL}> za?XGSL0E0FEm4xPpMz+a<M3ii*GGaq|v)wVrDzg$m8u$C)#uKndIHzJW7n&Kg5npA?^kvg`slq$|8buGtW2A^K~WW>x1sao$$|G#gn8ULB6)&{ovCT=E1&flBs zd$iSLHWV!HzX~~!xx#(fGg90O*}zIwI-nkqr12bHX<<3}ibq2~l2FV2c{^aWPl z`_o74ru93iS#**U3}Yb8rANt$x&!JaV#F%+YrF)V__&2Ap}(Z;O8~DHRxHS|7`4($=ELuw0%c*CpFNvrMNk4>D09r7fgU zDL=|73)!nU8`J93Nl_5w!R5RsTXz1f$#bmxe|QJ}|^T~9r7>l$5!{L7fkEC3j%Xe&d>1PuWvZPv8@6U8kQNit3%Sc7^g5@@9yCO?-n$ z7vu|d_nERE|FCrq+_>U_b;NmJ4gG4{I^xfQ_Q^3!dLh2iakUr9{7C-=(q6Hed39!7 z@!@{`BghZe)ny|)o^_k-Nmza~0sIefV68Ch-vcoB9;+f*p~+=&EqJB(&X5nz+6A`? zU%E&3l4z*ybRJDQH6Y*#YnC8Z^i_Sf>M$PdE8A@9Wfg{CxZT94C7)2MG~kcgRF)KE zC(BD)ojVeX6VM5MkS4QhVVXvMW;j(<4_kJTTyHz-Km-#dcWk->T(hx{Ydt*eM=};o zWROR`5rK{==)Ab9kUptQ92u^P1NMCjCCv_wY4iOs{qSxor61})sDuCjYM=oC{`;o# z9t~^a(_!0j7PQt4T8U*ym2`$dzlXtr{;C$aAyCPsuTA&*C*zDB%!R_KEoM5n=x{Vk zqX~-j4|zRdTTP(!0?Hqp-U@bFUBXV5H5@QsH2Jtfa1j@h3YE!h2)_eps?C~5U?NQ8 zLP0UTC=zNVS2H$&*J133RT8;nfXA3km!pGI#;`MLHD9gpiDzt* z;_Ophq>`$Itc=+FgAchDw86nhFIK11;7A&MLQJEN33=IJJq@Y_CCBW_2}F}0bg#eA zBrD@rUiT8<<~8wraUF(#QcXp0EcQ)Yr#8-n1cy7os)b^oBac(KyESza2+%F7GTwi= znKHILw7Iu{A-gt_g*SaYuWQFe(vY2u6d}mZ@zx9plCM61ua&JDXJDdu5AS9$txUAv zcZY%LD&;x}7^-C;)|WZXPx49qHRp0Xb@H)5G+R>v>9dDc#0zWMOp?9l$`rAO$ z@|7OWH5j`ugOl%MTr}2M)6WL)O&%XoV26wonNTdhH0Kh`?YXja8n4U8eO3}{*|mox zB-y=2DYLH~EL-91=|-LdeH?gJ&eyu&Oi==%v>hzZ?+9Q_P< z(aYf&#{AO75fl#$gu&B{vNpL_WmYZ5dpsq@*T)nkA85T+cuSnzOFpc{A(%*ghS(6S zRMtr7q=Q)UE_ZrCFU8d??TH5B_f4N)0>aJ1w)IS-Uz`!70pY$K9-sMKxu4lPxVHC>xY-#eC$;LHoghr!sNi|QO`^FA5x%o^v)46@4*RV${edYxHLgiu zn13$n8c?!xaxKjaSw+fyeAxs~QJ^V*F%d{%6c{!BZqwk zEtS4MWmVNF4FD%N32|)SIqQ%R_c?Q3NI{_D zcn6Wi7#mg1Mw{My&uVk1P>98<7YFX`BrF}@h|Kl(Kz?C56u1=<;L?BW#lJr4Bj3KUu5&BTE%sA;c}qw6P{#kEcJe^K*%G;hWbU-Fp8D-N=*2a_%{ z528W%LiajW#^FMxA^|fRz3N%_lydF5#1YnnK~&|#VaHlZoRoqT=|~HaBF-708fkzx zw9v*|6%;+FGR6EZO$_=7hD?SNJddVW?5NyF2z!m=*j~bU!$j9)lT{+cZwX5b#1B*| zS3kt13J)Q~KUi7F^L&0#wbr{{Omxg3C^cO7$R@bDKm}2)FlE}3GVJiw z`&6PuJ4^id{vM5ME$ILY_Eh$aT=sB8U%-7+H|FpWUSsXm7SytI+T+ zCbcA>1rT{ZUDNMQRF9Vz8uum|qE{z#KHhwrU`if5T*A2Z*ihG4Ry#iK+o)b9{iZvz zD~;_rHC03QqtXS3T9D^v4`<=o*;{X1&`v*!HY%5qxeD5&3rB5lKwCJCYClrX2Wc%a{tPCK zN%ro3f3h6+2K!#w|37-+raxlP8=jnKB&9t?Pd$nYLmC3&pBzkt@z$v-YBmEI)s_ zpY)a}616|jlpmtgm|H0g&I&G^EEdkR1A5ISE{1gk4H?!6#b5~;b}fJD5%Nolcv5pi zGan**TP0pS$ge=U>?T){srn? zrD?G(@f3lZe_U`wLi-O&GjTKmTG)S|(3xzEf3|xviIzv`WI+o&&oXSUaD&%iDtNTN z7xUJ#it3cI#LcrvTMXTl?aOUzAv-xY?7WEscQAts-Gi7}O1+-K>A zv5h?+RiJ7)LPWomO*%2BRCGr%yb9X(=zFC&G05q{&R9mDs5#h)aQJln@x&AoGv%;A zy=im?9iu~$vSQ9!-u~+=ebIT#oF*Q=2+AweuJVrtn*p9sEh#L)UYC=K-!t*|`$h79 z$i(kW*gbrTWULgi?>@x{7?0=I-u(Z*I}!hzJ5dk%!<``dcXwjr|37zva}v_uYN&*j z)|ASAiNsBU%`|{1I5$vkH(jki9eejd8p@2vS0NTxyUeGPE!Uroaantu!ekzTr0HbM zrh>vtMjM|foyrgKA7FT<&I>Ls#6(BOZv+c8S{S7lK>^)QPqx;3o9EQy0u3h@w#VT8 zEmzgv8;4pdcnCqkS&QN?5@Vf|NnUH&2gW{QO9j!%yBX(e`7fWnA|F#C7P8@>P~Mqh z$VP1;BFw>nbdz%>=ee;xtc?w$(k!DsIoWYWMyg_JI*lmKHJI|YQ6aVV`Kvo2KLxsx zcxFRf!NXP(lc0i0tFBetX|wmGcx$)dHF>B&=g}vuTv)Xiks-O?I0#LkmTL~}$aVy- zDw{}$IX=rXn{WlV80QFpBm}_j#D_AM-`$C9B6?)5-rXPEi8j;;XZN@!CPTI~%3{X- zsn7G*^*}3I?fit#k{vsN%}CMZ_Km5{`KIXRz&E$f|K?6u{N_$nxW6H1)Nuh#WkjHC zvbE%YI9YVomJR#vPDIttR=)2J7E}UyKhX2@ksvm5um#tsg$+#dn&@%Rbk!C_@i?N`L(f@!48FQ|u>c3xUU<^buu_lp%NG6U4#Nes zV%{xshxIB-m}JQIQR-Jg1`on$kLFkw2OB-qdg^Gd%!;Z-Z@v;gyZ*%KEycWH+sM%e zH(;fsB^m{ul&OLhvd8;4lkpIq9}7R}hh-IYCK;&C36BC=!sThLe!UV(BmeqBzczvU zV>vtG+2vLK+x0LQ{rq;F+*}fo@C*(&l>AOKy-WB zc|o8~R2mnhhnVmD?(vHB2V%dO^O^OD-J6Mb-q5@c=w;(@o(0L~1vHG)`6PytNt$@< z&vD|^_1CQO%j)|PlQK5uUBzho%>oolb!GPUT;B%b0^as<<;AlhNR+203ty^9po@h_ zilR@H7#(#E{A+=B+;JL$lL$Xw)L)#5zwi=8%y%51Xt~r+A4@C>{aC!~4DnO@47aod zb8CNg;%gO(-xg@aFnpQ_^)+bLUyc%B>PaL0j+~g!v5S-3$;Hl@;J%~~xBK>07WrNy zo5GJ~j=u7pg$KMmv|9?U7gOn~l&wSv;LRcqCgyE(oTj7SaV7E`CL46NFQ3poQk%Zu zkga2Z7&;hbC_t1gXo^CnDXX<*cKRm6a%p4<6GhKS(=8?*O?M zMo}lX7@j`C*>NJot=rgCF3QY?_jlsFMUi?(<&KuyoDDm1n~bcJY+YQxJeD{j&I>Ebo!n{kZp!Xs@zD*$*e_L7r>q+&(B_ZMEbL`Tq2Y00qpK!Jo z3YG#7ctZZQ%>?r=nl7sHigQ9};5i~f4)u|8Fhy|&cTPg7luZduUU2E_q|<4wm0jLu zEAofyZLX6FoxKV&%nPD~@832YpY{eo$f+t@#mX}h9zVp*L}pgla%C3`)ERb*YBy$8 z!hgxp{!w+!UyB`Gcb$iw9||9N8zG(s7ilSci3XWUX#kpInzmEplIeGKDY%r>$33eHFB7W z^hd>(xp&lN=GQtrqytE?n3&iuV~F7R;=1QZ9U5R(4{K#mBPLSjr<$CZ=&h7{r9FNs zkT17g!lLy?%JfuIVC(35#XZ9ZH@k*K^O8u)Nq0@I7gJSA&Tx?Rp#}qUb+Vk5fDlel zmNUc5TSZ;IHl9U@t1FA0JVmg_^V#R<@@)BPAHX*eQu6Vb>XOMDepzz9mf7jt8^d-J z)2!|rujufunFB{tn|q^ROh?-qc$=Y~Xpi9RXtUf3=*X1KnIm76E3Uvc@YWumltWWY z66|JsSX?&BQEWwJOt0=H!1$V@+0q{|YAo(!1>#5VEUylJLy97MkDQmqR?_&LUs zRW6tfPQX55En)BV8Yn&ul4`qNxROsv%qLpFW?~rB`CttpmQu6A?bYBk5u;mxRqq0N z<@J;$3caOeu@#y8+!gB-52fKOs7Od-pS`Z(uVTJ8XF(??aUYSJiLaY2m zkPf5OBJ;h&G@-uENPgruJP8#$6h40=?B6&0_F2X&QZL1%m-1|)Z%$5KgYgPQ?I+hn zo>FIs`y7@UR--ld;x|eULDF-YrSl<;kn~!&g$rai43X;5tw%COV>}zthE2ww)3^*v z6ry_)JKR?hagacOSXD}W8t0t~VIt9;t97fnrUfgv=IdiQE3ex0;j{=@aSar;+Y3zB zqt;7O^3wIi>qD(i>c&ux{ZwXqr5Q-_1`#D6qoP>hwmI(b2vJEE0+JZ&@5f~V04}&g z|NcS)>wpnqQCyL(Od_fvuS2Pp7s zy+7#R1oE2|`D>xvy-)aKC^_Km;!hI%H?Yh!n%>Yu^= zz23?1=>0k2&*A=M3jYk~&-C84gnv9&%dY|b&$NBlSNjqEoaC3zd2dDE^`L%46d?U2 z#Q#vocL)9-aiu7J3HN`dUbZ{x<);26$p2KccN^v(&w4`pQ{W%k=l_nrFtFej2!I9t N0D$EZN&o$~{{j*w!Hoa_ literal 13688 zcmeHtbyU@R)9)swMFgY~0qKyI?(PQZ&P{jcmM-a%Ez>Ub_8;ue%=|tx-_Oi^WhJ1X5dhy`mA2c;|N7(4AGiQKfT6RlrL~2j z9i4%xovxj|p{=&9p}v))p{)y@k|I0+>bR=J-~{~b;EV`>fc^{x06@Ee|6TUqekk3~ zKh(fh+uGL3-caA()C#C=Y-{CU{YxNpFd*E&tamI+2o?t0V1NVw2;Cj%2jH~!M*rpK zcVGYJ=Z><3%p5Oj)4EFNJOM8x2tY}Of^MP|6i@#6*uZkTti0nZd%Zca-{E3?y<LiW^}Y6k(T#21M#6Nw7A`W+P~I_}9yVDDZ-1gN ziYRi8nwR?Yo{($^t1z&;I&A*9oBEXW-kivhekqUV-#OuQLlYd@NPY`|LGRuj)saP& z?p5uyA;~2WdTZMTpI3?HucWnNl%L6UI+HT4hr;qKU>U(L~P0b^F2mCNkg`+df1Y*w39BbJ~ z^caR*T-jzH#Fb-lIP;{_?v^xN%|ePlA4P|fi57K+2|A)xC0&3F4yJyZ6Ca(8C{MLl z0c2F{c_7gBFh&`73o3<5<1#cH_F9vu@go8Ztu_S9sX#9!1(!EKBDS^tV4rR z2Jj8Dkd$(Am(}U zF$lV6l`it4g$0xa7m|6RddC_H6{#hzEWSy#f#^y@+$$Rx)I$&7)X4_Ch#F~eoUG6u z??@wh_CbkXxe(Cr<9}8DybrC-eq~W~vgmxcRw|`@cj&{bV~@IAsGTCGk#=;uan?ED z7U86&W4CYnq;?>U!aGjM10y-sM-7l-qE+keS0iEtLaE}E62oKRhqzp|fIcM|<0o?;3DeXY2cfi0dmZli_8wl>PM8KNVi=ques;p!e(skLZ z2LiRo8JA~4WgNEyI+lBe;|C6=E<6ChefNMmT3I+)8vap>e-YMBrB>h^JrY;9HlH)@ zh(*De5h&HQXA+rwq_`cW9?7p&U7V7)ic<_F4&&@ZK6q|AE~W~U!3`ZL$Q`{GHDHgB zZePh_>$0*$PT0P^`la39(|C`}+K^ravUF9!l9wH^Mpcw_6uw`l1Ra_OQCL-1*|*$) zJwPHcWDEhtp*H}+iFm2#iY%7@R7;yGaq&fqS(kLQL4fcwbElY!`ul*MIN>R!u1@|q zUt^SbmKPa?LI~CHfCc?xyp$-98Yz~GXW7N*CFN)#)AcTwpB7Pcs6$Z^ErTOP30E=4 z?Bp_R0?0Kt<(hlY`cpD3QFPQblQm?6P;%ZSzEFYcgaIJ}?~_hJnSCIMK>K!lff`IK zlm-2XXZ=z9QAB+DebSNVSaMMfCX5<#?9Nif%ahnsFntWZR&yyYUj50a0Nr8 z2Lfhi6R?LQpXAM~s@Dg*0X+^jbnHHI^nFRsKgMbsqx)PqGokaPS`KL7jw8>*L?DYT3* zlp$)$x-XYF%$x)?ZUd(-_Y3VV0M|mlAGD=m)1yqcb(rbcd;5^bLgyf>QgQEHf0l3K zw1Acfua&FmIMJ$ImDrd%K@92o4A77hESI|4yu&sPq8gCX8n>#^1HPbTliUML-&bk; zPO}JhtsC~2*6hfFma5wycal`hG<`!0!%wcB;$MW$LX{D_?=_Ld4{d%}87mVbnBJyM z;+xTWeFQtPw-c1#)cwdfvbmfvORhqo++;=9y>ICR$1*|4Ec9Az^(nqtKH0J2>0AG+ z?9TG7LCzwl+tl~7P}ZRbQy=Lb0Kjv1>f7rYYXfyH4ehLT^$mZ){Zz$P;5aWTnETJD z@zg17X03Vo`SZ~uBYBHuJKiTvuNdSU&u*7MW%M;O)&n2T*&uBaJaOZ)`qbzWlQ{gb z>W!mt2`dWin1rf^W^>}<-tsZ}E>dnVz=4GhS=1QfNP{vc+yaSJoUcWV-k{flA|&e! zuc_}n2Gd)r6$QPs#|`W%uh4YNM9 zrpjJSB`HXPCxE7I_2Wf*J8LSx;$c*%dRanCXR7{}cR4pMgSlaK0sI>>b z{%V^Yh|w(37%n35DUh5_>cPvC5N_{NQ4AcFNXNGFQ)=eTSCu>6(c-Cv>{%U?MHSR( zXersla%wpJE9ufW2N_Y7U);M}Cd-b4lB@`o8#F!Fz#F#!EwYNw6abAtLLby%g^`fex zWa2m>h|j;LrMj2l$%fF#!IieI)%_eJd{Rb5alrwt*^bB~`B~vKE9voQAK}oDZBcWD zL&CZ|R^PNK7tnGE&oieB?996G7>92XbX7DCBS*W2SX25Or<~GVwNkC#Bk3#Hkf(V) z<+X^96$clWOUtnobsUJaxGufMFITv^g-&a_-|8Wx*uM1g(%kJNRoHx!#YdD1XC)Je z(*35)@5A(Z;`r85q7bX-r6jd6d~zYrkg+>bnbueBe=m_~eoa&hU7)t1v!TAjcbR+# zfvhKi=xx1|eo*gA5{32=yf;l~PkB--I3JI18UM7DS@UufoSE zk&o|e@8@H0XTQsP$<=l^N}2(yzuXq@om-Dr45hxQz%)}9`!NVcj*#M?xurD#G zGy6d88`E*82513pT}93BnQ9M@SuSJjRBHig72~55Jge^Ei6&BUp1Z z>tO);&ND?Mb5zMR)&=+Et{LL~Su0Qz-pEeKi6$pK1YOaZl+d^HzhA zo}!J~E(Sgb>Z=X33gY)lZ*@7tH{?XPnVw`Ot;`(?MsvLY-AfYRHZ@8j{;D@sS_NBl z8eat*vB8H4mpn3Bwq3Qfj&3?Q?nN>Xh^3Z7{>Bd-nca4JUM%+IZS2rsX|!$6br4ZH zD6-jWbo$}#P}+K8>t}<*m;%Ig=3omDUkA6 zG2nZ-F#(qw2?}ZRZs}Qqz;o0Vw6oJ5k+DR{rE-dRWlc>tHdGLOGJzLo=Hko+aZRa) z3A9#EP}%DSs3ukN;u?`|of2k2o_m=1vpA#@Pam?WKq7+B3i&f(yu$VeFBR17PUSSs zNLestho_mu%zzlp*=(kk_ObeohEhsKXpahc6J0#l-X(1zDAY&+Hd0h(+u>)r#|o8CV`AFqS`Y+T_|5aX29s8Ecemw192ZeK6OqrF-3K!rLzKd` zq@w@w9iAvHdx}_f#5|^~U7kV2#vadwEGNY*G5s|&4@bHe`}MmB-t|sBu|wPVgQSgp z2{Vl5f$ZK|O4ohM1f0+@Q6*$0M4DpltJ%4|8pLM+|6bP2hgdMg zlLPv)o{4hM*vq4`f)10<0?MWh{v|%&RM>L!M)(&5w|K;b&K8V{ZSd~i$LT(pwYe0| z6+ul+$keU(ak6$#AjwkUIk3v1?lWMDgl!E_FBOq!b;R^VCXiOs!5zaQmpQSv@|k3? z^4~~6JTFMya`rIQHjpWfCPz^vYbVeoRMRUw{T*YKtGy~cTO`y($678pUOl zR0e2ZFs#Ye6XY?unn*GbK&p_0l$ZH(kJPX`inR8#JW6y=z0=9*2Z~``-J;2Y_X^&O zHYi6S{rAgHQ<~FT$1+BsO$>ne`AZP}@}>bkoFMb!jCL36)m~;2m$>zPA$W!~k_q8x zzkR{|_gBj5#O`kiE769rM+VM>;+Qwkxx2U}>oUho5X5pANJ6}+w3+hF^-6mI%g-m- zTQEu&Osi7;sR$P>b*;Hzcl{RSx1rsyQ7oAQuTNdvnok?tYic=sXz}Gt7wU+4{H?q_ zvJo^@W8kUZUt}ZUJh-sP>pw&7Bq*!VnqTCePtn<@Ysk{Aa(t5cMplgei;u=f(dj^q zi#HHZn8he`bBf1<_}>a+i4)nsWCzAOz(irD9}?>>mzDbn%1)wF8E+NJGU!PwU}qme z73lJk%8LQ8-s;O!P)Jm(DZ@v&=1uAD>Yd{hF@AN7F`>XlR>+Xb*d=J<=i}V{fbSU3 z=>a^$iaPu%$Kt1YD4IH2YBl3RV#g#3btqD{n%Cj|*7@^2qjPxH>$i*ol^5kln;qFJ zJup{&PoExK;X56TRJ%{-^B@Bj7FoFHG|9!j-Mh`6o6QZ^UD@+bYx7TQ^MA6n`D>nc zk627{1bqB=fRBH^yVCT}BKKFb^Q&^FD5U@{ca0Y+Ci4V3fs`b=eL(_b*#dcl^k25} zAAFsCU_&AjErlF&J=BL1q|Z@9UyKseaPh^l(zV_XA~C;WiY)<2suu$xvNLN3IvnP;|u>8@zs7z&ykG0=7 zilRxEyh|2@mVt|o*eF|H(?Im}vvEg^?tiUAiJBoppv&KOO&k_N75`;7GpM_G8j)C4WH43AN2u zs1BYwE3w&llR+cpL|15}I@uHvGox>kR3j|&;LA7X$rdUBZw7W**vb`ip~&}^>-=y- zW?oM!qSTr6&pSc&P1Ay?I+D#*jUY+=FXA4HchJJpjbrw*_p68x6!~hz!KJ;@PDTFW zOP{*VIxzT^h|U0*CbAq`T@q?-%6-97aYcZxw7T=5iJK$JymcJvddDwI@PP!C#Yc@b zK_-g(-pf<qqq6U?{B*yt@p$!{| z+L7{J`h|@`#C&>C(>-`4fnO58Y;Q&^Ri)qX0HeUGPLf!G*4CXN}qs zt$GWn`Rt#GZPrRjVd5cMM#yplb?*gJ9L~`%_Sd*7bykv}8|Re?e7hjfy!^o8AxgIn ztYPkf>ob3$CJ;`OPWcohoj%dS5|53bbHvBf3(FwjK-gFIIwaiI3@%e`<>H(-iTJ`> zyW$nw*c&Fqub&$AxA0jGr365Bdh5p73){W3!XB+Koow+(x{nBQE>G5lT>?=lSeXBGF)D(?TKRooC;@LO|m z8vqGj#r@ufgYGvc9Ex%>V9D<}{Fcqo4G>gYA+!>7uOlI_A}omLD^}uZbW*OP83!N4 zar27AtX{O^wxOp*W*3|8VW9$q$x{y9N9!P#Q(7q}8+8ARxk4pH35 zA;@6{HPPJ>1~xhblND;L3KKJQYMij8dPzAobXf`?*ml!p{?A+ zR%j%zwLw&*HB}G-Kr(7!pbS0Ez0}9_PLS>nJs4C=dzmxTX|P-4rmo2Lmf+L;WJJCo zV+_l1oZbh?W4{7vX~Mjj_0RATSxVCoy3y~JC=bMP_@mg;=CVHt1wb*RI>^*iT+NUK z(*^pNuge_nz-#kpDxkD`UDwt%o;rFsxs;Q!Grmk@35j#(xx`+kt1;DEM1MT;9LkFWagd<${gXE`pxGoYl1M{1 z_yK|ml?|K;RyPAOWoIt@cZ>?mo)8X(@)qV92XTWGqJti_=|m-TyAx(^9_GPB$UU{l#kh$q^73$9~+#e#lXCQ z&2C*L2zD?h?ino=e$sd};dAh9h$V>W#UfO7QY)%i7x{gEOUtbA&@cQZ4dnP$s3Kf` zk54g7S5SeeGR*TQ9B9;}?Lno!{7458N?}b@L1fv|G~tS49b706PAJP!)>%24aOaB9Q`AgNf4lR1!v2)itrL%7nb z2Z*#N*TQHb&@_kCVdHV;RL+89c`13K278J__g>*5mKKs7M|&hf7z%e}s9mY9s=-RG zdU=}7N-5Tk9_Jy;td@jtciARuk!i)rx@&l0_uQ|F>p+u>`cMQsR}CPnLqy3!E6$g` zs*gT6M3j|)fFywWaqo%?zyb^D?=Muq4&V3RKfQ4a^T&0|jqiAGm1<{QW!nerE#S-nZYxRz$rc_J2sf+k4HM z762dK(Sq-f;eT&Ae~$w;#>KikN0!9|C-SL4Ct@$-pumnx1KNz{%-;O&vN_r z`0Hj^Ngw|f{GBuU=8?j1%VBe(-$MKk^Z0hpe$!KRlHbDppJgxOEmx_@ehczH&Dq<6 i`KGVE6h8&NA)o&pePLk15(t0+{sMs0MUU$HyZ;43>F%EZ diff --git a/examples/zips/dns.zip b/examples/zips/dns.zip index f27cc1949fcd29a5a8720cced66ae75fc55a8667..9b9a220f06d79ed950116461f5407ebf76a634e0 100644 GIT binary patch delta 943 zcmbOoH#?3uz?+$civa}IE&er;S6M~9>0pW`5SLbPGcdBeWM*JssRqiTsteI#hpL-A zUqDI_s5Q*CGk`UdiGg7SCj*1rLvxHuV@K?;F*}QvOgcP!|F)|3p&X)0m82d)f5^k)H{0@k*&lTV* zC#xxb1N%r`2@#_3z-v;5N66$|$~(ad%T#pWCazQofSCA4)esb$lQ*i1P3G5xgpt3R z1yoE1tZ}896AGVK-5!OXr|y8lzo71g!ne_IM&U2i2!-+yc1mbkqo^s>M78s#rW=MH zM=eVXu{l~O`X*@yq8MAO?Tf;H1m`215~zdfy-hkWt0BQ5rR$DjMzb!e{A*oQ?}zK5 OnzuvG3atODo*DpL!*T@x delta 943 zcmbOoH#?3uz?+$civa|-7QLCstE}>M+q#tRKwMhE&A`a=l9_>lr5Y%UsxCx}9jb2f zd;uvzpw=+k&H&a-CI*HToD2+dlM9)}C*M)y;o@Xq1}OyMjdz=wn1Ko>Co>y@H3P*q z&t@)z2#T;7!3BNUL>R#;Q`l|bg3H-OSiyq(cue7fzj$OJDy8_`VS@rW}{{wK`_R&6S(O;m79ZV`nTi)_^$QD?ZR zYGPj?R>?}*!v&Kits#zID1{J2v7cQA5>m*<#>gNXJ6pyNV(c3^OSrK*@;e~LK39ON zoUEq!4eTR%B}9nA1FuOL9wC!=DenX;EK|{eo48UX0Ak`FRYOp0PTr_4Hkn@&5=Q=N z7Em!6u*Q{YPAGg{b$b+kp1K1H|AM*~3g1S<8HK-4BNWO<*eRiDjiRPh6V=X}nr;|+ z9JMSl#O7$B=$oV+h+=H9wl50*5uA^3N}vv^_crOktcC=Kl&(998O^$=@~?GKy&tZJ OYTgb#E3p2rdTIbzo~U2| diff --git a/examples/zips/em_warehouse.zip b/examples/zips/em_warehouse.zip index 2e91e89431accee22f03f26237d2842691003f84..cdfcee37e3ff30e7298c73d203ef3e06b65b1bd3 100644 GIT binary patch delta 156 zcmew%^h1a@z?+$civa}IE&er;SBG7_>0pXx)4_=jQp_NcSSzpyP;}zFeISv^@r4FE~( BJCOhY delta 156 zcmew%^h1a@z?+$civa|-7QLCstHb_v+q#tR+ty8VkYWaj#9DzxfT9!U?E{HSj%PH5 z32mOu7|sY5{K{kv7c^&H$O0C;&2GgE)Hqp!Lk7$@=kP$`FXV7W;j?jig84z5Y5+k; BMFju= diff --git a/examples/zips/email.zip b/examples/zips/email.zip index 64947de17cd07b268fa39dba1205832e1b09b459..6ede4862b50f14ecdc2183f9daa84d608ff2a54b 100644 GIT binary patch delta 399 zcmZ3WvOtA5z?+$civa}IE&er;S5-y5>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRi~ zZFZ14Al}&VgpnDjb#gwF2~2GBDyDT1!Dtp^nBe58EW5x8gIIN8Vw>AoXG0XKu5aq>0AvEK`9=%J)1*#cp!qwygD$Ilc(`s09&5PXUq(A z_2h&6GGP8bK1&q7B)=01zn0$-h5vxx8ij8wV1vS+EntVj|1DsP!jBR}HE*w=6lr5Y#;QYQkWIl$_| zwAn%GfOuoa6GmpB*2(!yCNQzhtC-e71fyAuVS*wPQ@MdP=VgP}4i+@ezRby9gI+&u_ba0}T6f;O9To)_?6y4a}!~_zWEWm66 z6PxVKybCPG!J-cn+ib@Y$Osmk#A?C})Hu0|O$N+=!D@}dcV%-z;jd(~1@m9BsQ~~? C);l-= delta 156 zcmeC@>*wPQ@MdP=VgP}yMQ;ksZEpy0pXx)4_=jQp_NcSSPRuP;}!m2S$+4=1>WEO5=6FR=tNgH@_=Siw|IPUqMQ7E|Z6gNbd<;Y@}o zyu{-N6P&Eh`yZ@Olg}9@wz-&33}Q_WzbRbs1b;9@P)^VsE*K-o0TE0Wa)k*_-YoPS zY~);Fgv&n&Z-FRWE@}f)xcQZ+5EEGCe{l=Apq<1%h|2$xR?NV_nfy^k2COJrDgcFl zRw^2W?v diff --git a/examples/zips/functions.zip b/examples/zips/functions.zip index 01f6f851cece5b6b1fa5e804ecfd893d3742d2a3..b9c857736459bc1aa15b3b7c9db49c9e802eb77f 100644 GIT binary patch delta 193 zcmbO%Jz1JJz?+$civa}IE&er;SCd`6>0pXx)4_?hQp_NcCYiZfT9~Gnz4d}CZA$8 zhlx$*VA~BAJH}=N6WjcsEr1a$7{p-;7wqE@VFn8>? diff --git a/examples/zips/fusionapps.zip b/examples/zips/fusionapps.zip index 5034048f6410444e789d6e8313bd416e3d57e5cf..c795c851c9514e886b1ced45b1ccb96fbe18150e 100644 GIT binary patch delta 1003 zcmcZ;e0pXx)4|Ds3L=~ciRfS?2`NFK+Ay~Wj_U@D z3=CVD7#MOVH*#o9=3w*%s{$G^xnE3sb33CvBQsFx+Kzq``_AHQOo1Dky2-6OjI|VgU;t;kSSZPG%O^2N4r+#n7xP zmEnoX7$VV`_Jm=#0AOW`=U20syNh=v}~5DbMZVl8lm{bF7ag?Ge_ z;euikfiUZwFmzv#L|9`gbqV5oE?G#VLE;<|Ox3c8VEQi02vPW3-XFunJcTN_)$bJ+ zL#&>vWC05J$%X1N;2?UhlnCZGszCTf$`euKRaGKUIMiz2VB-vQ=t(^mrkRBw_6 delta 1003 zcmcZ;e)+Q z#~OgF5Nyvpy~r2(Kzj}W?MVmQvp|wI;bdS& zct#3relbTWOxNc39J~-q|8vANf=MB#6Fe+(1z6sq7>zgJic zv3jbK1t{Pr7plvEgXq0dBADN(0^t`aPehSdRf$BAU!YQtBJZdgha!JawHrk~Pc0fn z{hUQ2S`9Z8^-nc|QRJgEi&5m?YX+dmCu-%O%4;Q|$QNr*LgB0H uIHIc8l%Bj)#}q})A01RP^VEQ9bRAICu0pXx)4_=gML6N&lk>P#CpJhS=l;FUZXk8p6rI3^xm`eljDo4P1i@vlug2LoAyGOmOlXwmnco zOwsI`yoDX1_d9zD6Ifjymp!_=i(Cjt$#I{AsC&h046|di3SS_^r4{@ZAO}vqC@2Fq z?4XeJs=G`s3#e?e}Z&=5`rX1G~k^^+NyZQvSQn8ldE8e-WjV1kq9uL&O{fLQvFv5R{&LNk9Wdjf|id3co|p4NZ?TihQULL_NY@Ule%* SVTheDH!Kr&1k1k?Rs#Uh1j8@@ diff --git a/examples/zips/health_checks.zip b/examples/zips/health_checks.zip index 7a62537d3c1c1d39c077f5d36cace7418f10544c..633483ca738e273b9617e5f6ef970b5f49cbdfbb 100644 GIT binary patch delta 728 zcmez2^23EUz?+$civa}IE&er;SC?JA>0pXx)4_?3Qp_NcI46XN$mI8&Y+%tNkzi4v z+RZAAice;u>X-4ZgQ(vr22{_*Gr3zp1WgYg(CRSW zoqVo$m>3vlaZWZ6mxZe2pUfsG3Ab8J@EgP^c@b-v;N(P+{a~jni<-g2HYbRNLHx5* z%md9Xuv%5|7`WOFaUN!{;B+Z#P?%2sC@(g-UmhF-liy2APv)04g^J67)ulj3Cn| z&*HSgruGM?CtR%u*IJ0Vvp6*-EAR?oQy<2QP``|K9Yp<3F`#-bp2^(;B4~Q}fL4d` z?&Nd5!^FTai*vGpxGYp9|712nNx0Q&g5MxU$%|OS1Scno><2qtS=00pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRiq zLw1llAfDK>hZ(4IvNxj+OlWf*V=yCF@CuV5Gf>UsOlBD{U!B<=h2Oz!1?C@RRs#Sr CmM{MR delta 141 zcmaFO{+gXPz?+$civa|-7QLCstE}>M+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^d z4B0{IfOulh9%i7<$=-}QFrm$LjKPdx!7EIL%s@4hGnr+;e064f6n+P@6_|gNSq%XA CP&XC; diff --git a/examples/zips/identity.zip b/examples/zips/identity.zip index 49266b367f0790af3142b68fc2d421b95087db49..b7292a38186a65807f20db2651688a680b862cf3 100644 GIT binary patch delta 1010 zcmX?5f1sW>z?+$civa}IE&er;SA$)>>0pXx)4_>0Qp_NcNF%TaP;}!YTSh^kP}u!b zZyDv77#Kv@7#Nf%8}f@z{>mr@Q?*%$$$|-_bFwcBT1c`QP31(^+{ob zJ@O(-5S1>X?r@cpL^C0R|HRB-f|ISqcZ2QuDXtF_+pI5P$_f@tm$icnu94+}=-w%3 z2p9Y)mjh!Cz{HD70H=8pzs?^ z-BI{2;qqdf@H9Bt+sqS1)i$$O6uzl>01AJ(c?b$$)*>8*Kg}W#h0ke;YF>wBD2n`l zOBWP=s+BDY|A>_j3g5`u9)&*{jsL~k5k)@S2G#t%Hg+iTvbHfO{MojCD12@^RQF`r Tq1u1i4%L5N_P${Kv+UIXtVNhl delta 1010 zcmX?5f1sW>z?+$civa|-7QLCstHJ(t+q#tR+ty9AkzxjkL>hrbfT9~G*)j?Og~INi zddn!s#K0iJ#=xLF*^pm!@>fPNn5xY}OcqQaos)f8;957gvD||Qrn6h4*)aJSyFXmB z3`Z^_SaT1j6I}2r=U-;9;8k8XnBZh3zJFjbWqwbX*ydvXixA!Jg3fTkiGrpOt4|6e z?2#8yf~a&6b%(2*B$^2k{3m7x6P#=ffW;#H36~e+gr~vD-e#UCs|=K_(!aKQ20jH_9*0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRiu zcXp6EAl|sCf{7WZb+RtABTQ^^Df2lr5Y#;QYQkWIl$^t z+}T0ufOzAk3MOWt*2%iejxe#wrOXGxVwNm6FtN=wEb)wB!F#NZ%s`Ekx!7gEd`GrW T6#fo2e-yqZyBC;W#;yhc0y;*i diff --git a/examples/zips/identity_domains.zip b/examples/zips/identity_domains.zip index a6e9545374aa530a772f227354314aaef2186889..77255fbdfaa34026ba98a444c36dfe58ed905ce5 100644 GIT binary patch delta 1136 zcmX^6h4JhcM&1B#W)?065LmbP*F;_e74@crDVjiBTEWf0$nuhzfq|tOC<{_20;D;> z>JnYqLF#~bYroR$0z( z4;S3azZ{}6T__MPxL;@jry$UxFsB?-t&22C@55$2KNk zAqIvy%?u2RV7nX2Sorly(n3R!93Y^dE(A8C$`Rp!la7lR!Gd|tZg7KlJG(+$#q4eg z7j$+Hhp3$EVGS3&?~w@+^!9>>{pRUj&mcZ+@U?}hoP0rEX7dBze-Md>0SMK)fkDjR z5M*R#5b|II#w9Rv)xf@38zKnPzxilL62vC0FblX~W>_91MsG#IgKD#Kv^m7}v2k8- zmFwa64BSoRb~|5&W11_tIw5>{Sr&Jj%5LMf2pq zLK$#aI^_kU@VDm$pzt;G{ZRNb^P^GtVg0b)Eht<8 delta 1136 zcmX^6h4JhcM&1B#W)?065ZGGuW+JbF%GYh{QoaLmX$3a}Bg;!>1_qXDpe#t82$1Fg zt4nlc2dM+%jcX4uF$1+uE?{zw@tl8N}{K9ov|E zg%}v-G&3+Lg6(c7W8v2;Nec}@a)5w-x)9imDo2C^PC71P1PkUlyTJ|K?d%G16|=h~ zT+rD)9HMfrhc#UAzDFiR(Ax_h_M4}BJ%jkP!Pge1a`FXvnavM;|3M@k1|U@H1_m*M zLy(b~LCAv<7?;4vRRjBCZHORD|K_71Nf4W~!Ytr|nPGX57`+t*530?|(dH1>$HsZV zRj!NcfCyS9AzWXb1U2(PvL{@nL5d_qrB6CSa87y690Y!rz`3fWp_z_e0^&%#TLlixv2y@LLPwQTS|y9w_{R!Y~y6i$Wh1epnHz z{U?foP~>fjT~YXpi&4#!E(t-ApIG9K!v9s`iNa4UMfLx!Qg0M__cB!ZJ!M`f@*3rC kDEtZKsP1Q~h(M9AsX(>=c||yid_pBE|7In`J?d3z0Pyh{m;e9( diff --git a/examples/zips/integration.zip b/examples/zips/integration.zip index e10b20edd3d004e6bc3f79aec3c6cbc962acae0b..87d9848fc41959ea101bae337e8dca45f10fa955 100644 GIT binary patch delta 155 zcmcb@e}$hnz?+$civa}IE&er;SDRhE>0pXx)4_@MQp_Nc7$dLWOoAd*RiVs E06Q8!5C8xG delta 155 zcmcb@e}$hnz?+$civa|-7QLCstIhs(+q#tR+ty9AmtqEq#2A4^fTA0xsxpIwChujo zgo#c5%e);dww=WUCbsz#iytFc(3#DW8K`mcLpB*Oe;%6yGJg`gJ2H22Cc6`uzm8oE E04V`Sga7~l diff --git a/examples/zips/jms.zip b/examples/zips/jms.zip index b6adc7f620e11692d3f666980d45e395a0a0ce2d..a33c7b6bb4bea9888d6834de8d7ccc1e19958041 100644 GIT binary patch delta 1166 zcmaDJ^*o90pXx)4|D#q9U9Ki4Yqk2`Off+AYptA)xw= z|8$r@LX&lw4bhcNZeq58soQ*zIh_%#P@5H^5U6=_GV2bom>ioihUQW>E4b!uY;F+E z|JhA26ozwH!xhftm-+_4ZU#{a26OQxfz>WRI;|CGcWtN-Fug=F48Uob<2`+G`OkTi;@a}!S8OSxM*a*U_|cDLAxB0{fTv>Bp< zRooNVXmFr>QjVTB3m7QVSr{0sz=85dQvoedCjaG<+5A)->Z1lpEo4)`J~<}|kJQa< zQm-IM;BHKZpmQC34y^G4YN#mq1jClvWzDxN6v zs;bc_@{3fHQ21(URw(M@m82)nRZ~Gx^H>eyPMEtuYSPqE)vQrRRU@L|k77ovMi`1c ze>EIYHq)$ delta 1166 zcmaDJ^*o92LGauc%!Ox@;#%;}6^h1#qTg+R@dlUa9w#pKwGF*KL5S-~}LV{?OO z{?BfLp)j1o8m@3A$5ey9zTenF0@r%|O<{ zI(e=DAF_kM-aapY(7-1c3DJ-xr0ilVd~$u)D=h6cKv$qRkK; ztm2-?MuP+8lXCR5S-?P<&ceW81rC%ynhI!vGWjo;%;u-!P#-l&Y9X5f_Q^R(c%*J- zlX?Y75}#$9Fce10LYx2!>Xow4Bq1yh@g8zu*30|Dy?j+Z6dIU{hM!q-rS$ivM0t06skiLx4snm5WGC}xJKIHAbzQt?EQ zS5=Khkzb^mgu+)-vqDiHuOvNru9^ypn#XDocf#BSQj?~Rs%DKksu~due-txXHNsHr z`K#fGBA=j%>aSCp;VAOXT5%})4{KSV$jfS@hFzU@0E+wvZHRd=KV<4a+yjfNhdQxf I^^Uq~02&nzf&c&j diff --git a/examples/zips/kms.zip b/examples/zips/kms.zip index a6d0d3daaf0fd9ee36a9db9b8cac4f54beafbb24..f576a26357842a675434399976bf6b13f60cbe98 100644 GIT binary patch delta 546 zcmaE2{luC#z?+$civa}IE&er;S6M~9>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRiq zZFZ14Al}%f&cqDVI(Y+=4oqzGVwtkWU7ce5M8 z1;4Q0f(TyZf*U!Rh5HOx_hoLl*k(2!KZrHqyjpPG9lY`o!Bu>EFu}?9`5uCGALd8s z{>BegC?Ti|Q@Ghj@Cih>v9LZ|FjKgb8La)Q7~IIsTH;F}DlbYHG6Mr*GNY^vSdogP zB?`Y@(h7xtThbndZzE-n!k;STfWrSSg{nVT8kN6Z+5$yAr;H5>KV1e@{b3nv6nO<% OTNHl1EJXi4Sv3F^chPM+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^d zwAn%GfOun@IukQc>*NhgIxw-#kC`MG!Giyo4Pk4`{29$cks$X1XuCt!2~DY=X(g&eV8Ai z`x`%0p@g6=OyOo9!6y*i#=`n=!A#*!X0Z0JVsIljYl$y`sJtj)$P5gK$&9ixU_~mD zmMHvsNh=ioZAp6+zKxVQ3V*7U0}B7U6srDUX;l7tX$utfoH8~j{B#*q^@nAwQREe5 OZBh93vJn0IWYqwj%JP%| diff --git a/examples/zips/license_manager.zip b/examples/zips/license_manager.zip index 2bb7f3e5e085903861fd22db019650c016b5936c..9fb9f31c8317d32f83de9cc1446a8ce25998866f 100644 GIT binary patch delta 468 zcmcbsaaV&kz?+$civa}IE&er;S6@ZF>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRie zdv=gIAfCAFFf&l+jyOSV|J*j%=wV6jwoxVp`2*`GixnZjuSQ@HsuX8=S{joS|%_(j4VDEvFZ5n#T#h#CNJnz|YQ delta 468 zcmcbsaaV&kz?+$civa|-7QLCstFQ8P+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$@? z?Abx;fOz7v!^}XPlXDmyU_zTWGuAMI1&x@aV1kn;GoJv9#j)7J#TK#b0*l47I>N=4 zv-X30sTWJXSEV z&0#!~AqwB{dcg!I+w!ddD}2Fc%MA3|zd^tog)b}U mkHYU0%tql$3!%#Q2)Uuie-Vm7;TH*epz!YqM}Ya}B5DB8N!E4% diff --git a/examples/zips/limits.zip b/examples/zips/limits.zip index 5ff097423cfff6168521abe41b6dad217e6094af..027f9223b66fea7e47e70427da7d3724b84bf188 100644 GIT binary patch delta 193 zcmca5d`p-&z?+$civa}IE&er;SB+i0>0pXx)4_>WQp_Nca1*cyP;}y?ogk6PevJAs zq0KFf{)}M3YfQRuK`v$wh+rs-9$c`CrHC1<@;|!?Gtjijvp8hH{7?=j6#h;QTNJ(o Qr!@+{l+y;x-@>T|0Os^dEC2ui delta 193 zcmca5d`p-&z?+$civa|-7QLCstH%Cy+q#tR+ty9Al41slgqwgxfT9y8?F5NT_G8qC z32km+^k)PMUSraQ3vw}gKm0pXx)4_?3Qp_NcIBT#7P;}ygeISv^iHv42 zq0RFcLm0t=Uzse>bWRRrc7>~(%Ph;s8RPGmHL z32mOo7{Uk^{K{m3rgL&2vnyQPTxMYwu)59crs(Q;IPBr-f;g=B!0P(NteJs!PJSRE t1LnUG^F-l?i@QMiVw`a2Pu?r;hN4PUA{dLRSrX1Ds{Tv(g8BZEY5*Rbd?5e; diff --git a/examples/zips/log_analytics.zip b/examples/zips/log_analytics.zip index 6a057d71db6f6ac69343fd1fe1b51787af2d1cf3..bc54fc7abbf4cac48335be75420e5c114dbcb4b7 100644 GIT binary patch delta 1080 zcmdm8zq_6{z?+$civa}IE&er;SC?JA>0pXx)4_?3Qp_NcI2*XgLWsydU$6*J-DV+1 ze@2k1$tg^(Xv!v^Wr~NZGiJ7C0;?-zwMAEViPayjPJ=B7qOO+11TMIPgAt}#WAafm zAudh^W|$)(PMR#s?E+Vx!Tp{YY*!S&8C-BW|1F3aB|^?%L4*${-xl&j7xEAegK3?( zP;B#VVQW^fkv}D(Vd9&kC1oH+R!KX;^+VlrUpgGF&Q>N65=Ikctzm+bFUuYP8#ql4 z;&702pnCtw#ln#6O^q5(rx^b0tHijB=8+R0Q7TAPh ms1djIMN!jcn}EXSu*39wo}C+tnrn8bZt=4B0LxFcR|5ba1HdH! delta 1080 zcmdm8zq_6{z?+$civa|-7QLCstIPg%+q#tR+ty8Vlwt;n#M!__7D7b!`GQ4&>NX28 z`ZI!5O-^BQMN>BUEK@vOoiVdD6Ifj#t1Y^^ORWBIbsB6z5OuX2CUC(W9E>o{8k3Kj z32|{UFvA=PanfX2ZWp-n4DR>LV7sFD&ESI5`ENnYC=qf73nF|t`L>WJx{!x(7){2`_kcXb+$5rkT9AkYYh{ed|CDY*uZIW z5Ql@D1J(OaE*7S2bCUcG7O*;76-#tGW~sQt)xA)G2GJWedvtaF>OpXIE7bWQ=Izu* zgv~eYP>2KlbS=;|uhK;X>{s1I5D(8Xu!5U-+dv#5_|?c76f2V_nutwyuwVnbI>^`y zDkcNw?=z0ZP-ATpjG|_PNiK#OdsA-|HET>`QTW0pXx)4|CfnWUIOLJ@jkA)xTaUTG$f(B#!j z_UOtc^D#%l)NRgV_G1Mr+|OZwp-`IB8?G>ya~mUAp&GX#hQexYTe!mg+z%lN7xS9J z1@H6Dfe6;|Yh&m>%MURT=2f>vUx5J7oiCDF{3)Vz|+l1ly15U4(+5S+YC z!W!=89}*iNZeA^A1Q&cFH31@6E@KL^b@F-{8L)fL$=E>oVw3;Lv4O>OWPMT8%$7~Z zP@^K}hN7lNE)qixySzP$nhbew6#i9tXAC`73YI8prYgY9K)6p)NqVxNqB4rQFhx%k d{y{}M46_xLU}6xzH!7j(d86b2)}ybi1^^Wk7##or delta 697 zcmccWcGZnHz?+$civa|-7QLCstIqy)+q#tR+ty9~$Rx!K5{l3R3ju{U_DVB>geI?M zvPV}onU6UVrfzc{vmYy1;eHMa429C1-f)GvoZA?|3e~s`F%(vF+rky@=Y9xLxR}=z zE_k1J4n(kyUmHXBS$>F#KzDCu6%c0zTO%)QfUJ-Y=$SANq~?`mmQ?D8hCuZph2Z3E z64r1x|B%=Kar0^^Be>ubsR0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjJ zXLgV}Al|sTh?yCvb+Q6W08DIhIm;ukSPZKjTx=ohUa(jqn@MzG*_c7$d> u4v1!BPCI6x1(WT#Wx#4Ca|WXD*|_3R_-$N1DEu#6?kN0NZixDQ+-d+Sqg@LC delta 250 zcmaDN{zRNNz?+$civa|-7QLCsYoPLV+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$@? zo!LR^fOzBTB4%cw*2xMi0Wh)20pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjZ zYj%)2Al|rKm7N)=b@F+3xY%YvjyH@T!AV?BFm;nXxekEU@o?M1#5M%TBL7~*8-*Vu>I>$t5mf^KYq?(w delta 251 zcmcbleMy@)z?+$civa|-7QLCsYohXX+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^t zt=U29fOz9_Rd!~e*2(AD;bNNwIo>dW1SfGh!PHImX6 zT<`-=02^4Pv#=90(1ytuL}bAH<-(pQd?683eyvCViu`*KZxnuvs4tkmMpO*|QHE_f diff --git a/examples/zips/marketplace.zip b/examples/zips/marketplace.zip index a9809f1447eb05ab0a848cdf3f953469ee4a8588..0fa13fce445c9c7da8c6f793ff48d5e7936abe8e 100644 GIT binary patch delta 234 zcmew+{!N@Wz?+$civa}IE&er;SDRhE>0pXx)4_@MQp_Nc7<0JDEQrW?Sa=&88fIj9|e|PD^H>ag!HviE+Z+ lGWiLoD^yeltje1!7=?d;%K?S2#O;p4@8)&_^Dl6#0RU49TN3~P delta 234 zcmew+{!N@Wz?+$civa|-7QLCstIhs(+q#tR+ty9AmtqEq#F)cHWNYbo zS~G)GO?G54f(ur$)G>htf3sP_1Seaw?*WVbVmE<_Z8qfyWCRO#a#}J2jhnoXON0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj- z4|b3`Al|r6hKU)db@EvzADGx?1?FT%uwWaD4NP$INtPX8u@=?$qd!f)BYlA%bstoZy0HyoVs#fAhP+1Sfk4{03X@Cg=+j z+dNBf3q*IIFx-`!rwA{H=(ZDchO6ullYa&ahp3wd7@{&IO&6h5Cq77BlsLI4V%M==D2 f-=r9g!vC*`YJav;Ad37wB~q75KK|=k delta 584 zcmX@&e#D(Oz?+$civa|-7QLCstEcjH+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$`T zJ=j6&fOz9N875|+*2!m?d|+am6_}G5!GdipHZZ}-Cs}rY#adVcU}BqZv+6<=a3qIuLgb2Rnae@n)@g9O`|IP0P6P)ZJ@EdHoo1iaD zZ1XI^EfC#-!f;n^o+7*)qT5c)8LqNJOb#NrQUdPr%|9e0A=*Wx5Y7yeS_)D5OU8y7 z7(A0V%F2K(j*tyQ;a`xALgD+!d7ow8 fev@J}3je<%s{PqYfhh9#lu+FtrVO!vp0XMMX4Vee diff --git a/examples/zips/metering_computation.zip b/examples/zips/metering_computation.zip index 08eb0e8c74beb98d3266cb917200c1125b065722..539ccba28363a37a6ed2bd5c69f263199befebfb 100644 GIT binary patch delta 493 zcmcbmbW4dhz?+$civa}IE&er;*F;6V>0pW`5SLbPGcdBeWM*JssRqiTsGHo*sc%(U zoS2@f9~#2Rz>G(a2v9Ev$m}p4m+I52m>3wOIVOMLRGIimh#jO2h&OXH9$^v$DFHbH z2Gl1zvS?`%ZTw_o78kgIbu3X#%s>Mt-)3`y2~JjFKL{3k!EOr^+pNP8!3Y*?=d{A- zbGR=iKjn0U>(=G+WCrW5lr5Y%UqHc0Kr@mEb zabkL^erO0M12Y~yB0#+yAhW}GT&hp6Vq##B=9v6}Q)S{OA$E{9Al}T)c!Wt1qy*#) z7*L<=$fBi5wDFUTSzO=-*0Dq}F#`>pe4EV)COBDz{UBKE1-mUwY_kqW1S43mozn`R z&*8q9{FKuXu3MMOlNqeLlGh0o29x*k%7FQIc|D+fvB?wo*}!7%eEukEcJO&)s8Qt) h!VsIuAAljoEdbLCvrl^RWC2|ab&mufcA5yP0RTvqw^#rG diff --git a/examples/zips/monitoring.zip b/examples/zips/monitoring.zip index 7c8b8ab830bd16bd3745cb482b1b531a49d92866..3879ed3fe1f58e42660e8427f13917b4601d1e11 100644 GIT binary patch delta 306 zcmZ1{vrdLLz?+$civa}IE&er;SBqV}>0pXx)4_>$Qp_NcXd@MmZA(FUv&sCMI*GA5AL$+^rHFtN#NnD>CivRMp?GH>z$7Au(M&5W$q zS-`q)a~i`1MY#eQ!Gf9G7R*3vC*R_c0rL-YJAnDtyb!)Bj~5DmB99x2`ky@ZDDqLf P9w_`HypCW#2cH@Mxsq*B delta 306 zcmZ1{vrdLLz?+$civa|-7QLCstHu6x+q#tR+ty9AlVS#mL>s9FlzEd6uvoz~Z)Rk@ z&H~nbo6{IBD9RPc2o}ubwqOQYJNXum448kI+X2kC=7sQ8dAv~g6M5WF)c@qMN0E=> P^+4et;dKP_Ir!87-$8xc diff --git a/examples/zips/mysql.zip b/examples/zips/mysql.zip index 448c9ad0b409922c53a61057e51f7fee8820a9ed..595b65655a08b9abb087ae43f446c6a9eef7d36d 100644 GIT binary patch delta 498 zcmca>d)JmXz?+$civa}IE&er;SCw78>0pXx)4|CFJR+P3i7;Ix2`Off+T|u-A)xw= zkG?U3geKo+(SeC==3|}D0v6oBX$%vb{EBloSZoEC9!zZWU9KQTu;39%xl>s}+K~{S53MmDsnAqfaIX1BPD=8-oF+XW546#+xju>LRGB!{#h#ib_ n(v#a{v@q0NlJP-N=OAm1p=Pcu%pEYZTrt#S$U)56E~f?nu=TyO delta 498 zcmca>d)JmXz?+$civa|-7QLCstIGa$+q#tR+ty7k;1S_ONQCJkNk}n+)Gjvx3jx({ zeDsYOBsBRpiw;a|Gau`G7O>z3PGgwhz_z?+$civa}IE&er;*FZ(R>0pW`5SLbPGcdBeWM*JssRqiTs!Mdlr%nW@ zo&#*&F%Nc-c|g2blre^x8ED7k5*9m{;N+bwN5EnYtd=mb%?DV+8Nq^5>>fnfGP#Z2 zAFlfj`vW$x?)`jr%s_i57xIg7!aX=yp5GrTDg#zEfjnW$70HT0aRV# Lg0Wy#+XdACp>lC3 delta 341 zcmcbsd{>z_z?+$civa|-7QLCsYoPLV+q#tRKwMhE&A`a=l9_>lr5Y%UsxHwHpE?ns zdJeF8$2{0U<^l0$QN|c%W}qFDOIYk+f|GZ$907|puv)^zHXmROX9NpMv3n3@%j7n8 zf4J^D><`$$y7%+hF$3+LT*xoR3HRV+d47MWs0>)u1pY7-K8Ju03cpOi9g8XV1yFT` M3&w&~Z5LDn0JV~Vvj6}9 diff --git a/examples/zips/network_load_balancer.zip b/examples/zips/network_load_balancer.zip index 49b24d5d9905fbdd6db79d7c4ab2e346c6c16ca4..33ce45372ff48cfdc36d5e47dcb0a95b387da26d 100644 GIT binary patch delta 299 zcmeA+?l$HP@MdP=VgP}4i+@ezHC0h>I+&sf#HAJ742&!e4*fq3R~@ z=a6CsX}uf|76J-ywq(>{2Z>G2;0QohH~9`nG+dz_rx6!eVX?3?OmOmE;lp6DW)VA> z*ya-=35;MtZ82wNpcRt~#bm(z31Z<;zStyjHn0$P8RBv1N+cvQ(S;UE1fmOx LN&0|=QYF;@9CmIs delta 299 zcmeA+?l$HP@MdP=VgP}yMQF2t5r{4% MCg}qfN|jUt047j=zyJUM diff --git a/examples/zips/networking.zip b/examples/zips/networking.zip index 8b7336fb560db97645025c3d6fe8d94a40f7fee7..6e97f158cc0e5ca5e25892ced1c4d7fd54cf44f7 100644 GIT binary patch delta 2297 zcmZXUZA?>V6vsP@`qwvo&=p(6zQn24~m05fuEEsMQEr#&i{5Z`>*K zBSxdvl<1(7jg$OW1x0oaJYnuFpLd-`r%cBNfHxV3<@`WqD2+AtJj)>kp*;Hzi~Uq? zfsHwNsw$b{h1}fkQHNHeDO?Z72RV_08B?}YBYw@)j)S~EVe1ep0)js&ATg=?5`?wF?+GrmYU7>=Kk~#@A)*1#;OC;00$0x zmV9fQeIAP~*VUxvu}&Hs4Kg_9xR%a>6}(dg#&~68PxvM+yY-*+LT8U&qlxCi=loVU z?o^x_b)M0)C)D}mm}O(4vv|VQTBx$+!JFv~z`HW#du6KxcZ(DRo-2+Ub{|0#PPDX1 zLVT&^CfXJB$aMU^rv%B@?bR|_+u^~%@AX>X8*dI1QoVWXRSdWL&LSM|d|w5c_9?He ze_tsYF8J*#@TniaSn)G1@4A8DgYGI7Sk{BLh~TlF9&G+zZ@n7qQw$pHYew+r{#q57 ze+W$zEA}0FjyviIRH(q~0qk1@{|aov9+&GZ@ZJDEn$#6_4=7b{3?#pv@{`JxCr+;5 z-uefX9o-yUkalDN;gm_$!_q0`$0qyqm-y^%UvP-OD)1;+AU?zBkQpk26)Y49vk-)W zA5f&3$VZ2|Q)PHIw2SB+AurJ%M$GVcsFW}j!|jB*I_x7l7yg)>zYjMNzIEIT)gv{8 znHcetv*98=hc50X`s-EaPe!|l{$dpQ081^8o>CdrF#!GtZ_+FBKXZ*-2-3)yb zwC5iuaF71@h^nCZy0mAb$ z^n7dPAkiI{sUE-FNbWxeW~dU%NKR0oyL~CRiT+^(y_0tPFtU^AyQ26eC4C{v6a8(# zdXjz)Ttt5ibVt6~9Ynu1i#wC@%VOJ!J{7}$Bz+}@zDPd$=IG9Uoul7S^*o*LyLmca M?iKt#0#~;D4@%D0(EtDd delta 2297 zcmZXUdrVVz6vs;+_^3SUAjmC533k>E3JfU4xLoLzRzPf^MOPF8Lt`4n2U~nZEw#v7 zyzQZ2vOl(E@v$Xyl15!LF55C<;*uE?ll^Iy%>)f`VaZ}P z&N<)TtuU(RbRm-Q&a!`QUh92v^BU9}a#qL!{I9n}2J%uwPABqr zcCb()CvHl6rW0ccbn{XUIt?BfykV%)GH_v8jS6%vZ;-*M|K4hrgWGdVdRDo6O`{z2 zx@wax{ng>tdV$jl@wq*1P5Guh-kqti)JRYXOU= zvUOI!%zk0z49OMLtH5HLV(dxVFW9`hT*>~bJQuTnthS|Qv%R@L{ndLqO{1~uz|_Zq z!=5GI+G3x;!620Bw^SQyw!^tOLB{xL&zsL1qX()2Wd@@hT9o0>CGcMNdDcC{Y!K+ z^o-J;zZ=C}N;Ms0H0P(W&7|hKaVM#{7&F6X;~NMwKi)!^T@xOn-=Cm!y3W({&*wiR zJU>a#wX=e+4(uKZ>At(rzC|wh(=56yKzz&qjHo zuLi6q>8HR&^d~@f0pXx)4|CX*rb?2LSe>WA)xTY3A;cdlYJTW zU_zUl7y}u>g4dV~(X~$2X10JU%wpDH1}mJ(W`d#cEt@r5p+37m6Ifv*r#6Pd3!Fx9 zg`8ZgAquzi7&8N%H+dny3|J!%uOkXSpVtP;7vqF`b@EwWdlXfAd~R4&P2+PyQT2<@ U6N{=;eoGWp2lySpd}aYP0D}C7Z2$lO delta 357 zcmZ3fuu_3Hz?+$civa|-7QLCstIGa$+q#tR+ty9Kz$V2E5(+a03ju{EPS^z!ne5A` z2NT-d#2Cm37QDt}h^}?AHnRm>VHUFnGg#qNHWLhmZ`rKj3ia9jnZODgIkhnqUf?u> zE9B%_4N)|+@>`;)I>7G$<}(YZ0RS9&oU#A_ diff --git a/examples/zips/notifications.zip b/examples/zips/notifications.zip index fb964c5aceb00a413517de5b4e2714f7aee079cb..cbaa2cb87ddd0d6d654392d7837b6523bd5f5d3e 100644 GIT binary patch delta 497 zcmexv{N0#0z?+$civa}IE&er;SC?JA>0pXx)4_?3Qp_NcIBT#7P;}ygJs^?E@r+hz ziYD)6^n|I}%*(Ws5v=Ycvp-x=o~0imxRKQrF8G)A4-;7B9}a||2d4l;Fq+#Du5vNA z7DW369y7QgFK+-uFoDk)EQoOR26jci(!ch1Ul0GQ>Hc5ypFG{Kb0A@(U_5c6? delta 497 zcmexv{N0#0z?+$civa|-7QLCstIPg%+q#tR+ty8Vlwt;n#94zyfT9x@>;Z{Pj%Tz& zQ#5%mqbE$&W?rV9j9_&qnf>8{@+|!j!Hul0aKXQ zwIJFr@R-2`d3ggMf(d-aU_pedCvWHTfUASsJww0_E_hdf31ZD7A&75)9^9-ftOGGI zNW_{MC@{HELI&)>^&*~7z8EJwuqI21dZ4Ik5e-M-{}qiz;n#=-qwqhX@zccpQRJ_S gyFmHKw%STKqNrLR5r)E-kn};}w@E@=c~Mdg0KOFCuK)l5 diff --git a/examples/zips/object_storage.zip b/examples/zips/object_storage.zip index b1ef84426b684cc45dcec891e110a2cb9feeb8a4..c5b00b801d98a59f91407a89d78a6156a67a0056 100644 GIT binary patch delta 669 zcmaFu`r4H@z?+$civa}IE&er;S5HN~>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj- z3wDq?Af7nSlNqG*l@&~6vo>QVBS>uWb|yEXjGL^;901b|HE;3}W?z`lW(k&3X0U-1 z*ll2flP|OH2a8SRK#1MoSPm9z;`AfV;xC-3FatLya5XW3bwA}XhYKq6hC%#N!-o*u z#dixLI9P*gR_#-Z>T<)Tseb#h)P{8w;3vZ-P6F(|68 m$QPsVGZkD>_!rRl=8Enp@(UDwQ22aGz9{@!C5U-PmDB*2{{ia& delta 669 zcmaFu`r4H@z?+$civa|-7QLCstEcjH+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$`T zE!aWofOz6OPiBzLS5`2Q&DxBej3BYe+nL;mGH$XWa{x>?)V#?@n0;YFnwu?iPMibi@$KD!VKJ;z}3VA*8P;n94@HL8wT-94Ie^q z7vC+2;B)~?xXSASn<0X|LUwS$OG1kwf)yh6aKU{duONb}#Smt`6noDCw*9uW4KpxY zCvQ}c0rM?o+)(%nWjvsKF-~~IP3D#jK~dEx8;8PYl#52;*U5RI@L$3C$fkzL$DpXX nB43Qc&s10pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjV zZFZ14Al}%X!NUyHI{6ci5ln2dHt$Zb*mGW8nAm1%zCcE>U_QSQGf?B?L;)Ev|1iHL T3SUmZ0fpZnU=8N)6Ho&Hk-|S# delta 178 zcmaE&_(YL6z?+$civa|-7QLCstD^FC+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^d zwb?=HfOunj1`jh(>*P;7Mli9-+Ppi#V$XSXVPc!5`2rcig8BSL%s`Ek69r_z{KNc~ TD112q2NZsTfHj!EPe2U-tGh_b diff --git a/examples/zips/onesubscription.zip b/examples/zips/onesubscription.zip index 7b935c6ce8026c432f90ee564b94472fad745302..1623cb20df82e4144d2068ffb6c2916d46abede1 100644 GIT binary patch delta 698 zcmexw^WTOyz?+$civa}IE&er;SD#(I>0pXx)4_=cL^u)R36ThKDQ1w$y9rehp5}lVha@Sp|;;Ol+qJGqrF z3a;)MUo=FWi-0S-9cu+3-T;QnCP98Cu-Alyz0s953J1ZByCob8G0sZVmKmsTGNY6X zSl>+1bTI#+G=#4tmWLw0Nh};iURyj4g}++d8%4c@L==kr6p2I>d2z{j6!{sFX(;jv zQlTjF)1_ii_@dHoDC%paA?8EfKS?G7MY>BS7)ASk8Hn>>-mjL8M3Mg{n*ioV%BcYW Dg;XAF delta 698 zcmexw^WTOyz?+$civa|-7QLCstIz&*+q#tR+ty7yAi{|dPl!Z_OEH5~-c10D099{x zVYFieiA`>0@6fgM$I=-N~(d zQE+w7_@W`|Tm)Rv?N}=S@dhwlHVN`GfxRXq?2WFhQ8);0+%4f)h;de;w#-0%lNqIC z!1`v2ri1wpr6GJJu{;#{O=96F^4j8YDE!sp-YDuNB%)B{r${8C$cszHqsY&YOhb`Z zkP1bSpDq=H!WWfxLs4HV4KW|;{z)0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRiq zEq0JPAl}&ef{_`hb#eidAxv!Y3Z`9Pu~cRqnAqkS%z+SvZ&(bOff^?(u*!fH*|S=p S@Mp5xqws&RT7miIY-#{*k3ORS delta 178 zcmcc1bC-uVz?+$civa|-7QLCstE}>M+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^d zwAexFfOuo;3r1$3*2x7-hA^?oE0}hH#ZsAdU}BqRFb6^uzF{$B25OwFz$yb)WY21W T!k@`%kHY`OY6a$-v#9|9h=@oR diff --git a/examples/zips/opensearch.zip b/examples/zips/opensearch.zip index da6b824ddd5dda0c8b2534ec8a596a925e3a6f03..e7a66fd100b122cf549b5733c8f487fb3b137357 100644 GIT binary patch delta 197 zcmdlgvQ>mPz?+$civa}IE&er;SBqV}>0pXx)4_>$Qp_NcXj{0*e2B;%7qAFW-DY;i zUKWt5$mPz?+$civa|-7QLCstHu6x+q#tR+ty9AlVS#mMBBne=0imGxPV1~>Nc}8 z_OgIfO`gtb0TY~jjded*YzCV#Ol0pXx)4_?}Qp_Nc40o8wFR;N-&`N5EoToE{jO zzi~#x)NPL7;$a3WOy_lg3$EjhX9Noh@cSX_hPdyjZifmZ14BC#14H1%hboixrT8Wr zNUCsgGBAUD4D!qeemjT(hJtR$27nEnEf@~B>8IdVh{BJ;t{~l$H;9N$E|6pcD~u2c zg^J05`R7H_G1Z7BqNuqoT93l75evr9^HD4eMNOu7CJO(HxF3d|6p0uVHIF1pG1OE_ QhM=f@1DgOPY$ra{oh-{Nfv$0KBy%BL=SAklEFcRemvgwn1ScQnI06>y;`G4K z{Eagjrfzct7Y{R7VLGn^TyPz4JR?|8fZq>UH^hBMbvslT85r7`7#IR4K2({kFU2?6 zKvIQ^lYtrJV~}S)@Y_KQFcfq{HUMnsY{782O+N*{LKJ=!b_MC4yg@{4a)BfpSYd=n zC{#=a%s(%Zj;Tg85k<{y(RvhqjaV>-o{wT-C~7jrGg0_o#QiYzq)5b|sCgt&ilL@b QG6Y4gps{KyfDKK@D19U_-?>5MW`q3l;UF}kn zTA13+nx-lcivlde(bb){tcI)ewJL(BJ7i~wP>1l3xVu2CMK)~L(Q+S6cjZL;T;%iv?6>^)Xa#;z)+(U8Hu81Ze$Y*-!aMoL(k%< za1=E%(RCPV_Cz~lh$+S-py*p1Q;))Ti4DWhvnMtlMU8D-5r&$JacL-OBICO;)UYL_ zqNwRj=)_QCk!X)0HZ##5MITpEB8HmYq(Edflaf)r*_3RJq2+$E6|$De)+sI+Y8Ivh Opr{c}EdcY|Qq=$p^Ib&% delta 1474 zcmZ2;nsLo(M&1B#W)?065ZGGuW+JZ&``2yjQoe6nH%U@tvOg;uGe|Vl9U&?O7CDdu z76Gc=Y|MCy86-A|)dZmmu6J?-YbZh(taP zgb;>=S)_U)T>C|JU5Hm0bv)pL0XiiRGmq;BqHDG>NP(%F9H1kzdAC6})Q=_+=xUdm z)WXzm)-+XtSQKCxj;`*sWi?!#uT>F5-61I>#Cvhgk&n1QxVP7D{DY!Cv@2$K&5g+j$-z;;>&S7E5R8tjB2W*L%ozOTGH8Ei|7;1inrJ$&32=Bm9qZQ$UqGm=!28J4?$Ve15b0eEj_>NHy7(Y5|zvmZ}B-lh?Ns diff --git a/examples/zips/optimizer.zip b/examples/zips/optimizer.zip index 14f3aa5d88f5c2fbfad104208deea7d84d61cacf..3294e71affffea23bbf76c4c4241879478538ef9 100644 GIT binary patch delta 156 zcmZn{Y8T=S@MdP=VgP}4i+@ez)nr$1I+&u_ba0}r6f;O9$^a|^6x}#6js+w%`4fvd zOl-0N>mIP!dsZWu*k%p3U`DWD9lJR*P~+r!4jC~2I=dYT-<-o0g+GtO0nC5Mp#}iX C1U!8J delta 156 zcmZn{Y8T=S@MdP=VgP}yMQ)6eiff^^*bI5@C*V*k*_~sn0DExUG4q*O64mAM7 Cxkd2+ diff --git a/examples/zips/oracle_cloud_vmware_solution.zip b/examples/zips/oracle_cloud_vmware_solution.zip index a700c00665d4a55e4a7b6e59f8f3c7e8d5112e1b..e05a8c1b1b1065fbe5e5524277f854a8308a6d59 100644 GIT binary patch delta 156 zcmeB{@0RBc@MdP=VgP}4i+@ezwP9CpI+&u_bZ}yT6f;O9*BLAV6y3PpoC_p0`6HJX zOl-0f_d&228;>hYY;zD#A|qIE8?P5LP~+qed@^9Z5?>$+e=1)D3ZI`p7|c)QR|5bW CF+Ds0 delta 156 zcmeB{@0RBc@MdP=VgP}yMQxz1n_pymp diff --git a/examples/zips/oracle_content_experience.zip b/examples/zips/oracle_content_experience.zip index 7f1693039b5828939e2f1a498b9398a725fb8be4..5be7fd78980c4f6e7317b94e44e0be121da2e87f 100644 GIT binary patch delta 156 zcmZ1_uu6b8z?+$civa}IE&er;*OFbm>0pXx)4_?pQp_NcEC;X%P;}$Qk4zw;$xE5t zVPca%Gamwr?O<_&iEU0pXx)4_>8Qp_NcOna~hP;}$^Q_LWt$u%r) zFtN!eSq_24`dA%dVw0pXx)4|CL1w(WR)P?9K-X?A6AXlCJ|*OXq#5qB$yUO_FatJE5x&jH2lQJQ zI5@z>P z3l(L+uIH6@1oH!>A^ZaANEG?k(g`U1Tp15E_0p3+$=IQ&36h2Afth(l))_^QrJN6n q`sH${@;vfUDDoZhi75KH6;R#OtB{T&FQyoQqJM&7JedDUQ4Ik90RGzm delta 644 zcmbQ?GQ)*8z?+$civa|-7QLCstHb_v+q#tR+ty89C?GQVz9<_rNI2FQEDV&|IQw3GWFFrUh#{#0 zrbvpVz=rG-u!9@SENB82vl4`;1G;u|nP4D9^C=-8B+YQ2O|}vah8eJVituelKA_*i zz`+3~CI|4zOm0pXx)4_@MQp_Nc7-JQvNJ?o1Hv=QfOJ)WJ zmTI7SkWLXG%>mZA*$S)^sCMI*Tqcm#$tld1FtN!?nD>Ll(pW5vh%qmWGxxY_2qObS z4bVExi3cSn_ptCz&g0?a;$&b3834qaIau=;A&yj=e1V5c9V!KMJzlp?zQ6`|>}Ems z9sQJ%>YGx*{6Igy7uNnY#fS1(( delta 434 zcmca2eMOo#z?+$civa|-7QLCstIhs(+q#tR+ty9AmtqEq#2BkUMN&#DxEUB(UNSQ< zuv7!pgLH}jX%4W?%~oKYK(!mchPCO_vxrc>!avl#S7bgQV$N(VT%)y$+2yvv^QE`5>+!mE@&z`yV>b)3 z_khiqynw?5=Gx7-Il>@0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj3 z8+MR7Al|sLlaU#yb+RdwGfZr9J<}1em>aVlOl)&Eb0S3HdlqMApvK7yS!KYALRh^} S_y<@6QTWDeK45+mn;HO0UO#gH delta 178 zcmZ3%yMmWDz?+$civa|-7QLCsYpU{f+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$`D zY}i5SfOzA|PDW;+*2$(!&M>jb^-M>=Vs6ZKFtN?u%!v?%?^&Fgff^?-WR(Fc3Ssp^ S;U8cPMBy8=`GEONY-#{xS4igo diff --git a/examples/zips/osub_organization_subscription.zip b/examples/zips/osub_organization_subscription.zip index e6eccb67348a68da751448c2e3da80429ec6750f..0b5e3d8942f10654c0c266ea5e5bfb8b155ec3e5 100644 GIT binary patch delta 177 zcmcc1dzY6tz?+$civa}IE&er;*G@&f>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj> zS9Xv(Al|sUn2{N%b+RFo4@_)w3)4}sm=Ci%OlqjW S_>WnmQ26m|plr5Y#;QYQkWIl$`j zUD-kEfOzBXVn$}5*2#uUJ}|M#ElfwjVm{37FtN?En3KT@C$ai41NBXIV3Pr>$zu&h S;Xh`LLgB}=g@XCp+0+0?K}bdb diff --git a/examples/zips/osub_subscription.zip b/examples/zips/osub_subscription.zip index 61216d9c52bb0a1613c8a44f853de99fcdfe6038..7099929ed583c5876540f9a75bb7d58b4f12fbe9 100644 GIT binary patch delta 178 zcmZqXYv$t(@MdP=VgP}4i+@ezHB?b=I+&sf#HAJ742&! TD12o$Uljf%HV-iWE}I$vTG&8M delta 178 zcmZqXYv$t(@MdP=VgP}yMQ0pXx)4_>$Qp_NcXhX0FP;}#DIVOnf8LkHZvQ;#5TWWj$i}}daznB12sq!dfT9~G%Q1n3CU0S~ zfQe21%(NFQwwc)&Cbs!4a|9z;(1X>28K`lx51R~_zlhZyh0o09hQiNga|H9(v#9|9 D8xBRP diff --git a/examples/zips/pic.zip b/examples/zips/pic.zip index b461f3977ad001bf4ad05aade05f52e32c62966b..63cbf2104dc73be58b0308770b2c0c492be69471 100644 GIT binary patch delta 681 zcmX?Ncf^i2z?+$civa}IE&er;SD9VC>0pXx)4@sHQp_Nc5JRvCP;_F?c96(qH%0?A zMU!VSdc#z0e#23%+92feXsA`9K77*tOA3+|6zVR|nTz&glpj z+|S7c(R_wW7hSU~w*_1sT=Q+7IJlq#Z!|>nJU%OQ&42hp;p!sz-?4z5?I~h{u5O`7 zG+Z6Cs0YM6KQVi_U<`K&BQGP995Xz4CyPoLG6O?$@ZVE#!7 zI}A0Nl93o)~P;%;^`xH`Dza!yCM z;C@anh~_g~y6Bo^xh>%8;F@pq#K8p}c%vbj=kZygYyQI*3Rf4w|BeOhY)=srbae|w zqT%Y8MLi(q`H9)X1!K5N7TO#R+A;vFdg<@8=lqH6mV^S^{Vmi|PDEj6~TVtsCCGCbGmL!vdqVI!@ f2Zov`*<=(o_hp?h)Hus!Vu+oS^975^$*TbXwW~4i diff --git a/examples/zips/queue.zip b/examples/zips/queue.zip index 2a8e1df98e7781c1c2830d708147fdce6035280c..4cc617cd6098ec83cc88ceb95994abaf95e9f138 100644 GIT binary patch delta 251 zcmeAW?GWV+@MdP=VgP}4i+@ezRaH@MI+&sf#HAJ742&!jt0COFxbtsX3Pp3M*@ zwwayX1)|W8!>0pXx)4_>0Qp_NcNL#Q7P;}#5b0(0`R1{0k8on;?bYzM0$Ol0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRie zH+GOZAl|t45DPO<>*OL$D zvCUorQy>Z-3R%Df6@)z)!78&w{NaKJMG_!_Dq^lr5Y#;QYQkWIl$@? z+}J_tfOzBDLoCcdt&@vbJz-*t53#a=#g1~D!NfK*@%(233$pOr!UQLK@NWZ)F$y@r z#5Q{gOo1qTC}aT_R1o%H1gp#z@rMf@6iI*xs)*S#1Kl!7QU0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRiu zD|V1NAl|riJ|ituH(N0`{;ex|)(F@I(onAqk?%%Kp4uUH(Jff^_4vC4oI`LcST S@VB%2qwqD@yukcYHZ=ef7(Ma; delta 178 zcmbQuJDZm`z?+$civa|-7QLCsYpn8h+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^t ztk^;7fOzB5`Haj!t&`oE9ARRU`y_gT@MdP=VgP}4i+@ez)mKq(I+&sf#HAJ742&!=u(NOl-3nGYb<~P?yyLE||j_1krtv%@Hoh z$sP<5jOXx$3vT8Jg9!3)Ap{e+G$DdL+_ua>$4s8jBLlYMHMa{2Kaj^8g};v{7=>@l X>xROg&FhcC=i!S+;des$&-v5y_gT@MdP=VgP}yMQZ^R+wl3v65SLbPGcdBeWM*JssRqh|)QJFT4zRie zGj@Q%q&b`L0wi0xL^)z5JdMuHb=N1 zCwnkNFrLE~F1VQ^3?j(Gg%C{O(u4^1aN9Bi9W!}8j||w3*W4~B{6HRW6#hP*U=+SF YuNw+~Hm^SlpNB6Rh2II~Kj%{e0G$<#mdQ6lzz?+$civa}IE&er;*HlHl>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj3 z8+MR7Al|rg11mF7>*N?VXPDUJWo!q)VwvoAFtN?+*kc&Mg1ns0%s`Ek_jAgC`9+*w TDExbzfhhbyE*~&|0hby8sz*SU delta 178 zcmX>mdQ6lzz?+$civa|-7QLCsYpU{f+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$`D zY}i5SfOzA|4Xn&St&?NeoMB>0pXx)4_=jQp_NcSPQTSP;}y)Mv%y41x7oV z(B@P|1!k~d2a7XY@Dj^fHa?)ru$lhed?ri`49=XB_4#EcPf+Bayn|Z=uI@6o9}`%! z3ZE5BaB?c&9*7vf7fft(DgQ}`LPsGRxL}Kr1w?Sa2*N!qqK_EC+Fy#9!d0q@2SEg@ zBpl&_ha{{Z+W$*g!vrTgN_&HK_e&eY#5SLlj)Cabkc9`u`5q-o6*8Wn=6s}TLJP0CK zCE*AcJS1TS(f(h`8YVc|QQ8}0pW`5SLbPGcdBeWM*JssRqiTs!McXhpL+_ z&m+YQ(t0uyECdwZtjTE31QMH^%$$g>Zt@G}$#8{DEZGo+AK2_*f|E_z_k%TmXOF

1Y0967>J>}N3a;KkWFYk zME4F6XAFh%qTz6bwW3W-f5SSmR2;qy!q@&2smB~ku*OOg{!v84igQ7lOE)7Ngxm-Vr{0wuCT delta 672 zcmZ4PvD||lr5Y%UsxHxm9jb1! zJdYGJNbAW+un9>HR`LN=lG z5ZyaOoG}#2i-yA$)`~VU2?Bi`1`bUqVLG{y!<<(?G=!6Z87;&n7fNKnH9wGuh1lXC zZ3j{~xlvjM?7RiiL12EMB7`p@la3-kS0*1tUQc!*3jd?54~qJDxil2{=W_ih@-yUp xQRLYbVo~^Q3hpTC-z&tU$QLL!qR0y?1)|8eDW#&w^D0N8$ag50f%%LoY5?-0D)ImT diff --git a/examples/zips/storage.zip b/examples/zips/storage.zip index bb7359af1e02f109c08401faffdf7fdbf092ec64..c5be967e985ed5310c10fcf4176968ea5b9809b2 100644 GIT binary patch delta 8512 zcmai3by(EP_g-M>?(XhxBvh8}mJX%6L0n1@q-5z7MLNZ#XRIC|v{@9~(*p000pK!h=Q*!BNKrqXG~v#a(`$ zKIi~A;16g&&>u>+tlO_P%|p;|_`wH_IF9D2+k6`w??we`XvMIAEcb!E-NHobhDSog zML@rk4P*!~M=z26)N+;}98Me+a#rlLBA1a{ey`RK6^R3Q&AV3C)oMb>bLGwd31FA5fE9 zQno6Sa@Bi$U@BqZ{E_yN8KtiFNR?m?%6B$2QmcKtUwI$e{T@2 zdj6DtWItsJNibAx49-6Ufkk7c8WX{?yZgIq2VByUge6G)W5jQ^JE*_1Tn8QK(VS81 zRn^c6^_WRH1otx~3Y)maJjN%3n#_b9gxc^7DaGW`I*T}2)uvg~?kZ6^k!{bi<{^YC zd~XW|8-BOt=oBp3WtHxx=0TVu;fBL^?EiuoiAb)|%gW-#u<8`O=Pcx4s8uR;m-{3A ztmYF97W^X!`o8Ycr{)ei2HbmuNR_!S?$6ThfI@RErq%h3cX(|uP$ftD4>Dea;9oE@ zW~D25_s2h|TQG|qD$3uJ%=FONK;0|)R?|mTt;pQB8LRfPE_S?pcldb`|918#X6$)% z@+2ywFPG)KzoQV*V`c}yflx=PTHV%Rs7iRb|N&W2J{&ci2*BHQ(BnO@_8 z`~#Y1>dH8=&=QA}JDsCZ34TN^9{}?f(T8CQJ?jnN59;_ya7L|wUW5DoS>@TXJ-A|v zAX^T~Zz#>>F3-S58%Fkp!X@BhbEStPbMvzsEm#LZkq`Ja-s&PtX9wr3lB(17ehIN6 zLsikzj`W!2ED#rkLmL;~ja`~P86HnB**7EAP5Tj6;D2v)&J` zp0zC|Ee{Hv^K47a$I@$8{H}d9FsR=ofTa0&E)lQhI+-Wa#wCD<-no2$zSz63b z>X(|HmdhtuHjf7NM)Xx z3=)d^-CCJ08GFuoM*P#Ak1L275YT45`qQN?-+0>lcrrY;Budd2Trz5i9}HP6A{)JqAMX&BjUXd9?6c ztT~nIfiLjdUsM#NAyGxqCCj(Y3&?&U5B_kTTuQWHYx7>i9~hfRa8DapsRt^P z>`Vw~6I75|8Y_>|o)y(Rtq!Z5Q+&spfq7mGm<`C!4vEP1jio1h>K0_%R9kW_*mqu8tmlr&QBk1R}&rUQMMu6_>==qDT*NZH}vNvbeMSJCOG)F@geD1kT`>+?o&Ey^TSU-tuA~k)^Kc%k1rgKwEnP~2i z;6E0s!$~>T%-bO;+s1O7wEr2kXkul=oRU0b`4KEehDM(k^CmD7m_19aT0Lyj##$ff zmD9eo6V>eNC;E!=dz$ffN^tvzQ;}S;3AV^qyQy#ONxHsEC^RFlp($Mf z51R71!T*)(^^{_#g>V|y^e`%tiN18LIR<69q0~M%(adF;(!xQh5UDay&sEl()p>q; zi1jwy_Rh>#jyQp5SYcm$T^=W`6)8ofGerI{$V$7GLDNm}lkPUn}@UT6KT_II@UXUWS zlY%WTl8IR=!-J$>$Jpun>96`Q&mCTc;(6j+mjHQ9eK4{gdIEN^V^Ql+u(}KpC64T> zp!-^dx%fKKd(x*~4SO;sXEEUqNHCg}hjX6QudX)^^^x=wu)C&tB`5daN%A;0{q!zl zAW}gQhmrZ?`CgnuTHH&y=RAP?fb-&e5$Z*ZiL2(ZkwnEpiUr2chV8?;OR$h{VzJsjMI+3a-FKX21*je80N&S#%wr*#TFGYm<)fL zVxNd4^y$rwVzgbG|6&!LWK^%#YJbwa1vZ*jeQUoAZsIN9jn9WLPb_CrmReVw6a83R zeAXS;;r1amHc^PHnq>bpwK=s#x+UTP`&y>}E^;&CBS*|{y6I(a#wZV-rthq(X!vw! z2X`~rEk3~t5JRWy`z4guv;ORqP9)Z~ZUTc8^98@i*d%bwW`xTpN}!AF3#dIFW0Vk}F?=kqBq+aby9NK>BFN(+sW*)82 zGJC$Y5z&4TI}X1i+5_f4@LInnn8Nj~>6X}5%^Z8*FbYSx|IJ4t*1x+iW=dXUZ{qFg zQ=t?+5QReg^R8rLZR=gLuVb@g;IVwfOw8E8Pm@;;(lG?|h9uXb|zX+)?!zGnD03D>$g%CQ-z3#+VB}O3fmJ z90pHeL?;6xxE@;?oy&PQKL4e>Yx?nhW}^3?UEb&CwcT?|!_-j=yBLW~{z2T%1(4l^ zwai1+zPgKm?r$I9dfGA4@&o;v{cvZ{g%G}IC3tQK30R80`9MGf?C);g2v}jx4*jvd zISyDB_?0g$Vp)muHOdKlvhmjPhMZyw+++b^EPmkS!5`v?cXRTG6yhzw+G6mft_Qvz z!H0vjjS~o7x0T});$EFsf-^WD#z9jEIWho1f0;r`@Uj2bS!GnKIcAs#=hG@XXaRm` zY%&ZXpGucT^`-1-pkO8Q21*B36+TMAMW4t|#hjm1^A)|cZW3E}8hsZ9Fzc~fDUMxw zeofT}9X$EHsXDtcE$$O#LjmVE9g30xO&Fz?Jqcg}2@zy;ZkgQsu5|AT^MceIzA%^Z z_$lG;yqI@CYVV_cOnMm8iw~ct`&BP7u9XB+h7!YmkU7)sna|7Jjtsti!I86~y4-5P z(_(;0z?&_4xw5j)sFMpO8OsLK1N8nALG4k6@@0(KN3E+T7m9(hF>Ywt}E(1CGp%pF8%bviF z5h`nBofmkSgDIA;oA`iaKh!DLZy_@>n+wmA_P|~N_f%S~k9bV(;CpY2xK2K}ui;b8 z`gAhnEQHrQf#-DL;+v`Ge#mZV54|tN5UQ4(!~g*8 z^~scw0{6di#Cv^1_n$&IPn@1S4Qr?vwrH9+5*tQl4jRs25)F@2g78zuI&|w#BvB|J zDX*R$7WXm&Q>BNP@LlTb<~HpriQf)NTTApJQih?OEuBU6JX-s%cO)>~_=+3epI0X3 z7?TS}2XBGqB`>%=QXXN_HA+!50{G&7RD?5y0NM9=zfgs5ucMCd(-7i$v|9_r@SddA z@a`v3*f@~&hJ^4E5!AiR&qHbL>89M&Xbd|SJ!(+xk(L!?eCZ&6pN&O}40AT7*@&60 z24X>IhY^gyYCUBi%gjo|Myvdu{S5bO93TTNQE}NhI;-xxtBaZoL+)_n0}yt6g;63m6(X!a!r>NmQR9!HdEFsF(%t9K!L; z0RmlkUj?0(H0jGEI5;=Sr{!)_iMTfi2Qq0tjj<9*q}5aHqAfUB%bH=Ka3v%=yt&VR-sU8SQ#U>0MPeXxCH8mPamz0vy=TU})Zrxw{g=GAP%{+lSA zG&vMUgGs`)hGOR&$71K;{Frq1Ui$KY8C&9w{I6q(krXe|LMJypdK3*2n;ZCX3GAp2 zUK-u~3Eo!rIpHg2n{lliX2h{}Z9uR_9i9m^AaV$2@{!l2M5Im32Lkak&KU?jN*4N& zKj5HKg+95DaCdglLy@zrG%mAx+mG!i+#8fj$Wlb(jhg<0NU`5o50;PrN zm-r$ol%7{K_=U4<6dWARq>RDMpOUuITAQ9{lY%QoS;A*h%H&n1bVqQ!QtlJ`< zBM)XWAW0<^*u&}!@%X};IOxt3y?Ae?nY~eWyKpQyY&elhlDvkWZTH!#Q$h=XhjdsX z<)NFv;^6L}jZo?ky-?OsLjItJvdqJ`tG|;RneS!%tlK~DA_08uXc3O~t?ig;E#)8; z7DH5_T>s7ULjh;Mw8c!oQ-bS@UGdAe0)dWTW1Ja3+9&qsXYUV!wSF6J1$L{R6wk^% zj$Cu^^Bc`5K@`9VmCjUb8p+YsIhUz)FQb67f0{`ULfK*CyoSBlfG~A5^!tEw(_d_y?*ghmY^|qvT+DBW zg5%^vKApG)IDt`g;w*~8%R?5e;ghiwWW4uYKC-F%@x|eZ6>E~(bX8OQxu@!RAd+kj zq`#2qdEIomH-N3EdM7Qw%ind5Q)A4GZlQq+(YrS~9iIG=tq*N-VTQWJdc6KUqxjVk zN_|{hE?lDqi6#~tX6Odvkg)U$bt`(^0?getv=drbVz^E-@t`jSrA8#BnB8vk`Ok-U z3Bt$E%na+y77!`=f(rBm7|VK_wII}JSX{bDKG78jx%F@bZ9X~cfzJXm?&^fOc5m}A z1mO<{CWw|Wx=yG2){*16;no_Wj7sD3e%`)-@BM;f*OT&iWF0Tkx(o3!b*+$Pn-;-EP8MR}aQE+iCTEFMqPfdK* z-BF8UITZcktVWni-hZ?`zT9HGA2)LNDU$L&Xf{!+1>HYOd?HL^Ih-?u|ryq?L|w~M)^b)_xkfkAN&c8vu8n{np>NG zV*8mNuAIM}b3SO8Ssoj&EAW0Y{R#YCSlpn|*UfQyd=kH|%o&f+ztj3iJk?lokI83% z?2e><4st%(;X>|mS;LOh{tokQgRk#&FBSF4@$1QMs*4i`<1#H($**ma;+$6CN6DQE z=SMD_+2?*_H6vs-kMP&a)u_YuyiLQ2y}WI(xj%!Mj@M6;T`k$_&OG=6MWw!HdNOx? zsy?YhaZS3{ zo7nAs1`nQNs+I=k`lfQFr+Un5Yl!IDKI9BU(2dyVzMXqlXl_np<@B@(SGiaGSnCZT z^pqtDy_wNn=iYgGy#LC*?Qy-TtvooPTTdc2J_c$ts))G!gmXnC+=d?$nyn&oq8L*h z4LsQt!Ifv7InoFy5m=nu{>hFub6iDSHwiKt(<@k6?&bJ8x{slhGsRoL`;>TsM0%~# zGl?#oqPovK104s8!(XU|4U9H3otEB&WNfLAQyqnTVV6lS;l*yf)(!&Js;&Xx;a`7r?`XPu7f~xes zb`qql?)D@4wGOZMF>4s2FyFs65w5U|vJSeVAUXNaXK1+uK)END+Ye&-sgunTV1*1G zFr{mKH2kGtbURz1c=?ay*-0MJs~KGJ1% z8|-E7>EL1N{?O9xp~wHIc=T#t9bgaHK|u)e?{W=sGW_&){Sk-=MdX|$REor^N;6-T z{A}beg|JL|RVLyL9jJHmJAdwXo@MBs*G(UbEZg~&=Y#%kdB21G#Pm~LuzxogEux8_ zzXEZAvgE6(e6vI?fm3d%`fAgwd;Zc{TxA%N&*2mAVMTwlY1TtA-J_;u3~}z&jkJ(% zGEd|pMrRv~=ET7>e)ib3?zD;Q2fqA)SNgEd6BG#!0GcuRqk!nH)!5`NXVHO|y2otg|#s&3^#tFXel*Zt?Z; zAbKaOUv#wD=jlh}AhJ1CsAr));>&Z#9p+~oDOlTJ1HpS>r%1sCc4`_fygR{7SAP*Z z8JJk0Xqw3vJCVXT@5=R-G4_X;_bi$Y(_$*xo$0V~kZt&;{YR6bK~fGN1ne=x`$J5Y z%<_vnPsBPd>kTgxVT2h;?;!bwj}G-=yqm(atI+>OEYYg-IBP{eGu~y-Oi2v-j&U@ zSOy8P+5`9izpk@nnzz#nNfP7OdIK`*+HNR_lM|L`hui z>VNjnBI$7$J~tNt|D(J{!FY2wg6K2W!tP6iOguNIXk{j~t4mZCGbgO^_InIui}~te zcGV1fkb%gtfNt;!ERI)CGL8E6mSE^EP=g7f0ntPH^vKZu6ot!m*-{Z;FE^L3KUY8K z+$M(1i{M~;x^UkVkpE7j&UN>OCY9^^)txYuU*T_!9th>~!tPfFG>C})&44RS$wlRE zM%#+s!+@FpLH0`SKP)8#DP50+Sc3#$L$g3v_l>`+b@pdmxtg3f0&HNkqRhX@cNF!m z1(vHTxn2!yQx&{?r-I-ZQow-ZYND|J0~%NVz0~es|NrMp*Q(l`>n@thioBwu7%vfY zn+QP!0QdkTFt0+lVnA+C4tt~h zpabegHK?I9w+L#9uHleyO`L1D!lc(|lEY6E!@5iG$^OO-GyfEkx$O`t?hG0!>RTci zNN+@*5n%iicdLeR3+F-p7Z*09M+@az6&TqaR&R}G&;a2>uf&YEK<1P;WL%_p|0KJ0 zjlPAGr@6r;YUAD_QyBo__(91)P|I#RtAY6jbgF&hESQG34h^@M;@NIM^YqyN)bLMU z{AcJ9IIeNT|H_ts<^hZxQm`!f5*l7KXgqGm!kh~xM3NEbZ^W?Z{?;Lff4~jvW!J@m zIpBKz8tRh6FY-VJACRKl%p_$;2ITN&us(>I z=#9hwKhIt3cICM}Rj53!Kk}{-hZff^Jcajh=Q5^h6i&@P*4AiW^e ze?~hE+Iv_1uU=%xtRdkw_+PfN-?DW`3ksr#G%EgUAuFRbzS4mvM>z}tK<1XOg|+{} cpg{(V$YDgAMkH7a(7lZw8vsDoznnq;2f2`>(EtDd delta 5940 zcmai2c|6o_@Ly{kS;t~yS;xvP$(j46+%{)!LhdW~Q7gGpWPK#LkBS^2XU>EqawLTc zxeG}-lJHwAYWw}Zuitw4<1;hwnR%XP=9!u2NiR`yJrNaJn;1d?+WS>sT*OlGlC9M| zbl9kQ2%uHqSbb9BJ?gpRe^Ht7q=Hj;5>B{cI*^DOCuL&om9tVo1Ok140JhXfAQBA6 z?CIM3_YZ=Ch#;ScK_Eyd&eDvLuG@QISksm%W$(SHl8m~Ttc&DS($#n2Ap#veTJ}zb zf{%ZCSMqNzvpz@+x;opTJ;k=eOl?mNsK0 zk0bqeddVi>M4i|Z_IZU9@68J_jpSF3McumLT2DPz$-~&C6c7!*>lQ(?lTxbwBegbV zO&lHsk;`sLb3LL<3@w@l51 z^j-zGVm1dW#5dbwyi~a|&#B&7hKE@v3+jdlcFwx_ZX_Ge+dLOo-R%>|aI?y&NY8RX zCQMYy(fL*WNQ5LAG0(`ne@@Ru6O1js`?FE4nH$y?j*cN|i5dC@-is4B?(E3-;sh8W z(KtB&Nqh*_3}b7?bIXC+1HySP=ewD(^T2DqJX8Y5 zEf(l?aFI$5(QVH63xN;dS7Sb_Yc`)%(#^AjRb8-RN`Scvxpbd#%{=9v03X-#uq6MO z_i01C@`zO(SL995gnM+i7BhUQxutf#5Dt1<9y5D%AZ2b%lS|(2gl9=x)R{$8*x4Yp z3zC>ONsn1-7MNWx zNd)hGmT&P>ydjh&CR3F{FvE|kx;t(pEXH0mbJe`^i{y#;l6TfUXIH%pZOn@O?|<_z z(PK1XERt53^Gi}-XZB6L-=h0i#xtx-v-9>ZwxJ(M_TQ3rR~wS9eh+ZmYRo1)!d42g z!z0|HklN4TBk>Zt!MHR{f#GuaC2mgGO(7pGKAwvnrphXP&!`fSSz28*9v&0 zIN*<0sw6Hhz7D8I!ggit=kh&Y!5O%M^rz7sSu}k;%aZhg72&t*U2hD#v;H!ci&!Y0 zsq9=0-JTX{6e&q0*I9`=g~}kQv4-+vQdQGiq5K@fd&jqkb?Q1#RHlCA#jzN3AMuGA za?FChiWcea>*M@!*2L>?M~suaXAyVnVUH&YGrV~& zcE>T9CW+p8;yWw`NE_)K)z!N!^+`CZxZZML^J6e|_q2AB<&)!gy)S7PoFfY%q5=|W z;27j0Ln%{KK;x>i^{?v<<_OAGox$AL#<@ic7pEIeakr#&8@jva*tF|^og6dLbMD~c zj!mMsT$bZ1=HZ$jI7a!zCA(z-eGKlVIrI2kUS3pjJe@233s6ju+9mQ~{h31=S z1(`U`6X{_d-yJ_Y5*@V>Z|(_m8GV6%)LnuZ9di=A{Dt|R=~@8qj2@=3g?@DD^=B8K z4;q$lU-lM5vft1yHNH!K_qNu{%j;G9a=^!!IO5d`Z%b&DT%fzXSfi68_ev7OZR=K( zk|)|cj)IyNWT8B6RnwD~n5_qCF7I|z25MOyCrh{!e>+SuIKpadgf{f_f+AKyA)$^k z7$dmxGswne>f-gYee6su{FGc7h1HL;bm)Cx8Fp_*Q4g#6EnGj?+SKu5tl?3CI^0tF zd8fX_^cPg3CMmt_Uu3XgTS(?aJe|@x@;NR-Iz`i;FvpKF-Nc?|xNmUknA)7LR@6?p zQUtN3JE&X0WTf=I{4t`Xt&q69l%96>Bx%e9sau3l2>aCyVkU#!%d}alv|A9pWFOde zn&pZ!4m(TmK|8VOW;EM`S%UTxIZ&WStFIMzdI@2V@);Bfwi1&;K7fZ+@dPfD> zbDVRXt4n>RTc{{MxZK^%YvI<L9*=^xl0}VA+F2A?(V4`%Y#}c=pfX*}Ek7qP znxScxq{r*&#cs~_0jB~^&*X>JBbT-VzC4@G{8~~QcRmZfWH%*}j2c5UldOozOYkf+ zRnv=S5p&gljrZB4`LNylRO}^YwkE)6%&eGRB5Npfmxq1FmNMI^P<#aXYcpC#ioJO( zc)4+FT=L|OVz_j=@^|^1tcom>jT^c&G~Y}KGuMPp{4jH|bYhUbf(&#r99Coi!uSzS zn`cx!5X=`s5aDSeOcDpQN)IMlFzsIHPV4WPkHp>F86+SOCr~a42g1P+pv)4A`G2nO zA)vzZoiHpqP`*Ri%p7(9y#M?(herPc<+x^$4~PCb5&S`7vO)FNh7CTcaN9anF>Ypv z)&@p#`LdQSaiCo)=Q0hG!kxbUG4~eh?xyXFR5xkkIhDN9VOM;?i!uQ>Fn5w7Eaq%K z(y3{|c^?(IGXLm}4m$?TuZ454le0bb3ZVYj`D1#xQNY%9NZ0rX%QI*4&$j2TD}G8= zZI{nvn@xUDmixu&19wyDM|~3SH6ZIuf`el`{i8PCPlA1;(QG4a)Pfg`I+9LoT52)+ zQIvig2I^A#X%N0A&nw$L4iLuJ87;&iMvE4Ar5vc)GD}Vrw0Tg38%hYHf(oMQbqddl?qhD)*?OchI~x8mn}r+&#~^NEz(%< zwwLiUGIaIA$AqDkmP#*0%k`zLuAMij!di&SyEQ*d4V%0blD})P#rTn%iP0$U6mPa= z_KJ3nz~;zIR(Urc8-$Fsc1#Nqe}+#f7P*hV-B@8Hj1Ny%*~23)XU*F$&KDlt{+Ev# z@Wm3NzTBIDrCb@eWQeYpJXbLKQlt~=jeMV!%D=?Lb0#8Rtt63F!_ZK}@6t9SnB=u< z4nhm&kBas2Kp7e>2bcKMy*SmPTiz6IzH&)4&ZkJh20R1Qc{Wt^4 zvCLRkx;$dLh%&F{6i%BFl_e?|lm%Cv=Q$$LX~6q5(m?6#g5i0VN3tcUd=nbT5(act zf!Hp38}VjPJ*e<rQh?fl(3+Yi+R1>Vun8*^$2Q*>@qB zU&@$(Aw&;_-@ESv!|YLz%EfXc8Xd`)WteS&nBOT$5hck_sGqcc%(^WuTiO;JuZ_v& zlSWw070WvNslTUB31qyz&xlo2$i9)jBF45sl_r}P%CHk8x8wmGQgq2e1ly{_8lEubT ztCaOi-0MTgoVXq!S@Qu=dykHrQ~0(8|D#i7<6_oE>pe#nXN6_*pD=B^sxBcd%!ezU z%Edz+-OG-Yue|p)hn!K%`i^dEP48oV=4#&dp)knR1T%%oEX=ViqcFZV*eJvU9BYy2 zN}BY`N-;LW3N|hAaR`+F!MRefJPxhst^_CZzQ;5*uL`;&Ptd2e6Qz@ykMY>o2)CvV zal6C2Eqmg)Xny&?K2qtsw#9SguH*5{U^pFtvo$#uU~PHFn=ng2uJxR7h&#U zTko_eEZVQuRQLfa`kiEC`Io5i)8j2>8&YpJb}*3ldas;bDrg~UWOYNG^@AYdCdn$< zFItDx%Zh&~y^*cAA}WoZ)qmq&po9q&ZCg)SmWGz;of_ZaW3DV>uL(O{BBRB}uS5xu zGAttE+8aEA*awkKAmJ+}!zl3A-3ZC~J8OL%F((M&3o&U9x4lZx4~r4@|qTGtd2CSV2AjQu9qe^9KoKbSsw)jR%8`r%*PLvo|K$ zg7LN_2D6>7ym^H1w(I6SEPR#Ze98L-jYHI+jucnW9)NM<2)>}9Z0IrnJ%&^#HtDqs z!y>ojI{3s2!N*Kpr$Uu=AP{MgPjw(^tdey$L*hK5koG zn!XfuB@fY_*VAi@cY($~uhouwLAm1$yr zl;4_e0(|qAc&t6Ex?7A;q0+-^;m(U+U;4y546F=lV6W*h463rX2RP*QPll=jp9>uY zono+-H7`Ul56)97IT>%&oxBktqgQb+FyM0b8l!_=&1r_r#+|C9Z|nm67(>m?m|KlR zgj?$=bl58ZMMCxX{=w;_@L_SuI;p?kRD2aafhQ8a8vx28`;E#z8UJtq+z~l_h@Tbl z*vFfQX&({`#qJQ}$H~1niTxjL7GVTnjxZX3?~{ka(oad z%2no~Wr^{E7nsFBcFXihI0~oQ!~)&z=8*QoRh|XubAzBKR>5-@cr-m zi?o^i0SmR)-)VWsh%n$%;VQ1b69pmgyNb&W(A_Jx5CCh=2<(!ulakHa!!>LE(EV2?H^T}~Yt^?QD_gwokae_cx1i}a)(HsGU zTEGwF@w-rAfdns8;hhengZ}IE$io|;PTa!uapqA3+HC3Ym?Z|Pzc6@>p_WMS6?#0k z%#w+~*k>H;1su;}v!Xd*;kSpNWhSu1%=lXu6iBclCjiOw2cC_^?Fu~^2*gbQ+Ctz# zi&jSo0DrnR5Qu{SFp0ziLQ&NJt|!hK2_8Y=xy{xv0(At}B7wS6P83M-2{7b5c+9nvhewACZ#)KP z;_%1#8v_EtKugM4UVzAsiQL%ecbxrSh=T~-M@;S^xCxfdk{VuVh;xYn*8>X^xFo}e z6Gj2gMc{ue10Na9c1Z9BKc2f~$AVXPkc`sjk>HsVI2Jq5FG=>tw}b5Q8!#s7#hG$v z1c3wz%&7|fM$!Id4!;8oDXPpbaTr$|MvMRxD0W~8fXW}@4tz@qc*VLve2kx;c8|Rz^fn#3}FysKmh5d{;P^o+Y2@co#ZIKja zbKcJ04PO@ixrB5mTJnr>%Fp1GD-$T6IYa|NMkv93+`muMXl)YGy>L8+`_rVxJ&x<` Gefia72JNz?+$civa}IE&er;SCd`6>0pXx)4_?hQp_NcCia72JNz?+$civa|-7QLCstI7U#+q#tR+ty9Am0|{oL>YiZfT9~G&SeG(O*UjP zhlx$jXW0!F(`7Y+iEU0}4Ppcf?q)M*25OwVhg}BD7h$(U;g_(xqVR9CJAnCe9BKg0 CSVesR diff --git a/examples/zips/usage_proxy.zip b/examples/zips/usage_proxy.zip index 8563a73df7e859c1d78a50a23ed26e4fef1566fb..7247d2e4cfcecb527f563895b05d97932a2766be 100644 GIT binary patch delta 330 zcmZ1`xlEEbz?+$civa}IE&er;SDRhE>0pXx)4_@MQp_Nc7$dL2K=iI=H-QU2V-JH` z%xTFCbjW0VZZS>~po=*`Zk{}g(*Y_f1GeH1r#}`|xm;mbM4xiGqv-YH4#cABAa?{7 NQEMJ2uxJC18UVl^cH#g4 delta 330 zcmZ1`xlEEbz?+$civa|-7QLCstIhs(+q#tR+ty9AmtqEq#2A4^fTA0xE@uP@O}1xp zL{l|+36lp*+2+qojSzL^ES50A$=g}>f%R6fI-~2o&*}wJw%LHK0-|>{y9r$I8G9Ji zVopnDphG6>bBl3`0A0)ha`WU_oDNV?8L$<9IQ_Ax%H;~fBKnle9YwDncOVv32e~7# Nh+6YFfkhj5)BvhliOK)~ diff --git a/examples/zips/vault_secret.zip b/examples/zips/vault_secret.zip index 524116248dcfe53e583113b06b8ecd7027bf12f1..c756092ff8b838b4a90ab95285551d378acd7e17 100644 GIT binary patch delta 156 zcmaFP`<$0Iz?+$civa}IE&er;SBG7_>0pXx)4_=jQp_NcSYxmVP;}#TB_@#2>0pXx)4_>0Qp_NcNPVyfP;_H|1QSST@+&4Y znAl`>=6ztX7tDq*vCRrB!Hi(RGFCHYpvKATS!KZdbF8)~d|fsd6#is3docehn;HO3 CB0X#X delta 156 zcmey(`K12s-w&ng4vpJTN};p?)wpztTN*@O94+0+0+ C*GAv~ diff --git a/examples/zips/visual_builder.zip b/examples/zips/visual_builder.zip index 30e9368ea6b23b8673ccc270e73f8f886e5988c1..8f71784f869ad3072f860ae40dc72fc48f6935e8 100644 GIT binary patch delta 178 zcmX@YcZ82Oz?+$civa}IE&er;S5HN~>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj- zQ+AL#Al^7Thlv@ebut&T4NPpZFY`XI7$1u{Ol-3cO9UfWa5<|DGf?AXZ#Ee)pOwuS Tg`dUdg~Gqa<_hM^v8w?9!qq&y delta 178 zcmX@YcZ82Oz?+$civa|-7QLCstEcjH+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$`T zP1!-}fOzBV942O<*2!GVHZZZtzRdf;Vtg#-FtN=(ED?-g!R4$r%s`Ekz1d{Id{#DR T6n++)7YhFxn=60pXx)4_?3Qp_NcIBT#7P;}ygeISv^iHr_t ziY6arbcdL7;hIOO{s!zF-16fQNxWXYxWe zjmaA9JP4iaEX-h?PF&W^Kvzs|;F1CJ=W}^N`C^m(c-X*VT-<&rYO1(HQTQLZT`=^7 S^T5o3n0tsP0IWuoR}BD2t8JkG delta 289 zcmdljwOfiez?+$civa|-7QLCstIPg%+q#tR+ty8Vlwt;n#94zyfT9x@>;s8RPGodI zQ#AP~qdQF1W?`lmOkj2YSj^yp)~un7V8O|35c4252m;LuTe7?=@C6gl0Xz&0I+GW& zX-w8&=RxRXXJH2GbmFpR2D)N$1D6b#KcCAJ$`_mL$HN8|0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRj> zS9Xv(Al|rpH#0L(>*PunADGzWGb~5IVv||jVPcyfvL-Wv1>Mlr5Y#;QYQkWIl$`j zUD-kEfOzBX-OS8Dt&=NRd|+ae&#)W;i%n*Ahly=|$ePRu7IbI#VFqfP%*`PK=5J*W TM&WC5M4|APafE{T|2WhDr~XMJ diff --git a/examples/zips/web_app_acceleration.zip b/examples/zips/web_app_acceleration.zip index 1606e735c8ced1350b4960bae19647fce59dcec2..28951bfa304106ba627f3e8215ae912ebba486b9 100644 GIT binary patch delta 178 zcmX>mbWDghz?+$civa}IE&er;*F;6V>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjZ zYj%)2Al|s#jD;Dfb@BriCz#k|P1b{8vA3+YFtN>sY_W`B!HMin%s`Ek9XVvc{IBeu TDEtJD02KZu4sS4Dfm00tbcjD0 delta 178 zcmX>mbWDghz?+$civa|-7QLCsYohXX+q#tRKwMhE&A`a=l9_>lr5Y#;QYQkWIl$^t zt=U29fOz9_GZto`*2xc8oM2*;HCYdW#on^o!o)Tkvc)oj1t+pQF#|PDcI1!&^S`ot TqVN+q0#NvuIK07p1x_^pj)6#x diff --git a/examples/zips/web_app_firewall.zip b/examples/zips/web_app_firewall.zip index f414171fd328e36861b2ad7585ae56d69851f47b..2fdd1b0144f4c57efd0ddcf168e9a945c104dcda 100644 GIT binary patch delta 178 zcmew-`cITMz?+$civa}IE&er;*FZ(R>0pW`5SLbPGcdBeWM*JssRqh|)QJFT4zRjJ zYj%)2Al|r`iH#Ykb@B=}JDAwyw`@niVq4fPVPc!Vu*Wfi1w%RQn1LE6Gjhp*`CBlr5Y#;QYQkWIl$@? zt=U29fOz9#CN^fE*2yc_>|kP(-?AM6i)~@Igo$nb!XC#677XRIV+LxR%*Z7J=5OWn TMByuN`JnLoxZJ_~8(eAt+dW9w diff --git a/examples/zips/web_application_acceleration_and_security.zip b/examples/zips/web_application_acceleration_and_security.zip index 85f1d4d71cc0277b11aa05ac7d52f164cf8ce858..9ac0b408c89c74a5ca121502fbc746e8f0104b27 100644 GIT binary patch delta 156 zcmca?blHeEz?+$civa}IE&er;*OOhn>0pXx)4_?cQp_Ncs&KFfP;}yrlOU1FOBjP- zLYx0GW-)>VvzSBSg2$L^gu#NY;^E9djg#k#%YgaXlDt`Z3-{NobIV7{)T8UQRQ BKhgjI delta 156 zcmca?blHeEz?+$civa|-7QLCs>&gCg+q#tR+ty8tm0|{oRE2{@fT9y`oCJwXUcwjz z6WaWjF^dr_n8h3l7d*yXBMcUF6%S_yYMeY@Tn5bFC!UJJca=y$;UAYs2J>|#)c_-e BNk#ww From 00ddcb2a23943eff653996571d4be7c63c43342d Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Fri, 28 Jul 2023 14:20:50 -0700 Subject: [PATCH 11/25] Vendored - oci-go-sdk v65.45.0 changes for existing & new services --- go.mod | 2 +- go.sum | 2 - .../v65/containerengine/cluster_metadata.go | 3 + ...te_credential_rotation_request_response.go | 99 ++++ .../containerengine/containerengine_client.go | 184 +++++++ .../credential_rotation_status.go | 156 ++++++ ...ential_rotation_status_request_response.go | 94 ++++ .../start_credential_rotation_details.go | 41 ++ ...rt_credential_rotation_request_response.go | 102 ++++ ...t_scheduled_activities_request_response.go | 9 + .../v65/fusionapps/scheduled_activity.go | 89 +++- .../fusionapps/scheduled_activity_summary.go | 47 +- .../v65/loganalytics/abstract_column.go | 8 + .../abstract_command_descriptor.go | 24 + .../v65/loganalytics/association_property.go | 45 ++ .../v65/loganalytics/condition_block.go | 109 ++++ .../v65/loganalytics/creation_source_type.go | 4 + .../v65/loganalytics/credential_endpoint.go | 54 ++ ...og_analytics_em_bridge_request_response.go | 3 + .../effective_property_collection.go | 39 ++ .../effective_property_summary.go | 48 ++ .../v65/loganalytics/endpoint_credentials.go | 99 ++++ .../v65/loganalytics/endpoint_proxy.go | 95 ++++ .../v65/loganalytics/endpoint_request.go | 99 ++++ .../v65/loganalytics/endpoint_response.go | 42 ++ .../v65/loganalytics/endpoint_result.go | 51 ++ .../estimate_recall_data_size_details.go | 6 + .../estimate_recall_data_size_result.go | 9 + .../frequent_command_descriptor.go | 152 ++++++ .../get_recall_count_request_response.go | 89 ++++ ...get_recalled_data_size_request_response.go | 105 ++++ .../get_rules_summary_request_response.go | 92 ++++ .../oci-go-sdk/v65/loganalytics/level.go | 43 ++ ...t_effective_properties_request_response.go | 219 ++++++++ ...st_overlapping_recalls_request_response.go | 208 ++++++++ ...st_properties_metadata_request_response.go | 214 ++++++++ .../list_scheduled_tasks_request_response.go | 22 +- ..._storage_work_requests_request_response.go | 4 + .../loganalytics/log_analytics_association.go | 3 + .../log_analytics_association_parameter.go | 6 + .../loganalytics/log_analytics_endpoint.go | 123 +++++ .../loganalytics/log_analytics_preference.go | 2 +- .../loganalytics/log_analytics_property.go | 42 ++ .../v65/loganalytics/log_analytics_source.go | 205 ++++++++ .../log_analytics_source_label_condition.go | 5 + .../log_analytics_source_pattern.go | 3 + .../log_analytics_source_summary.go | 193 +++++++ .../v65/loganalytics/log_endpoint.go | 66 +++ .../v65/loganalytics/log_list_endpoint.go | 66 +++ .../loganalytics/log_list_type_endpoint.go | 60 +++ .../v65/loganalytics/log_type_endpoint.go | 56 ++ .../v65/loganalytics/loganalytics_client.go | 478 +++++++++++++++++- .../v65/loganalytics/name_value_pair.go | 42 ++ .../oci-go-sdk/v65/loganalytics/namespace.go | 2 +- .../v65/loganalytics/namespace_summary.go | 2 +- .../outlier_command_descriptor.go | 152 ++++++ .../overlapping_recall_collection.go | 39 ++ .../overlapping_recall_summary.go | 63 +++ .../v65/loganalytics/pattern_override.go | 45 ++ .../loganalytics/property_metadata_summary.go | 51 ++ .../property_metadata_summary_collection.go | 39 ++ .../v65/loganalytics/query_aggregation.go | 6 + .../loganalytics/rare_command_descriptor.go | 152 ++++++ .../recall_archived_data_details.go | 6 + .../recall_archived_data_request_response.go | 6 + .../v65/loganalytics/recall_count.go | 51 ++ .../v65/loganalytics/recall_status.go | 60 +++ .../v65/loganalytics/recalled_data.go | 19 + .../v65/loganalytics/recalled_data_info.go | 42 ++ .../v65/loganalytics/recalled_data_size.go | 48 ++ .../v65/loganalytics/rule_summary_report.go | 45 ++ .../oci-go-sdk/v65/loganalytics/storage.go | 2 +- .../loganalytics/storage_operation_type.go | 4 + .../v65/loganalytics/storage_usage.go | 2 +- .../v65/loganalytics/storage_work_request.go | 12 + .../storage_work_request_summary.go | 12 + .../v65/loganalytics/table_column.go | 220 ++++++++ .../oci-go-sdk/v65/loganalytics/task_type.go | 22 +- .../v65/loganalytics/trend_column.go | 3 + .../loganalytics/update_storage_details.go | 2 +- .../upsert_log_analytics_association.go | 3 + .../upsert_log_analytics_source_details.go | 175 +++++++ .../validate_endpoint_request_response.go | 92 ++++ .../loganalytics/validate_endpoint_result.go | 45 ++ .../validate_label_condition_details.go | 44 ++ ...lidate_label_condition_request_response.go | 92 ++++ .../validate_label_condition_result.go | 53 ++ .../oci-go-sdk/v65/loganalytics/value_type.go | 4 + .../change_news_report_compartment_details.go | 41 ++ ...ews_report_compartment_request_response.go | 106 ++++ .../v65/opsi/create_news_report_details.go | 78 +++ .../create_news_report_request_response.go | 110 ++++ .../v65/opsi/data_object_column_metadata.go | 2 +- .../delete_news_report_request_response.go | 96 ++++ ...insight_resource_forecast_trend_summary.go | 3 + .../opsi/get_news_report_request_response.go | 94 ++++ .../opsi/ingest_my_sql_sql_text_details.go | 41 ++ ...ingest_my_sql_sql_text_response_details.go | 41 ++ .../list_news_reports_request_response.go | 231 +++++++++ .../oci-go-sdk/v65/opsi/my_sql_sql_text.go | 58 +++ .../oci-go-sdk/v65/opsi/news_content_types.go | 41 ++ .../v65/opsi/news_content_types_resource.go | 62 +++ .../oci-go-sdk/v65/opsi/news_frequency.go | 54 ++ .../oracle/oci-go-sdk/v65/opsi/news_locale.go | 54 ++ .../oracle/oci-go-sdk/v65/opsi/news_report.go | 100 ++++ .../v65/opsi/news_report_collection.go | 41 ++ .../v65/opsi/news_report_summary.go | 100 ++++ .../oci-go-sdk/v65/opsi/news_reports.go | 41 ++ .../opsi/opsi_operationsinsights_client.go | 358 +++++++++++++ ..._data_object_result_set_column_metadata.go | 2 +- .../oci-go-sdk/v65/opsi/resource_filters.go | 2 +- ...ght_resource_forecast_trend_aggregation.go | 3 + ...ght_resource_forecast_trend_aggregation.go | 3 + ...ght_resource_forecast_trend_aggregation.go | 3 + .../v65/opsi/update_news_report_details.go | 69 +++ .../update_news_report_request_response.go | 99 ++++ vendor/modules.txt | 2 +- 117 files changed, 7539 insertions(+), 72 deletions(-) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go diff --git a/go.mod b/go.mod index e7d61916f4f..019f5bdcd72 100644 --- a/go.mod +++ b/go.mod @@ -76,6 +76,6 @@ require ( ) // Uncomment this line to get OCI Go SDK from local source instead of github -//replace github.com/oracle/oci-go-sdk => ../../oracle/oci-go-sdk +replace github.com/oracle/oci-go-sdk/v65 v65.45.0 => ./vendor/github.com/oracle/oci-go-sdk go 1.18 diff --git a/go.sum b/go.sum index 5217f818551..aaeb6a3ea56 100644 --- a/go.sum +++ b/go.sum @@ -289,8 +289,6 @@ 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.45.0 h1:EpCst/iZma9s8eYS0QJ9qsTmGxX5GPehYGN1jwGIteU= -github.com/oracle/oci-go-sdk/v65 v65.45.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go index 52f40640bef..c6fd02a06ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go @@ -46,6 +46,9 @@ type ClusterMetadata struct { // The OCID of the work request which updated the cluster. UpdatedByWorkRequestId *string `mandatory:"false" json:"updatedByWorkRequestId"` + + // The time until which the cluster credential is valid. + TimeCredentialExpiration *common.SDKTime `mandatory:"false" json:"timeCredentialExpiration"` } func (m ClusterMetadata) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go new file mode 100644 index 00000000000..a6ccdf73c1c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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 containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CompleteCredentialRotationRequest wrapper for the CompleteCredentialRotation operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotationRequest. +type CompleteCredentialRotationRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // A token you supply to uniquely identify the request and provide idempotency if + // the request is retried. Idempotency tokens expire after 24 hours. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // 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"` + + // 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"` + + // 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 CompleteCredentialRotationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CompleteCredentialRotationRequest) 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 CompleteCredentialRotationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CompleteCredentialRotationRequest) 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 CompleteCredentialRotationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CompleteCredentialRotationResponse wrapper for the CompleteCredentialRotation operation +type CompleteCredentialRotationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + 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 CompleteCredentialRotationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CompleteCredentialRotationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 21823560065..7b37b393b4f 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 @@ -148,6 +148,69 @@ func (client ContainerEngineClient) clusterMigrateToNativeVcn(ctx context.Contex return response, err } +// CompleteCredentialRotation Complete cluster credential rotation. Retire old credentials from kubernetes components. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotation API. +// A default retry strategy applies to this operation CompleteCredentialRotation() +func (client ContainerEngineClient) CompleteCredentialRotation(ctx context.Context, request CompleteCredentialRotationRequest) (response CompleteCredentialRotationResponse, 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.completeCredentialRotation, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CompleteCredentialRotationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CompleteCredentialRotationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CompleteCredentialRotationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CompleteCredentialRotationResponse") + } + return +} + +// completeCredentialRotation implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) completeCredentialRotation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/completeCredentialRotation", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CompleteCredentialRotationResponse + 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/containerengine/20180222/Cluster/CompleteCredentialRotation" + err = common.PostProcessServiceError(err, "ContainerEngine", "CompleteCredentialRotation", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateCluster Create a new cluster. // // See also @@ -1095,6 +1158,64 @@ func (client ContainerEngineClient) getClusterOptions(ctx context.Context, reque return response, err } +// GetCredentialRotationStatus Get cluster credential rotation status. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatus API. +// A default retry strategy applies to this operation GetCredentialRotationStatus() +func (client ContainerEngineClient) GetCredentialRotationStatus(ctx context.Context, request GetCredentialRotationStatusRequest) (response GetCredentialRotationStatusResponse, 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.getCredentialRotationStatus, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetCredentialRotationStatusResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetCredentialRotationStatusResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetCredentialRotationStatusResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetCredentialRotationStatusResponse") + } + return +} + +// getCredentialRotationStatus implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getCredentialRotationStatus(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters/{clusterId}/credentialRotationStatus", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetCredentialRotationStatusResponse + 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/containerengine/20180222/CredentialRotationStatus/GetCredentialRotationStatus" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetCredentialRotationStatus", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetNodePool Get the details of a node pool. // // See also @@ -2144,6 +2265,69 @@ func (client ContainerEngineClient) listWorkloadMappings(ctx context.Context, re return response, err } +// StartCredentialRotation Start cluster credential rotation by adding new credentials, old credentials will still work after this operation. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotation API. +// A default retry strategy applies to this operation StartCredentialRotation() +func (client ContainerEngineClient) StartCredentialRotation(ctx context.Context, request StartCredentialRotationRequest) (response StartCredentialRotationResponse, 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.startCredentialRotation, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StartCredentialRotationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StartCredentialRotationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StartCredentialRotationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartCredentialRotationResponse") + } + return +} + +// startCredentialRotation implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) startCredentialRotation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/startCredentialRotation", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StartCredentialRotationResponse + 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/containerengine/20180222/Cluster/StartCredentialRotation" + err = common.PostProcessServiceError(err, "ContainerEngine", "StartCredentialRotation", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateAddon Update addon details for a cluster. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go new file mode 100644 index 00000000000..eeb9cacc1e8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go @@ -0,0 +1,156 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CredentialRotationStatus Information regarding cluster's credential rotation. +type CredentialRotationStatus struct { + + // Credential rotation status of a kubernetes cluster + // IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. + // WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. + // COMPLETED: New credentials are functional on kuberentes cluster. + Status CredentialRotationStatusStatusEnum `mandatory:"true" json:"status"` + + // Details of a kuberenetes cluster credential rotation status: + // ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. + // NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. + // RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. + // COMPLETED: Credential rotation is complete. Old credentials are retired. + StatusDetails CredentialRotationStatusStatusDetailsEnum `mandatory:"true" json:"statusDetails"` + + // The time by which retirement of old credentials should start. + TimeAutoCompletionScheduled *common.SDKTime `mandatory:"false" json:"timeAutoCompletionScheduled"` +} + +func (m CredentialRotationStatus) 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 CredentialRotationStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCredentialRotationStatusStatusEnum(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(GetCredentialRotationStatusStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingCredentialRotationStatusStatusDetailsEnum(string(m.StatusDetails)); !ok && m.StatusDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for StatusDetails: %s. Supported values are: %s.", m.StatusDetails, strings.Join(GetCredentialRotationStatusStatusDetailsEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CredentialRotationStatusStatusEnum Enum with underlying type: string +type CredentialRotationStatusStatusEnum string + +// Set of constants representing the allowable values for CredentialRotationStatusStatusEnum +const ( + CredentialRotationStatusStatusInProgress CredentialRotationStatusStatusEnum = "IN_PROGRESS" + CredentialRotationStatusStatusWaiting CredentialRotationStatusStatusEnum = "WAITING" + CredentialRotationStatusStatusCompleted CredentialRotationStatusStatusEnum = "COMPLETED" +) + +var mappingCredentialRotationStatusStatusEnum = map[string]CredentialRotationStatusStatusEnum{ + "IN_PROGRESS": CredentialRotationStatusStatusInProgress, + "WAITING": CredentialRotationStatusStatusWaiting, + "COMPLETED": CredentialRotationStatusStatusCompleted, +} + +var mappingCredentialRotationStatusStatusEnumLowerCase = map[string]CredentialRotationStatusStatusEnum{ + "in_progress": CredentialRotationStatusStatusInProgress, + "waiting": CredentialRotationStatusStatusWaiting, + "completed": CredentialRotationStatusStatusCompleted, +} + +// GetCredentialRotationStatusStatusEnumValues Enumerates the set of values for CredentialRotationStatusStatusEnum +func GetCredentialRotationStatusStatusEnumValues() []CredentialRotationStatusStatusEnum { + values := make([]CredentialRotationStatusStatusEnum, 0) + for _, v := range mappingCredentialRotationStatusStatusEnum { + values = append(values, v) + } + return values +} + +// GetCredentialRotationStatusStatusEnumStringValues Enumerates the set of values in String for CredentialRotationStatusStatusEnum +func GetCredentialRotationStatusStatusEnumStringValues() []string { + return []string{ + "IN_PROGRESS", + "WAITING", + "COMPLETED", + } +} + +// GetMappingCredentialRotationStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCredentialRotationStatusStatusEnum(val string) (CredentialRotationStatusStatusEnum, bool) { + enum, ok := mappingCredentialRotationStatusStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CredentialRotationStatusStatusDetailsEnum Enum with underlying type: string +type CredentialRotationStatusStatusDetailsEnum string + +// Set of constants representing the allowable values for CredentialRotationStatusStatusDetailsEnum +const ( + CredentialRotationStatusStatusDetailsIssuingNewCredentials CredentialRotationStatusStatusDetailsEnum = "ISSUING_NEW_CREDENTIALS" + CredentialRotationStatusStatusDetailsNewCredentialsIssued CredentialRotationStatusStatusDetailsEnum = "NEW_CREDENTIALS_ISSUED" + CredentialRotationStatusStatusDetailsRetiringOldCredentials CredentialRotationStatusStatusDetailsEnum = "RETIRING_OLD_CREDENTIALS" + CredentialRotationStatusStatusDetailsCompleted CredentialRotationStatusStatusDetailsEnum = "COMPLETED" +) + +var mappingCredentialRotationStatusStatusDetailsEnum = map[string]CredentialRotationStatusStatusDetailsEnum{ + "ISSUING_NEW_CREDENTIALS": CredentialRotationStatusStatusDetailsIssuingNewCredentials, + "NEW_CREDENTIALS_ISSUED": CredentialRotationStatusStatusDetailsNewCredentialsIssued, + "RETIRING_OLD_CREDENTIALS": CredentialRotationStatusStatusDetailsRetiringOldCredentials, + "COMPLETED": CredentialRotationStatusStatusDetailsCompleted, +} + +var mappingCredentialRotationStatusStatusDetailsEnumLowerCase = map[string]CredentialRotationStatusStatusDetailsEnum{ + "issuing_new_credentials": CredentialRotationStatusStatusDetailsIssuingNewCredentials, + "new_credentials_issued": CredentialRotationStatusStatusDetailsNewCredentialsIssued, + "retiring_old_credentials": CredentialRotationStatusStatusDetailsRetiringOldCredentials, + "completed": CredentialRotationStatusStatusDetailsCompleted, +} + +// GetCredentialRotationStatusStatusDetailsEnumValues Enumerates the set of values for CredentialRotationStatusStatusDetailsEnum +func GetCredentialRotationStatusStatusDetailsEnumValues() []CredentialRotationStatusStatusDetailsEnum { + values := make([]CredentialRotationStatusStatusDetailsEnum, 0) + for _, v := range mappingCredentialRotationStatusStatusDetailsEnum { + values = append(values, v) + } + return values +} + +// GetCredentialRotationStatusStatusDetailsEnumStringValues Enumerates the set of values in String for CredentialRotationStatusStatusDetailsEnum +func GetCredentialRotationStatusStatusDetailsEnumStringValues() []string { + return []string{ + "ISSUING_NEW_CREDENTIALS", + "NEW_CREDENTIALS_ISSUED", + "RETIRING_OLD_CREDENTIALS", + "COMPLETED", + } +} + +// GetMappingCredentialRotationStatusStatusDetailsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCredentialRotationStatusStatusDetailsEnum(val string) (CredentialRotationStatusStatusDetailsEnum, bool) { + enum, ok := mappingCredentialRotationStatusStatusDetailsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go new file mode 100644 index 00000000000..5abcc731664 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2023, 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 containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCredentialRotationStatusRequest wrapper for the GetCredentialRotationStatus operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatusRequest. +type GetCredentialRotationStatusRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCredentialRotationStatusRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCredentialRotationStatusRequest) 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 GetCredentialRotationStatusRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCredentialRotationStatusRequest) 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 GetCredentialRotationStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCredentialRotationStatusResponse wrapper for the GetCredentialRotationStatus operation +type GetCredentialRotationStatusResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CredentialRotationStatus instance + CredentialRotationStatus `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 GetCredentialRotationStatusResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCredentialRotationStatusResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go new file mode 100644 index 00000000000..dbb4f2b549c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StartCredentialRotationDetails Properties that define a request to start credential rotation on a kubernetes cluster. +type StartCredentialRotationDetails struct { + + // The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days. + AutoCompletionDelayDuration *string `mandatory:"true" json:"autoCompletionDelayDuration"` +} + +func (m StartCredentialRotationDetails) 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 StartCredentialRotationDetails) 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/containerengine/start_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go new file mode 100644 index 00000000000..11e1ff95d21 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2023, 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 containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StartCredentialRotationRequest wrapper for the StartCredentialRotation operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotationRequest. +type StartCredentialRotationRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // The details for a kubernetes cluster to start credential rotation. + StartCredentialRotationDetails `contributesTo:"body"` + + // A token you supply to uniquely identify the request and provide idempotency if + // the request is retried. Idempotency tokens expire after 24 hours. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // 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"` + + // 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"` + + // 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 StartCredentialRotationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartCredentialRotationRequest) 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 StartCredentialRotationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartCredentialRotationRequest) 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 StartCredentialRotationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StartCredentialRotationResponse wrapper for the StartCredentialRotation operation +type StartCredentialRotationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + 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 StartCredentialRotationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartCredentialRotationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go index 3d0e4c7935c..fdb06f8263f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go @@ -36,6 +36,12 @@ type ListScheduledActivitiesRequest struct { // A filter that returns all resources that match the specified status LifecycleState ScheduledActivityLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + // A filter that returns all resources that match the specified scheduledActivityAssociationId. + ScheduledActivityAssociationId *string `mandatory:"false" contributesTo:"query" name:"scheduledActivityAssociationId"` + + // A filter that returns all resources that match the specified scheduledActivityPhase. + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"false" contributesTo:"query" name:"scheduledActivityPhase" omitEmpty:"true"` + // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -93,6 +99,9 @@ func (request ListScheduledActivitiesRequest) ValidateEnumValue() (bool, error) if _, ok := GetMappingScheduledActivityLifecycleStateEnum(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(GetScheduledActivityLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(request.ScheduledActivityPhase)); !ok && request.ScheduledActivityPhase != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", request.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) + } if _, ok := GetMappingListScheduledActivitiesSortOrderEnum(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(GetListScheduledActivitiesSortOrderEnumStringValues(), ","))) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go index c494935fe94..3c858ee9863 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go @@ -43,6 +43,12 @@ type ScheduledActivity struct { // Current time the scheduled activity is scheduled to end. An RFC3339 formatted datetime string. TimeExpectedFinish *common.SDKTime `mandatory:"true" json:"timeExpectedFinish"` + // A property describing the phase of the scheduled activity. + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"true" json:"scheduledActivityPhase"` + + // The unique identifier that associates a scheduled activity with others in one complete maintenance. For example, with ZDT, a complete upgrade maintenance includes 5 scheduled activities - PREPARE, EXECUTE, POST, PRE_MAINTENANCE, and POST_MAINTENANCE. All of them share the same unique identifier - scheduledActivityAssociationId. + ScheduledActivityAssociationId *string `mandatory:"true" json:"scheduledActivityAssociationId"` + // List of actions Actions []Action `mandatory:"false" json:"actions"` @@ -80,6 +86,9 @@ func (m ScheduledActivity) ValidateEnumValue() (bool, error) { if _, ok := GetMappingScheduledActivityServiceAvailabilityEnum(string(m.ServiceAvailability)); !ok && m.ServiceAvailability != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceAvailability: %s. Supported values are: %s.", m.ServiceAvailability, strings.Join(GetScheduledActivityServiceAvailabilityEnumStringValues(), ","))) } + if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(m.ScheduledActivityPhase)); !ok && m.ScheduledActivityPhase != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", m.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) + } if _, ok := GetMappingScheduledActivityLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetScheduledActivityLifecycleDetailsEnumStringValues(), ","))) @@ -93,20 +102,22 @@ func (m ScheduledActivity) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *ScheduledActivity) UnmarshalJSON(data []byte) (e error) { model := struct { - Actions []action `json:"actions"` - TimeFinished *common.SDKTime `json:"timeFinished"` - DelayInHours *int `json:"delayInHours"` - TimeCreated *common.SDKTime `json:"timeCreated"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails ScheduledActivityLifecycleDetailsEnum `json:"lifecycleDetails"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` - FusionEnvironmentId *string `json:"fusionEnvironmentId"` - LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` - ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` - TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` - TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` + Actions []action `json:"actions"` + TimeFinished *common.SDKTime `json:"timeFinished"` + DelayInHours *int `json:"delayInHours"` + TimeCreated *common.SDKTime `json:"timeCreated"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + LifecycleDetails ScheduledActivityLifecycleDetailsEnum `json:"lifecycleDetails"` + Id *string `json:"id"` + DisplayName *string `json:"displayName"` + RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` + FusionEnvironmentId *string `json:"fusionEnvironmentId"` + LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` + ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` + TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` + TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `json:"scheduledActivityPhase"` + ScheduledActivityAssociationId *string `json:"scheduledActivityAssociationId"` }{} e = json.Unmarshal(data, &model) @@ -153,6 +164,10 @@ func (m *ScheduledActivity) UnmarshalJSON(data []byte) (e error) { m.TimeExpectedFinish = model.TimeExpectedFinish + m.ScheduledActivityPhase = model.ScheduledActivityPhase + + m.ScheduledActivityAssociationId = model.ScheduledActivityAssociationId + return } @@ -355,3 +370,49 @@ func GetMappingScheduledActivityLifecycleDetailsEnum(val string) (ScheduledActiv enum, ok := mappingScheduledActivityLifecycleDetailsEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ScheduledActivityScheduledActivityPhaseEnum Enum with underlying type: string +type ScheduledActivityScheduledActivityPhaseEnum string + +// Set of constants representing the allowable values for ScheduledActivityScheduledActivityPhaseEnum +const ( + ScheduledActivityScheduledActivityPhasePreMaintenance ScheduledActivityScheduledActivityPhaseEnum = "PRE_MAINTENANCE" + ScheduledActivityScheduledActivityPhaseMaintenance ScheduledActivityScheduledActivityPhaseEnum = "MAINTENANCE" + ScheduledActivityScheduledActivityPhasePostMaintenance ScheduledActivityScheduledActivityPhaseEnum = "POST_MAINTENANCE" +) + +var mappingScheduledActivityScheduledActivityPhaseEnum = map[string]ScheduledActivityScheduledActivityPhaseEnum{ + "PRE_MAINTENANCE": ScheduledActivityScheduledActivityPhasePreMaintenance, + "MAINTENANCE": ScheduledActivityScheduledActivityPhaseMaintenance, + "POST_MAINTENANCE": ScheduledActivityScheduledActivityPhasePostMaintenance, +} + +var mappingScheduledActivityScheduledActivityPhaseEnumLowerCase = map[string]ScheduledActivityScheduledActivityPhaseEnum{ + "pre_maintenance": ScheduledActivityScheduledActivityPhasePreMaintenance, + "maintenance": ScheduledActivityScheduledActivityPhaseMaintenance, + "post_maintenance": ScheduledActivityScheduledActivityPhasePostMaintenance, +} + +// GetScheduledActivityScheduledActivityPhaseEnumValues Enumerates the set of values for ScheduledActivityScheduledActivityPhaseEnum +func GetScheduledActivityScheduledActivityPhaseEnumValues() []ScheduledActivityScheduledActivityPhaseEnum { + values := make([]ScheduledActivityScheduledActivityPhaseEnum, 0) + for _, v := range mappingScheduledActivityScheduledActivityPhaseEnum { + values = append(values, v) + } + return values +} + +// GetScheduledActivityScheduledActivityPhaseEnumStringValues Enumerates the set of values in String for ScheduledActivityScheduledActivityPhaseEnum +func GetScheduledActivityScheduledActivityPhaseEnumStringValues() []string { + return []string{ + "PRE_MAINTENANCE", + "MAINTENANCE", + "POST_MAINTENANCE", + } +} + +// GetMappingScheduledActivityScheduledActivityPhaseEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScheduledActivityScheduledActivityPhaseEnum(val string) (ScheduledActivityScheduledActivityPhaseEnum, bool) { + enum, ok := mappingScheduledActivityScheduledActivityPhaseEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go index 8663e6870df..900d98f9aef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go @@ -43,6 +43,12 @@ type ScheduledActivitySummary struct { // Service availability / impact during scheduled activity execution, up down ServiceAvailability ScheduledActivityServiceAvailabilityEnum `mandatory:"true" json:"serviceAvailability"` + // A property describing the phase of the scheduled activity. + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"true" json:"scheduledActivityPhase"` + + // The unique identifier that associates a scheduled activity with others in one complete maintenance. For example, with ZDT, a complete upgrade maintenance includes 5 scheduled activities - PREPARE, EXECUTE, POST, PRE_MAINTENANCE, and POST_MAINTENANCE. All of them share the same unique identifier - scheduledActivityAssociationId. + ScheduledActivityAssociationId *string `mandatory:"true" json:"scheduledActivityAssociationId"` + // List of actions Actions []Action `mandatory:"false" json:"actions"` @@ -88,6 +94,9 @@ func (m ScheduledActivitySummary) ValidateEnumValue() (bool, error) { if _, ok := GetMappingScheduledActivityServiceAvailabilityEnum(string(m.ServiceAvailability)); !ok && m.ServiceAvailability != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceAvailability: %s. Supported values are: %s.", m.ServiceAvailability, strings.Join(GetScheduledActivityServiceAvailabilityEnumStringValues(), ","))) } + if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(m.ScheduledActivityPhase)); !ok && m.ScheduledActivityPhase != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", m.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) @@ -98,22 +107,24 @@ func (m ScheduledActivitySummary) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *ScheduledActivitySummary) UnmarshalJSON(data []byte) (e error) { model := struct { - Actions []action `json:"actions"` - TimeFinished *common.SDKTime `json:"timeFinished"` - DelayInHours *int `json:"delayInHours"` - TimeAccepted *common.SDKTime `json:"timeAccepted"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` - FusionEnvironmentId *string `json:"fusionEnvironmentId"` - LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` - TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` - TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` - ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` + Actions []action `json:"actions"` + TimeFinished *common.SDKTime `json:"timeFinished"` + DelayInHours *int `json:"delayInHours"` + TimeAccepted *common.SDKTime `json:"timeAccepted"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + LifecycleDetails *string `json:"lifecycleDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + Id *string `json:"id"` + DisplayName *string `json:"displayName"` + RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` + FusionEnvironmentId *string `json:"fusionEnvironmentId"` + LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` + TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` + TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` + ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `json:"scheduledActivityPhase"` + ScheduledActivityAssociationId *string `json:"scheduledActivityAssociationId"` }{} e = json.Unmarshal(data, &model) @@ -164,5 +175,9 @@ func (m *ScheduledActivitySummary) UnmarshalJSON(data []byte) (e error) { m.ServiceAvailability = model.ServiceAvailability + m.ScheduledActivityPhase = model.ScheduledActivityPhase + + m.ScheduledActivityAssociationId = model.ScheduledActivityAssociationId + return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go index b1905a3df92..abb1e87fdfe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go @@ -137,6 +137,10 @@ func (m *abstractcolumn) UnmarshalPolymorphicJSON(data []byte) (interface{}, err mm := TimeStatsDataColumn{} err = json.Unmarshal(data, &mm) return mm, err + case "TABLE_COLUMN": + mm := TableColumn{} + err = json.Unmarshal(data, &mm) + return mm, err case "CHART_COLUMN": mm := ChartColumn{} err = json.Unmarshal(data, &mm) @@ -240,6 +244,7 @@ const ( AbstractColumnTypeTimeStatsDataColumn AbstractColumnTypeEnum = "TIME_STATS_DATA_COLUMN" AbstractColumnTypeTimeClusterColumn AbstractColumnTypeEnum = "TIME_CLUSTER_COLUMN" AbstractColumnTypeTimeClusterDataColumn AbstractColumnTypeEnum = "TIME_CLUSTER_DATA_COLUMN" + AbstractColumnTypeTableColumn AbstractColumnTypeEnum = "TABLE_COLUMN" AbstractColumnTypeTimeColumn AbstractColumnTypeEnum = "TIME_COLUMN" AbstractColumnTypeTrendColumn AbstractColumnTypeEnum = "TREND_COLUMN" AbstractColumnTypeClassifyColumn AbstractColumnTypeEnum = "CLASSIFY_COLUMN" @@ -253,6 +258,7 @@ var mappingAbstractColumnTypeEnum = map[string]AbstractColumnTypeEnum{ "TIME_STATS_DATA_COLUMN": AbstractColumnTypeTimeStatsDataColumn, "TIME_CLUSTER_COLUMN": AbstractColumnTypeTimeClusterColumn, "TIME_CLUSTER_DATA_COLUMN": AbstractColumnTypeTimeClusterDataColumn, + "TABLE_COLUMN": AbstractColumnTypeTableColumn, "TIME_COLUMN": AbstractColumnTypeTimeColumn, "TREND_COLUMN": AbstractColumnTypeTrendColumn, "CLASSIFY_COLUMN": AbstractColumnTypeClassifyColumn, @@ -266,6 +272,7 @@ var mappingAbstractColumnTypeEnumLowerCase = map[string]AbstractColumnTypeEnum{ "time_stats_data_column": AbstractColumnTypeTimeStatsDataColumn, "time_cluster_column": AbstractColumnTypeTimeClusterColumn, "time_cluster_data_column": AbstractColumnTypeTimeClusterDataColumn, + "table_column": AbstractColumnTypeTableColumn, "time_column": AbstractColumnTypeTimeColumn, "trend_column": AbstractColumnTypeTrendColumn, "classify_column": AbstractColumnTypeClassifyColumn, @@ -290,6 +297,7 @@ func GetAbstractColumnTypeEnumStringValues() []string { "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", + "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go index 39950c1a2d7..342a2556aa5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go @@ -96,6 +96,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := TailCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "OUTLIER": + mm := OutlierCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "DEMO_MODE": mm := DemoModeCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -140,6 +144,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := BucketCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "RARE": + mm := RareCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "ADD_INSIGHTS": mm := AddInsightsCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -216,6 +224,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := ClusterSplitCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "FREQUENT": + mm := FrequentCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "CLUSTER_DETAILS": mm := ClusterDetailsCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -387,6 +399,9 @@ const ( AbstractCommandDescriptorNameAnomaly AbstractCommandDescriptorNameEnum = "ANOMALY" AbstractCommandDescriptorNameDedup AbstractCommandDescriptorNameEnum = "DEDUP" AbstractCommandDescriptorNameTimeCluster AbstractCommandDescriptorNameEnum = "TIME_CLUSTER" + AbstractCommandDescriptorNameFrequent AbstractCommandDescriptorNameEnum = "FREQUENT" + AbstractCommandDescriptorNameRare AbstractCommandDescriptorNameEnum = "RARE" + AbstractCommandDescriptorNameOutlier AbstractCommandDescriptorNameEnum = "OUTLIER" ) var mappingAbstractCommandDescriptorNameEnum = map[string]AbstractCommandDescriptorNameEnum{ @@ -440,6 +455,9 @@ var mappingAbstractCommandDescriptorNameEnum = map[string]AbstractCommandDescrip "ANOMALY": AbstractCommandDescriptorNameAnomaly, "DEDUP": AbstractCommandDescriptorNameDedup, "TIME_CLUSTER": AbstractCommandDescriptorNameTimeCluster, + "FREQUENT": AbstractCommandDescriptorNameFrequent, + "RARE": AbstractCommandDescriptorNameRare, + "OUTLIER": AbstractCommandDescriptorNameOutlier, } var mappingAbstractCommandDescriptorNameEnumLowerCase = map[string]AbstractCommandDescriptorNameEnum{ @@ -493,6 +511,9 @@ var mappingAbstractCommandDescriptorNameEnumLowerCase = map[string]AbstractComma "anomaly": AbstractCommandDescriptorNameAnomaly, "dedup": AbstractCommandDescriptorNameDedup, "time_cluster": AbstractCommandDescriptorNameTimeCluster, + "frequent": AbstractCommandDescriptorNameFrequent, + "rare": AbstractCommandDescriptorNameRare, + "outlier": AbstractCommandDescriptorNameOutlier, } // GetAbstractCommandDescriptorNameEnumValues Enumerates the set of values for AbstractCommandDescriptorNameEnum @@ -557,6 +578,9 @@ func GetAbstractCommandDescriptorNameEnumStringValues() []string { "ANOMALY", "DEDUP", "TIME_CLUSTER", + "FREQUENT", + "RARE", + "OUTLIER", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go new file mode 100644 index 00000000000..264c3ff0e44 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AssociationProperty A property represented as a name-value pair. +type AssociationProperty struct { + + // The name of the association property. + Name *string `mandatory:"true" json:"name"` + + // The value of the association property. + Value *string `mandatory:"false" json:"value"` + + // A list of pattern level overrides for this property. + Patterns []PatternOverride `mandatory:"false" json:"patterns"` +} + +func (m AssociationProperty) 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 AssociationProperty) 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/loganalytics/condition_block.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go new file mode 100644 index 00000000000..41df142d3ae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConditionBlock A condition block. This could represent a single condition, or have nested condition blocks under it. +// To form a single condition, specify the fieldName, labelConditionOperator and labelConditionValue(s). +// To form nested conditions, specify the conditions in conditionBlocks, and how to join them in conditionBlocksOperator. +type ConditionBlock struct { + + // Operator using which the conditionBlocks should be joined. Specify this for nested conditions. + ConditionBlocksOperator ConditionBlockConditionBlocksOperatorEnum `mandatory:"false" json:"conditionBlocksOperator,omitempty"` + + // The name of the field the condition is based on. Specify this if this condition block represents a single condition. + FieldName *string `mandatory:"false" json:"fieldName"` + + // The condition operator. Specify this if this condition block represents a single condition. + LabelConditionOperator *string `mandatory:"false" json:"labelConditionOperator"` + + // The condition value. Specify this if this condition block represents a single condition. + LabelConditionValue *string `mandatory:"false" json:"labelConditionValue"` + + // A list of condition values. Specify this if this condition block represents a single condition. + LabelConditionValues []string `mandatory:"false" json:"labelConditionValues"` + + // Condition blocks to evaluate within this condition block. Specify this for nested conditions. + ConditionBlocks []ConditionBlock `mandatory:"false" json:"conditionBlocks"` +} + +func (m ConditionBlock) 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 ConditionBlock) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingConditionBlockConditionBlocksOperatorEnum(string(m.ConditionBlocksOperator)); !ok && m.ConditionBlocksOperator != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConditionBlocksOperator: %s. Supported values are: %s.", m.ConditionBlocksOperator, strings.Join(GetConditionBlockConditionBlocksOperatorEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ConditionBlockConditionBlocksOperatorEnum Enum with underlying type: string +type ConditionBlockConditionBlocksOperatorEnum string + +// Set of constants representing the allowable values for ConditionBlockConditionBlocksOperatorEnum +const ( + ConditionBlockConditionBlocksOperatorAnd ConditionBlockConditionBlocksOperatorEnum = "AND" + ConditionBlockConditionBlocksOperatorOr ConditionBlockConditionBlocksOperatorEnum = "OR" + ConditionBlockConditionBlocksOperatorNotAnd ConditionBlockConditionBlocksOperatorEnum = "NOT_AND" + ConditionBlockConditionBlocksOperatorNotOr ConditionBlockConditionBlocksOperatorEnum = "NOT_OR" +) + +var mappingConditionBlockConditionBlocksOperatorEnum = map[string]ConditionBlockConditionBlocksOperatorEnum{ + "AND": ConditionBlockConditionBlocksOperatorAnd, + "OR": ConditionBlockConditionBlocksOperatorOr, + "NOT_AND": ConditionBlockConditionBlocksOperatorNotAnd, + "NOT_OR": ConditionBlockConditionBlocksOperatorNotOr, +} + +var mappingConditionBlockConditionBlocksOperatorEnumLowerCase = map[string]ConditionBlockConditionBlocksOperatorEnum{ + "and": ConditionBlockConditionBlocksOperatorAnd, + "or": ConditionBlockConditionBlocksOperatorOr, + "not_and": ConditionBlockConditionBlocksOperatorNotAnd, + "not_or": ConditionBlockConditionBlocksOperatorNotOr, +} + +// GetConditionBlockConditionBlocksOperatorEnumValues Enumerates the set of values for ConditionBlockConditionBlocksOperatorEnum +func GetConditionBlockConditionBlocksOperatorEnumValues() []ConditionBlockConditionBlocksOperatorEnum { + values := make([]ConditionBlockConditionBlocksOperatorEnum, 0) + for _, v := range mappingConditionBlockConditionBlocksOperatorEnum { + values = append(values, v) + } + return values +} + +// GetConditionBlockConditionBlocksOperatorEnumStringValues Enumerates the set of values in String for ConditionBlockConditionBlocksOperatorEnum +func GetConditionBlockConditionBlocksOperatorEnumStringValues() []string { + return []string{ + "AND", + "OR", + "NOT_AND", + "NOT_OR", + } +} + +// GetMappingConditionBlockConditionBlocksOperatorEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingConditionBlockConditionBlocksOperatorEnum(val string) (ConditionBlockConditionBlocksOperatorEnum, bool) { + enum, ok := mappingConditionBlockConditionBlocksOperatorEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go index 2e9512345b5..971c67fb506 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go @@ -19,6 +19,7 @@ type CreationSourceTypeEnum string // Set of constants representing the allowable values for CreationSourceTypeEnum const ( CreationSourceTypeEmBridge CreationSourceTypeEnum = "EM_BRIDGE" + CreationSourceTypeBulkDiscovery CreationSourceTypeEnum = "BULK_DISCOVERY" CreationSourceTypeServiceConnectorHub CreationSourceTypeEnum = "SERVICE_CONNECTOR_HUB" CreationSourceTypeDiscovery CreationSourceTypeEnum = "DISCOVERY" CreationSourceTypeNone CreationSourceTypeEnum = "NONE" @@ -26,6 +27,7 @@ const ( var mappingCreationSourceTypeEnum = map[string]CreationSourceTypeEnum{ "EM_BRIDGE": CreationSourceTypeEmBridge, + "BULK_DISCOVERY": CreationSourceTypeBulkDiscovery, "SERVICE_CONNECTOR_HUB": CreationSourceTypeServiceConnectorHub, "DISCOVERY": CreationSourceTypeDiscovery, "NONE": CreationSourceTypeNone, @@ -33,6 +35,7 @@ var mappingCreationSourceTypeEnum = map[string]CreationSourceTypeEnum{ var mappingCreationSourceTypeEnumLowerCase = map[string]CreationSourceTypeEnum{ "em_bridge": CreationSourceTypeEmBridge, + "bulk_discovery": CreationSourceTypeBulkDiscovery, "service_connector_hub": CreationSourceTypeServiceConnectorHub, "discovery": CreationSourceTypeDiscovery, "none": CreationSourceTypeNone, @@ -51,6 +54,7 @@ func GetCreationSourceTypeEnumValues() []CreationSourceTypeEnum { func GetCreationSourceTypeEnumStringValues() []string { return []string{ "EM_BRIDGE", + "BULK_DISCOVERY", "SERVICE_CONNECTOR_HUB", "DISCOVERY", "NONE", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go new file mode 100644 index 00000000000..32a9eb16d9c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CredentialEndpoint The endpoint from where to fetch a credential, for example, the OAuth 2.0 token. +type CredentialEndpoint struct { + + // The credential endpoint name. + Name *string `mandatory:"true" json:"name"` + + Request *EndpointRequest `mandatory:"true" json:"request"` + + // The credential endpoint description. + Description *string `mandatory:"false" json:"description"` + + // The credential endpoint model. + Model *string `mandatory:"false" json:"model"` + + // The endpoint unique identifier. + EndpointId *int64 `mandatory:"false" json:"endpointId"` + + Response *EndpointResponse `mandatory:"false" json:"response"` + + Proxy *EndpointProxy `mandatory:"false" json:"proxy"` +} + +func (m CredentialEndpoint) 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 CredentialEndpoint) 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/loganalytics/delete_log_analytics_em_bridge_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go index d6e99cb18b1..fd6fecdf744 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go @@ -34,6 +34,9 @@ type DeleteLogAnalyticsEmBridgeRequest struct { // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // If true, delete entities created by this bridge + IsDeleteEntities *bool `mandatory:"false" contributesTo:"query" name:"isDeleteEntities"` + // 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/loganalytics/effective_property_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go new file mode 100644 index 00000000000..a6a6c0a8570 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EffectivePropertyCollection A collection of effective properties. +type EffectivePropertyCollection struct { + + // A list of properties and their effective values. + Items []EffectivePropertySummary `mandatory:"false" json:"items"` +} + +func (m EffectivePropertyCollection) 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 EffectivePropertyCollection) 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/loganalytics/effective_property_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go new file mode 100644 index 00000000000..7cf73ed0101 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EffectivePropertySummary A property and its effective value details. +type EffectivePropertySummary struct { + + // The property name. + Name *string `mandatory:"true" json:"name"` + + // The effective value of the property. This is determined by considering the value set at the most effective level. + Value *string `mandatory:"false" json:"value"` + + // The level from which the effective value was determined. + EffectiveLevel *string `mandatory:"false" json:"effectiveLevel"` + + // A list of pattern level override values for the property. + Patterns []PatternOverride `mandatory:"false" json:"patterns"` +} + +func (m EffectivePropertySummary) 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 EffectivePropertySummary) 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/loganalytics/endpoint_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go new file mode 100644 index 00000000000..4ae5523abc6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointCredentials An object containing credential details to authenticate/authorize a REST request. +type EndpointCredentials struct { + + // The credential type. NONE indicates credentials are not needed to access the endpoint. + // BASIC_AUTH represents a username and password based model. TOKEN could be static or dynamic. + // In case of dynamic tokens, also specify the endpoint from which the token must be fetched. + CredentialType EndpointCredentialsCredentialTypeEnum `mandatory:"false" json:"credentialType,omitempty"` + + // The named credential name on the management agent. + CredentialName *string `mandatory:"false" json:"credentialName"` + + CredentialEndpoint *CredentialEndpoint `mandatory:"false" json:"credentialEndpoint"` +} + +func (m EndpointCredentials) 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 EndpointCredentials) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEndpointCredentialsCredentialTypeEnum(string(m.CredentialType)); !ok && m.CredentialType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CredentialType: %s. Supported values are: %s.", m.CredentialType, strings.Join(GetEndpointCredentialsCredentialTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EndpointCredentialsCredentialTypeEnum Enum with underlying type: string +type EndpointCredentialsCredentialTypeEnum string + +// Set of constants representing the allowable values for EndpointCredentialsCredentialTypeEnum +const ( + EndpointCredentialsCredentialTypeNone EndpointCredentialsCredentialTypeEnum = "NONE" + EndpointCredentialsCredentialTypeBasicAuth EndpointCredentialsCredentialTypeEnum = "BASIC_AUTH" + EndpointCredentialsCredentialTypeStaticToken EndpointCredentialsCredentialTypeEnum = "STATIC_TOKEN" + EndpointCredentialsCredentialTypeDynamicToken EndpointCredentialsCredentialTypeEnum = "DYNAMIC_TOKEN" +) + +var mappingEndpointCredentialsCredentialTypeEnum = map[string]EndpointCredentialsCredentialTypeEnum{ + "NONE": EndpointCredentialsCredentialTypeNone, + "BASIC_AUTH": EndpointCredentialsCredentialTypeBasicAuth, + "STATIC_TOKEN": EndpointCredentialsCredentialTypeStaticToken, + "DYNAMIC_TOKEN": EndpointCredentialsCredentialTypeDynamicToken, +} + +var mappingEndpointCredentialsCredentialTypeEnumLowerCase = map[string]EndpointCredentialsCredentialTypeEnum{ + "none": EndpointCredentialsCredentialTypeNone, + "basic_auth": EndpointCredentialsCredentialTypeBasicAuth, + "static_token": EndpointCredentialsCredentialTypeStaticToken, + "dynamic_token": EndpointCredentialsCredentialTypeDynamicToken, +} + +// GetEndpointCredentialsCredentialTypeEnumValues Enumerates the set of values for EndpointCredentialsCredentialTypeEnum +func GetEndpointCredentialsCredentialTypeEnumValues() []EndpointCredentialsCredentialTypeEnum { + values := make([]EndpointCredentialsCredentialTypeEnum, 0) + for _, v := range mappingEndpointCredentialsCredentialTypeEnum { + values = append(values, v) + } + return values +} + +// GetEndpointCredentialsCredentialTypeEnumStringValues Enumerates the set of values in String for EndpointCredentialsCredentialTypeEnum +func GetEndpointCredentialsCredentialTypeEnumStringValues() []string { + return []string{ + "NONE", + "BASIC_AUTH", + "STATIC_TOKEN", + "DYNAMIC_TOKEN", + } +} + +// GetMappingEndpointCredentialsCredentialTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEndpointCredentialsCredentialTypeEnum(val string) (EndpointCredentialsCredentialTypeEnum, bool) { + enum, ok := mappingEndpointCredentialsCredentialTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go new file mode 100644 index 00000000000..21054dc841a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointProxy An object containing the endpoint proxy details. +type EndpointProxy struct { + + // The proxy URL. + Url *string `mandatory:"true" json:"url"` + + // The named credential name on the management agent, containing the proxy credentials. + CredentialName *string `mandatory:"false" json:"credentialName"` + + // The credential type. NONE indicates credentials are not needed to access the proxy. + // BASIC_AUTH represents a username and password based model. TOKEN represents a token based model. + CredentialType EndpointProxyCredentialTypeEnum `mandatory:"false" json:"credentialType,omitempty"` +} + +func (m EndpointProxy) 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 EndpointProxy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEndpointProxyCredentialTypeEnum(string(m.CredentialType)); !ok && m.CredentialType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CredentialType: %s. Supported values are: %s.", m.CredentialType, strings.Join(GetEndpointProxyCredentialTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EndpointProxyCredentialTypeEnum Enum with underlying type: string +type EndpointProxyCredentialTypeEnum string + +// Set of constants representing the allowable values for EndpointProxyCredentialTypeEnum +const ( + EndpointProxyCredentialTypeNone EndpointProxyCredentialTypeEnum = "NONE" + EndpointProxyCredentialTypeBasicAuth EndpointProxyCredentialTypeEnum = "BASIC_AUTH" + EndpointProxyCredentialTypeToken EndpointProxyCredentialTypeEnum = "TOKEN" +) + +var mappingEndpointProxyCredentialTypeEnum = map[string]EndpointProxyCredentialTypeEnum{ + "NONE": EndpointProxyCredentialTypeNone, + "BASIC_AUTH": EndpointProxyCredentialTypeBasicAuth, + "TOKEN": EndpointProxyCredentialTypeToken, +} + +var mappingEndpointProxyCredentialTypeEnumLowerCase = map[string]EndpointProxyCredentialTypeEnum{ + "none": EndpointProxyCredentialTypeNone, + "basic_auth": EndpointProxyCredentialTypeBasicAuth, + "token": EndpointProxyCredentialTypeToken, +} + +// GetEndpointProxyCredentialTypeEnumValues Enumerates the set of values for EndpointProxyCredentialTypeEnum +func GetEndpointProxyCredentialTypeEnumValues() []EndpointProxyCredentialTypeEnum { + values := make([]EndpointProxyCredentialTypeEnum, 0) + for _, v := range mappingEndpointProxyCredentialTypeEnum { + values = append(values, v) + } + return values +} + +// GetEndpointProxyCredentialTypeEnumStringValues Enumerates the set of values in String for EndpointProxyCredentialTypeEnum +func GetEndpointProxyCredentialTypeEnumStringValues() []string { + return []string{ + "NONE", + "BASIC_AUTH", + "TOKEN", + } +} + +// GetMappingEndpointProxyCredentialTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEndpointProxyCredentialTypeEnum(val string) (EndpointProxyCredentialTypeEnum, bool) { + enum, ok := mappingEndpointProxyCredentialTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go new file mode 100644 index 00000000000..74c0b7e89e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointRequest An object containing details to make a REST request. +type EndpointRequest struct { + + // The request URL. + Url *string `mandatory:"true" json:"url"` + + // The endpoint method - GET or POST. + Method EndpointRequestMethodEnum `mandatory:"false" json:"method,omitempty"` + + // The request content type. + ContentType *string `mandatory:"false" json:"contentType"` + + // The request payload, applicable for POST requests. + Payload *string `mandatory:"false" json:"payload"` + + // The request headers represented as a list of name-value pairs. + Headers []NameValuePair `mandatory:"false" json:"headers"` + + // The request form parameters represented as a list of name-value pairs. + FormParameters []NameValuePair `mandatory:"false" json:"formParameters"` +} + +func (m EndpointRequest) 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 EndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEndpointRequestMethodEnum(string(m.Method)); !ok && m.Method != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Method: %s. Supported values are: %s.", m.Method, strings.Join(GetEndpointRequestMethodEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EndpointRequestMethodEnum Enum with underlying type: string +type EndpointRequestMethodEnum string + +// Set of constants representing the allowable values for EndpointRequestMethodEnum +const ( + EndpointRequestMethodGet EndpointRequestMethodEnum = "GET" + EndpointRequestMethodPost EndpointRequestMethodEnum = "POST" +) + +var mappingEndpointRequestMethodEnum = map[string]EndpointRequestMethodEnum{ + "GET": EndpointRequestMethodGet, + "POST": EndpointRequestMethodPost, +} + +var mappingEndpointRequestMethodEnumLowerCase = map[string]EndpointRequestMethodEnum{ + "get": EndpointRequestMethodGet, + "post": EndpointRequestMethodPost, +} + +// GetEndpointRequestMethodEnumValues Enumerates the set of values for EndpointRequestMethodEnum +func GetEndpointRequestMethodEnumValues() []EndpointRequestMethodEnum { + values := make([]EndpointRequestMethodEnum, 0) + for _, v := range mappingEndpointRequestMethodEnum { + values = append(values, v) + } + return values +} + +// GetEndpointRequestMethodEnumStringValues Enumerates the set of values in String for EndpointRequestMethodEnum +func GetEndpointRequestMethodEnumStringValues() []string { + return []string{ + "GET", + "POST", + } +} + +// GetMappingEndpointRequestMethodEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEndpointRequestMethodEnum(val string) (EndpointRequestMethodEnum, bool) { + enum, ok := mappingEndpointRequestMethodEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go new file mode 100644 index 00000000000..94985a50bfe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointResponse An object containing details of a REST response. +type EndpointResponse struct { + + // The response content type. + ContentType *string `mandatory:"false" json:"contentType"` + + // A sample response. + Example *string `mandatory:"false" json:"example"` +} + +func (m EndpointResponse) 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 EndpointResponse) 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/loganalytics/endpoint_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go new file mode 100644 index 00000000000..f55258d29a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointResult The validation status of a specified endpoint. +type EndpointResult struct { + + // The endpoint name. + EndpointName *string `mandatory:"false" json:"endpointName"` + + // The endpoint URL. + Url *string `mandatory:"false" json:"url"` + + // The endpoint validation status. + Status *string `mandatory:"false" json:"status"` + + // The list of violations (if any). + Violations []Violation `mandatory:"false" json:"violations"` + + // The resolved log endpoints based on the specified list endpoint response. + LogEndpoints []string `mandatory:"false" json:"logEndpoints"` +} + +func (m EndpointResult) 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 EndpointResult) 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/loganalytics/estimate_recall_data_size_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go index d215871962e..bb6d14667ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go @@ -23,6 +23,12 @@ type EstimateRecallDataSizeDetails struct { // This is the end of the time range for the data to be recalled TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` + + // This is the list of logsets to be accounted for in the recalled data + LogSets *string `mandatory:"false" json:"logSets"` + + // This indicates if only new data has to be recalled in the timeframe + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m EstimateRecallDataSizeDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go index 30097ac3635..869a859295f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go @@ -31,6 +31,15 @@ type EstimateRecallDataSizeResult struct { // This indicates if the time range of data to be recalled overlaps with existing recalled data IsOverlappingWithExistingRecalls *bool `mandatory:"false" json:"isOverlappingWithExistingRecalls"` + + // This is the number of core groups estimated for this recall + CoreGroupCount *int `mandatory:"false" json:"coreGroupCount"` + + // This is the max number of core groups that is available for any recall + CoreGroupCountLimit *int `mandatory:"false" json:"coreGroupCountLimit"` + + // This is the size limit in bytes + SizeLimitInBytes *int64 `mandatory:"false" json:"sizeLimitInBytes"` } func (m EstimateRecallDataSizeResult) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go new file mode 100644 index 00000000000..deb5b052b2e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FrequentCommandDescriptor Command descriptor for querylanguage FREQUENT command. +type FrequentCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +//GetDisplayQueryString returns DisplayQueryString +func (m FrequentCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +//GetInternalQueryString returns InternalQueryString +func (m FrequentCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +//GetCategory returns Category +func (m FrequentCommandDescriptor) GetCategory() *string { + return m.Category +} + +//GetReferencedFields returns ReferencedFields +func (m FrequentCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +//GetDeclaredFields returns DeclaredFields +func (m FrequentCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +//GetIsHidden returns IsHidden +func (m FrequentCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m FrequentCommandDescriptor) 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 FrequentCommandDescriptor) 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 FrequentCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFrequentCommandDescriptor FrequentCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeFrequentCommandDescriptor + }{ + "FREQUENT", + (MarshalTypeFrequentCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *FrequentCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go new file mode 100644 index 00000000000..abbf7c5e576 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRecallCountRequest wrapper for the GetRecallCount operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecallCount.go.html to see an example of how to use GetRecallCountRequest. +type GetRecallCountRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // 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 GetRecallCountRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRecallCountRequest) 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 GetRecallCountRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRecallCountRequest) 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 GetRecallCountRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRecallCountResponse wrapper for the GetRecallCount operation +type GetRecallCountResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecallCount instance + RecallCount `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetRecallCountResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRecallCountResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go new file mode 100644 index 00000000000..881b3013feb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRecalledDataSizeRequest wrapper for the GetRecalledDataSize operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecalledDataSize.go.html to see an example of how to use GetRecalledDataSizeRequest. +type GetRecalledDataSizeRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // This is the start of the time range for recalled data + TimeDataStarted *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataStarted"` + + // This is the end of the time range for recalled data + TimeDataEnded *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataEnded"` + + // 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 GetRecalledDataSizeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRecalledDataSizeRequest) 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 GetRecalledDataSizeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRecalledDataSizeRequest) 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 GetRecalledDataSizeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRecalledDataSizeResponse wrapper for the GetRecalledDataSize operation +type GetRecalledDataSizeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecalledDataSize instance + RecalledDataSize `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, 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 additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response GetRecalledDataSizeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRecalledDataSizeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go new file mode 100644 index 00000000000..837163113c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRulesSummaryRequest wrapper for the GetRulesSummary operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRulesSummary.go.html to see an example of how to use GetRulesSummaryRequest. +type GetRulesSummaryRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The ID of the compartment in which to list resources. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // 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 GetRulesSummaryRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRulesSummaryRequest) 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 GetRulesSummaryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRulesSummaryRequest) 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 GetRulesSummaryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRulesSummaryResponse wrapper for the GetRulesSummary operation +type GetRulesSummaryResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RuleSummaryReport instance + RuleSummaryReport `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetRulesSummaryResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRulesSummaryResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go new file mode 100644 index 00000000000..af9b70ca9c2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Level An object used to represent a level at which a property or resource or constraint is defined. +type Level struct { + + // The level name. + Name *string `mandatory:"true" json:"name"` + + // A string representation of constraints that apply at this level. + // For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql. + Constraints *string `mandatory:"false" json:"constraints"` +} + +func (m Level) 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 Level) 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/loganalytics/list_effective_properties_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go new file mode 100644 index 00000000000..870bd325094 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListEffectivePropertiesRequest wrapper for the ListEffectiveProperties operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListEffectiveProperties.go.html to see an example of how to use ListEffectivePropertiesRequest. +type ListEffectivePropertiesRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The agent ocid. + AgentId *string `mandatory:"false" contributesTo:"query" name:"agentId"` + + // The source name. + SourceName *string `mandatory:"false" contributesTo:"query" name:"sourceName"` + + // The include pattern flag. + IsIncludePatterns *bool `mandatory:"false" contributesTo:"query" name:"isIncludePatterns"` + + // The entity ocid. + EntityId *string `mandatory:"false" contributesTo:"query" name:"entityId"` + + // The pattern id. + PatternId *int `mandatory:"false" contributesTo:"query" name:"patternId"` + + // The property name used for filtering. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListEffectivePropertiesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The attribute used to sort the returned properties + SortBy ListEffectivePropertiesSortByEnum `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 ListEffectivePropertiesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListEffectivePropertiesRequest) 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 ListEffectivePropertiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListEffectivePropertiesRequest) 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 ListEffectivePropertiesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListEffectivePropertiesSortOrderEnum(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(GetListEffectivePropertiesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListEffectivePropertiesSortByEnum(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(GetListEffectivePropertiesSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListEffectivePropertiesResponse wrapper for the ListEffectiveProperties operation +type ListEffectivePropertiesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of EffectivePropertyCollection instances + EffectivePropertyCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListEffectivePropertiesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListEffectivePropertiesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListEffectivePropertiesSortOrderEnum Enum with underlying type: string +type ListEffectivePropertiesSortOrderEnum string + +// Set of constants representing the allowable values for ListEffectivePropertiesSortOrderEnum +const ( + ListEffectivePropertiesSortOrderAsc ListEffectivePropertiesSortOrderEnum = "ASC" + ListEffectivePropertiesSortOrderDesc ListEffectivePropertiesSortOrderEnum = "DESC" +) + +var mappingListEffectivePropertiesSortOrderEnum = map[string]ListEffectivePropertiesSortOrderEnum{ + "ASC": ListEffectivePropertiesSortOrderAsc, + "DESC": ListEffectivePropertiesSortOrderDesc, +} + +var mappingListEffectivePropertiesSortOrderEnumLowerCase = map[string]ListEffectivePropertiesSortOrderEnum{ + "asc": ListEffectivePropertiesSortOrderAsc, + "desc": ListEffectivePropertiesSortOrderDesc, +} + +// GetListEffectivePropertiesSortOrderEnumValues Enumerates the set of values for ListEffectivePropertiesSortOrderEnum +func GetListEffectivePropertiesSortOrderEnumValues() []ListEffectivePropertiesSortOrderEnum { + values := make([]ListEffectivePropertiesSortOrderEnum, 0) + for _, v := range mappingListEffectivePropertiesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListEffectivePropertiesSortOrderEnumStringValues Enumerates the set of values in String for ListEffectivePropertiesSortOrderEnum +func GetListEffectivePropertiesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListEffectivePropertiesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListEffectivePropertiesSortOrderEnum(val string) (ListEffectivePropertiesSortOrderEnum, bool) { + enum, ok := mappingListEffectivePropertiesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListEffectivePropertiesSortByEnum Enum with underlying type: string +type ListEffectivePropertiesSortByEnum string + +// Set of constants representing the allowable values for ListEffectivePropertiesSortByEnum +const ( + ListEffectivePropertiesSortByName ListEffectivePropertiesSortByEnum = "name" + ListEffectivePropertiesSortByDisplayname ListEffectivePropertiesSortByEnum = "displayName" +) + +var mappingListEffectivePropertiesSortByEnum = map[string]ListEffectivePropertiesSortByEnum{ + "name": ListEffectivePropertiesSortByName, + "displayName": ListEffectivePropertiesSortByDisplayname, +} + +var mappingListEffectivePropertiesSortByEnumLowerCase = map[string]ListEffectivePropertiesSortByEnum{ + "name": ListEffectivePropertiesSortByName, + "displayname": ListEffectivePropertiesSortByDisplayname, +} + +// GetListEffectivePropertiesSortByEnumValues Enumerates the set of values for ListEffectivePropertiesSortByEnum +func GetListEffectivePropertiesSortByEnumValues() []ListEffectivePropertiesSortByEnum { + values := make([]ListEffectivePropertiesSortByEnum, 0) + for _, v := range mappingListEffectivePropertiesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListEffectivePropertiesSortByEnumStringValues Enumerates the set of values in String for ListEffectivePropertiesSortByEnum +func GetListEffectivePropertiesSortByEnumStringValues() []string { + return []string{ + "name", + "displayName", + } +} + +// GetMappingListEffectivePropertiesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListEffectivePropertiesSortByEnum(val string) (ListEffectivePropertiesSortByEnum, bool) { + enum, ok := mappingListEffectivePropertiesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go new file mode 100644 index 00000000000..74b990bd76e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go @@ -0,0 +1,208 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListOverlappingRecallsRequest wrapper for the ListOverlappingRecalls operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListOverlappingRecalls.go.html to see an example of how to use ListOverlappingRecallsRequest. +type ListOverlappingRecallsRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // 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"` + + // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // This is the query parameter of which field to sort by. Only one sort order may be provided. Default order for timeDataStarted + // is descending. If no value is specified timeDataStarted is default. + SortBy ListOverlappingRecallsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListOverlappingRecallsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // This is the start of the time range for recalled data + TimeDataStarted *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataStarted"` + + // This is the end of the time range for recalled data + TimeDataEnded *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataEnded"` + + // 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 ListOverlappingRecallsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListOverlappingRecallsRequest) 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 ListOverlappingRecallsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListOverlappingRecallsRequest) 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 ListOverlappingRecallsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListOverlappingRecallsSortByEnum(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(GetListOverlappingRecallsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListOverlappingRecallsSortOrderEnum(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(GetListOverlappingRecallsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListOverlappingRecallsResponse wrapper for the ListOverlappingRecalls operation +type ListOverlappingRecallsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of OverlappingRecallCollection instances + OverlappingRecallCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, 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 additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListOverlappingRecallsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListOverlappingRecallsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListOverlappingRecallsSortByEnum Enum with underlying type: string +type ListOverlappingRecallsSortByEnum string + +// Set of constants representing the allowable values for ListOverlappingRecallsSortByEnum +const ( + ListOverlappingRecallsSortByTimestarted ListOverlappingRecallsSortByEnum = "timeStarted" + ListOverlappingRecallsSortByTimedatastarted ListOverlappingRecallsSortByEnum = "timeDataStarted" +) + +var mappingListOverlappingRecallsSortByEnum = map[string]ListOverlappingRecallsSortByEnum{ + "timeStarted": ListOverlappingRecallsSortByTimestarted, + "timeDataStarted": ListOverlappingRecallsSortByTimedatastarted, +} + +var mappingListOverlappingRecallsSortByEnumLowerCase = map[string]ListOverlappingRecallsSortByEnum{ + "timestarted": ListOverlappingRecallsSortByTimestarted, + "timedatastarted": ListOverlappingRecallsSortByTimedatastarted, +} + +// GetListOverlappingRecallsSortByEnumValues Enumerates the set of values for ListOverlappingRecallsSortByEnum +func GetListOverlappingRecallsSortByEnumValues() []ListOverlappingRecallsSortByEnum { + values := make([]ListOverlappingRecallsSortByEnum, 0) + for _, v := range mappingListOverlappingRecallsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListOverlappingRecallsSortByEnumStringValues Enumerates the set of values in String for ListOverlappingRecallsSortByEnum +func GetListOverlappingRecallsSortByEnumStringValues() []string { + return []string{ + "timeStarted", + "timeDataStarted", + } +} + +// GetMappingListOverlappingRecallsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOverlappingRecallsSortByEnum(val string) (ListOverlappingRecallsSortByEnum, bool) { + enum, ok := mappingListOverlappingRecallsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListOverlappingRecallsSortOrderEnum Enum with underlying type: string +type ListOverlappingRecallsSortOrderEnum string + +// Set of constants representing the allowable values for ListOverlappingRecallsSortOrderEnum +const ( + ListOverlappingRecallsSortOrderAsc ListOverlappingRecallsSortOrderEnum = "ASC" + ListOverlappingRecallsSortOrderDesc ListOverlappingRecallsSortOrderEnum = "DESC" +) + +var mappingListOverlappingRecallsSortOrderEnum = map[string]ListOverlappingRecallsSortOrderEnum{ + "ASC": ListOverlappingRecallsSortOrderAsc, + "DESC": ListOverlappingRecallsSortOrderDesc, +} + +var mappingListOverlappingRecallsSortOrderEnumLowerCase = map[string]ListOverlappingRecallsSortOrderEnum{ + "asc": ListOverlappingRecallsSortOrderAsc, + "desc": ListOverlappingRecallsSortOrderDesc, +} + +// GetListOverlappingRecallsSortOrderEnumValues Enumerates the set of values for ListOverlappingRecallsSortOrderEnum +func GetListOverlappingRecallsSortOrderEnumValues() []ListOverlappingRecallsSortOrderEnum { + values := make([]ListOverlappingRecallsSortOrderEnum, 0) + for _, v := range mappingListOverlappingRecallsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListOverlappingRecallsSortOrderEnumStringValues Enumerates the set of values in String for ListOverlappingRecallsSortOrderEnum +func GetListOverlappingRecallsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListOverlappingRecallsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOverlappingRecallsSortOrderEnum(val string) (ListOverlappingRecallsSortOrderEnum, bool) { + enum, ok := mappingListOverlappingRecallsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go new file mode 100644 index 00000000000..4ae6f6ea0d6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go @@ -0,0 +1,214 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPropertiesMetadataRequest wrapper for the ListPropertiesMetadata operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListPropertiesMetadata.go.html to see an example of how to use ListPropertiesMetadataRequest. +type ListPropertiesMetadataRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The property name used for filtering. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The property display text used for filtering. Only properties matching the specified display + // name or description will be returned. + DisplayText *string `mandatory:"false" contributesTo:"query" name:"displayText"` + + // The level for which applicable properties are to be listed. + Level *string `mandatory:"false" contributesTo:"query" name:"level"` + + // The constraints that apply to the properties at a certain level. + Constraints *string `mandatory:"false" contributesTo:"query" name:"constraints"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListPropertiesMetadataSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The attribute used to sort the returned properties + SortBy ListPropertiesMetadataSortByEnum `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 ListPropertiesMetadataRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPropertiesMetadataRequest) 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 ListPropertiesMetadataRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPropertiesMetadataRequest) 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 ListPropertiesMetadataRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPropertiesMetadataSortOrderEnum(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(GetListPropertiesMetadataSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListPropertiesMetadataSortByEnum(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(GetListPropertiesMetadataSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPropertiesMetadataResponse wrapper for the ListPropertiesMetadata operation +type ListPropertiesMetadataResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of PropertyMetadataSummaryCollection instances + PropertyMetadataSummaryCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListPropertiesMetadataResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPropertiesMetadataResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPropertiesMetadataSortOrderEnum Enum with underlying type: string +type ListPropertiesMetadataSortOrderEnum string + +// Set of constants representing the allowable values for ListPropertiesMetadataSortOrderEnum +const ( + ListPropertiesMetadataSortOrderAsc ListPropertiesMetadataSortOrderEnum = "ASC" + ListPropertiesMetadataSortOrderDesc ListPropertiesMetadataSortOrderEnum = "DESC" +) + +var mappingListPropertiesMetadataSortOrderEnum = map[string]ListPropertiesMetadataSortOrderEnum{ + "ASC": ListPropertiesMetadataSortOrderAsc, + "DESC": ListPropertiesMetadataSortOrderDesc, +} + +var mappingListPropertiesMetadataSortOrderEnumLowerCase = map[string]ListPropertiesMetadataSortOrderEnum{ + "asc": ListPropertiesMetadataSortOrderAsc, + "desc": ListPropertiesMetadataSortOrderDesc, +} + +// GetListPropertiesMetadataSortOrderEnumValues Enumerates the set of values for ListPropertiesMetadataSortOrderEnum +func GetListPropertiesMetadataSortOrderEnumValues() []ListPropertiesMetadataSortOrderEnum { + values := make([]ListPropertiesMetadataSortOrderEnum, 0) + for _, v := range mappingListPropertiesMetadataSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPropertiesMetadataSortOrderEnumStringValues Enumerates the set of values in String for ListPropertiesMetadataSortOrderEnum +func GetListPropertiesMetadataSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPropertiesMetadataSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPropertiesMetadataSortOrderEnum(val string) (ListPropertiesMetadataSortOrderEnum, bool) { + enum, ok := mappingListPropertiesMetadataSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPropertiesMetadataSortByEnum Enum with underlying type: string +type ListPropertiesMetadataSortByEnum string + +// Set of constants representing the allowable values for ListPropertiesMetadataSortByEnum +const ( + ListPropertiesMetadataSortByName ListPropertiesMetadataSortByEnum = "name" + ListPropertiesMetadataSortByDisplayname ListPropertiesMetadataSortByEnum = "displayName" +) + +var mappingListPropertiesMetadataSortByEnum = map[string]ListPropertiesMetadataSortByEnum{ + "name": ListPropertiesMetadataSortByName, + "displayName": ListPropertiesMetadataSortByDisplayname, +} + +var mappingListPropertiesMetadataSortByEnumLowerCase = map[string]ListPropertiesMetadataSortByEnum{ + "name": ListPropertiesMetadataSortByName, + "displayname": ListPropertiesMetadataSortByDisplayname, +} + +// GetListPropertiesMetadataSortByEnumValues Enumerates the set of values for ListPropertiesMetadataSortByEnum +func GetListPropertiesMetadataSortByEnumValues() []ListPropertiesMetadataSortByEnum { + values := make([]ListPropertiesMetadataSortByEnum, 0) + for _, v := range mappingListPropertiesMetadataSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPropertiesMetadataSortByEnumStringValues Enumerates the set of values in String for ListPropertiesMetadataSortByEnum +func GetListPropertiesMetadataSortByEnumStringValues() []string { + return []string{ + "name", + "displayName", + } +} + +// GetMappingListPropertiesMetadataSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPropertiesMetadataSortByEnum(val string) (ListPropertiesMetadataSortByEnum, bool) { + enum, ok := mappingListPropertiesMetadataSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go index 6f1d68e6bec..a90d4a39ccd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go @@ -140,24 +140,21 @@ type ListScheduledTasksTaskTypeEnum string // Set of constants representing the allowable values for ListScheduledTasksTaskTypeEnum const ( - ListScheduledTasksTaskTypeSavedSearch ListScheduledTasksTaskTypeEnum = "SAVED_SEARCH" - ListScheduledTasksTaskTypeAcceleration ListScheduledTasksTaskTypeEnum = "ACCELERATION" - ListScheduledTasksTaskTypePurge ListScheduledTasksTaskTypeEnum = "PURGE" - ListScheduledTasksTaskTypeAccelerationMaintenance ListScheduledTasksTaskTypeEnum = "ACCELERATION_MAINTENANCE" + ListScheduledTasksTaskTypeSavedSearch ListScheduledTasksTaskTypeEnum = "SAVED_SEARCH" + ListScheduledTasksTaskTypeAcceleration ListScheduledTasksTaskTypeEnum = "ACCELERATION" + ListScheduledTasksTaskTypePurge ListScheduledTasksTaskTypeEnum = "PURGE" ) var mappingListScheduledTasksTaskTypeEnum = map[string]ListScheduledTasksTaskTypeEnum{ - "SAVED_SEARCH": ListScheduledTasksTaskTypeSavedSearch, - "ACCELERATION": ListScheduledTasksTaskTypeAcceleration, - "PURGE": ListScheduledTasksTaskTypePurge, - "ACCELERATION_MAINTENANCE": ListScheduledTasksTaskTypeAccelerationMaintenance, + "SAVED_SEARCH": ListScheduledTasksTaskTypeSavedSearch, + "ACCELERATION": ListScheduledTasksTaskTypeAcceleration, + "PURGE": ListScheduledTasksTaskTypePurge, } var mappingListScheduledTasksTaskTypeEnumLowerCase = map[string]ListScheduledTasksTaskTypeEnum{ - "saved_search": ListScheduledTasksTaskTypeSavedSearch, - "acceleration": ListScheduledTasksTaskTypeAcceleration, - "purge": ListScheduledTasksTaskTypePurge, - "acceleration_maintenance": ListScheduledTasksTaskTypeAccelerationMaintenance, + "saved_search": ListScheduledTasksTaskTypeSavedSearch, + "acceleration": ListScheduledTasksTaskTypeAcceleration, + "purge": ListScheduledTasksTaskTypePurge, } // GetListScheduledTasksTaskTypeEnumValues Enumerates the set of values for ListScheduledTasksTaskTypeEnum @@ -175,7 +172,6 @@ func GetListScheduledTasksTaskTypeEnumStringValues() []string { "SAVED_SEARCH", "ACCELERATION", "PURGE", - "ACCELERATION_MAINTENANCE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go index be28382f3e6..7cc354ce90d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go @@ -241,6 +241,7 @@ const ( ListStorageWorkRequestsOperationTypePurgeStorageData ListStorageWorkRequestsOperationTypeEnum = "PURGE_STORAGE_DATA" ListStorageWorkRequestsOperationTypeRecallArchivedStorageData ListStorageWorkRequestsOperationTypeEnum = "RECALL_ARCHIVED_STORAGE_DATA" ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData ListStorageWorkRequestsOperationTypeEnum = "RELEASE_RECALLED_STORAGE_DATA" + ListStorageWorkRequestsOperationTypePurgeArchivalData ListStorageWorkRequestsOperationTypeEnum = "PURGE_ARCHIVAL_DATA" ListStorageWorkRequestsOperationTypeArchiveStorageData ListStorageWorkRequestsOperationTypeEnum = "ARCHIVE_STORAGE_DATA" ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData ListStorageWorkRequestsOperationTypeEnum = "CLEANUP_ARCHIVAL_STORAGE_DATA" ListStorageWorkRequestsOperationTypeEncryptActiveData ListStorageWorkRequestsOperationTypeEnum = "ENCRYPT_ACTIVE_DATA" @@ -252,6 +253,7 @@ var mappingListStorageWorkRequestsOperationTypeEnum = map[string]ListStorageWork "PURGE_STORAGE_DATA": ListStorageWorkRequestsOperationTypePurgeStorageData, "RECALL_ARCHIVED_STORAGE_DATA": ListStorageWorkRequestsOperationTypeRecallArchivedStorageData, "RELEASE_RECALLED_STORAGE_DATA": ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData, + "PURGE_ARCHIVAL_DATA": ListStorageWorkRequestsOperationTypePurgeArchivalData, "ARCHIVE_STORAGE_DATA": ListStorageWorkRequestsOperationTypeArchiveStorageData, "CLEANUP_ARCHIVAL_STORAGE_DATA": ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData, "ENCRYPT_ACTIVE_DATA": ListStorageWorkRequestsOperationTypeEncryptActiveData, @@ -263,6 +265,7 @@ var mappingListStorageWorkRequestsOperationTypeEnumLowerCase = map[string]ListSt "purge_storage_data": ListStorageWorkRequestsOperationTypePurgeStorageData, "recall_archived_storage_data": ListStorageWorkRequestsOperationTypeRecallArchivedStorageData, "release_recalled_storage_data": ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData, + "purge_archival_data": ListStorageWorkRequestsOperationTypePurgeArchivalData, "archive_storage_data": ListStorageWorkRequestsOperationTypeArchiveStorageData, "cleanup_archival_storage_data": ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData, "encrypt_active_data": ListStorageWorkRequestsOperationTypeEncryptActiveData, @@ -285,6 +288,7 @@ func GetListStorageWorkRequestsOperationTypeEnumStringValues() []string { "PURGE_STORAGE_DATA", "RECALL_ARCHIVED_STORAGE_DATA", "RELEASE_RECALLED_STORAGE_DATA", + "PURGE_ARCHIVAL_DATA", "ARCHIVE_STORAGE_DATA", "CLEANUP_ARCHIVAL_STORAGE_DATA", "ENCRYPT_ACTIVE_DATA", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go index f6e9231b3ae..fb51c924dd1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go @@ -70,6 +70,9 @@ type LogAnalyticsAssociation struct { // The log group compartment. LogGroupCompartment *string `mandatory:"false" json:"logGroupCompartment"` + + // A list of association properties. + AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` } func (m LogAnalyticsAssociation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go index f1c305d2314..beed9577581 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go @@ -39,6 +39,12 @@ type LogAnalyticsAssociationParameter struct { // The status. Either FAILED or SUCCEEDED. Status LogAnalyticsAssociationParameterStatusEnum `mandatory:"false" json:"status,omitempty"` + // The status description. + StatusDescription *string `mandatory:"false" json:"statusDescription"` + + // A list of association properties. + AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` + // A list of missing properties. MissingProperties []string `mandatory:"false" json:"missingProperties"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go new file mode 100644 index 00000000000..1e03ef36e13 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsEndpoint Endpoint configuration for REST API based log collection. +type LogAnalyticsEndpoint interface { +} + +type loganalyticsendpoint struct { + JsonData []byte + EndpointType string `json:"endpointType"` +} + +// UnmarshalJSON unmarshals json +func (m *loganalyticsendpoint) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerloganalyticsendpoint loganalyticsendpoint + s := struct { + Model Unmarshalerloganalyticsendpoint + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.EndpointType = s.Model.EndpointType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *loganalyticsendpoint) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.EndpointType { + case "LOG_LIST": + mm := LogListTypeEndpoint{} + err = json.Unmarshal(data, &mm) + return mm, err + case "LOG": + mm := LogTypeEndpoint{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for LogAnalyticsEndpoint: %s.", m.EndpointType) + return *m, nil + } +} + +func (m loganalyticsendpoint) 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 loganalyticsendpoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LogAnalyticsEndpointEndpointTypeEnum Enum with underlying type: string +type LogAnalyticsEndpointEndpointTypeEnum string + +// Set of constants representing the allowable values for LogAnalyticsEndpointEndpointTypeEnum +const ( + LogAnalyticsEndpointEndpointTypeLogList LogAnalyticsEndpointEndpointTypeEnum = "LOG_LIST" + LogAnalyticsEndpointEndpointTypeLog LogAnalyticsEndpointEndpointTypeEnum = "LOG" +) + +var mappingLogAnalyticsEndpointEndpointTypeEnum = map[string]LogAnalyticsEndpointEndpointTypeEnum{ + "LOG_LIST": LogAnalyticsEndpointEndpointTypeLogList, + "LOG": LogAnalyticsEndpointEndpointTypeLog, +} + +var mappingLogAnalyticsEndpointEndpointTypeEnumLowerCase = map[string]LogAnalyticsEndpointEndpointTypeEnum{ + "log_list": LogAnalyticsEndpointEndpointTypeLogList, + "log": LogAnalyticsEndpointEndpointTypeLog, +} + +// GetLogAnalyticsEndpointEndpointTypeEnumValues Enumerates the set of values for LogAnalyticsEndpointEndpointTypeEnum +func GetLogAnalyticsEndpointEndpointTypeEnumValues() []LogAnalyticsEndpointEndpointTypeEnum { + values := make([]LogAnalyticsEndpointEndpointTypeEnum, 0) + for _, v := range mappingLogAnalyticsEndpointEndpointTypeEnum { + values = append(values, v) + } + return values +} + +// GetLogAnalyticsEndpointEndpointTypeEnumStringValues Enumerates the set of values in String for LogAnalyticsEndpointEndpointTypeEnum +func GetLogAnalyticsEndpointEndpointTypeEnumStringValues() []string { + return []string{ + "LOG_LIST", + "LOG", + } +} + +// GetMappingLogAnalyticsEndpointEndpointTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLogAnalyticsEndpointEndpointTypeEnum(val string) (LogAnalyticsEndpointEndpointTypeEnum, bool) { + enum, ok := mappingLogAnalyticsEndpointEndpointTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go index 8f75c50505c..cd827bfeec3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go @@ -18,7 +18,7 @@ import ( // LogAnalyticsPreference The preference information type LogAnalyticsPreference struct { - // The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported. + // The preference name. Name *string `mandatory:"false" json:"name"` // The preference value. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go new file mode 100644 index 00000000000..c3db3f91083 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsProperty A property represented as a name-value pair. +type LogAnalyticsProperty struct { + + // The property name. + Name *string `mandatory:"true" json:"name"` + + // The property value. + Value *string `mandatory:"false" json:"value"` +} + +func (m LogAnalyticsProperty) 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 LogAnalyticsProperty) 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/loganalytics/log_analytics_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go index eca91aac934..46bea2b5e84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go @@ -10,6 +10,7 @@ package loganalytics import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -130,6 +131,12 @@ type LogAnalyticsSource struct { // An array of categories assigned to this source. // The isSystem flag denotes if each category assignment is user-created or Oracle-defined. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` + + // An array of REST API endpoints for log collection. + Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` + + // A list of source properties. + SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m LogAnalyticsSource) String() string { @@ -147,3 +154,201 @@ func (m LogAnalyticsSource) ValidateEnumValue() (bool, error) { } return false, nil } + +// UnmarshalJSON unmarshals from json +func (m *LogAnalyticsSource) UnmarshalJSON(data []byte) (e error) { + model := struct { + LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` + AssociationCount *int `json:"associationCount"` + AssociationEntity []LogAnalyticsAssociation `json:"associationEntity"` + DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` + DatabaseCredential *string `json:"databaseCredential"` + ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` + IsForCloud *bool `json:"isForCloud"` + Labels []LogAnalyticsLabelView `json:"labels"` + MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` + Metrics []LogAnalyticsSourceMetric `json:"metrics"` + OobParsers []LogAnalyticsParser `json:"oobParsers"` + Parameters []LogAnalyticsParameter `json:"parameters"` + PatternCount *int `json:"patternCount"` + Patterns []LogAnalyticsSourcePattern `json:"patterns"` + Description *string `json:"description"` + DisplayName *string `json:"displayName"` + EditVersion *int64 `json:"editVersion"` + Functions []LogAnalyticsSourceFunction `json:"functions"` + SourceId *int64 `json:"sourceId"` + Name *string `json:"name"` + IsSecureContent *bool `json:"isSecureContent"` + IsSystem *bool `json:"isSystem"` + Parsers []LogAnalyticsParser `json:"parsers"` + IsAutoAssociationEnabled *bool `json:"isAutoAssociationEnabled"` + IsAutoAssociationOverride *bool `json:"isAutoAssociationOverride"` + RuleId *int64 `json:"ruleId"` + TypeName *string `json:"typeName"` + TypeDisplayName *string `json:"typeDisplayName"` + WarningConfig *int64 `json:"warningConfig"` + MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` + LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` + EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` + IsTimezoneOverride *bool `json:"isTimezoneOverride"` + UserParsers []LogAnalyticsParser `json:"userParsers"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + EventTypes []EventType `json:"eventTypes"` + Categories []LogAnalyticsCategory `json:"categories"` + Endpoints []loganalyticsendpoint `json:"endpoints"` + SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) + for i, n := range model.LabelConditions { + m.LabelConditions[i] = n + } + + m.AssociationCount = model.AssociationCount + + m.AssociationEntity = make([]LogAnalyticsAssociation, len(model.AssociationEntity)) + for i, n := range model.AssociationEntity { + m.AssociationEntity[i] = n + } + + m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) + for i, n := range model.DataFilterDefinitions { + m.DataFilterDefinitions[i] = n + } + + m.DatabaseCredential = model.DatabaseCredential + + m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) + for i, n := range model.ExtendedFieldDefinitions { + m.ExtendedFieldDefinitions[i] = n + } + + m.IsForCloud = model.IsForCloud + + m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) + for i, n := range model.Labels { + m.Labels[i] = n + } + + m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) + for i, n := range model.MetricDefinitions { + m.MetricDefinitions[i] = n + } + + m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) + for i, n := range model.Metrics { + m.Metrics[i] = n + } + + m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) + for i, n := range model.OobParsers { + m.OobParsers[i] = n + } + + m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) + for i, n := range model.Parameters { + m.Parameters[i] = n + } + + m.PatternCount = model.PatternCount + + m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) + for i, n := range model.Patterns { + m.Patterns[i] = n + } + + m.Description = model.Description + + m.DisplayName = model.DisplayName + + m.EditVersion = model.EditVersion + + m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) + for i, n := range model.Functions { + m.Functions[i] = n + } + + m.SourceId = model.SourceId + + m.Name = model.Name + + m.IsSecureContent = model.IsSecureContent + + m.IsSystem = model.IsSystem + + m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) + for i, n := range model.Parsers { + m.Parsers[i] = n + } + + m.IsAutoAssociationEnabled = model.IsAutoAssociationEnabled + + m.IsAutoAssociationOverride = model.IsAutoAssociationOverride + + m.RuleId = model.RuleId + + m.TypeName = model.TypeName + + m.TypeDisplayName = model.TypeDisplayName + + m.WarningConfig = model.WarningConfig + + m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) + for i, n := range model.MetadataFields { + m.MetadataFields[i] = n + } + + m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) + for i, n := range model.LabelDefinitions { + m.LabelDefinitions[i] = n + } + + m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) + for i, n := range model.EntityTypes { + m.EntityTypes[i] = n + } + + m.IsTimezoneOverride = model.IsTimezoneOverride + + m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) + for i, n := range model.UserParsers { + m.UserParsers[i] = n + } + + m.TimeUpdated = model.TimeUpdated + + m.EventTypes = make([]EventType, len(model.EventTypes)) + for i, n := range model.EventTypes { + m.EventTypes[i] = n + } + + m.Categories = make([]LogAnalyticsCategory, len(model.Categories)) + for i, n := range model.Categories { + m.Categories[i] = n + } + + m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) + for i, n := range model.Endpoints { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Endpoints[i] = nn.(LogAnalyticsEndpoint) + } else { + m.Endpoints[i] = nil + } + } + + m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) + for i, n := range model.SourceProperties { + m.SourceProperties[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go index 7b2e1213dac..7ec9b314591 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go @@ -18,6 +18,11 @@ import ( // LogAnalyticsSourceLabelCondition LogAnalyticsSourceLabelCondition type LogAnalyticsSourceLabelCondition struct { + // String representation of the label condition. This supports specifying multiple condition blocks at various nested levels. + ConditionString *string `mandatory:"false" json:"conditionString"` + + ConditionBlock *ConditionBlock `mandatory:"false" json:"conditionBlock"` + // The message. Message *string `mandatory:"false" json:"message"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go index dad75a985bb..df744795968 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go @@ -75,6 +75,9 @@ type LogAnalyticsSourcePattern struct { // The source entity type. EntityType []string `mandatory:"false" json:"entityType"` + + // A list of pattern properties. + PatternProperties []LogAnalyticsProperty `mandatory:"false" json:"patternProperties"` } func (m LogAnalyticsSourcePattern) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go index 473f7e51152..905fcd7c138 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go @@ -10,6 +10,7 @@ package loganalytics import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -123,6 +124,12 @@ type LogAnalyticsSourceSummary struct { // The last updated date. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // An array of REST API endpoints for log collection. + Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` + + // A list of source properties. + SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m LogAnalyticsSourceSummary) String() string { @@ -140,3 +147,189 @@ func (m LogAnalyticsSourceSummary) ValidateEnumValue() (bool, error) { } return false, nil } + +// UnmarshalJSON unmarshals from json +func (m *LogAnalyticsSourceSummary) UnmarshalJSON(data []byte) (e error) { + model := struct { + LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` + AssociationCount *int `json:"associationCount"` + AssociationEntity []LogAnalyticsAssociation `json:"associationEntity"` + DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` + DatabaseCredential *string `json:"databaseCredential"` + ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` + IsForCloud *bool `json:"isForCloud"` + Labels []LogAnalyticsLabelView `json:"labels"` + MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` + Metrics []LogAnalyticsSourceMetric `json:"metrics"` + OobParsers []LogAnalyticsParser `json:"oobParsers"` + Parameters []LogAnalyticsParameter `json:"parameters"` + PatternCount *int `json:"patternCount"` + Patterns []LogAnalyticsSourcePattern `json:"patterns"` + Description *string `json:"description"` + DisplayName *string `json:"displayName"` + EditVersion *int64 `json:"editVersion"` + Functions []LogAnalyticsSourceFunction `json:"functions"` + SourceId *int64 `json:"sourceId"` + Name *string `json:"name"` + IsSecureContent *bool `json:"isSecureContent"` + IsSystem *bool `json:"isSystem"` + Parsers []LogAnalyticsParser `json:"parsers"` + IsAutoAssociationEnabled *bool `json:"isAutoAssociationEnabled"` + IsAutoAssociationOverride *bool `json:"isAutoAssociationOverride"` + RuleId *int64 `json:"ruleId"` + TypeName *string `json:"typeName"` + TypeDisplayName *string `json:"typeDisplayName"` + WarningConfig *int64 `json:"warningConfig"` + MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` + LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` + EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` + IsTimezoneOverride *bool `json:"isTimezoneOverride"` + UserParsers []LogAnalyticsParser `json:"userParsers"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + Endpoints []loganalyticsendpoint `json:"endpoints"` + SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) + for i, n := range model.LabelConditions { + m.LabelConditions[i] = n + } + + m.AssociationCount = model.AssociationCount + + m.AssociationEntity = make([]LogAnalyticsAssociation, len(model.AssociationEntity)) + for i, n := range model.AssociationEntity { + m.AssociationEntity[i] = n + } + + m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) + for i, n := range model.DataFilterDefinitions { + m.DataFilterDefinitions[i] = n + } + + m.DatabaseCredential = model.DatabaseCredential + + m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) + for i, n := range model.ExtendedFieldDefinitions { + m.ExtendedFieldDefinitions[i] = n + } + + m.IsForCloud = model.IsForCloud + + m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) + for i, n := range model.Labels { + m.Labels[i] = n + } + + m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) + for i, n := range model.MetricDefinitions { + m.MetricDefinitions[i] = n + } + + m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) + for i, n := range model.Metrics { + m.Metrics[i] = n + } + + m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) + for i, n := range model.OobParsers { + m.OobParsers[i] = n + } + + m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) + for i, n := range model.Parameters { + m.Parameters[i] = n + } + + m.PatternCount = model.PatternCount + + m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) + for i, n := range model.Patterns { + m.Patterns[i] = n + } + + m.Description = model.Description + + m.DisplayName = model.DisplayName + + m.EditVersion = model.EditVersion + + m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) + for i, n := range model.Functions { + m.Functions[i] = n + } + + m.SourceId = model.SourceId + + m.Name = model.Name + + m.IsSecureContent = model.IsSecureContent + + m.IsSystem = model.IsSystem + + m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) + for i, n := range model.Parsers { + m.Parsers[i] = n + } + + m.IsAutoAssociationEnabled = model.IsAutoAssociationEnabled + + m.IsAutoAssociationOverride = model.IsAutoAssociationOverride + + m.RuleId = model.RuleId + + m.TypeName = model.TypeName + + m.TypeDisplayName = model.TypeDisplayName + + m.WarningConfig = model.WarningConfig + + m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) + for i, n := range model.MetadataFields { + m.MetadataFields[i] = n + } + + m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) + for i, n := range model.LabelDefinitions { + m.LabelDefinitions[i] = n + } + + m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) + for i, n := range model.EntityTypes { + m.EntityTypes[i] = n + } + + m.IsTimezoneOverride = model.IsTimezoneOverride + + m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) + for i, n := range model.UserParsers { + m.UserParsers[i] = n + } + + m.TimeUpdated = model.TimeUpdated + + m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) + for i, n := range model.Endpoints { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Endpoints[i] = nn.(LogAnalyticsEndpoint) + } else { + m.Endpoints[i] = nil + } + } + + m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) + for i, n := range model.SourceProperties { + m.SourceProperties[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go new file mode 100644 index 00000000000..7ebcd727e59 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogEndpoint An endpoint used to fetch logs. +type LogEndpoint struct { + + // The endpoint name. + Name *string `mandatory:"true" json:"name"` + + Request *EndpointRequest `mandatory:"true" json:"request"` + + // The endpoint description. + Description *string `mandatory:"false" json:"description"` + + // The endpoint model. + Model *string `mandatory:"false" json:"model"` + + // The endpoint unique identifier. + EndpointId *int64 `mandatory:"false" json:"endpointId"` + + Response *EndpointResponse `mandatory:"false" json:"response"` + + Credentials *EndpointCredentials `mandatory:"false" json:"credentials"` + + Proxy *EndpointProxy `mandatory:"false" json:"proxy"` + + // A flag indicating whether or not the endpoint is enabled for log collection. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The system flag. A value of false denotes a custom, or user + // defined endpoint. A value of true denotes an Oracle defined endpoint. + IsSystem *bool `mandatory:"false" json:"isSystem"` + + // A list of endpoint properties. + EndpointProperties []LogAnalyticsProperty `mandatory:"false" json:"endpointProperties"` +} + +func (m LogEndpoint) 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 LogEndpoint) 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/loganalytics/log_list_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go new file mode 100644 index 00000000000..503ad991bd9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogListEndpoint An endpoint used to fetch a list of log URLs. +type LogListEndpoint struct { + + // The endpoint name. + Name *string `mandatory:"true" json:"name"` + + Request *EndpointRequest `mandatory:"true" json:"request"` + + // The endpoint description. + Description *string `mandatory:"false" json:"description"` + + // The endpoint model. + Model *string `mandatory:"false" json:"model"` + + // The endpoint unique identifier. + EndpointId *int64 `mandatory:"false" json:"endpointId"` + + Response *EndpointResponse `mandatory:"false" json:"response"` + + Credentials *EndpointCredentials `mandatory:"false" json:"credentials"` + + Proxy *EndpointProxy `mandatory:"false" json:"proxy"` + + // A flag indicating whether or not the endpoint is enabled for log collection. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The system flag. A value of false denotes a custom, or user + // defined endpoint. A value of true denotes an Oracle defined endpoint. + IsSystem *bool `mandatory:"false" json:"isSystem"` + + // A list of endpoint properties. + EndpointProperties []LogAnalyticsProperty `mandatory:"false" json:"endpointProperties"` +} + +func (m LogListEndpoint) 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 LogListEndpoint) 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/loganalytics/log_list_type_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go new file mode 100644 index 00000000000..5d104116aa8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogListTypeEndpoint The LOG_LIST type endpoint configuration. The list of logs is first fetched using the listEndpoint configuration, +// and then the logs are subsequently fetched using the logEndpoints, which reference the list endpoint response. +// For time based incremental collection, specify the START_TIME macro with the desired time format, +// example: {START_TIME:yyMMddHHmmssZ}. +// For offset based incremental collection, specify the START_OFFSET macro with offset identifier in the API response, +// example: {START_OFFSET:$.offset} +type LogListTypeEndpoint struct { + ListEndpoint *LogListEndpoint `mandatory:"true" json:"listEndpoint"` + + // Log endpoints, which reference the listEndpoint response, to fetch log data. + LogEndpoints []LogEndpoint `mandatory:"true" json:"logEndpoints"` +} + +func (m LogListTypeEndpoint) 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 LogListTypeEndpoint) 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 LogListTypeEndpoint) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLogListTypeEndpoint LogListTypeEndpoint + s := struct { + DiscriminatorParam string `json:"endpointType"` + MarshalTypeLogListTypeEndpoint + }{ + "LOG_LIST", + (MarshalTypeLogListTypeEndpoint)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go new file mode 100644 index 00000000000..a027d5687fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogTypeEndpoint The LOG type endpoint configuration. Logs are fetched from the specified endpoint. +// For time based incremental collection, specify the START_TIME macro with the desired time format, +// example: {START_TIME:yyMMddHHmmssZ}. +// For offset based incremental collection, specify the START_OFFSET macro with offset identifier in the API response, +// example: {START_OFFSET:$.offset} +type LogTypeEndpoint struct { + LogEndpoint *LogEndpoint `mandatory:"true" json:"logEndpoint"` +} + +func (m LogTypeEndpoint) 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 LogTypeEndpoint) 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 LogTypeEndpoint) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLogTypeEndpoint LogTypeEndpoint + s := struct { + DiscriminatorParam string `json:"endpointType"` + MarshalTypeLogTypeEndpoint + }{ + "LOG", + (MarshalTypeLogTypeEndpoint)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go index b616e456f44..efa0e8555b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go @@ -4704,7 +4704,7 @@ func (client LogAnalyticsClient) getParserSummary(ctx context.Context, request c return response, err } -// GetPreferences Lists the preferences of the tenant. Currently, only "DEFAULT_HOMEPAGE" is supported. +// GetPreferences Lists the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. // // See also // @@ -4879,6 +4879,180 @@ func (client LogAnalyticsClient) getQueryWorkRequest(ctx context.Context, reques return response, err } +// GetRecallCount This API gets the number of recalls made and the maximum recalls that can be made +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecallCount.go.html to see an example of how to use GetRecallCount API. +// A default retry strategy applies to this operation GetRecallCount() +func (client LogAnalyticsClient) GetRecallCount(ctx context.Context, request GetRecallCountRequest) (response GetRecallCountResponse, 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.getRecallCount, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetRecallCountResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetRecallCountResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetRecallCountResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetRecallCountResponse") + } + return +} + +// getRecallCount implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) getRecallCount(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/recallCount", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetRecallCountResponse + 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/logan-api-spec/20200601/Storage/GetRecallCount" + err = common.PostProcessServiceError(err, "LogAnalytics", "GetRecallCount", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetRecalledDataSize This API gets the datasize of recalls for a given timeframe +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecalledDataSize.go.html to see an example of how to use GetRecalledDataSize API. +// A default retry strategy applies to this operation GetRecalledDataSize() +func (client LogAnalyticsClient) GetRecalledDataSize(ctx context.Context, request GetRecalledDataSizeRequest) (response GetRecalledDataSizeResponse, 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.getRecalledDataSize, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetRecalledDataSizeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetRecalledDataSizeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetRecalledDataSizeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetRecalledDataSizeResponse") + } + return +} + +// getRecalledDataSize implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) getRecalledDataSize(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/recalledDataSize", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetRecalledDataSizeResponse + 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/logan-api-spec/20200601/Storage/GetRecalledDataSize" + err = common.PostProcessServiceError(err, "LogAnalytics", "GetRecalledDataSize", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetRulesSummary Returns the count of detection rules in a compartment. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRulesSummary.go.html to see an example of how to use GetRulesSummary API. +// A default retry strategy applies to this operation GetRulesSummary() +func (client LogAnalyticsClient) GetRulesSummary(ctx context.Context, request GetRulesSummaryRequest) (response GetRulesSummaryResponse, 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.getRulesSummary, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetRulesSummaryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetRulesSummaryResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetRulesSummaryResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetRulesSummaryResponse") + } + return +} + +// getRulesSummary implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) getRulesSummary(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/rulesSummary", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetRulesSummaryResponse + 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/logan-api-spec/20200601/Rule/GetRulesSummary" + err = common.PostProcessServiceError(err, "LogAnalytics", "GetRulesSummary", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetScheduledTask Get the scheduled task for the specified task identifier. // // See also @@ -5757,6 +5931,64 @@ func (client LogAnalyticsClient) listConfigWorkRequests(ctx context.Context, req return response, err } +// ListEffectiveProperties Returns a list of effective properties for the specified resource. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListEffectiveProperties.go.html to see an example of how to use ListEffectiveProperties API. +// A default retry strategy applies to this operation ListEffectiveProperties() +func (client LogAnalyticsClient) ListEffectiveProperties(ctx context.Context, request ListEffectivePropertiesRequest) (response ListEffectivePropertiesResponse, 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.listEffectiveProperties, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListEffectivePropertiesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListEffectivePropertiesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListEffectivePropertiesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListEffectivePropertiesResponse") + } + return +} + +// listEffectiveProperties implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) listEffectiveProperties(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/effectiveProperties", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListEffectivePropertiesResponse + 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/logan-api-spec/20200601/LogAnalyticsProperty/ListEffectiveProperties" + err = common.PostProcessServiceError(err, "LogAnalytics", "ListEffectiveProperties", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListEncryptionKeyInfo This API returns the list of customer owned encryption key info. // // See also @@ -6797,6 +7029,64 @@ func (client LogAnalyticsClient) listNamespaces(ctx context.Context, request com return response, err } +// ListOverlappingRecalls This API gets the list of overlapping recalls made in the given timeframe +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListOverlappingRecalls.go.html to see an example of how to use ListOverlappingRecalls API. +// A default retry strategy applies to this operation ListOverlappingRecalls() +func (client LogAnalyticsClient) ListOverlappingRecalls(ctx context.Context, request ListOverlappingRecallsRequest) (response ListOverlappingRecallsResponse, 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.listOverlappingRecalls, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListOverlappingRecallsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListOverlappingRecallsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListOverlappingRecallsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListOverlappingRecallsResponse") + } + return +} + +// listOverlappingRecalls implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) listOverlappingRecalls(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/overlappingRecalls", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListOverlappingRecallsResponse + 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/logan-api-spec/20200601/Storage/ListOverlappingRecalls" + err = common.PostProcessServiceError(err, "LogAnalytics", "ListOverlappingRecalls", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListParserFunctions Lists the parser functions defined for the specified parser. // // See also @@ -6971,6 +7261,64 @@ func (client LogAnalyticsClient) listParsers(ctx context.Context, request common return response, err } +// ListPropertiesMetadata Returns a list of properties along with their metadata. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListPropertiesMetadata.go.html to see an example of how to use ListPropertiesMetadata API. +// A default retry strategy applies to this operation ListPropertiesMetadata() +func (client LogAnalyticsClient) ListPropertiesMetadata(ctx context.Context, request ListPropertiesMetadataRequest) (response ListPropertiesMetadataResponse, 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.listPropertiesMetadata, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListPropertiesMetadataResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListPropertiesMetadataResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListPropertiesMetadataResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListPropertiesMetadataResponse") + } + return +} + +// listPropertiesMetadata implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) listPropertiesMetadata(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/propertiesMetadata", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListPropertiesMetadataResponse + 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/logan-api-spec/20200601/LogAnalyticsProperty/ListPropertiesMetadata" + err = common.PostProcessServiceError(err, "LogAnalytics", "ListPropertiesMetadata", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListQueryWorkRequests List active asynchronous queries. // // See also @@ -8986,7 +9334,7 @@ func (client LogAnalyticsClient) removeEntityAssociations(ctx context.Context, r return response, err } -// RemovePreferences Removes the tenant preferences. Currently, only "DEFAULT_HOMEPAGE" is supported. +// RemovePreferences Removes the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. // // See also // @@ -10098,7 +10446,7 @@ func (client LogAnalyticsClient) updateLookupData(ctx context.Context, request c return response, err } -// UpdatePreferences Updates the tenant preferences. Currently, only "DEFAULT_HOMEPAGE" is supported. +// UpdatePreferences Updates the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. // // See also // @@ -10883,6 +11231,66 @@ func (client LogAnalyticsClient) validateAssociationParameters(ctx context.Conte return response, err } +// ValidateEndpoint Validates the REST endpoint configuration. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateEndpoint.go.html to see an example of how to use ValidateEndpoint API. +// A default retry strategy applies to this operation ValidateEndpoint() +func (client LogAnalyticsClient) ValidateEndpoint(ctx context.Context, request ValidateEndpointRequest) (response ValidateEndpointResponse, 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.validateEndpoint, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateEndpointResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateEndpointResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateEndpointResponse") + } + return +} + +// validateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) validateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + if !common.IsEnvVarFalse(common.UsingExpectHeaderEnvVar) { + extraHeaders["Expect"] = "100-continue" + } + httpRequest, err := request.HTTPRequest(http.MethodPost, "/namespaces/{namespaceName}/sources/actions/validateEndpoint", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateEndpointResponse + 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/logan-api-spec/20200601/LogAnalyticsSource/ValidateEndpoint" + err = common.PostProcessServiceError(err, "LogAnalytics", "ValidateEndpoint", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ValidateFile Validates a log file to check whether it is eligible to be uploaded or not. // // See also @@ -10941,6 +11349,70 @@ func (client LogAnalyticsClient) validateFile(ctx context.Context, request commo return response, err } +// ValidateLabelCondition Validates specified condition for a source label. If both conditionString +// and conditionBlocks are specified, they would be validated to ensure they represent +// identical conditions. If one of them is input, the response would include the validated +// representation of the other structure too. Additionally, if field values +// are passed, the condition specification would be evaluated against them. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateLabelCondition.go.html to see an example of how to use ValidateLabelCondition API. +// A default retry strategy applies to this operation ValidateLabelCondition() +func (client LogAnalyticsClient) ValidateLabelCondition(ctx context.Context, request ValidateLabelConditionRequest) (response ValidateLabelConditionResponse, 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.validateLabelCondition, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateLabelConditionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateLabelConditionResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateLabelConditionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateLabelConditionResponse") + } + return +} + +// validateLabelCondition implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) validateLabelCondition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + if !common.IsEnvVarFalse(common.UsingExpectHeaderEnvVar) { + extraHeaders["Expect"] = "100-continue" + } + httpRequest, err := request.HTTPRequest(http.MethodPost, "/namespaces/{namespaceName}/sources/actions/validateLabelCondition", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateLabelConditionResponse + 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/logan-api-spec/20200601/LogAnalyticsSource/ValidateLabelCondition" + err = common.PostProcessServiceError(err, "LogAnalytics", "ValidateLabelCondition", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ValidateSource Checks if the specified input is a valid log source definition. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go new file mode 100644 index 00000000000..52779346ca7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NameValuePair An object representing a name-value pair. +type NameValuePair struct { + + // The name. + Name *string `mandatory:"true" json:"name"` + + // The value. + Value *string `mandatory:"false" json:"value"` +} + +func (m NameValuePair) 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 NameValuePair) 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/loganalytics/namespace.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go index 89653dad288..c1e46a5128c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Namespace This is the namespace details of a tenancy in Logan Analytics application +// Namespace This is the namespace details of a tenancy in Logging Analytics application type Namespace struct { // This is the namespace name of a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go index 92f924481c7..8e4ab81fb5e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go @@ -15,7 +15,7 @@ import ( "strings" ) -// NamespaceSummary The is the namespace summary of a tenancy in Logan Analytics application +// NamespaceSummary The is the namespace summary of a tenancy in Logging Analytics application type NamespaceSummary struct { // This is the namespace name of a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go new file mode 100644 index 00000000000..f294f9770a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OutlierCommandDescriptor Command descriptor for querylanguage OUTLIER command. +type OutlierCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +//GetDisplayQueryString returns DisplayQueryString +func (m OutlierCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +//GetInternalQueryString returns InternalQueryString +func (m OutlierCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +//GetCategory returns Category +func (m OutlierCommandDescriptor) GetCategory() *string { + return m.Category +} + +//GetReferencedFields returns ReferencedFields +func (m OutlierCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +//GetDeclaredFields returns DeclaredFields +func (m OutlierCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +//GetIsHidden returns IsHidden +func (m OutlierCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m OutlierCommandDescriptor) 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 OutlierCommandDescriptor) 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 OutlierCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeOutlierCommandDescriptor OutlierCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeOutlierCommandDescriptor + }{ + "OUTLIER", + (MarshalTypeOutlierCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *OutlierCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go new file mode 100644 index 00000000000..c73843bd131 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OverlappingRecallCollection This is the list of overlapping recall requests +type OverlappingRecallCollection struct { + + // This is the array of overlapping recall requests + Items []OverlappingRecallSummary `mandatory:"true" json:"items"` +} + +func (m OverlappingRecallCollection) 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 OverlappingRecallCollection) 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/loganalytics/overlapping_recall_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go new file mode 100644 index 00000000000..a03ee863faa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OverlappingRecallSummary This is the information about overlapping recall requests +type OverlappingRecallSummary struct { + + // This is the start of the time range of the archival data + TimeDataStarted *common.SDKTime `mandatory:"true" json:"timeDataStarted"` + + // This is the end of the time range of the archival data + TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` + + // This is the time when the recall operation was started for this recall request + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // This is the status of the recall + Status RecallStatusEnum `mandatory:"true" json:"status"` + + // This is the purpose of the recall + Purpose *string `mandatory:"true" json:"purpose"` + + // This is the query associated with the recall + QueryString *string `mandatory:"true" json:"queryString"` + + // This is the list of logsets associated with this recall + LogSets *string `mandatory:"true" json:"logSets"` + + // This is the user who initiated the recall request + CreatedBy *string `mandatory:"true" json:"createdBy"` +} + +func (m OverlappingRecallSummary) 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 OverlappingRecallSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingRecallStatusEnum(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(GetRecallStatusEnumStringValues(), ","))) + } + + 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/loganalytics/pattern_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go new file mode 100644 index 00000000000..852e3d9cc87 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PatternOverride Details of pattern level override for a property. +type PatternOverride struct { + + // The pattern id. + Id *string `mandatory:"true" json:"id"` + + // The value of the property. + Value *string `mandatory:"true" json:"value"` + + // The effective level of the property value. + EffectiveLevel *string `mandatory:"false" json:"effectiveLevel"` +} + +func (m PatternOverride) 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 PatternOverride) 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/loganalytics/property_metadata_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go new file mode 100644 index 00000000000..cebda6f8a10 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PropertyMetadataSummary Summary of property metadata details. +type PropertyMetadataSummary struct { + + // The property name. + Name *string `mandatory:"false" json:"name"` + + // The property display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The property description. + Description *string `mandatory:"false" json:"description"` + + // The default property value. + DefaultValue *string `mandatory:"false" json:"defaultValue"` + + // A list of levels at which the property could be defined. + Levels []Level `mandatory:"false" json:"levels"` +} + +func (m PropertyMetadataSummary) 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 PropertyMetadataSummary) 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/loganalytics/property_metadata_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go new file mode 100644 index 00000000000..2aa26cf5193 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PropertyMetadataSummaryCollection A collection of property metadata objects. +type PropertyMetadataSummaryCollection struct { + + // An array of properties along with their metadata summary. + Items []PropertyMetadataSummary `mandatory:"false" json:"items"` +} + +func (m PropertyMetadataSummaryCollection) 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 PropertyMetadataSummaryCollection) 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/loganalytics/query_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go index 3130c349d2c..a35ae7d1e01 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go @@ -34,6 +34,9 @@ type QueryAggregation struct { // Explanation of why results may be partial. Only set if arePartialResults is true. PartialResultReason *string `mandatory:"false" json:"partialResultReason"` + // True if the data returned by query is hidden. + IsContentHidden *bool `mandatory:"false" json:"isContentHidden"` + // Query result columns Columns []AbstractColumn `mandatory:"false" json:"columns"` @@ -70,6 +73,7 @@ func (m *QueryAggregation) UnmarshalJSON(data []byte) (e error) { TotalMatchedCount *int64 `json:"totalMatchedCount"` ArePartialResults *bool `json:"arePartialResults"` PartialResultReason *string `json:"partialResultReason"` + IsContentHidden *bool `json:"isContentHidden"` Columns []abstractcolumn `json:"columns"` Fields []abstractcolumn `json:"fields"` Items []map[string]interface{} `json:"items"` @@ -90,6 +94,8 @@ func (m *QueryAggregation) UnmarshalJSON(data []byte) (e error) { m.PartialResultReason = model.PartialResultReason + m.IsContentHidden = model.IsContentHidden + m.Columns = make([]AbstractColumn, len(model.Columns)) for i, n := range model.Columns { nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go new file mode 100644 index 00000000000..536267e0056 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RareCommandDescriptor Command descriptor for querylanguage RARE command. +type RareCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +//GetDisplayQueryString returns DisplayQueryString +func (m RareCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +//GetInternalQueryString returns InternalQueryString +func (m RareCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +//GetCategory returns Category +func (m RareCommandDescriptor) GetCategory() *string { + return m.Category +} + +//GetReferencedFields returns ReferencedFields +func (m RareCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +//GetDeclaredFields returns DeclaredFields +func (m RareCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +//GetIsHidden returns IsHidden +func (m RareCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m RareCommandDescriptor) 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 RareCommandDescriptor) 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 RareCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeRareCommandDescriptor RareCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeRareCommandDescriptor + }{ + "RARE", + (MarshalTypeRareCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *RareCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go index a716f18232c..073f8cb5842 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go @@ -35,6 +35,12 @@ type RecallArchivedDataDetails struct { // This is the query that identifies the recalled data. Query *string `mandatory:"false" json:"query"` + + // This is the purpose of the recall + Purpose *string `mandatory:"false" json:"purpose"` + + // This indicates if only new data has to be recalled in this recall request + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m RecallArchivedDataDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go index af11863ac33..21572dab222 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go @@ -89,6 +89,9 @@ type RecallArchivedDataResponse struct { // The underlying http response RawResponse *http.Response + // The RecalledDataInfo instance + RecalledDataInfo `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` @@ -97,6 +100,9 @@ type RecallArchivedDataResponse struct { // URI to entity or work request created. Location *string `presentIn:"header" name:"location"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response RecallArchivedDataResponse) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go new file mode 100644 index 00000000000..970a2703f67 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RecallCount This is the recall count statistics for a given tenant +type RecallCount struct { + + // This is the total number of recalls made so far + RecallCount *int `mandatory:"true" json:"recallCount"` + + // This is the number of recalls that succeeded + RecallSucceeded *int `mandatory:"true" json:"recallSucceeded"` + + // This is the number of recalls that failed + RecallFailed *int `mandatory:"true" json:"recallFailed"` + + // This is the number of recalls in pending state + RecallPending *int `mandatory:"true" json:"recallPending"` + + // This is the maximum number of recalls (including successful and pending recalls) allowed + RecallLimit *int `mandatory:"true" json:"recallLimit"` +} + +func (m RecallCount) 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 RecallCount) 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/loganalytics/recall_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go new file mode 100644 index 00000000000..f7c9e39850f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "strings" +) + +// RecallStatusEnum Enum with underlying type: string +type RecallStatusEnum string + +// Set of constants representing the allowable values for RecallStatusEnum +const ( + RecallStatusRecalled RecallStatusEnum = "RECALLED" + RecallStatusPending RecallStatusEnum = "PENDING" + RecallStatusFailed RecallStatusEnum = "FAILED" +) + +var mappingRecallStatusEnum = map[string]RecallStatusEnum{ + "RECALLED": RecallStatusRecalled, + "PENDING": RecallStatusPending, + "FAILED": RecallStatusFailed, +} + +var mappingRecallStatusEnumLowerCase = map[string]RecallStatusEnum{ + "recalled": RecallStatusRecalled, + "pending": RecallStatusPending, + "failed": RecallStatusFailed, +} + +// GetRecallStatusEnumValues Enumerates the set of values for RecallStatusEnum +func GetRecallStatusEnumValues() []RecallStatusEnum { + values := make([]RecallStatusEnum, 0) + for _, v := range mappingRecallStatusEnum { + values = append(values, v) + } + return values +} + +// GetRecallStatusEnumStringValues Enumerates the set of values in String for RecallStatusEnum +func GetRecallStatusEnumStringValues() []string { + return []string{ + "RECALLED", + "PENDING", + "FAILED", + } +} + +// GetMappingRecallStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRecallStatusEnum(val string) (RecallStatusEnum, bool) { + enum, ok := mappingRecallStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go index b5b03024934..e152b79e75c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go @@ -36,6 +36,21 @@ type RecalledData struct { // This is the size in bytes StorageUsageInBytes *int64 `mandatory:"true" json:"storageUsageInBytes"` + + // This is the size of the archival data not recalled yet within the specified time range + NotRecalledDataInBytes *int64 `mandatory:"true" json:"notRecalledDataInBytes"` + + // This is the purpose of the recall + Purpose *string `mandatory:"true" json:"purpose"` + + // This is the query associated with the recall + QueryString *string `mandatory:"true" json:"queryString"` + + // This is the list of logsets associated with the recall + LogSets *string `mandatory:"true" json:"logSets"` + + // This is the user who initiated the recall request + CreatedBy *string `mandatory:"true" json:"createdBy"` } func (m RecalledData) String() string { @@ -64,16 +79,19 @@ type RecalledDataStatusEnum string const ( RecalledDataStatusRecalled RecalledDataStatusEnum = "RECALLED" RecalledDataStatusPending RecalledDataStatusEnum = "PENDING" + RecalledDataStatusFailed RecalledDataStatusEnum = "FAILED" ) var mappingRecalledDataStatusEnum = map[string]RecalledDataStatusEnum{ "RECALLED": RecalledDataStatusRecalled, "PENDING": RecalledDataStatusPending, + "FAILED": RecalledDataStatusFailed, } var mappingRecalledDataStatusEnumLowerCase = map[string]RecalledDataStatusEnum{ "recalled": RecalledDataStatusRecalled, "pending": RecalledDataStatusPending, + "failed": RecalledDataStatusFailed, } // GetRecalledDataStatusEnumValues Enumerates the set of values for RecalledDataStatusEnum @@ -90,6 +108,7 @@ func GetRecalledDataStatusEnumStringValues() []string { return []string{ "RECALLED", "PENDING", + "FAILED", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go new file mode 100644 index 00000000000..01250b86a32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RecalledDataInfo This is the synchronous result of a recall of archived data +type RecalledDataInfo struct { + + // This is the parent name of the list of overlapping recalls + CollectionName *string `mandatory:"true" json:"collectionName"` + + // This is the recall name made for a specific purpose + Purpose *string `mandatory:"false" json:"purpose"` +} + +func (m RecalledDataInfo) 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 RecalledDataInfo) 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/loganalytics/recalled_data_size.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go new file mode 100644 index 00000000000..9f9f0e0bec5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RecalledDataSize This is the recall related data size for the given timeframe +type RecalledDataSize struct { + + // This is the start of the time range of the archival data + TimeDataStarted *common.SDKTime `mandatory:"true" json:"timeDataStarted"` + + // This is the end of the time range of the archival data + TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` + + // This is the size of the recalled data + RecalledDataInBytes *int64 `mandatory:"true" json:"recalledDataInBytes"` + + // This is the size of the archival data not recalled yet + NotRecalledDataInBytes *int64 `mandatory:"true" json:"notRecalledDataInBytes"` +} + +func (m RecalledDataSize) 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 RecalledDataSize) 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/loganalytics/rule_summary_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go new file mode 100644 index 00000000000..40eb8dde0e2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RuleSummaryReport A summary count of detection rules. +type RuleSummaryReport struct { + + // The total count of detection rules. + TotalCount *int `mandatory:"true" json:"totalCount"` + + // The count of ingest time rules. + IngestTimeRulesCount *int `mandatory:"true" json:"ingestTimeRulesCount"` + + // The count of saved search rules. + SavedSearchRulesCount *int `mandatory:"true" json:"savedSearchRulesCount"` +} + +func (m RuleSummaryReport) 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 RuleSummaryReport) 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/loganalytics/storage.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go index 503c5d4f3f7..2d6f09f7b2d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Storage This is the storage configuration and status of a tenancy in Logan Analytics application +// Storage This is the storage configuration and status of a tenancy in Logging Analytics application type Storage struct { // This indicates if old data can be archived for a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go index ddb6d5a3cb4..1326d1712d2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go @@ -22,6 +22,7 @@ const ( StorageOperationTypePurgeStorageData StorageOperationTypeEnum = "PURGE_STORAGE_DATA" StorageOperationTypeRecallArchivedStorageData StorageOperationTypeEnum = "RECALL_ARCHIVED_STORAGE_DATA" StorageOperationTypeReleaseRecalledStorageData StorageOperationTypeEnum = "RELEASE_RECALLED_STORAGE_DATA" + StorageOperationTypePurgeArchivalData StorageOperationTypeEnum = "PURGE_ARCHIVAL_DATA" StorageOperationTypeArchiveStorageData StorageOperationTypeEnum = "ARCHIVE_STORAGE_DATA" StorageOperationTypeCleanupArchivalStorageData StorageOperationTypeEnum = "CLEANUP_ARCHIVAL_STORAGE_DATA" StorageOperationTypeEncryptActiveData StorageOperationTypeEnum = "ENCRYPT_ACTIVE_DATA" @@ -33,6 +34,7 @@ var mappingStorageOperationTypeEnum = map[string]StorageOperationTypeEnum{ "PURGE_STORAGE_DATA": StorageOperationTypePurgeStorageData, "RECALL_ARCHIVED_STORAGE_DATA": StorageOperationTypeRecallArchivedStorageData, "RELEASE_RECALLED_STORAGE_DATA": StorageOperationTypeReleaseRecalledStorageData, + "PURGE_ARCHIVAL_DATA": StorageOperationTypePurgeArchivalData, "ARCHIVE_STORAGE_DATA": StorageOperationTypeArchiveStorageData, "CLEANUP_ARCHIVAL_STORAGE_DATA": StorageOperationTypeCleanupArchivalStorageData, "ENCRYPT_ACTIVE_DATA": StorageOperationTypeEncryptActiveData, @@ -44,6 +46,7 @@ var mappingStorageOperationTypeEnumLowerCase = map[string]StorageOperationTypeEn "purge_storage_data": StorageOperationTypePurgeStorageData, "recall_archived_storage_data": StorageOperationTypeRecallArchivedStorageData, "release_recalled_storage_data": StorageOperationTypeReleaseRecalledStorageData, + "purge_archival_data": StorageOperationTypePurgeArchivalData, "archive_storage_data": StorageOperationTypeArchiveStorageData, "cleanup_archival_storage_data": StorageOperationTypeCleanupArchivalStorageData, "encrypt_active_data": StorageOperationTypeEncryptActiveData, @@ -66,6 +69,7 @@ func GetStorageOperationTypeEnumStringValues() []string { "PURGE_STORAGE_DATA", "RECALL_ARCHIVED_STORAGE_DATA", "RELEASE_RECALLED_STORAGE_DATA", + "PURGE_ARCHIVAL_DATA", "ARCHIVE_STORAGE_DATA", "CLEANUP_ARCHIVAL_STORAGE_DATA", "ENCRYPT_ACTIVE_DATA", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go index c69f8cf53da..6efca088033 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go @@ -15,7 +15,7 @@ import ( "strings" ) -// StorageUsage This is the storage usage information of a tenancy in Logan Analytics application +// StorageUsage This is the storage usage information of a tenancy in Logging Analytics application type StorageUsage struct { // This is the number of bytes of active data (non-archived) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go index a6171bc1722..7490d53c02d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go @@ -80,6 +80,18 @@ type StorageWorkRequest struct { // The type of customer encryption key. It can be archival, active or all. KeyType EncryptionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` + + // This is a list of logsets associated with this work request + LogSets *string `mandatory:"false" json:"logSets"` + + // This is the purpose of the operation associated with this work request + Purpose *string `mandatory:"false" json:"purpose"` + + // This is the query string applied on the operation associated with this work request + Query *string `mandatory:"false" json:"query"` + + // This is the flag to indicate if only new data has to be recalled in this work request + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m StorageWorkRequest) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go index d14fefbbf9b..cd23dfb11d3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go @@ -80,6 +80,18 @@ type StorageWorkRequestSummary struct { // The type of customer encryption key. It can be archival, active or all. KeyType EncryptionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` + + // This is a list of logsets associated with this work request + LogSets *string `mandatory:"false" json:"logSets"` + + // This is the purpose of the operation associated with this work request + Purpose *string `mandatory:"false" json:"purpose"` + + // This is the query string applied on the operation associated with this work request + Query *string `mandatory:"false" json:"query"` + + // This is the flag to indicate if only new data has to be recalled in this work request + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m StorageWorkRequestSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go new file mode 100644 index 00000000000..0a4b7f82d5d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go @@ -0,0 +1,220 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TableColumn Result column that contains a table within each row. +type TableColumn struct { + + // Column display name - will be alias if column is renamed by queryStrng. + DisplayName *string `mandatory:"false" json:"displayName"` + + // If the column is a 'List of Values' column, this array contains the field values that are applicable to query results or all if no filters applied. + Values []FieldValue `mandatory:"false" json:"values"` + + // Identifies if all values in this column come from a pre-defined list of values. + IsListOfValues *bool `mandatory:"false" json:"isListOfValues"` + + // Identifies if this column allows multiple values to exist in a single row. + IsMultiValued *bool `mandatory:"false" json:"isMultiValued"` + + // A flag indicating whether or not the field is a case sensitive field. Only applies to string fields. + IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` + + // Identifies if this column can be used as a grouping field in any grouping command. + IsGroupable *bool `mandatory:"false" json:"isGroupable"` + + // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. + IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + + // Same as displayName unless column renamed in which case this will hold the original display name for the column. + OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` + + // Internal identifier for the column. + InternalName *string `mandatory:"false" json:"internalName"` + + // Column descriptors for the table result. + Columns []AbstractColumn `mandatory:"false" json:"columns"` + + // Results data of the table. + Result []map[string]interface{} `mandatory:"false" json:"result"` + + // Subsystem column belongs to. + SubSystem SubSystemNameEnum `mandatory:"false" json:"subSystem,omitempty"` + + // Field denoting column data type. + ValueType ValueTypeEnum `mandatory:"false" json:"valueType,omitempty"` +} + +//GetDisplayName returns DisplayName +func (m TableColumn) GetDisplayName() *string { + return m.DisplayName +} + +//GetSubSystem returns SubSystem +func (m TableColumn) GetSubSystem() SubSystemNameEnum { + return m.SubSystem +} + +//GetValues returns Values +func (m TableColumn) GetValues() []FieldValue { + return m.Values +} + +//GetIsListOfValues returns IsListOfValues +func (m TableColumn) GetIsListOfValues() *bool { + return m.IsListOfValues +} + +//GetIsMultiValued returns IsMultiValued +func (m TableColumn) GetIsMultiValued() *bool { + return m.IsMultiValued +} + +//GetIsCaseSensitive returns IsCaseSensitive +func (m TableColumn) GetIsCaseSensitive() *bool { + return m.IsCaseSensitive +} + +//GetIsGroupable returns IsGroupable +func (m TableColumn) GetIsGroupable() *bool { + return m.IsGroupable +} + +//GetIsEvaluable returns IsEvaluable +func (m TableColumn) GetIsEvaluable() *bool { + return m.IsEvaluable +} + +//GetValueType returns ValueType +func (m TableColumn) GetValueType() ValueTypeEnum { + return m.ValueType +} + +//GetOriginalDisplayName returns OriginalDisplayName +func (m TableColumn) GetOriginalDisplayName() *string { + return m.OriginalDisplayName +} + +//GetInternalName returns InternalName +func (m TableColumn) GetInternalName() *string { + return m.InternalName +} + +func (m TableColumn) 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 TableColumn) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSubSystemNameEnum(string(m.SubSystem)); !ok && m.SubSystem != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SubSystem: %s. Supported values are: %s.", m.SubSystem, strings.Join(GetSubSystemNameEnumStringValues(), ","))) + } + if _, ok := GetMappingValueTypeEnum(string(m.ValueType)); !ok && m.ValueType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ValueType: %s. Supported values are: %s.", m.ValueType, strings.Join(GetValueTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m TableColumn) MarshalJSON() (buff []byte, e error) { + type MarshalTypeTableColumn TableColumn + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeTableColumn + }{ + "TABLE_COLUMN", + (MarshalTypeTableColumn)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *TableColumn) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + SubSystem SubSystemNameEnum `json:"subSystem"` + Values []FieldValue `json:"values"` + IsListOfValues *bool `json:"isListOfValues"` + IsMultiValued *bool `json:"isMultiValued"` + IsCaseSensitive *bool `json:"isCaseSensitive"` + IsGroupable *bool `json:"isGroupable"` + IsEvaluable *bool `json:"isEvaluable"` + ValueType ValueTypeEnum `json:"valueType"` + OriginalDisplayName *string `json:"originalDisplayName"` + InternalName *string `json:"internalName"` + Columns []abstractcolumn `json:"columns"` + Result []map[string]interface{} `json:"result"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.SubSystem = model.SubSystem + + m.Values = make([]FieldValue, len(model.Values)) + for i, n := range model.Values { + m.Values[i] = n + } + + m.IsListOfValues = model.IsListOfValues + + m.IsMultiValued = model.IsMultiValued + + m.IsCaseSensitive = model.IsCaseSensitive + + m.IsGroupable = model.IsGroupable + + m.IsEvaluable = model.IsEvaluable + + m.ValueType = model.ValueType + + m.OriginalDisplayName = model.OriginalDisplayName + + m.InternalName = model.InternalName + + m.Columns = make([]AbstractColumn, len(model.Columns)) + for i, n := range model.Columns { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Columns[i] = nn.(AbstractColumn) + } else { + m.Columns[i] = nil + } + } + + m.Result = make([]map[string]interface{}, len(model.Result)) + for i, n := range model.Result { + m.Result[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go index 666d8fa1ea0..d53c6e6a6f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go @@ -18,24 +18,21 @@ type TaskTypeEnum string // Set of constants representing the allowable values for TaskTypeEnum const ( - TaskTypeSavedSearch TaskTypeEnum = "SAVED_SEARCH" - TaskTypeAcceleration TaskTypeEnum = "ACCELERATION" - TaskTypePurge TaskTypeEnum = "PURGE" - TaskTypeAccelerationMaintenance TaskTypeEnum = "ACCELERATION_MAINTENANCE" + TaskTypeSavedSearch TaskTypeEnum = "SAVED_SEARCH" + TaskTypeAcceleration TaskTypeEnum = "ACCELERATION" + TaskTypePurge TaskTypeEnum = "PURGE" ) var mappingTaskTypeEnum = map[string]TaskTypeEnum{ - "SAVED_SEARCH": TaskTypeSavedSearch, - "ACCELERATION": TaskTypeAcceleration, - "PURGE": TaskTypePurge, - "ACCELERATION_MAINTENANCE": TaskTypeAccelerationMaintenance, + "SAVED_SEARCH": TaskTypeSavedSearch, + "ACCELERATION": TaskTypeAcceleration, + "PURGE": TaskTypePurge, } var mappingTaskTypeEnumLowerCase = map[string]TaskTypeEnum{ - "saved_search": TaskTypeSavedSearch, - "acceleration": TaskTypeAcceleration, - "purge": TaskTypePurge, - "acceleration_maintenance": TaskTypeAccelerationMaintenance, + "saved_search": TaskTypeSavedSearch, + "acceleration": TaskTypeAcceleration, + "purge": TaskTypePurge, } // GetTaskTypeEnumValues Enumerates the set of values for TaskTypeEnum @@ -53,7 +50,6 @@ func GetTaskTypeEnumStringValues() []string { "SAVED_SEARCH", "ACCELERATION", "PURGE", - "ACCELERATION_MAINTENANCE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go index 3df6a1ef263..97ada724156 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go @@ -55,10 +55,13 @@ type TrendColumn struct { // Sum across all column values for a given timestamp. TotalIntervalCounts []int64 `mandatory:"false" json:"totalIntervalCounts"` + // Sum of column values for a given timestamp after applying filter. TotalIntervalCountsAfterFilter []int64 `mandatory:"false" json:"totalIntervalCountsAfterFilter"` + // Number of aggregated groups for a given timestamp. IntervalGroupCounts []int64 `mandatory:"false" json:"intervalGroupCounts"` + // Number of aggregated groups for a given timestamp after applying filter. IntervalGroupCountsAfterFilter []int64 `mandatory:"false" json:"intervalGroupCountsAfterFilter"` // Subsystem column belongs to. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go index e183da9e858..cc41f95287c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go @@ -15,7 +15,7 @@ import ( "strings" ) -// UpdateStorageDetails This is the input to update storage configuration of a tenancy in Logan Analytics application +// UpdateStorageDetails This is the input to update storage configuration of a tenancy in Logging Analytics application type UpdateStorageDetails struct { ArchivingConfiguration *ArchivingConfiguration `mandatory:"true" json:"archivingConfiguration"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go index afb462cb1c1..6797bd0dba1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go @@ -41,6 +41,9 @@ type UpsertLogAnalyticsAssociation struct { // The log group unique identifier. LogGroupId *string `mandatory:"false" json:"logGroupId"` + + // A list of association properties. + AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` } func (m UpsertLogAnalyticsAssociation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go index 93c34b93208..f267ddb6deb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go @@ -10,6 +10,7 @@ package loganalytics import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -106,6 +107,12 @@ type UpsertLogAnalyticsSourceDetails struct { // An array of categories to assign to the source. Specifying the name attribute for each category would suffice. // Oracle-defined category assignments cannot be removed. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` + + // An array of REST API endpoints for log collection. + Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` + + // A list of source properties. + SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m UpsertLogAnalyticsSourceDetails) String() string { @@ -123,3 +130,171 @@ func (m UpsertLogAnalyticsSourceDetails) ValidateEnumValue() (bool, error) { } return false, nil } + +// UnmarshalJSON unmarshals from json +func (m *UpsertLogAnalyticsSourceDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` + DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` + DatabaseCredential *string `json:"databaseCredential"` + ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` + IsForCloud *bool `json:"isForCloud"` + Labels []LogAnalyticsLabelView `json:"labels"` + MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` + Metrics []LogAnalyticsSourceMetric `json:"metrics"` + OobParsers []LogAnalyticsParser `json:"oobParsers"` + Parameters []LogAnalyticsParameter `json:"parameters"` + Patterns []LogAnalyticsSourcePattern `json:"patterns"` + Description *string `json:"description"` + DisplayName *string `json:"displayName"` + EditVersion *int64 `json:"editVersion"` + Functions []LogAnalyticsSourceFunction `json:"functions"` + SourceId *int64 `json:"sourceId"` + Name *string `json:"name"` + IsSecureContent *bool `json:"isSecureContent"` + IsSystem *bool `json:"isSystem"` + Parsers []LogAnalyticsParser `json:"parsers"` + RuleId *int64 `json:"ruleId"` + TypeName *string `json:"typeName"` + WarningConfig *int64 `json:"warningConfig"` + MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` + LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` + EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` + IsTimezoneOverride *bool `json:"isTimezoneOverride"` + UserParsers []LogAnalyticsParser `json:"userParsers"` + Categories []LogAnalyticsCategory `json:"categories"` + Endpoints []loganalyticsendpoint `json:"endpoints"` + SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) + for i, n := range model.LabelConditions { + m.LabelConditions[i] = n + } + + m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) + for i, n := range model.DataFilterDefinitions { + m.DataFilterDefinitions[i] = n + } + + m.DatabaseCredential = model.DatabaseCredential + + m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) + for i, n := range model.ExtendedFieldDefinitions { + m.ExtendedFieldDefinitions[i] = n + } + + m.IsForCloud = model.IsForCloud + + m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) + for i, n := range model.Labels { + m.Labels[i] = n + } + + m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) + for i, n := range model.MetricDefinitions { + m.MetricDefinitions[i] = n + } + + m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) + for i, n := range model.Metrics { + m.Metrics[i] = n + } + + m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) + for i, n := range model.OobParsers { + m.OobParsers[i] = n + } + + m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) + for i, n := range model.Parameters { + m.Parameters[i] = n + } + + m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) + for i, n := range model.Patterns { + m.Patterns[i] = n + } + + m.Description = model.Description + + m.DisplayName = model.DisplayName + + m.EditVersion = model.EditVersion + + m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) + for i, n := range model.Functions { + m.Functions[i] = n + } + + m.SourceId = model.SourceId + + m.Name = model.Name + + m.IsSecureContent = model.IsSecureContent + + m.IsSystem = model.IsSystem + + m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) + for i, n := range model.Parsers { + m.Parsers[i] = n + } + + m.RuleId = model.RuleId + + m.TypeName = model.TypeName + + m.WarningConfig = model.WarningConfig + + m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) + for i, n := range model.MetadataFields { + m.MetadataFields[i] = n + } + + m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) + for i, n := range model.LabelDefinitions { + m.LabelDefinitions[i] = n + } + + m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) + for i, n := range model.EntityTypes { + m.EntityTypes[i] = n + } + + m.IsTimezoneOverride = model.IsTimezoneOverride + + m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) + for i, n := range model.UserParsers { + m.UserParsers[i] = n + } + + m.Categories = make([]LogAnalyticsCategory, len(model.Categories)) + for i, n := range model.Categories { + m.Categories[i] = n + } + + m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) + for i, n := range model.Endpoints { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Endpoints[i] = nn.(LogAnalyticsEndpoint) + } else { + m.Endpoints[i] = nil + } + } + + m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) + for i, n := range model.SourceProperties { + m.SourceProperties[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go new file mode 100644 index 00000000000..f6c85a04c50 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateEndpointRequest wrapper for the ValidateEndpoint operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateEndpoint.go.html to see an example of how to use ValidateEndpointRequest. +type ValidateEndpointRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // Details of the REST endpoint configuration to validate. + ValidateEndpointDetails LogAnalyticsEndpoint `contributesTo:"body"` + + // 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 ValidateEndpointRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateEndpointRequest) 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 ValidateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateEndpointRequest) 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 ValidateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateEndpointResponse wrapper for the ValidateEndpoint operation +type ValidateEndpointResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ValidateEndpointResult instance + ValidateEndpointResult `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ValidateEndpointResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateEndpointResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go new file mode 100644 index 00000000000..f5732c043df --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateEndpointResult The result of the endpoint configuration validation +type ValidateEndpointResult struct { + + // The validation status. + Status *string `mandatory:"true" json:"status"` + + // The validation status description. + StatusDescription *string `mandatory:"false" json:"statusDescription"` + + // Validation results for each specified endpoint. + ValidationResults []EndpointResult `mandatory:"false" json:"validationResults"` +} + +func (m ValidateEndpointResult) 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 ValidateEndpointResult) 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/loganalytics/validate_label_condition_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go new file mode 100644 index 00000000000..39ea49689e8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateLabelConditionDetails Required information needed to evaluate a source label condition. +type ValidateLabelConditionDetails struct { + + // String representation of the label condition to validate. + ConditionString *string `mandatory:"false" json:"conditionString"` + + ConditionBlock *ConditionBlock `mandatory:"false" json:"conditionBlock"` + + // An array of field name-value pairs to evaluate the label condition. + FieldValues []LogAnalyticsProperty `mandatory:"false" json:"fieldValues"` +} + +func (m ValidateLabelConditionDetails) 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 ValidateLabelConditionDetails) 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/loganalytics/validate_label_condition_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go new file mode 100644 index 00000000000..47c10819873 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateLabelConditionRequest wrapper for the ValidateLabelCondition operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateLabelCondition.go.html to see an example of how to use ValidateLabelConditionRequest. +type ValidateLabelConditionRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // Details of source label condition to validate. + ValidateLabelConditionDetails `contributesTo:"body"` + + // 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 ValidateLabelConditionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateLabelConditionRequest) 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 ValidateLabelConditionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateLabelConditionRequest) 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 ValidateLabelConditionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateLabelConditionResponse wrapper for the ValidateLabelCondition operation +type ValidateLabelConditionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ValidateLabelConditionResult instance + ValidateLabelConditionResult `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ValidateLabelConditionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateLabelConditionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go new file mode 100644 index 00000000000..c06a44a427f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateLabelConditionResult The result of the label condition validation +type ValidateLabelConditionResult struct { + + // String representation of the validated label condition. + ConditionString *string `mandatory:"true" json:"conditionString"` + + ConditionBlock *ConditionBlock `mandatory:"true" json:"conditionBlock"` + + // The validation status. + Status *string `mandatory:"true" json:"status"` + + // Field values against which the label condition was evaluated. + FieldValues []LogAnalyticsProperty `mandatory:"false" json:"fieldValues"` + + // The validation status description. + StatusDescription *string `mandatory:"false" json:"statusDescription"` + + // The result of evaluating the condition blocks against the specified field values. Either true or false. + EvaluationResult *bool `mandatory:"false" json:"evaluationResult"` +} + +func (m ValidateLabelConditionResult) 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 ValidateLabelConditionResult) 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/loganalytics/value_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go index 710765ac84c..003aae9c81b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go @@ -26,6 +26,7 @@ const ( ValueTypeInteger ValueTypeEnum = "INTEGER" ValueTypeTimestamp ValueTypeEnum = "TIMESTAMP" ValueTypeFacet ValueTypeEnum = "FACET" + ValueTypeTable ValueTypeEnum = "TABLE" ) var mappingValueTypeEnum = map[string]ValueTypeEnum{ @@ -37,6 +38,7 @@ var mappingValueTypeEnum = map[string]ValueTypeEnum{ "INTEGER": ValueTypeInteger, "TIMESTAMP": ValueTypeTimestamp, "FACET": ValueTypeFacet, + "TABLE": ValueTypeTable, } var mappingValueTypeEnumLowerCase = map[string]ValueTypeEnum{ @@ -48,6 +50,7 @@ var mappingValueTypeEnumLowerCase = map[string]ValueTypeEnum{ "integer": ValueTypeInteger, "timestamp": ValueTypeTimestamp, "facet": ValueTypeFacet, + "table": ValueTypeTable, } // GetValueTypeEnumValues Enumerates the set of values for ValueTypeEnum @@ -70,6 +73,7 @@ func GetValueTypeEnumStringValues() []string { "INTEGER", "TIMESTAMP", "FACET", + "TABLE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go new file mode 100644 index 00000000000..64a20e8c360 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// ChangeNewsReportCompartmentDetails The information to be updated. +type ChangeNewsReportCompartmentDetails struct { + + // The OCID of the compartment into which the resource will be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeNewsReportCompartmentDetails) 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 ChangeNewsReportCompartmentDetails) 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/change_news_report_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go new file mode 100644 index 00000000000..7b4d57a25d6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// ChangeNewsReportCompartmentRequest wrapper for the ChangeNewsReportCompartment operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ChangeNewsReportCompartment.go.html to see an example of how to use ChangeNewsReportCompartmentRequest. +type ChangeNewsReportCompartmentRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // The information to be updated. + ChangeNewsReportCompartmentDetails `contributesTo:"body"` + + // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` + // parameter to the value of the etag from a previous get, create, or update 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 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"` + + // A token that uniquely identifies a request that can be retried in case of a timeout or + // server error without risk of executing the same action again. Retry tokens expire after 24 + // hours. + // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting + // operations, such as a resource being deleted or purged from the system. + 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 ChangeNewsReportCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeNewsReportCompartmentRequest) 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 ChangeNewsReportCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeNewsReportCompartmentRequest) 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 ChangeNewsReportCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeNewsReportCompartmentResponse wrapper for the ChangeNewsReportCompartment operation +type ChangeNewsReportCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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 ChangeNewsReportCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeNewsReportCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go new file mode 100644 index 00000000000..4d3e7a05451 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// CreateNewsReportDetails The information about the news report to be created. +type CreateNewsReportDetails struct { + + // The news report name. + Name *string `mandatory:"true" json:"name"` + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` + + // The description of the news report. + Description *string `mandatory:"true" json:"description"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"true" json:"onsTopicId"` + + // Compartment Identifier where the news report will be created. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"true" json:"locale"` + + // 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"` + + // Defines if the news report will be enabled or disabled. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` +} + +func (m CreateNewsReportDetails) 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 CreateNewsReportDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + 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/create_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go new file mode 100644 index 00000000000..e115aa07c04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// CreateNewsReportRequest wrapper for the CreateNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateNewsReport.go.html to see an example of how to use CreateNewsReportRequest. +type CreateNewsReportRequest struct { + + // Details for the news report that will be created in Operations Insights. + CreateNewsReportDetails `contributesTo:"body"` + + // A token that uniquely identifies a request that can be retried in case of a timeout or + // server error without risk of executing the same action again. Retry tokens expire after 24 + // hours. + // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting + // operations, such as a resource being deleted or purged from the system. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateNewsReportRequest) 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 CreateNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateNewsReportRequest) 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 CreateNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateNewsReportResponse wrapper for the CreateNewsReport operation +type CreateNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NewsReport instance + NewsReport `presentIn:"body"` + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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"` + + // URI of the resource + Location *string `presentIn:"header" name:"location"` + + // URI of the resource + ContentLocation *string `presentIn:"header" name:"content-location"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response CreateNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go index b339831bb16..69eaddd71df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go @@ -27,7 +27,7 @@ type DataObjectColumnMetadata struct { // Category of the column. Category DataObjectColumnMetadataCategoryEnum `mandatory:"false" json:"category,omitempty"` - // Type of a data object column. + // Type name of a data object column. DataTypeName DataObjectColumnMetadataDataTypeNameEnum `mandatory:"false" json:"dataTypeName,omitempty"` // Display name of the column. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go new file mode 100644 index 00000000000..8d2247bab1b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// DeleteNewsReportRequest wrapper for the DeleteNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DeleteNewsReport.go.html to see an example of how to use DeleteNewsReportRequest. +type DeleteNewsReportRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` + // parameter to the value of the etag from a previous get, create, or update 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 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteNewsReportRequest) 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 DeleteNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteNewsReportRequest) 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 DeleteNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteNewsReportResponse wrapper for the DeleteNewsReport operation +type DeleteNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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 DeleteNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go index 68bf81acbfe..13c1c427eae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go @@ -37,6 +37,9 @@ type ExadataInsightResourceForecastTrendSummary struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m ExadataInsightResourceForecastTrendSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go new file mode 100644 index 00000000000..9a79e5382f5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// GetNewsReportRequest wrapper for the GetNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/GetNewsReport.go.html to see an example of how to use GetNewsReportRequest. +type GetNewsReportRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetNewsReportRequest) 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 GetNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetNewsReportRequest) 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 GetNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetNewsReportResponse wrapper for the GetNewsReport operation +type GetNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NewsReport instance + NewsReport `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 GetNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go new file mode 100644 index 00000000000..8234fbe20fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// IngestMySqlSqlTextDetails Collection of SQL Text Entries +type IngestMySqlSqlTextDetails struct { + + // List of SQL Text Entries. + Items []MySqlSqlText `mandatory:"false" json:"items"` +} + +func (m IngestMySqlSqlTextDetails) 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 IngestMySqlSqlTextDetails) 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/ingest_my_sql_sql_text_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go new file mode 100644 index 00000000000..f85a432ee7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// IngestMySqlSqlTextResponseDetails The response object returned from IngestMySqlSqlTextDetails operation. +type IngestMySqlSqlTextResponseDetails struct { + + // Success message returned as a result of the upload. + Message *string `mandatory:"true" json:"message"` +} + +func (m IngestMySqlSqlTextResponseDetails) 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 IngestMySqlSqlTextResponseDetails) 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/list_news_reports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go new file mode 100644 index 00000000000..3dd54f89301 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go @@ -0,0 +1,231 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// ListNewsReportsRequest wrapper for the ListNewsReports operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ListNewsReports.go.html to see an example of how to use ListNewsReportsRequest. +type ListNewsReportsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // Unique Operations Insights news report identifier + NewsReportId *string `mandatory:"false" contributesTo:"query" name:"newsReportId"` + + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + + // Lifecycle states + LifecycleState []LifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` + + // 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"` + + // 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"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListNewsReportsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // News report list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. + SortBy ListNewsReportsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // A flag to search all resources within a given compartment and all sub-compartments. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNewsReportsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNewsReportsRequest) 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 ListNewsReportsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNewsReportsRequest) 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 ListNewsReportsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + 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(), ","))) + } + } + + for _, val := range request.LifecycleState { + if _, ok := GetMappingLifecycleStateEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", val, strings.Join(GetLifecycleStateEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingListNewsReportsSortOrderEnum(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(GetListNewsReportsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListNewsReportsSortByEnum(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(GetListNewsReportsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNewsReportsResponse wrapper for the ListNewsReports operation +type ListNewsReportsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of NewsReportCollection instances + NewsReportCollection `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. The total number of items in the result. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // 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 ListNewsReportsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNewsReportsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNewsReportsSortOrderEnum Enum with underlying type: string +type ListNewsReportsSortOrderEnum string + +// Set of constants representing the allowable values for ListNewsReportsSortOrderEnum +const ( + ListNewsReportsSortOrderAsc ListNewsReportsSortOrderEnum = "ASC" + ListNewsReportsSortOrderDesc ListNewsReportsSortOrderEnum = "DESC" +) + +var mappingListNewsReportsSortOrderEnum = map[string]ListNewsReportsSortOrderEnum{ + "ASC": ListNewsReportsSortOrderAsc, + "DESC": ListNewsReportsSortOrderDesc, +} + +var mappingListNewsReportsSortOrderEnumLowerCase = map[string]ListNewsReportsSortOrderEnum{ + "asc": ListNewsReportsSortOrderAsc, + "desc": ListNewsReportsSortOrderDesc, +} + +// GetListNewsReportsSortOrderEnumValues Enumerates the set of values for ListNewsReportsSortOrderEnum +func GetListNewsReportsSortOrderEnumValues() []ListNewsReportsSortOrderEnum { + values := make([]ListNewsReportsSortOrderEnum, 0) + for _, v := range mappingListNewsReportsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNewsReportsSortOrderEnumStringValues Enumerates the set of values in String for ListNewsReportsSortOrderEnum +func GetListNewsReportsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNewsReportsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNewsReportsSortOrderEnum(val string) (ListNewsReportsSortOrderEnum, bool) { + enum, ok := mappingListNewsReportsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNewsReportsSortByEnum Enum with underlying type: string +type ListNewsReportsSortByEnum string + +// Set of constants representing the allowable values for ListNewsReportsSortByEnum +const ( + ListNewsReportsSortByName ListNewsReportsSortByEnum = "name" + ListNewsReportsSortByNewsfrequency ListNewsReportsSortByEnum = "newsFrequency" +) + +var mappingListNewsReportsSortByEnum = map[string]ListNewsReportsSortByEnum{ + "name": ListNewsReportsSortByName, + "newsFrequency": ListNewsReportsSortByNewsfrequency, +} + +var mappingListNewsReportsSortByEnumLowerCase = map[string]ListNewsReportsSortByEnum{ + "name": ListNewsReportsSortByName, + "newsfrequency": ListNewsReportsSortByNewsfrequency, +} + +// GetListNewsReportsSortByEnumValues Enumerates the set of values for ListNewsReportsSortByEnum +func GetListNewsReportsSortByEnumValues() []ListNewsReportsSortByEnum { + values := make([]ListNewsReportsSortByEnum, 0) + for _, v := range mappingListNewsReportsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNewsReportsSortByEnumStringValues Enumerates the set of values in String for ListNewsReportsSortByEnum +func GetListNewsReportsSortByEnumStringValues() []string { + return []string{ + "name", + "newsFrequency", + } +} + +// GetMappingListNewsReportsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNewsReportsSortByEnum(val string) (ListNewsReportsSortByEnum, bool) { + enum, ok := mappingListNewsReportsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go new file mode 100644 index 00000000000..2f3c8ad8d35 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// MySqlSqlText MySql SQL Text type object. +type MySqlSqlText struct { + + // digest + // Example: `"323k3k99ua09a90adf"` + Digest *string `mandatory:"true" json:"digest"` + + // Collection timestamp. + // Example: `"2020-05-06T00:00:00.000Z"` + TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` + + // The normalized statement string. + // Example: `"SELECT username,profile,default_tablespace,temporary_tablespace FROM dba_users"` + DigestText *string `mandatory:"true" json:"digestText"` + + // Name of Database Schema. + // Example: `"performance_schema"` + SchemaName *string `mandatory:"false" json:"schemaName"` + + // SQL event name + // Example: `"SELECT"` + CommandType *string `mandatory:"false" json:"commandType"` +} + +func (m MySqlSqlText) 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 MySqlSqlText) 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/news_content_types.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go new file mode 100644 index 00000000000..78fcd966873 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsContentTypes Content types that the news report can handle. +type NewsContentTypes struct { + + // Supported resources for capacity planning content type. + CapacityPlanningResources []NewsContentTypesResourceEnum `mandatory:"true" json:"capacityPlanningResources"` +} + +func (m NewsContentTypes) 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 NewsContentTypes) 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/news_content_types_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go new file mode 100644 index 00000000000..be174c37bc4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "strings" +) + +// NewsContentTypesResourceEnum Enum with underlying type: string +type NewsContentTypesResourceEnum string + +// Set of constants representing the allowable values for NewsContentTypesResourceEnum +const ( + NewsContentTypesResourceHost NewsContentTypesResourceEnum = "HOST" + NewsContentTypesResourceDatabase NewsContentTypesResourceEnum = "DATABASE" + NewsContentTypesResourceExadata NewsContentTypesResourceEnum = "EXADATA" +) + +var mappingNewsContentTypesResourceEnum = map[string]NewsContentTypesResourceEnum{ + "HOST": NewsContentTypesResourceHost, + "DATABASE": NewsContentTypesResourceDatabase, + "EXADATA": NewsContentTypesResourceExadata, +} + +var mappingNewsContentTypesResourceEnumLowerCase = map[string]NewsContentTypesResourceEnum{ + "host": NewsContentTypesResourceHost, + "database": NewsContentTypesResourceDatabase, + "exadata": NewsContentTypesResourceExadata, +} + +// GetNewsContentTypesResourceEnumValues Enumerates the set of values for NewsContentTypesResourceEnum +func GetNewsContentTypesResourceEnumValues() []NewsContentTypesResourceEnum { + values := make([]NewsContentTypesResourceEnum, 0) + for _, v := range mappingNewsContentTypesResourceEnum { + values = append(values, v) + } + return values +} + +// GetNewsContentTypesResourceEnumStringValues Enumerates the set of values in String for NewsContentTypesResourceEnum +func GetNewsContentTypesResourceEnumStringValues() []string { + return []string{ + "HOST", + "DATABASE", + "EXADATA", + } +} + +// GetMappingNewsContentTypesResourceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNewsContentTypesResourceEnum(val string) (NewsContentTypesResourceEnum, bool) { + enum, ok := mappingNewsContentTypesResourceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go new file mode 100644 index 00000000000..e93876dcaac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "strings" +) + +// NewsFrequencyEnum Enum with underlying type: string +type NewsFrequencyEnum string + +// Set of constants representing the allowable values for NewsFrequencyEnum +const ( + NewsFrequencyWeekly NewsFrequencyEnum = "WEEKLY" +) + +var mappingNewsFrequencyEnum = map[string]NewsFrequencyEnum{ + "WEEKLY": NewsFrequencyWeekly, +} + +var mappingNewsFrequencyEnumLowerCase = map[string]NewsFrequencyEnum{ + "weekly": NewsFrequencyWeekly, +} + +// GetNewsFrequencyEnumValues Enumerates the set of values for NewsFrequencyEnum +func GetNewsFrequencyEnumValues() []NewsFrequencyEnum { + values := make([]NewsFrequencyEnum, 0) + for _, v := range mappingNewsFrequencyEnum { + values = append(values, v) + } + return values +} + +// GetNewsFrequencyEnumStringValues Enumerates the set of values in String for NewsFrequencyEnum +func GetNewsFrequencyEnumStringValues() []string { + return []string{ + "WEEKLY", + } +} + +// GetMappingNewsFrequencyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNewsFrequencyEnum(val string) (NewsFrequencyEnum, bool) { + enum, ok := mappingNewsFrequencyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go new file mode 100644 index 00000000000..960f1827ad1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "strings" +) + +// NewsLocaleEnum Enum with underlying type: string +type NewsLocaleEnum string + +// Set of constants representing the allowable values for NewsLocaleEnum +const ( + NewsLocaleEn NewsLocaleEnum = "EN" +) + +var mappingNewsLocaleEnum = map[string]NewsLocaleEnum{ + "EN": NewsLocaleEn, +} + +var mappingNewsLocaleEnumLowerCase = map[string]NewsLocaleEnum{ + "en": NewsLocaleEn, +} + +// GetNewsLocaleEnumValues Enumerates the set of values for NewsLocaleEnum +func GetNewsLocaleEnumValues() []NewsLocaleEnum { + values := make([]NewsLocaleEnum, 0) + for _, v := range mappingNewsLocaleEnum { + values = append(values, v) + } + return values +} + +// GetNewsLocaleEnumStringValues Enumerates the set of values in String for NewsLocaleEnum +func GetNewsLocaleEnumStringValues() []string { + return []string{ + "EN", + } +} + +// GetMappingNewsLocaleEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNewsLocaleEnum(val string) (NewsLocaleEnum, bool) { + enum, ok := mappingNewsLocaleEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go new file mode 100644 index 00000000000..9b2d6e999cf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReport News report resource. +type NewsReport struct { + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` + + ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"true" json:"onsTopicId"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` + + // The description of the news report. + Description *string `mandatory:"false" json:"description"` + + // The news report name. + Name *string `mandatory:"false" json:"name"` + + // 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"` + + // Indicates the status of a news report in Operations Insights. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The time the the news report was first enabled. An RFC3339 formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the news report was updated. An RFC3339 formatted datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The current state of the news report. + LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // 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"` +} + +func (m NewsReport) 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 NewsReport) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) + } + 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/news_report_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go new file mode 100644 index 00000000000..b6839f355d7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReportCollection Collection of news reports summary objects. +type NewsReportCollection struct { + + // Array of news reports summary objects. + Items []NewsReportSummary `mandatory:"true" json:"items"` +} + +func (m NewsReportCollection) 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 NewsReportCollection) 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/news_report_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go new file mode 100644 index 00000000000..c41f54fb49a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReportSummary Summary of a news report resource. +type NewsReportSummary struct { + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` + + ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` + + // The description of the news report. + Description *string `mandatory:"false" json:"description"` + + // The news report name. + Name *string `mandatory:"false" json:"name"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"false" json:"onsTopicId"` + + // 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"` + + // Indicates the status of a news report in Operations Insights. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The time the the news report was first enabled. An RFC3339 formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the news report was updated. An RFC3339 formatted datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The current state of the news report. + LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // 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"` +} + +func (m NewsReportSummary) 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 NewsReportSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) + } + 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/news_reports.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go new file mode 100644 index 00000000000..d95906b111a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReports Logical grouping used for Operations Insights news reports related operations. +type NewsReports struct { + + // News report object. + NewsReports *interface{} `mandatory:"false" json:"newsReports"` +} + +func (m NewsReports) 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 NewsReports) 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 d302d3c32b6..4ddc83267a5 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 @@ -463,6 +463,69 @@ func (client OperationsInsightsClient) changeHostInsightCompartment(ctx context. return response, err } +// ChangeNewsReportCompartment Moves a news report resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ChangeNewsReportCompartment.go.html to see an example of how to use ChangeNewsReportCompartment API. +// A default retry strategy applies to this operation ChangeNewsReportCompartment() +func (client OperationsInsightsClient) ChangeNewsReportCompartment(ctx context.Context, request ChangeNewsReportCompartmentRequest) (response ChangeNewsReportCompartmentResponse, 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.changeNewsReportCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeNewsReportCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeNewsReportCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeNewsReportCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeNewsReportCompartmentResponse") + } + return +} + +// changeNewsReportCompartment implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) changeNewsReportCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/newsReports/{newsReportId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeNewsReportCompartmentResponse + 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/NewsReports/ChangeNewsReportCompartment" + err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeNewsReportCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeOperationsInsightsPrivateEndpointCompartment Moves a private endpoint from one compartment to another. When provided, If-Match is checked against ETag values of the resource. // // See also @@ -968,6 +1031,69 @@ func (client OperationsInsightsClient) createHostInsight(ctx context.Context, re return response, err } +// CreateNewsReport Create a news report in Operations Insights. The report will be enabled in Operations Insights. Insights will be emailed as per selected frequency. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateNewsReport.go.html to see an example of how to use CreateNewsReport API. +// A default retry strategy applies to this operation CreateNewsReport() +func (client OperationsInsightsClient) CreateNewsReport(ctx context.Context, request CreateNewsReportRequest) (response CreateNewsReportResponse, 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.createNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateNewsReportResponse") + } + return +} + +// createNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) createNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/newsReports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateNewsReportResponse + 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/NewsReports/CreateNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "CreateNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateOperationsInsightsPrivateEndpoint Create a private endpoint resource for the tenant in Operations Insights. // This resource will be created in customer compartment. // @@ -1514,6 +1640,64 @@ func (client OperationsInsightsClient) deleteHostInsight(ctx context.Context, re return response, err } +// DeleteNewsReport Deletes a news report. The news report will be deleted and cannot be enabled again. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DeleteNewsReport.go.html to see an example of how to use DeleteNewsReport API. +// A default retry strategy applies to this operation DeleteNewsReport() +func (client OperationsInsightsClient) DeleteNewsReport(ctx context.Context, request DeleteNewsReportRequest) (response DeleteNewsReportResponse, 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.deleteNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteNewsReportResponse") + } + return +} + +// deleteNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) deleteNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteNewsReportResponse + 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/NewsReports/DeleteNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteOperationsInsightsPrivateEndpoint Deletes a private endpoint. // // See also @@ -2780,6 +2964,64 @@ func (client OperationsInsightsClient) getHostInsight(ctx context.Context, reque return response, err } +// GetNewsReport Gets details of a news report. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/GetNewsReport.go.html to see an example of how to use GetNewsReport API. +// A default retry strategy applies to this operation GetNewsReport() +func (client OperationsInsightsClient) GetNewsReport(ctx context.Context, request GetNewsReportRequest) (response GetNewsReportResponse, 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.getNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetNewsReportResponse") + } + return +} + +// getNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) getNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetNewsReportResponse + 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/NewsReports/GetNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "GetNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetOperationsInsightsPrivateEndpoint Gets the details of the specified private endpoint. // // See also @@ -4876,6 +5118,64 @@ func (client OperationsInsightsClient) listImportableEnterpriseManagerEntities(c return response, err } +// ListNewsReports Gets a list of news reports based on the query parameters specified. Either compartmentId or id query parameter must be specified. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ListNewsReports.go.html to see an example of how to use ListNewsReports API. +// A default retry strategy applies to this operation ListNewsReports() +func (client OperationsInsightsClient) ListNewsReports(ctx context.Context, request ListNewsReportsRequest) (response ListNewsReportsResponse, 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.listNewsReports, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListNewsReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListNewsReportsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListNewsReportsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNewsReportsResponse") + } + return +} + +// listNewsReports implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) listNewsReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/newsReports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListNewsReportsResponse + 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/NewsReport/ListNewsReports" + err = common.PostProcessServiceError(err, "OperationsInsights", "ListNewsReports", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListOperationsInsightsPrivateEndpoints Gets a list of Operation Insights private endpoints. // // See also @@ -8914,6 +9214,64 @@ func (client OperationsInsightsClient) updateHostInsight(ctx context.Context, re return response, err } +// UpdateNewsReport Updates the configuration of a news report. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/UpdateNewsReport.go.html to see an example of how to use UpdateNewsReport API. +// A default retry strategy applies to this operation UpdateNewsReport() +func (client OperationsInsightsClient) UpdateNewsReport(ctx context.Context, request UpdateNewsReportRequest) (response UpdateNewsReportResponse, 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.updateNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateNewsReportResponse") + } + return +} + +// updateNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) updateNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateNewsReportResponse + 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/NewsReports/UpdateNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateOperationsInsightsPrivateEndpoint Updates one or more attributes of the specified private endpoint. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go index deacbed0bc6..68e23c8b096 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go @@ -23,7 +23,7 @@ type QueryDataObjectResultSetColumnMetadata struct { // Name of the column in a data object query result set. Name *string `mandatory:"true" json:"name"` - // Type of the column in a data object query result set. + // Type name of the column in a data object query result set. DataTypeName QueryDataObjectResultSetColumnMetadataDataTypeNameEnum `mandatory:"false" json:"dataTypeName,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go index 1dc8b3a1fa8..5d0900f351d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go @@ -18,7 +18,7 @@ import ( ) // ResourceFilters Information to filter the actual target resources in an operation. -// e.g: While quering a DATABASE_INSIGHTS_DATA_OBJECT using /opsiDataObjects/{opsiDataObjectidentifier}/actions/queryData API, +// e.g: While querying a DATABASE_INSIGHTS_DATA_OBJECT using /opsiDataObjects/actions/queryData API, // if resourceFilters is set with valid value for definedTagEquals field, only data of the database insights // resources for which the specified freeform tags exist will be considered for the actual query scope. type ResourceFilters struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go index f1daf7c80f4..9171a199747 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go @@ -49,6 +49,9 @@ type SummarizeDatabaseInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeDatabaseInsightResourceForecastTrendAggregation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go index 0d4ad61126b..2f44057e1ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go @@ -46,6 +46,9 @@ type SummarizeExadataInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeExadataInsightResourceForecastTrendAggregation) String() string { 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 26202e9cf89..c97295ee891 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 @@ -46,6 +46,9 @@ type SummarizeHostInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeHostInsightResourceForecastTrendAggregation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go new file mode 100644 index 00000000000..ab57fdda75c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// UpdateNewsReportDetails The information about the news report to be updated. +type UpdateNewsReportDetails struct { + + // Defines if the news report will be enabled or disabled. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"false" json:"newsFrequency,omitempty"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` + + ContentTypes *NewsContentTypes `mandatory:"false" json:"contentTypes"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"false" json:"onsTopicId"` + + // 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 UpdateNewsReportDetails) 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 UpdateNewsReportDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + 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/update_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go new file mode 100644 index 00000000000..dcd74e69fed --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// UpdateNewsReportRequest wrapper for the UpdateNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/UpdateNewsReport.go.html to see an example of how to use UpdateNewsReportRequest. +type UpdateNewsReportRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // The configuration to be updated. + UpdateNewsReportDetails `contributesTo:"body"` + + // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` + // parameter to the value of the etag from a previous get, create, or update 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 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateNewsReportRequest) 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 UpdateNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateNewsReportRequest) 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 UpdateNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateNewsReportResponse wrapper for the UpdateNewsReport operation +type UpdateNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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 UpdateNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/modules.txt b/vendor/modules.txt index ac48a82781d..df2e5b21a43 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -248,7 +248,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.45.0 +# github.com/oracle/oci-go-sdk/v65 v65.45.0 => ./vendor/github.com/oracle/oci-go-sdk ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection From 9cd82eba0d90acb3dea9be0b945ed03fb5254fdb Mon Sep 17 00:00:00 2001 From: Nathan Marasigan Date: Wed, 24 May 2023 16:59:07 +0000 Subject: [PATCH 12/25] Added - Support for Budgets - Single Use Budgets --- examples/budget/budget/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/budget/budget/main.tf b/examples/budget/budget/main.tf index f55c97cdb28..5c2981a4dac 100644 --- a/examples/budget/budget/main.tf +++ b/examples/budget/budget/main.tf @@ -126,4 +126,4 @@ data "oci_budget_alert_rules" "test_alert_rules" { #Optional // display_name = oci_budget_alert_rule.test_alert_rule.display_name state = "ACTIVE" -} \ No newline at end of file +} From 672b7578f9837503d3e839cd1c09f42c105dc2d1 Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Sun, 30 Jul 2023 12:19:33 -0700 Subject: [PATCH 13/25] Finalize changelog and release for version v5.6.0 --- CHANGELOG.md | 5 +++++ internal/globalvar/version.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6042d8e019..d7c80f4f776 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 5.6.0 (Unreleased) + +### Added +Support for Budgets - Single Use Budgets + ## 5.6.0 (July 26, 2023) ### Added diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index d102ab19d9f..26fb41b8ab0 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -8,7 +8,7 @@ import ( ) const Version = "5.6.0" -const ReleaseDate = "2023-07-26" +const ReleaseDate = "" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) From ed6acbd588a501c47798922fa8c5a1c100d37f4e Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Mon, 31 Jul 2023 15:15:38 -0700 Subject: [PATCH 14/25] Exempted - Reverted release version --- CHANGELOG.md | 5 - examples/budget/budget/main.tf | 2 +- go.mod | 2 +- go.sum | 2 + internal/globalvar/version.go | 2 +- .../v65/containerengine/cluster_metadata.go | 3 - ...te_credential_rotation_request_response.go | 99 ---- .../containerengine/containerengine_client.go | 184 ------- .../credential_rotation_status.go | 156 ------ ...ential_rotation_status_request_response.go | 94 ---- .../start_credential_rotation_details.go | 41 -- ...rt_credential_rotation_request_response.go | 102 ---- ...t_scheduled_activities_request_response.go | 9 - .../v65/fusionapps/scheduled_activity.go | 89 +--- .../fusionapps/scheduled_activity_summary.go | 47 +- .../v65/loganalytics/abstract_column.go | 8 - .../abstract_command_descriptor.go | 24 - .../v65/loganalytics/association_property.go | 45 -- .../v65/loganalytics/condition_block.go | 109 ---- .../v65/loganalytics/creation_source_type.go | 4 - .../v65/loganalytics/credential_endpoint.go | 54 -- ...og_analytics_em_bridge_request_response.go | 3 - .../effective_property_collection.go | 39 -- .../effective_property_summary.go | 48 -- .../v65/loganalytics/endpoint_credentials.go | 99 ---- .../v65/loganalytics/endpoint_proxy.go | 95 ---- .../v65/loganalytics/endpoint_request.go | 99 ---- .../v65/loganalytics/endpoint_response.go | 42 -- .../v65/loganalytics/endpoint_result.go | 51 -- .../estimate_recall_data_size_details.go | 6 - .../estimate_recall_data_size_result.go | 9 - .../frequent_command_descriptor.go | 152 ------ .../get_recall_count_request_response.go | 89 ---- ...get_recalled_data_size_request_response.go | 105 ---- .../get_rules_summary_request_response.go | 92 ---- .../oci-go-sdk/v65/loganalytics/level.go | 43 -- ...t_effective_properties_request_response.go | 219 -------- ...st_overlapping_recalls_request_response.go | 208 -------- ...st_properties_metadata_request_response.go | 214 -------- .../list_scheduled_tasks_request_response.go | 22 +- ..._storage_work_requests_request_response.go | 4 - .../loganalytics/log_analytics_association.go | 3 - .../log_analytics_association_parameter.go | 6 - .../loganalytics/log_analytics_endpoint.go | 123 ----- .../loganalytics/log_analytics_preference.go | 2 +- .../loganalytics/log_analytics_property.go | 42 -- .../v65/loganalytics/log_analytics_source.go | 205 -------- .../log_analytics_source_label_condition.go | 5 - .../log_analytics_source_pattern.go | 3 - .../log_analytics_source_summary.go | 193 ------- .../v65/loganalytics/log_endpoint.go | 66 --- .../v65/loganalytics/log_list_endpoint.go | 66 --- .../loganalytics/log_list_type_endpoint.go | 60 --- .../v65/loganalytics/log_type_endpoint.go | 56 -- .../v65/loganalytics/loganalytics_client.go | 478 +----------------- .../v65/loganalytics/name_value_pair.go | 42 -- .../oci-go-sdk/v65/loganalytics/namespace.go | 2 +- .../v65/loganalytics/namespace_summary.go | 2 +- .../outlier_command_descriptor.go | 152 ------ .../overlapping_recall_collection.go | 39 -- .../overlapping_recall_summary.go | 63 --- .../v65/loganalytics/pattern_override.go | 45 -- .../loganalytics/property_metadata_summary.go | 51 -- .../property_metadata_summary_collection.go | 39 -- .../v65/loganalytics/query_aggregation.go | 6 - .../loganalytics/rare_command_descriptor.go | 152 ------ .../recall_archived_data_details.go | 6 - .../recall_archived_data_request_response.go | 6 - .../v65/loganalytics/recall_count.go | 51 -- .../v65/loganalytics/recall_status.go | 60 --- .../v65/loganalytics/recalled_data.go | 19 - .../v65/loganalytics/recalled_data_info.go | 42 -- .../v65/loganalytics/recalled_data_size.go | 48 -- .../v65/loganalytics/rule_summary_report.go | 45 -- .../oci-go-sdk/v65/loganalytics/storage.go | 2 +- .../loganalytics/storage_operation_type.go | 4 - .../v65/loganalytics/storage_usage.go | 2 +- .../v65/loganalytics/storage_work_request.go | 12 - .../storage_work_request_summary.go | 12 - .../v65/loganalytics/table_column.go | 220 -------- .../oci-go-sdk/v65/loganalytics/task_type.go | 22 +- .../v65/loganalytics/trend_column.go | 3 - .../loganalytics/update_storage_details.go | 2 +- .../upsert_log_analytics_association.go | 3 - .../upsert_log_analytics_source_details.go | 175 ------- .../validate_endpoint_request_response.go | 92 ---- .../loganalytics/validate_endpoint_result.go | 45 -- .../validate_label_condition_details.go | 44 -- ...lidate_label_condition_request_response.go | 92 ---- .../validate_label_condition_result.go | 53 -- .../oci-go-sdk/v65/loganalytics/value_type.go | 4 - .../change_news_report_compartment_details.go | 41 -- ...ews_report_compartment_request_response.go | 106 ---- .../v65/opsi/create_news_report_details.go | 78 --- .../create_news_report_request_response.go | 110 ---- .../v65/opsi/data_object_column_metadata.go | 2 +- .../delete_news_report_request_response.go | 96 ---- ...insight_resource_forecast_trend_summary.go | 3 - .../opsi/get_news_report_request_response.go | 94 ---- .../opsi/ingest_my_sql_sql_text_details.go | 41 -- ...ingest_my_sql_sql_text_response_details.go | 41 -- .../list_news_reports_request_response.go | 231 --------- .../oci-go-sdk/v65/opsi/my_sql_sql_text.go | 58 --- .../oci-go-sdk/v65/opsi/news_content_types.go | 41 -- .../v65/opsi/news_content_types_resource.go | 62 --- .../oci-go-sdk/v65/opsi/news_frequency.go | 54 -- .../oracle/oci-go-sdk/v65/opsi/news_locale.go | 54 -- .../oracle/oci-go-sdk/v65/opsi/news_report.go | 100 ---- .../v65/opsi/news_report_collection.go | 41 -- .../v65/opsi/news_report_summary.go | 100 ---- .../oci-go-sdk/v65/opsi/news_reports.go | 41 -- .../opsi/opsi_operationsinsights_client.go | 358 ------------- ..._data_object_result_set_column_metadata.go | 2 +- .../oci-go-sdk/v65/opsi/resource_filters.go | 2 +- ...ght_resource_forecast_trend_aggregation.go | 3 - ...ght_resource_forecast_trend_aggregation.go | 3 - ...ght_resource_forecast_trend_aggregation.go | 3 - .../v65/opsi/update_news_report_details.go | 69 --- .../update_news_report_request_response.go | 99 ---- vendor/modules.txt | 2 +- 120 files changed, 74 insertions(+), 7546 deletions(-) delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go diff --git a/CHANGELOG.md b/CHANGELOG.md index d7c80f4f776..e6042d8e019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,3 @@ -## 5.6.0 (Unreleased) - -### Added -Support for Budgets - Single Use Budgets - ## 5.6.0 (July 26, 2023) ### Added diff --git a/examples/budget/budget/main.tf b/examples/budget/budget/main.tf index 5c2981a4dac..f55c97cdb28 100644 --- a/examples/budget/budget/main.tf +++ b/examples/budget/budget/main.tf @@ -126,4 +126,4 @@ data "oci_budget_alert_rules" "test_alert_rules" { #Optional // display_name = oci_budget_alert_rule.test_alert_rule.display_name state = "ACTIVE" -} +} \ No newline at end of file diff --git a/go.mod b/go.mod index 019f5bdcd72..e7d61916f4f 100644 --- a/go.mod +++ b/go.mod @@ -76,6 +76,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.45.0 => ./vendor/github.com/oracle/oci-go-sdk +//replace github.com/oracle/oci-go-sdk => ../../oracle/oci-go-sdk go 1.18 diff --git a/go.sum b/go.sum index aaeb6a3ea56..5217f818551 100644 --- a/go.sum +++ b/go.sum @@ -289,6 +289,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.45.0 h1:EpCst/iZma9s8eYS0QJ9qsTmGxX5GPehYGN1jwGIteU= +github.com/oracle/oci-go-sdk/v65 v65.45.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index 26fb41b8ab0..d102ab19d9f 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -8,7 +8,7 @@ import ( ) const Version = "5.6.0" -const ReleaseDate = "" +const ReleaseDate = "2023-07-26" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go index c6fd02a06ce..52f40640bef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go @@ -46,9 +46,6 @@ type ClusterMetadata struct { // The OCID of the work request which updated the cluster. UpdatedByWorkRequestId *string `mandatory:"false" json:"updatedByWorkRequestId"` - - // The time until which the cluster credential is valid. - TimeCredentialExpiration *common.SDKTime `mandatory:"false" json:"timeCredentialExpiration"` } func (m ClusterMetadata) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go deleted file mode 100644 index a6ccdf73c1c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 containerengine - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// CompleteCredentialRotationRequest wrapper for the CompleteCredentialRotation operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotationRequest. -type CompleteCredentialRotationRequest struct { - - // The OCID of the cluster. - ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` - - // A token you supply to uniquely identify the request and provide idempotency if - // the request is retried. Idempotency tokens expire after 24 hours. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // 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"` - - // 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"` - - // 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 CompleteCredentialRotationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CompleteCredentialRotationRequest) 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 CompleteCredentialRotationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CompleteCredentialRotationRequest) 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 CompleteCredentialRotationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CompleteCredentialRotationResponse wrapper for the CompleteCredentialRotation operation -type CompleteCredentialRotationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID of the work request handling the operation. - 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 CompleteCredentialRotationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CompleteCredentialRotationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} 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 7b37b393b4f..21823560065 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 @@ -148,69 +148,6 @@ func (client ContainerEngineClient) clusterMigrateToNativeVcn(ctx context.Contex return response, err } -// CompleteCredentialRotation Complete cluster credential rotation. Retire old credentials from kubernetes components. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotation API. -// A default retry strategy applies to this operation CompleteCredentialRotation() -func (client ContainerEngineClient) CompleteCredentialRotation(ctx context.Context, request CompleteCredentialRotationRequest) (response CompleteCredentialRotationResponse, 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.completeCredentialRotation, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CompleteCredentialRotationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CompleteCredentialRotationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CompleteCredentialRotationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CompleteCredentialRotationResponse") - } - return -} - -// completeCredentialRotation implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) completeCredentialRotation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/completeCredentialRotation", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CompleteCredentialRotationResponse - 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/containerengine/20180222/Cluster/CompleteCredentialRotation" - err = common.PostProcessServiceError(err, "ContainerEngine", "CompleteCredentialRotation", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // CreateCluster Create a new cluster. // // See also @@ -1158,64 +1095,6 @@ func (client ContainerEngineClient) getClusterOptions(ctx context.Context, reque return response, err } -// GetCredentialRotationStatus Get cluster credential rotation status. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatus API. -// A default retry strategy applies to this operation GetCredentialRotationStatus() -func (client ContainerEngineClient) GetCredentialRotationStatus(ctx context.Context, request GetCredentialRotationStatusRequest) (response GetCredentialRotationStatusResponse, 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.getCredentialRotationStatus, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetCredentialRotationStatusResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetCredentialRotationStatusResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetCredentialRotationStatusResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetCredentialRotationStatusResponse") - } - return -} - -// getCredentialRotationStatus implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) getCredentialRotationStatus(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters/{clusterId}/credentialRotationStatus", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetCredentialRotationStatusResponse - 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/containerengine/20180222/CredentialRotationStatus/GetCredentialRotationStatus" - err = common.PostProcessServiceError(err, "ContainerEngine", "GetCredentialRotationStatus", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // GetNodePool Get the details of a node pool. // // See also @@ -2265,69 +2144,6 @@ func (client ContainerEngineClient) listWorkloadMappings(ctx context.Context, re return response, err } -// StartCredentialRotation Start cluster credential rotation by adding new credentials, old credentials will still work after this operation. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotation API. -// A default retry strategy applies to this operation StartCredentialRotation() -func (client ContainerEngineClient) StartCredentialRotation(ctx context.Context, request StartCredentialRotationRequest) (response StartCredentialRotationResponse, 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.startCredentialRotation, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = StartCredentialRotationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = StartCredentialRotationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(StartCredentialRotationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into StartCredentialRotationResponse") - } - return -} - -// startCredentialRotation implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) startCredentialRotation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/startCredentialRotation", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response StartCredentialRotationResponse - 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/containerengine/20180222/Cluster/StartCredentialRotation" - err = common.PostProcessServiceError(err, "ContainerEngine", "StartCredentialRotation", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // UpdateAddon Update addon details for a cluster. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go deleted file mode 100644 index eeb9cacc1e8..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CredentialRotationStatus Information regarding cluster's credential rotation. -type CredentialRotationStatus struct { - - // Credential rotation status of a kubernetes cluster - // IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. - // WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. - // COMPLETED: New credentials are functional on kuberentes cluster. - Status CredentialRotationStatusStatusEnum `mandatory:"true" json:"status"` - - // Details of a kuberenetes cluster credential rotation status: - // ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. - // NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. - // RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. - // COMPLETED: Credential rotation is complete. Old credentials are retired. - StatusDetails CredentialRotationStatusStatusDetailsEnum `mandatory:"true" json:"statusDetails"` - - // The time by which retirement of old credentials should start. - TimeAutoCompletionScheduled *common.SDKTime `mandatory:"false" json:"timeAutoCompletionScheduled"` -} - -func (m CredentialRotationStatus) 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 CredentialRotationStatus) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingCredentialRotationStatusStatusEnum(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(GetCredentialRotationStatusStatusEnumStringValues(), ","))) - } - if _, ok := GetMappingCredentialRotationStatusStatusDetailsEnum(string(m.StatusDetails)); !ok && m.StatusDetails != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for StatusDetails: %s. Supported values are: %s.", m.StatusDetails, strings.Join(GetCredentialRotationStatusStatusDetailsEnumStringValues(), ","))) - } - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CredentialRotationStatusStatusEnum Enum with underlying type: string -type CredentialRotationStatusStatusEnum string - -// Set of constants representing the allowable values for CredentialRotationStatusStatusEnum -const ( - CredentialRotationStatusStatusInProgress CredentialRotationStatusStatusEnum = "IN_PROGRESS" - CredentialRotationStatusStatusWaiting CredentialRotationStatusStatusEnum = "WAITING" - CredentialRotationStatusStatusCompleted CredentialRotationStatusStatusEnum = "COMPLETED" -) - -var mappingCredentialRotationStatusStatusEnum = map[string]CredentialRotationStatusStatusEnum{ - "IN_PROGRESS": CredentialRotationStatusStatusInProgress, - "WAITING": CredentialRotationStatusStatusWaiting, - "COMPLETED": CredentialRotationStatusStatusCompleted, -} - -var mappingCredentialRotationStatusStatusEnumLowerCase = map[string]CredentialRotationStatusStatusEnum{ - "in_progress": CredentialRotationStatusStatusInProgress, - "waiting": CredentialRotationStatusStatusWaiting, - "completed": CredentialRotationStatusStatusCompleted, -} - -// GetCredentialRotationStatusStatusEnumValues Enumerates the set of values for CredentialRotationStatusStatusEnum -func GetCredentialRotationStatusStatusEnumValues() []CredentialRotationStatusStatusEnum { - values := make([]CredentialRotationStatusStatusEnum, 0) - for _, v := range mappingCredentialRotationStatusStatusEnum { - values = append(values, v) - } - return values -} - -// GetCredentialRotationStatusStatusEnumStringValues Enumerates the set of values in String for CredentialRotationStatusStatusEnum -func GetCredentialRotationStatusStatusEnumStringValues() []string { - return []string{ - "IN_PROGRESS", - "WAITING", - "COMPLETED", - } -} - -// GetMappingCredentialRotationStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingCredentialRotationStatusStatusEnum(val string) (CredentialRotationStatusStatusEnum, bool) { - enum, ok := mappingCredentialRotationStatusStatusEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// CredentialRotationStatusStatusDetailsEnum Enum with underlying type: string -type CredentialRotationStatusStatusDetailsEnum string - -// Set of constants representing the allowable values for CredentialRotationStatusStatusDetailsEnum -const ( - CredentialRotationStatusStatusDetailsIssuingNewCredentials CredentialRotationStatusStatusDetailsEnum = "ISSUING_NEW_CREDENTIALS" - CredentialRotationStatusStatusDetailsNewCredentialsIssued CredentialRotationStatusStatusDetailsEnum = "NEW_CREDENTIALS_ISSUED" - CredentialRotationStatusStatusDetailsRetiringOldCredentials CredentialRotationStatusStatusDetailsEnum = "RETIRING_OLD_CREDENTIALS" - CredentialRotationStatusStatusDetailsCompleted CredentialRotationStatusStatusDetailsEnum = "COMPLETED" -) - -var mappingCredentialRotationStatusStatusDetailsEnum = map[string]CredentialRotationStatusStatusDetailsEnum{ - "ISSUING_NEW_CREDENTIALS": CredentialRotationStatusStatusDetailsIssuingNewCredentials, - "NEW_CREDENTIALS_ISSUED": CredentialRotationStatusStatusDetailsNewCredentialsIssued, - "RETIRING_OLD_CREDENTIALS": CredentialRotationStatusStatusDetailsRetiringOldCredentials, - "COMPLETED": CredentialRotationStatusStatusDetailsCompleted, -} - -var mappingCredentialRotationStatusStatusDetailsEnumLowerCase = map[string]CredentialRotationStatusStatusDetailsEnum{ - "issuing_new_credentials": CredentialRotationStatusStatusDetailsIssuingNewCredentials, - "new_credentials_issued": CredentialRotationStatusStatusDetailsNewCredentialsIssued, - "retiring_old_credentials": CredentialRotationStatusStatusDetailsRetiringOldCredentials, - "completed": CredentialRotationStatusStatusDetailsCompleted, -} - -// GetCredentialRotationStatusStatusDetailsEnumValues Enumerates the set of values for CredentialRotationStatusStatusDetailsEnum -func GetCredentialRotationStatusStatusDetailsEnumValues() []CredentialRotationStatusStatusDetailsEnum { - values := make([]CredentialRotationStatusStatusDetailsEnum, 0) - for _, v := range mappingCredentialRotationStatusStatusDetailsEnum { - values = append(values, v) - } - return values -} - -// GetCredentialRotationStatusStatusDetailsEnumStringValues Enumerates the set of values in String for CredentialRotationStatusStatusDetailsEnum -func GetCredentialRotationStatusStatusDetailsEnumStringValues() []string { - return []string{ - "ISSUING_NEW_CREDENTIALS", - "NEW_CREDENTIALS_ISSUED", - "RETIRING_OLD_CREDENTIALS", - "COMPLETED", - } -} - -// GetMappingCredentialRotationStatusStatusDetailsEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingCredentialRotationStatusStatusDetailsEnum(val string) (CredentialRotationStatusStatusDetailsEnum, bool) { - enum, ok := mappingCredentialRotationStatusStatusDetailsEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go deleted file mode 100644 index 5abcc731664..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 containerengine - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetCredentialRotationStatusRequest wrapper for the GetCredentialRotationStatus operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatusRequest. -type GetCredentialRotationStatusRequest struct { - - // The OCID of the cluster. - ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` - - // 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 - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetCredentialRotationStatusRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetCredentialRotationStatusRequest) 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 GetCredentialRotationStatusRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetCredentialRotationStatusRequest) 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 GetCredentialRotationStatusRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetCredentialRotationStatusResponse wrapper for the GetCredentialRotationStatus operation -type GetCredentialRotationStatusResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CredentialRotationStatus instance - CredentialRotationStatus `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 GetCredentialRotationStatusResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetCredentialRotationStatusResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go deleted file mode 100644 index dbb4f2b549c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// StartCredentialRotationDetails Properties that define a request to start credential rotation on a kubernetes cluster. -type StartCredentialRotationDetails struct { - - // The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days. - AutoCompletionDelayDuration *string `mandatory:"true" json:"autoCompletionDelayDuration"` -} - -func (m StartCredentialRotationDetails) 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 StartCredentialRotationDetails) 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/containerengine/start_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go deleted file mode 100644 index 11e1ff95d21..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 containerengine - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// StartCredentialRotationRequest wrapper for the StartCredentialRotation operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotationRequest. -type StartCredentialRotationRequest struct { - - // The OCID of the cluster. - ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` - - // The details for a kubernetes cluster to start credential rotation. - StartCredentialRotationDetails `contributesTo:"body"` - - // A token you supply to uniquely identify the request and provide idempotency if - // the request is retried. Idempotency tokens expire after 24 hours. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // 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"` - - // 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"` - - // 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 StartCredentialRotationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request StartCredentialRotationRequest) 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 StartCredentialRotationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request StartCredentialRotationRequest) 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 StartCredentialRotationRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// StartCredentialRotationResponse wrapper for the StartCredentialRotation operation -type StartCredentialRotationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID of the work request handling the operation. - 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 StartCredentialRotationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response StartCredentialRotationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go index fdb06f8263f..3d0e4c7935c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go @@ -36,12 +36,6 @@ type ListScheduledActivitiesRequest struct { // A filter that returns all resources that match the specified status LifecycleState ScheduledActivityLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - // A filter that returns all resources that match the specified scheduledActivityAssociationId. - ScheduledActivityAssociationId *string `mandatory:"false" contributesTo:"query" name:"scheduledActivityAssociationId"` - - // A filter that returns all resources that match the specified scheduledActivityPhase. - ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"false" contributesTo:"query" name:"scheduledActivityPhase" omitEmpty:"true"` - // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -99,9 +93,6 @@ func (request ListScheduledActivitiesRequest) ValidateEnumValue() (bool, error) if _, ok := GetMappingScheduledActivityLifecycleStateEnum(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(GetScheduledActivityLifecycleStateEnumStringValues(), ","))) } - if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(request.ScheduledActivityPhase)); !ok && request.ScheduledActivityPhase != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", request.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) - } if _, ok := GetMappingListScheduledActivitiesSortOrderEnum(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(GetListScheduledActivitiesSortOrderEnumStringValues(), ","))) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go index 3c858ee9863..c494935fe94 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go @@ -43,12 +43,6 @@ type ScheduledActivity struct { // Current time the scheduled activity is scheduled to end. An RFC3339 formatted datetime string. TimeExpectedFinish *common.SDKTime `mandatory:"true" json:"timeExpectedFinish"` - // A property describing the phase of the scheduled activity. - ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"true" json:"scheduledActivityPhase"` - - // The unique identifier that associates a scheduled activity with others in one complete maintenance. For example, with ZDT, a complete upgrade maintenance includes 5 scheduled activities - PREPARE, EXECUTE, POST, PRE_MAINTENANCE, and POST_MAINTENANCE. All of them share the same unique identifier - scheduledActivityAssociationId. - ScheduledActivityAssociationId *string `mandatory:"true" json:"scheduledActivityAssociationId"` - // List of actions Actions []Action `mandatory:"false" json:"actions"` @@ -86,9 +80,6 @@ func (m ScheduledActivity) ValidateEnumValue() (bool, error) { if _, ok := GetMappingScheduledActivityServiceAvailabilityEnum(string(m.ServiceAvailability)); !ok && m.ServiceAvailability != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceAvailability: %s. Supported values are: %s.", m.ServiceAvailability, strings.Join(GetScheduledActivityServiceAvailabilityEnumStringValues(), ","))) } - if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(m.ScheduledActivityPhase)); !ok && m.ScheduledActivityPhase != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", m.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) - } if _, ok := GetMappingScheduledActivityLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetScheduledActivityLifecycleDetailsEnumStringValues(), ","))) @@ -102,22 +93,20 @@ func (m ScheduledActivity) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *ScheduledActivity) UnmarshalJSON(data []byte) (e error) { model := struct { - Actions []action `json:"actions"` - TimeFinished *common.SDKTime `json:"timeFinished"` - DelayInHours *int `json:"delayInHours"` - TimeCreated *common.SDKTime `json:"timeCreated"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails ScheduledActivityLifecycleDetailsEnum `json:"lifecycleDetails"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` - FusionEnvironmentId *string `json:"fusionEnvironmentId"` - LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` - ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` - TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` - TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` - ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `json:"scheduledActivityPhase"` - ScheduledActivityAssociationId *string `json:"scheduledActivityAssociationId"` + Actions []action `json:"actions"` + TimeFinished *common.SDKTime `json:"timeFinished"` + DelayInHours *int `json:"delayInHours"` + TimeCreated *common.SDKTime `json:"timeCreated"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + LifecycleDetails ScheduledActivityLifecycleDetailsEnum `json:"lifecycleDetails"` + Id *string `json:"id"` + DisplayName *string `json:"displayName"` + RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` + FusionEnvironmentId *string `json:"fusionEnvironmentId"` + LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` + ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` + TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` + TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` }{} e = json.Unmarshal(data, &model) @@ -164,10 +153,6 @@ func (m *ScheduledActivity) UnmarshalJSON(data []byte) (e error) { m.TimeExpectedFinish = model.TimeExpectedFinish - m.ScheduledActivityPhase = model.ScheduledActivityPhase - - m.ScheduledActivityAssociationId = model.ScheduledActivityAssociationId - return } @@ -370,49 +355,3 @@ func GetMappingScheduledActivityLifecycleDetailsEnum(val string) (ScheduledActiv enum, ok := mappingScheduledActivityLifecycleDetailsEnumLowerCase[strings.ToLower(val)] return enum, ok } - -// ScheduledActivityScheduledActivityPhaseEnum Enum with underlying type: string -type ScheduledActivityScheduledActivityPhaseEnum string - -// Set of constants representing the allowable values for ScheduledActivityScheduledActivityPhaseEnum -const ( - ScheduledActivityScheduledActivityPhasePreMaintenance ScheduledActivityScheduledActivityPhaseEnum = "PRE_MAINTENANCE" - ScheduledActivityScheduledActivityPhaseMaintenance ScheduledActivityScheduledActivityPhaseEnum = "MAINTENANCE" - ScheduledActivityScheduledActivityPhasePostMaintenance ScheduledActivityScheduledActivityPhaseEnum = "POST_MAINTENANCE" -) - -var mappingScheduledActivityScheduledActivityPhaseEnum = map[string]ScheduledActivityScheduledActivityPhaseEnum{ - "PRE_MAINTENANCE": ScheduledActivityScheduledActivityPhasePreMaintenance, - "MAINTENANCE": ScheduledActivityScheduledActivityPhaseMaintenance, - "POST_MAINTENANCE": ScheduledActivityScheduledActivityPhasePostMaintenance, -} - -var mappingScheduledActivityScheduledActivityPhaseEnumLowerCase = map[string]ScheduledActivityScheduledActivityPhaseEnum{ - "pre_maintenance": ScheduledActivityScheduledActivityPhasePreMaintenance, - "maintenance": ScheduledActivityScheduledActivityPhaseMaintenance, - "post_maintenance": ScheduledActivityScheduledActivityPhasePostMaintenance, -} - -// GetScheduledActivityScheduledActivityPhaseEnumValues Enumerates the set of values for ScheduledActivityScheduledActivityPhaseEnum -func GetScheduledActivityScheduledActivityPhaseEnumValues() []ScheduledActivityScheduledActivityPhaseEnum { - values := make([]ScheduledActivityScheduledActivityPhaseEnum, 0) - for _, v := range mappingScheduledActivityScheduledActivityPhaseEnum { - values = append(values, v) - } - return values -} - -// GetScheduledActivityScheduledActivityPhaseEnumStringValues Enumerates the set of values in String for ScheduledActivityScheduledActivityPhaseEnum -func GetScheduledActivityScheduledActivityPhaseEnumStringValues() []string { - return []string{ - "PRE_MAINTENANCE", - "MAINTENANCE", - "POST_MAINTENANCE", - } -} - -// GetMappingScheduledActivityScheduledActivityPhaseEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingScheduledActivityScheduledActivityPhaseEnum(val string) (ScheduledActivityScheduledActivityPhaseEnum, bool) { - enum, ok := mappingScheduledActivityScheduledActivityPhaseEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go index 900d98f9aef..8663e6870df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go @@ -43,12 +43,6 @@ type ScheduledActivitySummary struct { // Service availability / impact during scheduled activity execution, up down ServiceAvailability ScheduledActivityServiceAvailabilityEnum `mandatory:"true" json:"serviceAvailability"` - // A property describing the phase of the scheduled activity. - ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"true" json:"scheduledActivityPhase"` - - // The unique identifier that associates a scheduled activity with others in one complete maintenance. For example, with ZDT, a complete upgrade maintenance includes 5 scheduled activities - PREPARE, EXECUTE, POST, PRE_MAINTENANCE, and POST_MAINTENANCE. All of them share the same unique identifier - scheduledActivityAssociationId. - ScheduledActivityAssociationId *string `mandatory:"true" json:"scheduledActivityAssociationId"` - // List of actions Actions []Action `mandatory:"false" json:"actions"` @@ -94,9 +88,6 @@ func (m ScheduledActivitySummary) ValidateEnumValue() (bool, error) { if _, ok := GetMappingScheduledActivityServiceAvailabilityEnum(string(m.ServiceAvailability)); !ok && m.ServiceAvailability != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceAvailability: %s. Supported values are: %s.", m.ServiceAvailability, strings.Join(GetScheduledActivityServiceAvailabilityEnumStringValues(), ","))) } - if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(m.ScheduledActivityPhase)); !ok && m.ScheduledActivityPhase != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", m.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) - } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) @@ -107,24 +98,22 @@ func (m ScheduledActivitySummary) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *ScheduledActivitySummary) UnmarshalJSON(data []byte) (e error) { model := struct { - Actions []action `json:"actions"` - TimeFinished *common.SDKTime `json:"timeFinished"` - DelayInHours *int `json:"delayInHours"` - TimeAccepted *common.SDKTime `json:"timeAccepted"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` - FusionEnvironmentId *string `json:"fusionEnvironmentId"` - LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` - TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` - TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` - ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` - ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `json:"scheduledActivityPhase"` - ScheduledActivityAssociationId *string `json:"scheduledActivityAssociationId"` + Actions []action `json:"actions"` + TimeFinished *common.SDKTime `json:"timeFinished"` + DelayInHours *int `json:"delayInHours"` + TimeAccepted *common.SDKTime `json:"timeAccepted"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + LifecycleDetails *string `json:"lifecycleDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + Id *string `json:"id"` + DisplayName *string `json:"displayName"` + RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` + FusionEnvironmentId *string `json:"fusionEnvironmentId"` + LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` + TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` + TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` + ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` }{} e = json.Unmarshal(data, &model) @@ -175,9 +164,5 @@ func (m *ScheduledActivitySummary) UnmarshalJSON(data []byte) (e error) { m.ServiceAvailability = model.ServiceAvailability - m.ScheduledActivityPhase = model.ScheduledActivityPhase - - m.ScheduledActivityAssociationId = model.ScheduledActivityAssociationId - return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go index abb1e87fdfe..b1905a3df92 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go @@ -137,10 +137,6 @@ func (m *abstractcolumn) UnmarshalPolymorphicJSON(data []byte) (interface{}, err mm := TimeStatsDataColumn{} err = json.Unmarshal(data, &mm) return mm, err - case "TABLE_COLUMN": - mm := TableColumn{} - err = json.Unmarshal(data, &mm) - return mm, err case "CHART_COLUMN": mm := ChartColumn{} err = json.Unmarshal(data, &mm) @@ -244,7 +240,6 @@ const ( AbstractColumnTypeTimeStatsDataColumn AbstractColumnTypeEnum = "TIME_STATS_DATA_COLUMN" AbstractColumnTypeTimeClusterColumn AbstractColumnTypeEnum = "TIME_CLUSTER_COLUMN" AbstractColumnTypeTimeClusterDataColumn AbstractColumnTypeEnum = "TIME_CLUSTER_DATA_COLUMN" - AbstractColumnTypeTableColumn AbstractColumnTypeEnum = "TABLE_COLUMN" AbstractColumnTypeTimeColumn AbstractColumnTypeEnum = "TIME_COLUMN" AbstractColumnTypeTrendColumn AbstractColumnTypeEnum = "TREND_COLUMN" AbstractColumnTypeClassifyColumn AbstractColumnTypeEnum = "CLASSIFY_COLUMN" @@ -258,7 +253,6 @@ var mappingAbstractColumnTypeEnum = map[string]AbstractColumnTypeEnum{ "TIME_STATS_DATA_COLUMN": AbstractColumnTypeTimeStatsDataColumn, "TIME_CLUSTER_COLUMN": AbstractColumnTypeTimeClusterColumn, "TIME_CLUSTER_DATA_COLUMN": AbstractColumnTypeTimeClusterDataColumn, - "TABLE_COLUMN": AbstractColumnTypeTableColumn, "TIME_COLUMN": AbstractColumnTypeTimeColumn, "TREND_COLUMN": AbstractColumnTypeTrendColumn, "CLASSIFY_COLUMN": AbstractColumnTypeClassifyColumn, @@ -272,7 +266,6 @@ var mappingAbstractColumnTypeEnumLowerCase = map[string]AbstractColumnTypeEnum{ "time_stats_data_column": AbstractColumnTypeTimeStatsDataColumn, "time_cluster_column": AbstractColumnTypeTimeClusterColumn, "time_cluster_data_column": AbstractColumnTypeTimeClusterDataColumn, - "table_column": AbstractColumnTypeTableColumn, "time_column": AbstractColumnTypeTimeColumn, "trend_column": AbstractColumnTypeTrendColumn, "classify_column": AbstractColumnTypeClassifyColumn, @@ -297,7 +290,6 @@ func GetAbstractColumnTypeEnumStringValues() []string { "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", - "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go index 342a2556aa5..39950c1a2d7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go @@ -96,10 +96,6 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := TailCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err - case "OUTLIER": - mm := OutlierCommandDescriptor{} - err = json.Unmarshal(data, &mm) - return mm, err case "DEMO_MODE": mm := DemoModeCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -144,10 +140,6 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := BucketCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err - case "RARE": - mm := RareCommandDescriptor{} - err = json.Unmarshal(data, &mm) - return mm, err case "ADD_INSIGHTS": mm := AddInsightsCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -224,10 +216,6 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := ClusterSplitCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err - case "FREQUENT": - mm := FrequentCommandDescriptor{} - err = json.Unmarshal(data, &mm) - return mm, err case "CLUSTER_DETAILS": mm := ClusterDetailsCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -399,9 +387,6 @@ const ( AbstractCommandDescriptorNameAnomaly AbstractCommandDescriptorNameEnum = "ANOMALY" AbstractCommandDescriptorNameDedup AbstractCommandDescriptorNameEnum = "DEDUP" AbstractCommandDescriptorNameTimeCluster AbstractCommandDescriptorNameEnum = "TIME_CLUSTER" - AbstractCommandDescriptorNameFrequent AbstractCommandDescriptorNameEnum = "FREQUENT" - AbstractCommandDescriptorNameRare AbstractCommandDescriptorNameEnum = "RARE" - AbstractCommandDescriptorNameOutlier AbstractCommandDescriptorNameEnum = "OUTLIER" ) var mappingAbstractCommandDescriptorNameEnum = map[string]AbstractCommandDescriptorNameEnum{ @@ -455,9 +440,6 @@ var mappingAbstractCommandDescriptorNameEnum = map[string]AbstractCommandDescrip "ANOMALY": AbstractCommandDescriptorNameAnomaly, "DEDUP": AbstractCommandDescriptorNameDedup, "TIME_CLUSTER": AbstractCommandDescriptorNameTimeCluster, - "FREQUENT": AbstractCommandDescriptorNameFrequent, - "RARE": AbstractCommandDescriptorNameRare, - "OUTLIER": AbstractCommandDescriptorNameOutlier, } var mappingAbstractCommandDescriptorNameEnumLowerCase = map[string]AbstractCommandDescriptorNameEnum{ @@ -511,9 +493,6 @@ var mappingAbstractCommandDescriptorNameEnumLowerCase = map[string]AbstractComma "anomaly": AbstractCommandDescriptorNameAnomaly, "dedup": AbstractCommandDescriptorNameDedup, "time_cluster": AbstractCommandDescriptorNameTimeCluster, - "frequent": AbstractCommandDescriptorNameFrequent, - "rare": AbstractCommandDescriptorNameRare, - "outlier": AbstractCommandDescriptorNameOutlier, } // GetAbstractCommandDescriptorNameEnumValues Enumerates the set of values for AbstractCommandDescriptorNameEnum @@ -578,9 +557,6 @@ func GetAbstractCommandDescriptorNameEnumStringValues() []string { "ANOMALY", "DEDUP", "TIME_CLUSTER", - "FREQUENT", - "RARE", - "OUTLIER", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go deleted file mode 100644 index 264c3ff0e44..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// AssociationProperty A property represented as a name-value pair. -type AssociationProperty struct { - - // The name of the association property. - Name *string `mandatory:"true" json:"name"` - - // The value of the association property. - Value *string `mandatory:"false" json:"value"` - - // A list of pattern level overrides for this property. - Patterns []PatternOverride `mandatory:"false" json:"patterns"` -} - -func (m AssociationProperty) 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 AssociationProperty) 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/loganalytics/condition_block.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go deleted file mode 100644 index 41df142d3ae..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ConditionBlock A condition block. This could represent a single condition, or have nested condition blocks under it. -// To form a single condition, specify the fieldName, labelConditionOperator and labelConditionValue(s). -// To form nested conditions, specify the conditions in conditionBlocks, and how to join them in conditionBlocksOperator. -type ConditionBlock struct { - - // Operator using which the conditionBlocks should be joined. Specify this for nested conditions. - ConditionBlocksOperator ConditionBlockConditionBlocksOperatorEnum `mandatory:"false" json:"conditionBlocksOperator,omitempty"` - - // The name of the field the condition is based on. Specify this if this condition block represents a single condition. - FieldName *string `mandatory:"false" json:"fieldName"` - - // The condition operator. Specify this if this condition block represents a single condition. - LabelConditionOperator *string `mandatory:"false" json:"labelConditionOperator"` - - // The condition value. Specify this if this condition block represents a single condition. - LabelConditionValue *string `mandatory:"false" json:"labelConditionValue"` - - // A list of condition values. Specify this if this condition block represents a single condition. - LabelConditionValues []string `mandatory:"false" json:"labelConditionValues"` - - // Condition blocks to evaluate within this condition block. Specify this for nested conditions. - ConditionBlocks []ConditionBlock `mandatory:"false" json:"conditionBlocks"` -} - -func (m ConditionBlock) 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 ConditionBlock) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingConditionBlockConditionBlocksOperatorEnum(string(m.ConditionBlocksOperator)); !ok && m.ConditionBlocksOperator != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConditionBlocksOperator: %s. Supported values are: %s.", m.ConditionBlocksOperator, strings.Join(GetConditionBlockConditionBlocksOperatorEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ConditionBlockConditionBlocksOperatorEnum Enum with underlying type: string -type ConditionBlockConditionBlocksOperatorEnum string - -// Set of constants representing the allowable values for ConditionBlockConditionBlocksOperatorEnum -const ( - ConditionBlockConditionBlocksOperatorAnd ConditionBlockConditionBlocksOperatorEnum = "AND" - ConditionBlockConditionBlocksOperatorOr ConditionBlockConditionBlocksOperatorEnum = "OR" - ConditionBlockConditionBlocksOperatorNotAnd ConditionBlockConditionBlocksOperatorEnum = "NOT_AND" - ConditionBlockConditionBlocksOperatorNotOr ConditionBlockConditionBlocksOperatorEnum = "NOT_OR" -) - -var mappingConditionBlockConditionBlocksOperatorEnum = map[string]ConditionBlockConditionBlocksOperatorEnum{ - "AND": ConditionBlockConditionBlocksOperatorAnd, - "OR": ConditionBlockConditionBlocksOperatorOr, - "NOT_AND": ConditionBlockConditionBlocksOperatorNotAnd, - "NOT_OR": ConditionBlockConditionBlocksOperatorNotOr, -} - -var mappingConditionBlockConditionBlocksOperatorEnumLowerCase = map[string]ConditionBlockConditionBlocksOperatorEnum{ - "and": ConditionBlockConditionBlocksOperatorAnd, - "or": ConditionBlockConditionBlocksOperatorOr, - "not_and": ConditionBlockConditionBlocksOperatorNotAnd, - "not_or": ConditionBlockConditionBlocksOperatorNotOr, -} - -// GetConditionBlockConditionBlocksOperatorEnumValues Enumerates the set of values for ConditionBlockConditionBlocksOperatorEnum -func GetConditionBlockConditionBlocksOperatorEnumValues() []ConditionBlockConditionBlocksOperatorEnum { - values := make([]ConditionBlockConditionBlocksOperatorEnum, 0) - for _, v := range mappingConditionBlockConditionBlocksOperatorEnum { - values = append(values, v) - } - return values -} - -// GetConditionBlockConditionBlocksOperatorEnumStringValues Enumerates the set of values in String for ConditionBlockConditionBlocksOperatorEnum -func GetConditionBlockConditionBlocksOperatorEnumStringValues() []string { - return []string{ - "AND", - "OR", - "NOT_AND", - "NOT_OR", - } -} - -// GetMappingConditionBlockConditionBlocksOperatorEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingConditionBlockConditionBlocksOperatorEnum(val string) (ConditionBlockConditionBlocksOperatorEnum, bool) { - enum, ok := mappingConditionBlockConditionBlocksOperatorEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go index 971c67fb506..2e9512345b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go @@ -19,7 +19,6 @@ type CreationSourceTypeEnum string // Set of constants representing the allowable values for CreationSourceTypeEnum const ( CreationSourceTypeEmBridge CreationSourceTypeEnum = "EM_BRIDGE" - CreationSourceTypeBulkDiscovery CreationSourceTypeEnum = "BULK_DISCOVERY" CreationSourceTypeServiceConnectorHub CreationSourceTypeEnum = "SERVICE_CONNECTOR_HUB" CreationSourceTypeDiscovery CreationSourceTypeEnum = "DISCOVERY" CreationSourceTypeNone CreationSourceTypeEnum = "NONE" @@ -27,7 +26,6 @@ const ( var mappingCreationSourceTypeEnum = map[string]CreationSourceTypeEnum{ "EM_BRIDGE": CreationSourceTypeEmBridge, - "BULK_DISCOVERY": CreationSourceTypeBulkDiscovery, "SERVICE_CONNECTOR_HUB": CreationSourceTypeServiceConnectorHub, "DISCOVERY": CreationSourceTypeDiscovery, "NONE": CreationSourceTypeNone, @@ -35,7 +33,6 @@ var mappingCreationSourceTypeEnum = map[string]CreationSourceTypeEnum{ var mappingCreationSourceTypeEnumLowerCase = map[string]CreationSourceTypeEnum{ "em_bridge": CreationSourceTypeEmBridge, - "bulk_discovery": CreationSourceTypeBulkDiscovery, "service_connector_hub": CreationSourceTypeServiceConnectorHub, "discovery": CreationSourceTypeDiscovery, "none": CreationSourceTypeNone, @@ -54,7 +51,6 @@ func GetCreationSourceTypeEnumValues() []CreationSourceTypeEnum { func GetCreationSourceTypeEnumStringValues() []string { return []string{ "EM_BRIDGE", - "BULK_DISCOVERY", "SERVICE_CONNECTOR_HUB", "DISCOVERY", "NONE", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go deleted file mode 100644 index 32a9eb16d9c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// CredentialEndpoint The endpoint from where to fetch a credential, for example, the OAuth 2.0 token. -type CredentialEndpoint struct { - - // The credential endpoint name. - Name *string `mandatory:"true" json:"name"` - - Request *EndpointRequest `mandatory:"true" json:"request"` - - // The credential endpoint description. - Description *string `mandatory:"false" json:"description"` - - // The credential endpoint model. - Model *string `mandatory:"false" json:"model"` - - // The endpoint unique identifier. - EndpointId *int64 `mandatory:"false" json:"endpointId"` - - Response *EndpointResponse `mandatory:"false" json:"response"` - - Proxy *EndpointProxy `mandatory:"false" json:"proxy"` -} - -func (m CredentialEndpoint) 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 CredentialEndpoint) 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/loganalytics/delete_log_analytics_em_bridge_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go index fd6fecdf744..d6e99cb18b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go @@ -34,9 +34,6 @@ type DeleteLogAnalyticsEmBridgeRequest struct { // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // If true, delete entities created by this bridge - IsDeleteEntities *bool `mandatory:"false" contributesTo:"query" name:"isDeleteEntities"` - // 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/loganalytics/effective_property_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go deleted file mode 100644 index a6a6c0a8570..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EffectivePropertyCollection A collection of effective properties. -type EffectivePropertyCollection struct { - - // A list of properties and their effective values. - Items []EffectivePropertySummary `mandatory:"false" json:"items"` -} - -func (m EffectivePropertyCollection) 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 EffectivePropertyCollection) 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/loganalytics/effective_property_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go deleted file mode 100644 index 7cf73ed0101..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EffectivePropertySummary A property and its effective value details. -type EffectivePropertySummary struct { - - // The property name. - Name *string `mandatory:"true" json:"name"` - - // The effective value of the property. This is determined by considering the value set at the most effective level. - Value *string `mandatory:"false" json:"value"` - - // The level from which the effective value was determined. - EffectiveLevel *string `mandatory:"false" json:"effectiveLevel"` - - // A list of pattern level override values for the property. - Patterns []PatternOverride `mandatory:"false" json:"patterns"` -} - -func (m EffectivePropertySummary) 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 EffectivePropertySummary) 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/loganalytics/endpoint_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go deleted file mode 100644 index 4ae5523abc6..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EndpointCredentials An object containing credential details to authenticate/authorize a REST request. -type EndpointCredentials struct { - - // The credential type. NONE indicates credentials are not needed to access the endpoint. - // BASIC_AUTH represents a username and password based model. TOKEN could be static or dynamic. - // In case of dynamic tokens, also specify the endpoint from which the token must be fetched. - CredentialType EndpointCredentialsCredentialTypeEnum `mandatory:"false" json:"credentialType,omitempty"` - - // The named credential name on the management agent. - CredentialName *string `mandatory:"false" json:"credentialName"` - - CredentialEndpoint *CredentialEndpoint `mandatory:"false" json:"credentialEndpoint"` -} - -func (m EndpointCredentials) 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 EndpointCredentials) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingEndpointCredentialsCredentialTypeEnum(string(m.CredentialType)); !ok && m.CredentialType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CredentialType: %s. Supported values are: %s.", m.CredentialType, strings.Join(GetEndpointCredentialsCredentialTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// EndpointCredentialsCredentialTypeEnum Enum with underlying type: string -type EndpointCredentialsCredentialTypeEnum string - -// Set of constants representing the allowable values for EndpointCredentialsCredentialTypeEnum -const ( - EndpointCredentialsCredentialTypeNone EndpointCredentialsCredentialTypeEnum = "NONE" - EndpointCredentialsCredentialTypeBasicAuth EndpointCredentialsCredentialTypeEnum = "BASIC_AUTH" - EndpointCredentialsCredentialTypeStaticToken EndpointCredentialsCredentialTypeEnum = "STATIC_TOKEN" - EndpointCredentialsCredentialTypeDynamicToken EndpointCredentialsCredentialTypeEnum = "DYNAMIC_TOKEN" -) - -var mappingEndpointCredentialsCredentialTypeEnum = map[string]EndpointCredentialsCredentialTypeEnum{ - "NONE": EndpointCredentialsCredentialTypeNone, - "BASIC_AUTH": EndpointCredentialsCredentialTypeBasicAuth, - "STATIC_TOKEN": EndpointCredentialsCredentialTypeStaticToken, - "DYNAMIC_TOKEN": EndpointCredentialsCredentialTypeDynamicToken, -} - -var mappingEndpointCredentialsCredentialTypeEnumLowerCase = map[string]EndpointCredentialsCredentialTypeEnum{ - "none": EndpointCredentialsCredentialTypeNone, - "basic_auth": EndpointCredentialsCredentialTypeBasicAuth, - "static_token": EndpointCredentialsCredentialTypeStaticToken, - "dynamic_token": EndpointCredentialsCredentialTypeDynamicToken, -} - -// GetEndpointCredentialsCredentialTypeEnumValues Enumerates the set of values for EndpointCredentialsCredentialTypeEnum -func GetEndpointCredentialsCredentialTypeEnumValues() []EndpointCredentialsCredentialTypeEnum { - values := make([]EndpointCredentialsCredentialTypeEnum, 0) - for _, v := range mappingEndpointCredentialsCredentialTypeEnum { - values = append(values, v) - } - return values -} - -// GetEndpointCredentialsCredentialTypeEnumStringValues Enumerates the set of values in String for EndpointCredentialsCredentialTypeEnum -func GetEndpointCredentialsCredentialTypeEnumStringValues() []string { - return []string{ - "NONE", - "BASIC_AUTH", - "STATIC_TOKEN", - "DYNAMIC_TOKEN", - } -} - -// GetMappingEndpointCredentialsCredentialTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingEndpointCredentialsCredentialTypeEnum(val string) (EndpointCredentialsCredentialTypeEnum, bool) { - enum, ok := mappingEndpointCredentialsCredentialTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go deleted file mode 100644 index 21054dc841a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EndpointProxy An object containing the endpoint proxy details. -type EndpointProxy struct { - - // The proxy URL. - Url *string `mandatory:"true" json:"url"` - - // The named credential name on the management agent, containing the proxy credentials. - CredentialName *string `mandatory:"false" json:"credentialName"` - - // The credential type. NONE indicates credentials are not needed to access the proxy. - // BASIC_AUTH represents a username and password based model. TOKEN represents a token based model. - CredentialType EndpointProxyCredentialTypeEnum `mandatory:"false" json:"credentialType,omitempty"` -} - -func (m EndpointProxy) 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 EndpointProxy) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingEndpointProxyCredentialTypeEnum(string(m.CredentialType)); !ok && m.CredentialType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CredentialType: %s. Supported values are: %s.", m.CredentialType, strings.Join(GetEndpointProxyCredentialTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// EndpointProxyCredentialTypeEnum Enum with underlying type: string -type EndpointProxyCredentialTypeEnum string - -// Set of constants representing the allowable values for EndpointProxyCredentialTypeEnum -const ( - EndpointProxyCredentialTypeNone EndpointProxyCredentialTypeEnum = "NONE" - EndpointProxyCredentialTypeBasicAuth EndpointProxyCredentialTypeEnum = "BASIC_AUTH" - EndpointProxyCredentialTypeToken EndpointProxyCredentialTypeEnum = "TOKEN" -) - -var mappingEndpointProxyCredentialTypeEnum = map[string]EndpointProxyCredentialTypeEnum{ - "NONE": EndpointProxyCredentialTypeNone, - "BASIC_AUTH": EndpointProxyCredentialTypeBasicAuth, - "TOKEN": EndpointProxyCredentialTypeToken, -} - -var mappingEndpointProxyCredentialTypeEnumLowerCase = map[string]EndpointProxyCredentialTypeEnum{ - "none": EndpointProxyCredentialTypeNone, - "basic_auth": EndpointProxyCredentialTypeBasicAuth, - "token": EndpointProxyCredentialTypeToken, -} - -// GetEndpointProxyCredentialTypeEnumValues Enumerates the set of values for EndpointProxyCredentialTypeEnum -func GetEndpointProxyCredentialTypeEnumValues() []EndpointProxyCredentialTypeEnum { - values := make([]EndpointProxyCredentialTypeEnum, 0) - for _, v := range mappingEndpointProxyCredentialTypeEnum { - values = append(values, v) - } - return values -} - -// GetEndpointProxyCredentialTypeEnumStringValues Enumerates the set of values in String for EndpointProxyCredentialTypeEnum -func GetEndpointProxyCredentialTypeEnumStringValues() []string { - return []string{ - "NONE", - "BASIC_AUTH", - "TOKEN", - } -} - -// GetMappingEndpointProxyCredentialTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingEndpointProxyCredentialTypeEnum(val string) (EndpointProxyCredentialTypeEnum, bool) { - enum, ok := mappingEndpointProxyCredentialTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go deleted file mode 100644 index 74c0b7e89e0..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EndpointRequest An object containing details to make a REST request. -type EndpointRequest struct { - - // The request URL. - Url *string `mandatory:"true" json:"url"` - - // The endpoint method - GET or POST. - Method EndpointRequestMethodEnum `mandatory:"false" json:"method,omitempty"` - - // The request content type. - ContentType *string `mandatory:"false" json:"contentType"` - - // The request payload, applicable for POST requests. - Payload *string `mandatory:"false" json:"payload"` - - // The request headers represented as a list of name-value pairs. - Headers []NameValuePair `mandatory:"false" json:"headers"` - - // The request form parameters represented as a list of name-value pairs. - FormParameters []NameValuePair `mandatory:"false" json:"formParameters"` -} - -func (m EndpointRequest) 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 EndpointRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingEndpointRequestMethodEnum(string(m.Method)); !ok && m.Method != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Method: %s. Supported values are: %s.", m.Method, strings.Join(GetEndpointRequestMethodEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// EndpointRequestMethodEnum Enum with underlying type: string -type EndpointRequestMethodEnum string - -// Set of constants representing the allowable values for EndpointRequestMethodEnum -const ( - EndpointRequestMethodGet EndpointRequestMethodEnum = "GET" - EndpointRequestMethodPost EndpointRequestMethodEnum = "POST" -) - -var mappingEndpointRequestMethodEnum = map[string]EndpointRequestMethodEnum{ - "GET": EndpointRequestMethodGet, - "POST": EndpointRequestMethodPost, -} - -var mappingEndpointRequestMethodEnumLowerCase = map[string]EndpointRequestMethodEnum{ - "get": EndpointRequestMethodGet, - "post": EndpointRequestMethodPost, -} - -// GetEndpointRequestMethodEnumValues Enumerates the set of values for EndpointRequestMethodEnum -func GetEndpointRequestMethodEnumValues() []EndpointRequestMethodEnum { - values := make([]EndpointRequestMethodEnum, 0) - for _, v := range mappingEndpointRequestMethodEnum { - values = append(values, v) - } - return values -} - -// GetEndpointRequestMethodEnumStringValues Enumerates the set of values in String for EndpointRequestMethodEnum -func GetEndpointRequestMethodEnumStringValues() []string { - return []string{ - "GET", - "POST", - } -} - -// GetMappingEndpointRequestMethodEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingEndpointRequestMethodEnum(val string) (EndpointRequestMethodEnum, bool) { - enum, ok := mappingEndpointRequestMethodEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go deleted file mode 100644 index 94985a50bfe..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EndpointResponse An object containing details of a REST response. -type EndpointResponse struct { - - // The response content type. - ContentType *string `mandatory:"false" json:"contentType"` - - // A sample response. - Example *string `mandatory:"false" json:"example"` -} - -func (m EndpointResponse) 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 EndpointResponse) 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/loganalytics/endpoint_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go deleted file mode 100644 index f55258d29a3..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// EndpointResult The validation status of a specified endpoint. -type EndpointResult struct { - - // The endpoint name. - EndpointName *string `mandatory:"false" json:"endpointName"` - - // The endpoint URL. - Url *string `mandatory:"false" json:"url"` - - // The endpoint validation status. - Status *string `mandatory:"false" json:"status"` - - // The list of violations (if any). - Violations []Violation `mandatory:"false" json:"violations"` - - // The resolved log endpoints based on the specified list endpoint response. - LogEndpoints []string `mandatory:"false" json:"logEndpoints"` -} - -func (m EndpointResult) 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 EndpointResult) 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/loganalytics/estimate_recall_data_size_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go index bb6d14667ac..d215871962e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go @@ -23,12 +23,6 @@ type EstimateRecallDataSizeDetails struct { // This is the end of the time range for the data to be recalled TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` - - // This is the list of logsets to be accounted for in the recalled data - LogSets *string `mandatory:"false" json:"logSets"` - - // This indicates if only new data has to be recalled in the timeframe - IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m EstimateRecallDataSizeDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go index 869a859295f..30097ac3635 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go @@ -31,15 +31,6 @@ type EstimateRecallDataSizeResult struct { // This indicates if the time range of data to be recalled overlaps with existing recalled data IsOverlappingWithExistingRecalls *bool `mandatory:"false" json:"isOverlappingWithExistingRecalls"` - - // This is the number of core groups estimated for this recall - CoreGroupCount *int `mandatory:"false" json:"coreGroupCount"` - - // This is the max number of core groups that is available for any recall - CoreGroupCountLimit *int `mandatory:"false" json:"coreGroupCountLimit"` - - // This is the size limit in bytes - SizeLimitInBytes *int64 `mandatory:"false" json:"sizeLimitInBytes"` } func (m EstimateRecallDataSizeResult) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go deleted file mode 100644 index deb5b052b2e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// FrequentCommandDescriptor Command descriptor for querylanguage FREQUENT command. -type FrequentCommandDescriptor struct { - - // Command fragment display string from user specified query string formatted by query builder. - DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` - - // Command fragment internal string from user specified query string formatted by query builder. - InternalQueryString *string `mandatory:"true" json:"internalQueryString"` - - // querylanguage command designation for example; reporting vs filtering - Category *string `mandatory:"false" json:"category"` - - // Fields referenced in command fragment from user specified query string. - ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` - - // Fields declared in command fragment from user specified query string. - DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` - - // Field denoting if this is a hidden command that is not shown in the query string. - IsHidden *bool `mandatory:"false" json:"isHidden"` -} - -//GetDisplayQueryString returns DisplayQueryString -func (m FrequentCommandDescriptor) GetDisplayQueryString() *string { - return m.DisplayQueryString -} - -//GetInternalQueryString returns InternalQueryString -func (m FrequentCommandDescriptor) GetInternalQueryString() *string { - return m.InternalQueryString -} - -//GetCategory returns Category -func (m FrequentCommandDescriptor) GetCategory() *string { - return m.Category -} - -//GetReferencedFields returns ReferencedFields -func (m FrequentCommandDescriptor) GetReferencedFields() []AbstractField { - return m.ReferencedFields -} - -//GetDeclaredFields returns DeclaredFields -func (m FrequentCommandDescriptor) GetDeclaredFields() []AbstractField { - return m.DeclaredFields -} - -//GetIsHidden returns IsHidden -func (m FrequentCommandDescriptor) GetIsHidden() *bool { - return m.IsHidden -} - -func (m FrequentCommandDescriptor) 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 FrequentCommandDescriptor) 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 FrequentCommandDescriptor) MarshalJSON() (buff []byte, e error) { - type MarshalTypeFrequentCommandDescriptor FrequentCommandDescriptor - s := struct { - DiscriminatorParam string `json:"name"` - MarshalTypeFrequentCommandDescriptor - }{ - "FREQUENT", - (MarshalTypeFrequentCommandDescriptor)(m), - } - - return json.Marshal(&s) -} - -// UnmarshalJSON unmarshals from json -func (m *FrequentCommandDescriptor) UnmarshalJSON(data []byte) (e error) { - model := struct { - Category *string `json:"category"` - ReferencedFields []abstractfield `json:"referencedFields"` - DeclaredFields []abstractfield `json:"declaredFields"` - IsHidden *bool `json:"isHidden"` - DisplayQueryString *string `json:"displayQueryString"` - InternalQueryString *string `json:"internalQueryString"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Category = model.Category - - m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) - for i, n := range model.ReferencedFields { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.ReferencedFields[i] = nn.(AbstractField) - } else { - m.ReferencedFields[i] = nil - } - } - - m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) - for i, n := range model.DeclaredFields { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.DeclaredFields[i] = nn.(AbstractField) - } else { - m.DeclaredFields[i] = nil - } - } - - m.IsHidden = model.IsHidden - - m.DisplayQueryString = model.DisplayQueryString - - m.InternalQueryString = model.InternalQueryString - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go deleted file mode 100644 index abbf7c5e576..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetRecallCountRequest wrapper for the GetRecallCount operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecallCount.go.html to see an example of how to use GetRecallCountRequest. -type GetRecallCountRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // 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 GetRecallCountRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetRecallCountRequest) 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 GetRecallCountRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetRecallCountRequest) 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 GetRecallCountRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetRecallCountResponse wrapper for the GetRecallCount operation -type GetRecallCountResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The RecallCount instance - RecallCount `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetRecallCountResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetRecallCountResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go deleted file mode 100644 index 881b3013feb..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetRecalledDataSizeRequest wrapper for the GetRecalledDataSize operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecalledDataSize.go.html to see an example of how to use GetRecalledDataSizeRequest. -type GetRecalledDataSizeRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The client request ID for tracing. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // This is the start of the time range for recalled data - TimeDataStarted *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataStarted"` - - // This is the end of the time range for recalled data - TimeDataEnded *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataEnded"` - - // 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 GetRecalledDataSizeRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetRecalledDataSizeRequest) 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 GetRecalledDataSizeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetRecalledDataSizeRequest) 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 GetRecalledDataSizeRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetRecalledDataSizeResponse wrapper for the GetRecalledDataSize operation -type GetRecalledDataSizeResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The RecalledDataSize instance - RecalledDataSize `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, 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 additional items may be available on the next page of the list. Include this value as the `page` parameter for the - // subsequent request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the - // subsequent request to get the previous batch of items. - OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` -} - -func (response GetRecalledDataSizeResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetRecalledDataSizeResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go deleted file mode 100644 index 837163113c0..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// GetRulesSummaryRequest wrapper for the GetRulesSummary operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRulesSummary.go.html to see an example of how to use GetRulesSummaryRequest. -type GetRulesSummaryRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The ID of the compartment in which to list resources. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // 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 GetRulesSummaryRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetRulesSummaryRequest) 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 GetRulesSummaryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetRulesSummaryRequest) 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 GetRulesSummaryRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetRulesSummaryResponse wrapper for the GetRulesSummary operation -type GetRulesSummaryResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The RuleSummaryReport instance - RuleSummaryReport `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetRulesSummaryResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetRulesSummaryResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go deleted file mode 100644 index af9b70ca9c2..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// Level An object used to represent a level at which a property or resource or constraint is defined. -type Level struct { - - // The level name. - Name *string `mandatory:"true" json:"name"` - - // A string representation of constraints that apply at this level. - // For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql. - Constraints *string `mandatory:"false" json:"constraints"` -} - -func (m Level) 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 Level) 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/loganalytics/list_effective_properties_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go deleted file mode 100644 index 870bd325094..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListEffectivePropertiesRequest wrapper for the ListEffectiveProperties operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListEffectiveProperties.go.html to see an example of how to use ListEffectivePropertiesRequest. -type ListEffectivePropertiesRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The agent ocid. - AgentId *string `mandatory:"false" contributesTo:"query" name:"agentId"` - - // The source name. - SourceName *string `mandatory:"false" contributesTo:"query" name:"sourceName"` - - // The include pattern flag. - IsIncludePatterns *bool `mandatory:"false" contributesTo:"query" name:"isIncludePatterns"` - - // The entity ocid. - EntityId *string `mandatory:"false" contributesTo:"query" name:"entityId"` - - // The pattern id. - PatternId *int `mandatory:"false" contributesTo:"query" name:"patternId"` - - // The property name used for filtering. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). - SortOrder ListEffectivePropertiesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The attribute used to sort the returned properties - SortBy ListEffectivePropertiesSortByEnum `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 ListEffectivePropertiesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListEffectivePropertiesRequest) 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 ListEffectivePropertiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListEffectivePropertiesRequest) 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 ListEffectivePropertiesRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListEffectivePropertiesSortOrderEnum(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(GetListEffectivePropertiesSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListEffectivePropertiesSortByEnum(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(GetListEffectivePropertiesSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListEffectivePropertiesResponse wrapper for the ListEffectiveProperties operation -type ListEffectivePropertiesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of EffectivePropertyCollection instances - EffectivePropertyCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the - // subsequent request to get the previous batch of items. - OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then additional items may be available on the next page of the list. Include this value as the `page` parameter for the - // subsequent request to get the next batch of items. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListEffectivePropertiesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListEffectivePropertiesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListEffectivePropertiesSortOrderEnum Enum with underlying type: string -type ListEffectivePropertiesSortOrderEnum string - -// Set of constants representing the allowable values for ListEffectivePropertiesSortOrderEnum -const ( - ListEffectivePropertiesSortOrderAsc ListEffectivePropertiesSortOrderEnum = "ASC" - ListEffectivePropertiesSortOrderDesc ListEffectivePropertiesSortOrderEnum = "DESC" -) - -var mappingListEffectivePropertiesSortOrderEnum = map[string]ListEffectivePropertiesSortOrderEnum{ - "ASC": ListEffectivePropertiesSortOrderAsc, - "DESC": ListEffectivePropertiesSortOrderDesc, -} - -var mappingListEffectivePropertiesSortOrderEnumLowerCase = map[string]ListEffectivePropertiesSortOrderEnum{ - "asc": ListEffectivePropertiesSortOrderAsc, - "desc": ListEffectivePropertiesSortOrderDesc, -} - -// GetListEffectivePropertiesSortOrderEnumValues Enumerates the set of values for ListEffectivePropertiesSortOrderEnum -func GetListEffectivePropertiesSortOrderEnumValues() []ListEffectivePropertiesSortOrderEnum { - values := make([]ListEffectivePropertiesSortOrderEnum, 0) - for _, v := range mappingListEffectivePropertiesSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListEffectivePropertiesSortOrderEnumStringValues Enumerates the set of values in String for ListEffectivePropertiesSortOrderEnum -func GetListEffectivePropertiesSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListEffectivePropertiesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListEffectivePropertiesSortOrderEnum(val string) (ListEffectivePropertiesSortOrderEnum, bool) { - enum, ok := mappingListEffectivePropertiesSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListEffectivePropertiesSortByEnum Enum with underlying type: string -type ListEffectivePropertiesSortByEnum string - -// Set of constants representing the allowable values for ListEffectivePropertiesSortByEnum -const ( - ListEffectivePropertiesSortByName ListEffectivePropertiesSortByEnum = "name" - ListEffectivePropertiesSortByDisplayname ListEffectivePropertiesSortByEnum = "displayName" -) - -var mappingListEffectivePropertiesSortByEnum = map[string]ListEffectivePropertiesSortByEnum{ - "name": ListEffectivePropertiesSortByName, - "displayName": ListEffectivePropertiesSortByDisplayname, -} - -var mappingListEffectivePropertiesSortByEnumLowerCase = map[string]ListEffectivePropertiesSortByEnum{ - "name": ListEffectivePropertiesSortByName, - "displayname": ListEffectivePropertiesSortByDisplayname, -} - -// GetListEffectivePropertiesSortByEnumValues Enumerates the set of values for ListEffectivePropertiesSortByEnum -func GetListEffectivePropertiesSortByEnumValues() []ListEffectivePropertiesSortByEnum { - values := make([]ListEffectivePropertiesSortByEnum, 0) - for _, v := range mappingListEffectivePropertiesSortByEnum { - values = append(values, v) - } - return values -} - -// GetListEffectivePropertiesSortByEnumStringValues Enumerates the set of values in String for ListEffectivePropertiesSortByEnum -func GetListEffectivePropertiesSortByEnumStringValues() []string { - return []string{ - "name", - "displayName", - } -} - -// GetMappingListEffectivePropertiesSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListEffectivePropertiesSortByEnum(val string) (ListEffectivePropertiesSortByEnum, bool) { - enum, ok := mappingListEffectivePropertiesSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go deleted file mode 100644 index 74b990bd76e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListOverlappingRecallsRequest wrapper for the ListOverlappingRecalls operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListOverlappingRecalls.go.html to see an example of how to use ListOverlappingRecallsRequest. -type ListOverlappingRecallsRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // 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"` - - // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // This is the query parameter of which field to sort by. Only one sort order may be provided. Default order for timeDataStarted - // is descending. If no value is specified timeDataStarted is default. - SortBy ListOverlappingRecallsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). - SortOrder ListOverlappingRecallsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // This is the start of the time range for recalled data - TimeDataStarted *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataStarted"` - - // This is the end of the time range for recalled data - TimeDataEnded *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataEnded"` - - // 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 ListOverlappingRecallsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListOverlappingRecallsRequest) 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 ListOverlappingRecallsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListOverlappingRecallsRequest) 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 ListOverlappingRecallsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListOverlappingRecallsSortByEnum(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(GetListOverlappingRecallsSortByEnumStringValues(), ","))) - } - if _, ok := GetMappingListOverlappingRecallsSortOrderEnum(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(GetListOverlappingRecallsSortOrderEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListOverlappingRecallsResponse wrapper for the ListOverlappingRecalls operation -type ListOverlappingRecallsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of OverlappingRecallCollection instances - OverlappingRecallCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, 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 additional items may be available on the next page of the list. Include this value as the `page` parameter for the - // subsequent request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the - // subsequent request to get the previous batch of items. - OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` -} - -func (response ListOverlappingRecallsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListOverlappingRecallsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListOverlappingRecallsSortByEnum Enum with underlying type: string -type ListOverlappingRecallsSortByEnum string - -// Set of constants representing the allowable values for ListOverlappingRecallsSortByEnum -const ( - ListOverlappingRecallsSortByTimestarted ListOverlappingRecallsSortByEnum = "timeStarted" - ListOverlappingRecallsSortByTimedatastarted ListOverlappingRecallsSortByEnum = "timeDataStarted" -) - -var mappingListOverlappingRecallsSortByEnum = map[string]ListOverlappingRecallsSortByEnum{ - "timeStarted": ListOverlappingRecallsSortByTimestarted, - "timeDataStarted": ListOverlappingRecallsSortByTimedatastarted, -} - -var mappingListOverlappingRecallsSortByEnumLowerCase = map[string]ListOverlappingRecallsSortByEnum{ - "timestarted": ListOverlappingRecallsSortByTimestarted, - "timedatastarted": ListOverlappingRecallsSortByTimedatastarted, -} - -// GetListOverlappingRecallsSortByEnumValues Enumerates the set of values for ListOverlappingRecallsSortByEnum -func GetListOverlappingRecallsSortByEnumValues() []ListOverlappingRecallsSortByEnum { - values := make([]ListOverlappingRecallsSortByEnum, 0) - for _, v := range mappingListOverlappingRecallsSortByEnum { - values = append(values, v) - } - return values -} - -// GetListOverlappingRecallsSortByEnumStringValues Enumerates the set of values in String for ListOverlappingRecallsSortByEnum -func GetListOverlappingRecallsSortByEnumStringValues() []string { - return []string{ - "timeStarted", - "timeDataStarted", - } -} - -// GetMappingListOverlappingRecallsSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListOverlappingRecallsSortByEnum(val string) (ListOverlappingRecallsSortByEnum, bool) { - enum, ok := mappingListOverlappingRecallsSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListOverlappingRecallsSortOrderEnum Enum with underlying type: string -type ListOverlappingRecallsSortOrderEnum string - -// Set of constants representing the allowable values for ListOverlappingRecallsSortOrderEnum -const ( - ListOverlappingRecallsSortOrderAsc ListOverlappingRecallsSortOrderEnum = "ASC" - ListOverlappingRecallsSortOrderDesc ListOverlappingRecallsSortOrderEnum = "DESC" -) - -var mappingListOverlappingRecallsSortOrderEnum = map[string]ListOverlappingRecallsSortOrderEnum{ - "ASC": ListOverlappingRecallsSortOrderAsc, - "DESC": ListOverlappingRecallsSortOrderDesc, -} - -var mappingListOverlappingRecallsSortOrderEnumLowerCase = map[string]ListOverlappingRecallsSortOrderEnum{ - "asc": ListOverlappingRecallsSortOrderAsc, - "desc": ListOverlappingRecallsSortOrderDesc, -} - -// GetListOverlappingRecallsSortOrderEnumValues Enumerates the set of values for ListOverlappingRecallsSortOrderEnum -func GetListOverlappingRecallsSortOrderEnumValues() []ListOverlappingRecallsSortOrderEnum { - values := make([]ListOverlappingRecallsSortOrderEnum, 0) - for _, v := range mappingListOverlappingRecallsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListOverlappingRecallsSortOrderEnumStringValues Enumerates the set of values in String for ListOverlappingRecallsSortOrderEnum -func GetListOverlappingRecallsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListOverlappingRecallsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListOverlappingRecallsSortOrderEnum(val string) (ListOverlappingRecallsSortOrderEnum, bool) { - enum, ok := mappingListOverlappingRecallsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go deleted file mode 100644 index 4ae6f6ea0d6..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ListPropertiesMetadataRequest wrapper for the ListPropertiesMetadata operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListPropertiesMetadata.go.html to see an example of how to use ListPropertiesMetadataRequest. -type ListPropertiesMetadataRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // The property name used for filtering. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The property display text used for filtering. Only properties matching the specified display - // name or description will be returned. - DisplayText *string `mandatory:"false" contributesTo:"query" name:"displayText"` - - // The level for which applicable properties are to be listed. - Level *string `mandatory:"false" contributesTo:"query" name:"level"` - - // The constraints that apply to the properties at a certain level. - Constraints *string `mandatory:"false" contributesTo:"query" name:"constraints"` - - // The maximum number of items to return. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). - SortOrder ListPropertiesMetadataSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The attribute used to sort the returned properties - SortBy ListPropertiesMetadataSortByEnum `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 ListPropertiesMetadataRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPropertiesMetadataRequest) 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 ListPropertiesMetadataRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPropertiesMetadataRequest) 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 ListPropertiesMetadataRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingListPropertiesMetadataSortOrderEnum(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(GetListPropertiesMetadataSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListPropertiesMetadataSortByEnum(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(GetListPropertiesMetadataSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListPropertiesMetadataResponse wrapper for the ListPropertiesMetadata operation -type ListPropertiesMetadataResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of PropertyMetadataSummaryCollection instances - PropertyMetadataSummaryCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the - // subsequent request to get the previous batch of items. - OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then additional items may be available on the next page of the list. Include this value as the `page` parameter for the - // subsequent request to get the next batch of items. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListPropertiesMetadataResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPropertiesMetadataResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPropertiesMetadataSortOrderEnum Enum with underlying type: string -type ListPropertiesMetadataSortOrderEnum string - -// Set of constants representing the allowable values for ListPropertiesMetadataSortOrderEnum -const ( - ListPropertiesMetadataSortOrderAsc ListPropertiesMetadataSortOrderEnum = "ASC" - ListPropertiesMetadataSortOrderDesc ListPropertiesMetadataSortOrderEnum = "DESC" -) - -var mappingListPropertiesMetadataSortOrderEnum = map[string]ListPropertiesMetadataSortOrderEnum{ - "ASC": ListPropertiesMetadataSortOrderAsc, - "DESC": ListPropertiesMetadataSortOrderDesc, -} - -var mappingListPropertiesMetadataSortOrderEnumLowerCase = map[string]ListPropertiesMetadataSortOrderEnum{ - "asc": ListPropertiesMetadataSortOrderAsc, - "desc": ListPropertiesMetadataSortOrderDesc, -} - -// GetListPropertiesMetadataSortOrderEnumValues Enumerates the set of values for ListPropertiesMetadataSortOrderEnum -func GetListPropertiesMetadataSortOrderEnumValues() []ListPropertiesMetadataSortOrderEnum { - values := make([]ListPropertiesMetadataSortOrderEnum, 0) - for _, v := range mappingListPropertiesMetadataSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListPropertiesMetadataSortOrderEnumStringValues Enumerates the set of values in String for ListPropertiesMetadataSortOrderEnum -func GetListPropertiesMetadataSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListPropertiesMetadataSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListPropertiesMetadataSortOrderEnum(val string) (ListPropertiesMetadataSortOrderEnum, bool) { - enum, ok := mappingListPropertiesMetadataSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListPropertiesMetadataSortByEnum Enum with underlying type: string -type ListPropertiesMetadataSortByEnum string - -// Set of constants representing the allowable values for ListPropertiesMetadataSortByEnum -const ( - ListPropertiesMetadataSortByName ListPropertiesMetadataSortByEnum = "name" - ListPropertiesMetadataSortByDisplayname ListPropertiesMetadataSortByEnum = "displayName" -) - -var mappingListPropertiesMetadataSortByEnum = map[string]ListPropertiesMetadataSortByEnum{ - "name": ListPropertiesMetadataSortByName, - "displayName": ListPropertiesMetadataSortByDisplayname, -} - -var mappingListPropertiesMetadataSortByEnumLowerCase = map[string]ListPropertiesMetadataSortByEnum{ - "name": ListPropertiesMetadataSortByName, - "displayname": ListPropertiesMetadataSortByDisplayname, -} - -// GetListPropertiesMetadataSortByEnumValues Enumerates the set of values for ListPropertiesMetadataSortByEnum -func GetListPropertiesMetadataSortByEnumValues() []ListPropertiesMetadataSortByEnum { - values := make([]ListPropertiesMetadataSortByEnum, 0) - for _, v := range mappingListPropertiesMetadataSortByEnum { - values = append(values, v) - } - return values -} - -// GetListPropertiesMetadataSortByEnumStringValues Enumerates the set of values in String for ListPropertiesMetadataSortByEnum -func GetListPropertiesMetadataSortByEnumStringValues() []string { - return []string{ - "name", - "displayName", - } -} - -// GetMappingListPropertiesMetadataSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListPropertiesMetadataSortByEnum(val string) (ListPropertiesMetadataSortByEnum, bool) { - enum, ok := mappingListPropertiesMetadataSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go index a90d4a39ccd..6f1d68e6bec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go @@ -140,21 +140,24 @@ type ListScheduledTasksTaskTypeEnum string // Set of constants representing the allowable values for ListScheduledTasksTaskTypeEnum const ( - ListScheduledTasksTaskTypeSavedSearch ListScheduledTasksTaskTypeEnum = "SAVED_SEARCH" - ListScheduledTasksTaskTypeAcceleration ListScheduledTasksTaskTypeEnum = "ACCELERATION" - ListScheduledTasksTaskTypePurge ListScheduledTasksTaskTypeEnum = "PURGE" + ListScheduledTasksTaskTypeSavedSearch ListScheduledTasksTaskTypeEnum = "SAVED_SEARCH" + ListScheduledTasksTaskTypeAcceleration ListScheduledTasksTaskTypeEnum = "ACCELERATION" + ListScheduledTasksTaskTypePurge ListScheduledTasksTaskTypeEnum = "PURGE" + ListScheduledTasksTaskTypeAccelerationMaintenance ListScheduledTasksTaskTypeEnum = "ACCELERATION_MAINTENANCE" ) var mappingListScheduledTasksTaskTypeEnum = map[string]ListScheduledTasksTaskTypeEnum{ - "SAVED_SEARCH": ListScheduledTasksTaskTypeSavedSearch, - "ACCELERATION": ListScheduledTasksTaskTypeAcceleration, - "PURGE": ListScheduledTasksTaskTypePurge, + "SAVED_SEARCH": ListScheduledTasksTaskTypeSavedSearch, + "ACCELERATION": ListScheduledTasksTaskTypeAcceleration, + "PURGE": ListScheduledTasksTaskTypePurge, + "ACCELERATION_MAINTENANCE": ListScheduledTasksTaskTypeAccelerationMaintenance, } var mappingListScheduledTasksTaskTypeEnumLowerCase = map[string]ListScheduledTasksTaskTypeEnum{ - "saved_search": ListScheduledTasksTaskTypeSavedSearch, - "acceleration": ListScheduledTasksTaskTypeAcceleration, - "purge": ListScheduledTasksTaskTypePurge, + "saved_search": ListScheduledTasksTaskTypeSavedSearch, + "acceleration": ListScheduledTasksTaskTypeAcceleration, + "purge": ListScheduledTasksTaskTypePurge, + "acceleration_maintenance": ListScheduledTasksTaskTypeAccelerationMaintenance, } // GetListScheduledTasksTaskTypeEnumValues Enumerates the set of values for ListScheduledTasksTaskTypeEnum @@ -172,6 +175,7 @@ func GetListScheduledTasksTaskTypeEnumStringValues() []string { "SAVED_SEARCH", "ACCELERATION", "PURGE", + "ACCELERATION_MAINTENANCE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go index 7cc354ce90d..be28382f3e6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go @@ -241,7 +241,6 @@ const ( ListStorageWorkRequestsOperationTypePurgeStorageData ListStorageWorkRequestsOperationTypeEnum = "PURGE_STORAGE_DATA" ListStorageWorkRequestsOperationTypeRecallArchivedStorageData ListStorageWorkRequestsOperationTypeEnum = "RECALL_ARCHIVED_STORAGE_DATA" ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData ListStorageWorkRequestsOperationTypeEnum = "RELEASE_RECALLED_STORAGE_DATA" - ListStorageWorkRequestsOperationTypePurgeArchivalData ListStorageWorkRequestsOperationTypeEnum = "PURGE_ARCHIVAL_DATA" ListStorageWorkRequestsOperationTypeArchiveStorageData ListStorageWorkRequestsOperationTypeEnum = "ARCHIVE_STORAGE_DATA" ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData ListStorageWorkRequestsOperationTypeEnum = "CLEANUP_ARCHIVAL_STORAGE_DATA" ListStorageWorkRequestsOperationTypeEncryptActiveData ListStorageWorkRequestsOperationTypeEnum = "ENCRYPT_ACTIVE_DATA" @@ -253,7 +252,6 @@ var mappingListStorageWorkRequestsOperationTypeEnum = map[string]ListStorageWork "PURGE_STORAGE_DATA": ListStorageWorkRequestsOperationTypePurgeStorageData, "RECALL_ARCHIVED_STORAGE_DATA": ListStorageWorkRequestsOperationTypeRecallArchivedStorageData, "RELEASE_RECALLED_STORAGE_DATA": ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData, - "PURGE_ARCHIVAL_DATA": ListStorageWorkRequestsOperationTypePurgeArchivalData, "ARCHIVE_STORAGE_DATA": ListStorageWorkRequestsOperationTypeArchiveStorageData, "CLEANUP_ARCHIVAL_STORAGE_DATA": ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData, "ENCRYPT_ACTIVE_DATA": ListStorageWorkRequestsOperationTypeEncryptActiveData, @@ -265,7 +263,6 @@ var mappingListStorageWorkRequestsOperationTypeEnumLowerCase = map[string]ListSt "purge_storage_data": ListStorageWorkRequestsOperationTypePurgeStorageData, "recall_archived_storage_data": ListStorageWorkRequestsOperationTypeRecallArchivedStorageData, "release_recalled_storage_data": ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData, - "purge_archival_data": ListStorageWorkRequestsOperationTypePurgeArchivalData, "archive_storage_data": ListStorageWorkRequestsOperationTypeArchiveStorageData, "cleanup_archival_storage_data": ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData, "encrypt_active_data": ListStorageWorkRequestsOperationTypeEncryptActiveData, @@ -288,7 +285,6 @@ func GetListStorageWorkRequestsOperationTypeEnumStringValues() []string { "PURGE_STORAGE_DATA", "RECALL_ARCHIVED_STORAGE_DATA", "RELEASE_RECALLED_STORAGE_DATA", - "PURGE_ARCHIVAL_DATA", "ARCHIVE_STORAGE_DATA", "CLEANUP_ARCHIVAL_STORAGE_DATA", "ENCRYPT_ACTIVE_DATA", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go index fb51c924dd1..f6e9231b3ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go @@ -70,9 +70,6 @@ type LogAnalyticsAssociation struct { // The log group compartment. LogGroupCompartment *string `mandatory:"false" json:"logGroupCompartment"` - - // A list of association properties. - AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` } func (m LogAnalyticsAssociation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go index beed9577581..f1c305d2314 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go @@ -39,12 +39,6 @@ type LogAnalyticsAssociationParameter struct { // The status. Either FAILED or SUCCEEDED. Status LogAnalyticsAssociationParameterStatusEnum `mandatory:"false" json:"status,omitempty"` - // The status description. - StatusDescription *string `mandatory:"false" json:"statusDescription"` - - // A list of association properties. - AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` - // A list of missing properties. MissingProperties []string `mandatory:"false" json:"missingProperties"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go deleted file mode 100644 index 1e03ef36e13..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LogAnalyticsEndpoint Endpoint configuration for REST API based log collection. -type LogAnalyticsEndpoint interface { -} - -type loganalyticsendpoint struct { - JsonData []byte - EndpointType string `json:"endpointType"` -} - -// UnmarshalJSON unmarshals json -func (m *loganalyticsendpoint) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerloganalyticsendpoint loganalyticsendpoint - s := struct { - Model Unmarshalerloganalyticsendpoint - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.EndpointType = s.Model.EndpointType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *loganalyticsendpoint) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.EndpointType { - case "LOG_LIST": - mm := LogListTypeEndpoint{} - err = json.Unmarshal(data, &mm) - return mm, err - case "LOG": - mm := LogTypeEndpoint{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - common.Logf("Recieved unsupported enum value for LogAnalyticsEndpoint: %s.", m.EndpointType) - return *m, nil - } -} - -func (m loganalyticsendpoint) 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 loganalyticsendpoint) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// LogAnalyticsEndpointEndpointTypeEnum Enum with underlying type: string -type LogAnalyticsEndpointEndpointTypeEnum string - -// Set of constants representing the allowable values for LogAnalyticsEndpointEndpointTypeEnum -const ( - LogAnalyticsEndpointEndpointTypeLogList LogAnalyticsEndpointEndpointTypeEnum = "LOG_LIST" - LogAnalyticsEndpointEndpointTypeLog LogAnalyticsEndpointEndpointTypeEnum = "LOG" -) - -var mappingLogAnalyticsEndpointEndpointTypeEnum = map[string]LogAnalyticsEndpointEndpointTypeEnum{ - "LOG_LIST": LogAnalyticsEndpointEndpointTypeLogList, - "LOG": LogAnalyticsEndpointEndpointTypeLog, -} - -var mappingLogAnalyticsEndpointEndpointTypeEnumLowerCase = map[string]LogAnalyticsEndpointEndpointTypeEnum{ - "log_list": LogAnalyticsEndpointEndpointTypeLogList, - "log": LogAnalyticsEndpointEndpointTypeLog, -} - -// GetLogAnalyticsEndpointEndpointTypeEnumValues Enumerates the set of values for LogAnalyticsEndpointEndpointTypeEnum -func GetLogAnalyticsEndpointEndpointTypeEnumValues() []LogAnalyticsEndpointEndpointTypeEnum { - values := make([]LogAnalyticsEndpointEndpointTypeEnum, 0) - for _, v := range mappingLogAnalyticsEndpointEndpointTypeEnum { - values = append(values, v) - } - return values -} - -// GetLogAnalyticsEndpointEndpointTypeEnumStringValues Enumerates the set of values in String for LogAnalyticsEndpointEndpointTypeEnum -func GetLogAnalyticsEndpointEndpointTypeEnumStringValues() []string { - return []string{ - "LOG_LIST", - "LOG", - } -} - -// GetMappingLogAnalyticsEndpointEndpointTypeEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingLogAnalyticsEndpointEndpointTypeEnum(val string) (LogAnalyticsEndpointEndpointTypeEnum, bool) { - enum, ok := mappingLogAnalyticsEndpointEndpointTypeEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go index cd827bfeec3..8f75c50505c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go @@ -18,7 +18,7 @@ import ( // LogAnalyticsPreference The preference information type LogAnalyticsPreference struct { - // The preference name. + // The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported. Name *string `mandatory:"false" json:"name"` // The preference value. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go deleted file mode 100644 index c3db3f91083..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LogAnalyticsProperty A property represented as a name-value pair. -type LogAnalyticsProperty struct { - - // The property name. - Name *string `mandatory:"true" json:"name"` - - // The property value. - Value *string `mandatory:"false" json:"value"` -} - -func (m LogAnalyticsProperty) 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 LogAnalyticsProperty) 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/loganalytics/log_analytics_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go index 46bea2b5e84..eca91aac934 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go @@ -10,7 +10,6 @@ package loganalytics import ( - "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -131,12 +130,6 @@ type LogAnalyticsSource struct { // An array of categories assigned to this source. // The isSystem flag denotes if each category assignment is user-created or Oracle-defined. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` - - // An array of REST API endpoints for log collection. - Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` - - // A list of source properties. - SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m LogAnalyticsSource) String() string { @@ -154,201 +147,3 @@ func (m LogAnalyticsSource) ValidateEnumValue() (bool, error) { } return false, nil } - -// UnmarshalJSON unmarshals from json -func (m *LogAnalyticsSource) UnmarshalJSON(data []byte) (e error) { - model := struct { - LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` - AssociationCount *int `json:"associationCount"` - AssociationEntity []LogAnalyticsAssociation `json:"associationEntity"` - DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` - DatabaseCredential *string `json:"databaseCredential"` - ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` - IsForCloud *bool `json:"isForCloud"` - Labels []LogAnalyticsLabelView `json:"labels"` - MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` - Metrics []LogAnalyticsSourceMetric `json:"metrics"` - OobParsers []LogAnalyticsParser `json:"oobParsers"` - Parameters []LogAnalyticsParameter `json:"parameters"` - PatternCount *int `json:"patternCount"` - Patterns []LogAnalyticsSourcePattern `json:"patterns"` - Description *string `json:"description"` - DisplayName *string `json:"displayName"` - EditVersion *int64 `json:"editVersion"` - Functions []LogAnalyticsSourceFunction `json:"functions"` - SourceId *int64 `json:"sourceId"` - Name *string `json:"name"` - IsSecureContent *bool `json:"isSecureContent"` - IsSystem *bool `json:"isSystem"` - Parsers []LogAnalyticsParser `json:"parsers"` - IsAutoAssociationEnabled *bool `json:"isAutoAssociationEnabled"` - IsAutoAssociationOverride *bool `json:"isAutoAssociationOverride"` - RuleId *int64 `json:"ruleId"` - TypeName *string `json:"typeName"` - TypeDisplayName *string `json:"typeDisplayName"` - WarningConfig *int64 `json:"warningConfig"` - MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` - LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` - EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` - IsTimezoneOverride *bool `json:"isTimezoneOverride"` - UserParsers []LogAnalyticsParser `json:"userParsers"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - EventTypes []EventType `json:"eventTypes"` - Categories []LogAnalyticsCategory `json:"categories"` - Endpoints []loganalyticsendpoint `json:"endpoints"` - SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) - for i, n := range model.LabelConditions { - m.LabelConditions[i] = n - } - - m.AssociationCount = model.AssociationCount - - m.AssociationEntity = make([]LogAnalyticsAssociation, len(model.AssociationEntity)) - for i, n := range model.AssociationEntity { - m.AssociationEntity[i] = n - } - - m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) - for i, n := range model.DataFilterDefinitions { - m.DataFilterDefinitions[i] = n - } - - m.DatabaseCredential = model.DatabaseCredential - - m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) - for i, n := range model.ExtendedFieldDefinitions { - m.ExtendedFieldDefinitions[i] = n - } - - m.IsForCloud = model.IsForCloud - - m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) - for i, n := range model.Labels { - m.Labels[i] = n - } - - m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) - for i, n := range model.MetricDefinitions { - m.MetricDefinitions[i] = n - } - - m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) - for i, n := range model.Metrics { - m.Metrics[i] = n - } - - m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) - for i, n := range model.OobParsers { - m.OobParsers[i] = n - } - - m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) - for i, n := range model.Parameters { - m.Parameters[i] = n - } - - m.PatternCount = model.PatternCount - - m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) - for i, n := range model.Patterns { - m.Patterns[i] = n - } - - m.Description = model.Description - - m.DisplayName = model.DisplayName - - m.EditVersion = model.EditVersion - - m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) - for i, n := range model.Functions { - m.Functions[i] = n - } - - m.SourceId = model.SourceId - - m.Name = model.Name - - m.IsSecureContent = model.IsSecureContent - - m.IsSystem = model.IsSystem - - m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) - for i, n := range model.Parsers { - m.Parsers[i] = n - } - - m.IsAutoAssociationEnabled = model.IsAutoAssociationEnabled - - m.IsAutoAssociationOverride = model.IsAutoAssociationOverride - - m.RuleId = model.RuleId - - m.TypeName = model.TypeName - - m.TypeDisplayName = model.TypeDisplayName - - m.WarningConfig = model.WarningConfig - - m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) - for i, n := range model.MetadataFields { - m.MetadataFields[i] = n - } - - m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) - for i, n := range model.LabelDefinitions { - m.LabelDefinitions[i] = n - } - - m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) - for i, n := range model.EntityTypes { - m.EntityTypes[i] = n - } - - m.IsTimezoneOverride = model.IsTimezoneOverride - - m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) - for i, n := range model.UserParsers { - m.UserParsers[i] = n - } - - m.TimeUpdated = model.TimeUpdated - - m.EventTypes = make([]EventType, len(model.EventTypes)) - for i, n := range model.EventTypes { - m.EventTypes[i] = n - } - - m.Categories = make([]LogAnalyticsCategory, len(model.Categories)) - for i, n := range model.Categories { - m.Categories[i] = n - } - - m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) - for i, n := range model.Endpoints { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Endpoints[i] = nn.(LogAnalyticsEndpoint) - } else { - m.Endpoints[i] = nil - } - } - - m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) - for i, n := range model.SourceProperties { - m.SourceProperties[i] = n - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go index 7ec9b314591..7b2e1213dac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go @@ -18,11 +18,6 @@ import ( // LogAnalyticsSourceLabelCondition LogAnalyticsSourceLabelCondition type LogAnalyticsSourceLabelCondition struct { - // String representation of the label condition. This supports specifying multiple condition blocks at various nested levels. - ConditionString *string `mandatory:"false" json:"conditionString"` - - ConditionBlock *ConditionBlock `mandatory:"false" json:"conditionBlock"` - // The message. Message *string `mandatory:"false" json:"message"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go index df744795968..dad75a985bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go @@ -75,9 +75,6 @@ type LogAnalyticsSourcePattern struct { // The source entity type. EntityType []string `mandatory:"false" json:"entityType"` - - // A list of pattern properties. - PatternProperties []LogAnalyticsProperty `mandatory:"false" json:"patternProperties"` } func (m LogAnalyticsSourcePattern) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go index 905fcd7c138..473f7e51152 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go @@ -10,7 +10,6 @@ package loganalytics import ( - "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -124,12 +123,6 @@ type LogAnalyticsSourceSummary struct { // The last updated date. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // An array of REST API endpoints for log collection. - Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` - - // A list of source properties. - SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m LogAnalyticsSourceSummary) String() string { @@ -147,189 +140,3 @@ func (m LogAnalyticsSourceSummary) ValidateEnumValue() (bool, error) { } return false, nil } - -// UnmarshalJSON unmarshals from json -func (m *LogAnalyticsSourceSummary) UnmarshalJSON(data []byte) (e error) { - model := struct { - LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` - AssociationCount *int `json:"associationCount"` - AssociationEntity []LogAnalyticsAssociation `json:"associationEntity"` - DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` - DatabaseCredential *string `json:"databaseCredential"` - ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` - IsForCloud *bool `json:"isForCloud"` - Labels []LogAnalyticsLabelView `json:"labels"` - MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` - Metrics []LogAnalyticsSourceMetric `json:"metrics"` - OobParsers []LogAnalyticsParser `json:"oobParsers"` - Parameters []LogAnalyticsParameter `json:"parameters"` - PatternCount *int `json:"patternCount"` - Patterns []LogAnalyticsSourcePattern `json:"patterns"` - Description *string `json:"description"` - DisplayName *string `json:"displayName"` - EditVersion *int64 `json:"editVersion"` - Functions []LogAnalyticsSourceFunction `json:"functions"` - SourceId *int64 `json:"sourceId"` - Name *string `json:"name"` - IsSecureContent *bool `json:"isSecureContent"` - IsSystem *bool `json:"isSystem"` - Parsers []LogAnalyticsParser `json:"parsers"` - IsAutoAssociationEnabled *bool `json:"isAutoAssociationEnabled"` - IsAutoAssociationOverride *bool `json:"isAutoAssociationOverride"` - RuleId *int64 `json:"ruleId"` - TypeName *string `json:"typeName"` - TypeDisplayName *string `json:"typeDisplayName"` - WarningConfig *int64 `json:"warningConfig"` - MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` - LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` - EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` - IsTimezoneOverride *bool `json:"isTimezoneOverride"` - UserParsers []LogAnalyticsParser `json:"userParsers"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - Endpoints []loganalyticsendpoint `json:"endpoints"` - SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) - for i, n := range model.LabelConditions { - m.LabelConditions[i] = n - } - - m.AssociationCount = model.AssociationCount - - m.AssociationEntity = make([]LogAnalyticsAssociation, len(model.AssociationEntity)) - for i, n := range model.AssociationEntity { - m.AssociationEntity[i] = n - } - - m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) - for i, n := range model.DataFilterDefinitions { - m.DataFilterDefinitions[i] = n - } - - m.DatabaseCredential = model.DatabaseCredential - - m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) - for i, n := range model.ExtendedFieldDefinitions { - m.ExtendedFieldDefinitions[i] = n - } - - m.IsForCloud = model.IsForCloud - - m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) - for i, n := range model.Labels { - m.Labels[i] = n - } - - m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) - for i, n := range model.MetricDefinitions { - m.MetricDefinitions[i] = n - } - - m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) - for i, n := range model.Metrics { - m.Metrics[i] = n - } - - m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) - for i, n := range model.OobParsers { - m.OobParsers[i] = n - } - - m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) - for i, n := range model.Parameters { - m.Parameters[i] = n - } - - m.PatternCount = model.PatternCount - - m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) - for i, n := range model.Patterns { - m.Patterns[i] = n - } - - m.Description = model.Description - - m.DisplayName = model.DisplayName - - m.EditVersion = model.EditVersion - - m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) - for i, n := range model.Functions { - m.Functions[i] = n - } - - m.SourceId = model.SourceId - - m.Name = model.Name - - m.IsSecureContent = model.IsSecureContent - - m.IsSystem = model.IsSystem - - m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) - for i, n := range model.Parsers { - m.Parsers[i] = n - } - - m.IsAutoAssociationEnabled = model.IsAutoAssociationEnabled - - m.IsAutoAssociationOverride = model.IsAutoAssociationOverride - - m.RuleId = model.RuleId - - m.TypeName = model.TypeName - - m.TypeDisplayName = model.TypeDisplayName - - m.WarningConfig = model.WarningConfig - - m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) - for i, n := range model.MetadataFields { - m.MetadataFields[i] = n - } - - m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) - for i, n := range model.LabelDefinitions { - m.LabelDefinitions[i] = n - } - - m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) - for i, n := range model.EntityTypes { - m.EntityTypes[i] = n - } - - m.IsTimezoneOverride = model.IsTimezoneOverride - - m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) - for i, n := range model.UserParsers { - m.UserParsers[i] = n - } - - m.TimeUpdated = model.TimeUpdated - - m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) - for i, n := range model.Endpoints { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Endpoints[i] = nn.(LogAnalyticsEndpoint) - } else { - m.Endpoints[i] = nil - } - } - - m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) - for i, n := range model.SourceProperties { - m.SourceProperties[i] = n - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go deleted file mode 100644 index 7ebcd727e59..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LogEndpoint An endpoint used to fetch logs. -type LogEndpoint struct { - - // The endpoint name. - Name *string `mandatory:"true" json:"name"` - - Request *EndpointRequest `mandatory:"true" json:"request"` - - // The endpoint description. - Description *string `mandatory:"false" json:"description"` - - // The endpoint model. - Model *string `mandatory:"false" json:"model"` - - // The endpoint unique identifier. - EndpointId *int64 `mandatory:"false" json:"endpointId"` - - Response *EndpointResponse `mandatory:"false" json:"response"` - - Credentials *EndpointCredentials `mandatory:"false" json:"credentials"` - - Proxy *EndpointProxy `mandatory:"false" json:"proxy"` - - // A flag indicating whether or not the endpoint is enabled for log collection. - IsEnabled *bool `mandatory:"false" json:"isEnabled"` - - // The system flag. A value of false denotes a custom, or user - // defined endpoint. A value of true denotes an Oracle defined endpoint. - IsSystem *bool `mandatory:"false" json:"isSystem"` - - // A list of endpoint properties. - EndpointProperties []LogAnalyticsProperty `mandatory:"false" json:"endpointProperties"` -} - -func (m LogEndpoint) 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 LogEndpoint) 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/loganalytics/log_list_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go deleted file mode 100644 index 503ad991bd9..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LogListEndpoint An endpoint used to fetch a list of log URLs. -type LogListEndpoint struct { - - // The endpoint name. - Name *string `mandatory:"true" json:"name"` - - Request *EndpointRequest `mandatory:"true" json:"request"` - - // The endpoint description. - Description *string `mandatory:"false" json:"description"` - - // The endpoint model. - Model *string `mandatory:"false" json:"model"` - - // The endpoint unique identifier. - EndpointId *int64 `mandatory:"false" json:"endpointId"` - - Response *EndpointResponse `mandatory:"false" json:"response"` - - Credentials *EndpointCredentials `mandatory:"false" json:"credentials"` - - Proxy *EndpointProxy `mandatory:"false" json:"proxy"` - - // A flag indicating whether or not the endpoint is enabled for log collection. - IsEnabled *bool `mandatory:"false" json:"isEnabled"` - - // The system flag. A value of false denotes a custom, or user - // defined endpoint. A value of true denotes an Oracle defined endpoint. - IsSystem *bool `mandatory:"false" json:"isSystem"` - - // A list of endpoint properties. - EndpointProperties []LogAnalyticsProperty `mandatory:"false" json:"endpointProperties"` -} - -func (m LogListEndpoint) 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 LogListEndpoint) 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/loganalytics/log_list_type_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go deleted file mode 100644 index 5d104116aa8..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LogListTypeEndpoint The LOG_LIST type endpoint configuration. The list of logs is first fetched using the listEndpoint configuration, -// and then the logs are subsequently fetched using the logEndpoints, which reference the list endpoint response. -// For time based incremental collection, specify the START_TIME macro with the desired time format, -// example: {START_TIME:yyMMddHHmmssZ}. -// For offset based incremental collection, specify the START_OFFSET macro with offset identifier in the API response, -// example: {START_OFFSET:$.offset} -type LogListTypeEndpoint struct { - ListEndpoint *LogListEndpoint `mandatory:"true" json:"listEndpoint"` - - // Log endpoints, which reference the listEndpoint response, to fetch log data. - LogEndpoints []LogEndpoint `mandatory:"true" json:"logEndpoints"` -} - -func (m LogListTypeEndpoint) 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 LogListTypeEndpoint) 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 LogListTypeEndpoint) MarshalJSON() (buff []byte, e error) { - type MarshalTypeLogListTypeEndpoint LogListTypeEndpoint - s := struct { - DiscriminatorParam string `json:"endpointType"` - MarshalTypeLogListTypeEndpoint - }{ - "LOG_LIST", - (MarshalTypeLogListTypeEndpoint)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go deleted file mode 100644 index a027d5687fb..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// LogTypeEndpoint The LOG type endpoint configuration. Logs are fetched from the specified endpoint. -// For time based incremental collection, specify the START_TIME macro with the desired time format, -// example: {START_TIME:yyMMddHHmmssZ}. -// For offset based incremental collection, specify the START_OFFSET macro with offset identifier in the API response, -// example: {START_OFFSET:$.offset} -type LogTypeEndpoint struct { - LogEndpoint *LogEndpoint `mandatory:"true" json:"logEndpoint"` -} - -func (m LogTypeEndpoint) 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 LogTypeEndpoint) 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 LogTypeEndpoint) MarshalJSON() (buff []byte, e error) { - type MarshalTypeLogTypeEndpoint LogTypeEndpoint - s := struct { - DiscriminatorParam string `json:"endpointType"` - MarshalTypeLogTypeEndpoint - }{ - "LOG", - (MarshalTypeLogTypeEndpoint)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go index efa0e8555b8..b616e456f44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go @@ -4704,7 +4704,7 @@ func (client LogAnalyticsClient) getParserSummary(ctx context.Context, request c return response, err } -// GetPreferences Lists the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. +// GetPreferences Lists the preferences of the tenant. Currently, only "DEFAULT_HOMEPAGE" is supported. // // See also // @@ -4879,180 +4879,6 @@ func (client LogAnalyticsClient) getQueryWorkRequest(ctx context.Context, reques return response, err } -// GetRecallCount This API gets the number of recalls made and the maximum recalls that can be made -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecallCount.go.html to see an example of how to use GetRecallCount API. -// A default retry strategy applies to this operation GetRecallCount() -func (client LogAnalyticsClient) GetRecallCount(ctx context.Context, request GetRecallCountRequest) (response GetRecallCountResponse, 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.getRecallCount, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetRecallCountResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetRecallCountResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetRecallCountResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetRecallCountResponse") - } - return -} - -// getRecallCount implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) getRecallCount(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/recallCount", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetRecallCountResponse - 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/logan-api-spec/20200601/Storage/GetRecallCount" - err = common.PostProcessServiceError(err, "LogAnalytics", "GetRecallCount", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetRecalledDataSize This API gets the datasize of recalls for a given timeframe -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecalledDataSize.go.html to see an example of how to use GetRecalledDataSize API. -// A default retry strategy applies to this operation GetRecalledDataSize() -func (client LogAnalyticsClient) GetRecalledDataSize(ctx context.Context, request GetRecalledDataSizeRequest) (response GetRecalledDataSizeResponse, 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.getRecalledDataSize, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetRecalledDataSizeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetRecalledDataSizeResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetRecalledDataSizeResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetRecalledDataSizeResponse") - } - return -} - -// getRecalledDataSize implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) getRecalledDataSize(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/recalledDataSize", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetRecalledDataSizeResponse - 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/logan-api-spec/20200601/Storage/GetRecalledDataSize" - err = common.PostProcessServiceError(err, "LogAnalytics", "GetRecalledDataSize", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetRulesSummary Returns the count of detection rules in a compartment. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRulesSummary.go.html to see an example of how to use GetRulesSummary API. -// A default retry strategy applies to this operation GetRulesSummary() -func (client LogAnalyticsClient) GetRulesSummary(ctx context.Context, request GetRulesSummaryRequest) (response GetRulesSummaryResponse, 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.getRulesSummary, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetRulesSummaryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetRulesSummaryResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetRulesSummaryResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetRulesSummaryResponse") - } - return -} - -// getRulesSummary implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) getRulesSummary(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/rulesSummary", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetRulesSummaryResponse - 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/logan-api-spec/20200601/Rule/GetRulesSummary" - err = common.PostProcessServiceError(err, "LogAnalytics", "GetRulesSummary", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // GetScheduledTask Get the scheduled task for the specified task identifier. // // See also @@ -5931,64 +5757,6 @@ func (client LogAnalyticsClient) listConfigWorkRequests(ctx context.Context, req return response, err } -// ListEffectiveProperties Returns a list of effective properties for the specified resource. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListEffectiveProperties.go.html to see an example of how to use ListEffectiveProperties API. -// A default retry strategy applies to this operation ListEffectiveProperties() -func (client LogAnalyticsClient) ListEffectiveProperties(ctx context.Context, request ListEffectivePropertiesRequest) (response ListEffectivePropertiesResponse, 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.listEffectiveProperties, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListEffectivePropertiesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListEffectivePropertiesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListEffectivePropertiesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListEffectivePropertiesResponse") - } - return -} - -// listEffectiveProperties implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) listEffectiveProperties(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/effectiveProperties", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListEffectivePropertiesResponse - 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/logan-api-spec/20200601/LogAnalyticsProperty/ListEffectiveProperties" - err = common.PostProcessServiceError(err, "LogAnalytics", "ListEffectiveProperties", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // ListEncryptionKeyInfo This API returns the list of customer owned encryption key info. // // See also @@ -7029,64 +6797,6 @@ func (client LogAnalyticsClient) listNamespaces(ctx context.Context, request com return response, err } -// ListOverlappingRecalls This API gets the list of overlapping recalls made in the given timeframe -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListOverlappingRecalls.go.html to see an example of how to use ListOverlappingRecalls API. -// A default retry strategy applies to this operation ListOverlappingRecalls() -func (client LogAnalyticsClient) ListOverlappingRecalls(ctx context.Context, request ListOverlappingRecallsRequest) (response ListOverlappingRecallsResponse, 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.listOverlappingRecalls, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListOverlappingRecallsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListOverlappingRecallsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListOverlappingRecallsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListOverlappingRecallsResponse") - } - return -} - -// listOverlappingRecalls implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) listOverlappingRecalls(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/overlappingRecalls", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListOverlappingRecallsResponse - 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/logan-api-spec/20200601/Storage/ListOverlappingRecalls" - err = common.PostProcessServiceError(err, "LogAnalytics", "ListOverlappingRecalls", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // ListParserFunctions Lists the parser functions defined for the specified parser. // // See also @@ -7261,64 +6971,6 @@ func (client LogAnalyticsClient) listParsers(ctx context.Context, request common return response, err } -// ListPropertiesMetadata Returns a list of properties along with their metadata. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListPropertiesMetadata.go.html to see an example of how to use ListPropertiesMetadata API. -// A default retry strategy applies to this operation ListPropertiesMetadata() -func (client LogAnalyticsClient) ListPropertiesMetadata(ctx context.Context, request ListPropertiesMetadataRequest) (response ListPropertiesMetadataResponse, 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.listPropertiesMetadata, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListPropertiesMetadataResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListPropertiesMetadataResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListPropertiesMetadataResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListPropertiesMetadataResponse") - } - return -} - -// listPropertiesMetadata implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) listPropertiesMetadata(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/propertiesMetadata", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListPropertiesMetadataResponse - 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/logan-api-spec/20200601/LogAnalyticsProperty/ListPropertiesMetadata" - err = common.PostProcessServiceError(err, "LogAnalytics", "ListPropertiesMetadata", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // ListQueryWorkRequests List active asynchronous queries. // // See also @@ -9334,7 +8986,7 @@ func (client LogAnalyticsClient) removeEntityAssociations(ctx context.Context, r return response, err } -// RemovePreferences Removes the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. +// RemovePreferences Removes the tenant preferences. Currently, only "DEFAULT_HOMEPAGE" is supported. // // See also // @@ -10446,7 +10098,7 @@ func (client LogAnalyticsClient) updateLookupData(ctx context.Context, request c return response, err } -// UpdatePreferences Updates the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. +// UpdatePreferences Updates the tenant preferences. Currently, only "DEFAULT_HOMEPAGE" is supported. // // See also // @@ -11231,66 +10883,6 @@ func (client LogAnalyticsClient) validateAssociationParameters(ctx context.Conte return response, err } -// ValidateEndpoint Validates the REST endpoint configuration. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateEndpoint.go.html to see an example of how to use ValidateEndpoint API. -// A default retry strategy applies to this operation ValidateEndpoint() -func (client LogAnalyticsClient) ValidateEndpoint(ctx context.Context, request ValidateEndpointRequest) (response ValidateEndpointResponse, 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.validateEndpoint, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ValidateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ValidateEndpointResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ValidateEndpointResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ValidateEndpointResponse") - } - return -} - -// validateEndpoint implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) validateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - if !common.IsEnvVarFalse(common.UsingExpectHeaderEnvVar) { - extraHeaders["Expect"] = "100-continue" - } - httpRequest, err := request.HTTPRequest(http.MethodPost, "/namespaces/{namespaceName}/sources/actions/validateEndpoint", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ValidateEndpointResponse - 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/logan-api-spec/20200601/LogAnalyticsSource/ValidateEndpoint" - err = common.PostProcessServiceError(err, "LogAnalytics", "ValidateEndpoint", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // ValidateFile Validates a log file to check whether it is eligible to be uploaded or not. // // See also @@ -11349,70 +10941,6 @@ func (client LogAnalyticsClient) validateFile(ctx context.Context, request commo return response, err } -// ValidateLabelCondition Validates specified condition for a source label. If both conditionString -// and conditionBlocks are specified, they would be validated to ensure they represent -// identical conditions. If one of them is input, the response would include the validated -// representation of the other structure too. Additionally, if field values -// are passed, the condition specification would be evaluated against them. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateLabelCondition.go.html to see an example of how to use ValidateLabelCondition API. -// A default retry strategy applies to this operation ValidateLabelCondition() -func (client LogAnalyticsClient) ValidateLabelCondition(ctx context.Context, request ValidateLabelConditionRequest) (response ValidateLabelConditionResponse, 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.validateLabelCondition, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ValidateLabelConditionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ValidateLabelConditionResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ValidateLabelConditionResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ValidateLabelConditionResponse") - } - return -} - -// validateLabelCondition implements the OCIOperation interface (enables retrying operations) -func (client LogAnalyticsClient) validateLabelCondition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - if !common.IsEnvVarFalse(common.UsingExpectHeaderEnvVar) { - extraHeaders["Expect"] = "100-continue" - } - httpRequest, err := request.HTTPRequest(http.MethodPost, "/namespaces/{namespaceName}/sources/actions/validateLabelCondition", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ValidateLabelConditionResponse - 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/logan-api-spec/20200601/LogAnalyticsSource/ValidateLabelCondition" - err = common.PostProcessServiceError(err, "LogAnalytics", "ValidateLabelCondition", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // ValidateSource Checks if the specified input is a valid log source definition. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go deleted file mode 100644 index 52779346ca7..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// NameValuePair An object representing a name-value pair. -type NameValuePair struct { - - // The name. - Name *string `mandatory:"true" json:"name"` - - // The value. - Value *string `mandatory:"false" json:"value"` -} - -func (m NameValuePair) 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 NameValuePair) 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/loganalytics/namespace.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go index c1e46a5128c..89653dad288 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Namespace This is the namespace details of a tenancy in Logging Analytics application +// Namespace This is the namespace details of a tenancy in Logan Analytics application type Namespace struct { // This is the namespace name of a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go index 8e4ab81fb5e..92f924481c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go @@ -15,7 +15,7 @@ import ( "strings" ) -// NamespaceSummary The is the namespace summary of a tenancy in Logging Analytics application +// NamespaceSummary The is the namespace summary of a tenancy in Logan Analytics application type NamespaceSummary struct { // This is the namespace name of a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go deleted file mode 100644 index f294f9770a2..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// OutlierCommandDescriptor Command descriptor for querylanguage OUTLIER command. -type OutlierCommandDescriptor struct { - - // Command fragment display string from user specified query string formatted by query builder. - DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` - - // Command fragment internal string from user specified query string formatted by query builder. - InternalQueryString *string `mandatory:"true" json:"internalQueryString"` - - // querylanguage command designation for example; reporting vs filtering - Category *string `mandatory:"false" json:"category"` - - // Fields referenced in command fragment from user specified query string. - ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` - - // Fields declared in command fragment from user specified query string. - DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` - - // Field denoting if this is a hidden command that is not shown in the query string. - IsHidden *bool `mandatory:"false" json:"isHidden"` -} - -//GetDisplayQueryString returns DisplayQueryString -func (m OutlierCommandDescriptor) GetDisplayQueryString() *string { - return m.DisplayQueryString -} - -//GetInternalQueryString returns InternalQueryString -func (m OutlierCommandDescriptor) GetInternalQueryString() *string { - return m.InternalQueryString -} - -//GetCategory returns Category -func (m OutlierCommandDescriptor) GetCategory() *string { - return m.Category -} - -//GetReferencedFields returns ReferencedFields -func (m OutlierCommandDescriptor) GetReferencedFields() []AbstractField { - return m.ReferencedFields -} - -//GetDeclaredFields returns DeclaredFields -func (m OutlierCommandDescriptor) GetDeclaredFields() []AbstractField { - return m.DeclaredFields -} - -//GetIsHidden returns IsHidden -func (m OutlierCommandDescriptor) GetIsHidden() *bool { - return m.IsHidden -} - -func (m OutlierCommandDescriptor) 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 OutlierCommandDescriptor) 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 OutlierCommandDescriptor) MarshalJSON() (buff []byte, e error) { - type MarshalTypeOutlierCommandDescriptor OutlierCommandDescriptor - s := struct { - DiscriminatorParam string `json:"name"` - MarshalTypeOutlierCommandDescriptor - }{ - "OUTLIER", - (MarshalTypeOutlierCommandDescriptor)(m), - } - - return json.Marshal(&s) -} - -// UnmarshalJSON unmarshals from json -func (m *OutlierCommandDescriptor) UnmarshalJSON(data []byte) (e error) { - model := struct { - Category *string `json:"category"` - ReferencedFields []abstractfield `json:"referencedFields"` - DeclaredFields []abstractfield `json:"declaredFields"` - IsHidden *bool `json:"isHidden"` - DisplayQueryString *string `json:"displayQueryString"` - InternalQueryString *string `json:"internalQueryString"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Category = model.Category - - m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) - for i, n := range model.ReferencedFields { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.ReferencedFields[i] = nn.(AbstractField) - } else { - m.ReferencedFields[i] = nil - } - } - - m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) - for i, n := range model.DeclaredFields { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.DeclaredFields[i] = nn.(AbstractField) - } else { - m.DeclaredFields[i] = nil - } - } - - m.IsHidden = model.IsHidden - - m.DisplayQueryString = model.DisplayQueryString - - m.InternalQueryString = model.InternalQueryString - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go deleted file mode 100644 index c73843bd131..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// OverlappingRecallCollection This is the list of overlapping recall requests -type OverlappingRecallCollection struct { - - // This is the array of overlapping recall requests - Items []OverlappingRecallSummary `mandatory:"true" json:"items"` -} - -func (m OverlappingRecallCollection) 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 OverlappingRecallCollection) 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/loganalytics/overlapping_recall_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go deleted file mode 100644 index a03ee863faa..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// OverlappingRecallSummary This is the information about overlapping recall requests -type OverlappingRecallSummary struct { - - // This is the start of the time range of the archival data - TimeDataStarted *common.SDKTime `mandatory:"true" json:"timeDataStarted"` - - // This is the end of the time range of the archival data - TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` - - // This is the time when the recall operation was started for this recall request - TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` - - // This is the status of the recall - Status RecallStatusEnum `mandatory:"true" json:"status"` - - // This is the purpose of the recall - Purpose *string `mandatory:"true" json:"purpose"` - - // This is the query associated with the recall - QueryString *string `mandatory:"true" json:"queryString"` - - // This is the list of logsets associated with this recall - LogSets *string `mandatory:"true" json:"logSets"` - - // This is the user who initiated the recall request - CreatedBy *string `mandatory:"true" json:"createdBy"` -} - -func (m OverlappingRecallSummary) 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 OverlappingRecallSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingRecallStatusEnum(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(GetRecallStatusEnumStringValues(), ","))) - } - - 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/loganalytics/pattern_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go deleted file mode 100644 index 852e3d9cc87..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PatternOverride Details of pattern level override for a property. -type PatternOverride struct { - - // The pattern id. - Id *string `mandatory:"true" json:"id"` - - // The value of the property. - Value *string `mandatory:"true" json:"value"` - - // The effective level of the property value. - EffectiveLevel *string `mandatory:"false" json:"effectiveLevel"` -} - -func (m PatternOverride) 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 PatternOverride) 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/loganalytics/property_metadata_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go deleted file mode 100644 index cebda6f8a10..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PropertyMetadataSummary Summary of property metadata details. -type PropertyMetadataSummary struct { - - // The property name. - Name *string `mandatory:"false" json:"name"` - - // The property display name. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The property description. - Description *string `mandatory:"false" json:"description"` - - // The default property value. - DefaultValue *string `mandatory:"false" json:"defaultValue"` - - // A list of levels at which the property could be defined. - Levels []Level `mandatory:"false" json:"levels"` -} - -func (m PropertyMetadataSummary) 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 PropertyMetadataSummary) 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/loganalytics/property_metadata_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go deleted file mode 100644 index 2aa26cf5193..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// PropertyMetadataSummaryCollection A collection of property metadata objects. -type PropertyMetadataSummaryCollection struct { - - // An array of properties along with their metadata summary. - Items []PropertyMetadataSummary `mandatory:"false" json:"items"` -} - -func (m PropertyMetadataSummaryCollection) 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 PropertyMetadataSummaryCollection) 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/loganalytics/query_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go index a35ae7d1e01..3130c349d2c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go @@ -34,9 +34,6 @@ type QueryAggregation struct { // Explanation of why results may be partial. Only set if arePartialResults is true. PartialResultReason *string `mandatory:"false" json:"partialResultReason"` - // True if the data returned by query is hidden. - IsContentHidden *bool `mandatory:"false" json:"isContentHidden"` - // Query result columns Columns []AbstractColumn `mandatory:"false" json:"columns"` @@ -73,7 +70,6 @@ func (m *QueryAggregation) UnmarshalJSON(data []byte) (e error) { TotalMatchedCount *int64 `json:"totalMatchedCount"` ArePartialResults *bool `json:"arePartialResults"` PartialResultReason *string `json:"partialResultReason"` - IsContentHidden *bool `json:"isContentHidden"` Columns []abstractcolumn `json:"columns"` Fields []abstractcolumn `json:"fields"` Items []map[string]interface{} `json:"items"` @@ -94,8 +90,6 @@ func (m *QueryAggregation) UnmarshalJSON(data []byte) (e error) { m.PartialResultReason = model.PartialResultReason - m.IsContentHidden = model.IsContentHidden - m.Columns = make([]AbstractColumn, len(model.Columns)) for i, n := range model.Columns { nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go deleted file mode 100644 index 536267e0056..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RareCommandDescriptor Command descriptor for querylanguage RARE command. -type RareCommandDescriptor struct { - - // Command fragment display string from user specified query string formatted by query builder. - DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` - - // Command fragment internal string from user specified query string formatted by query builder. - InternalQueryString *string `mandatory:"true" json:"internalQueryString"` - - // querylanguage command designation for example; reporting vs filtering - Category *string `mandatory:"false" json:"category"` - - // Fields referenced in command fragment from user specified query string. - ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` - - // Fields declared in command fragment from user specified query string. - DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` - - // Field denoting if this is a hidden command that is not shown in the query string. - IsHidden *bool `mandatory:"false" json:"isHidden"` -} - -//GetDisplayQueryString returns DisplayQueryString -func (m RareCommandDescriptor) GetDisplayQueryString() *string { - return m.DisplayQueryString -} - -//GetInternalQueryString returns InternalQueryString -func (m RareCommandDescriptor) GetInternalQueryString() *string { - return m.InternalQueryString -} - -//GetCategory returns Category -func (m RareCommandDescriptor) GetCategory() *string { - return m.Category -} - -//GetReferencedFields returns ReferencedFields -func (m RareCommandDescriptor) GetReferencedFields() []AbstractField { - return m.ReferencedFields -} - -//GetDeclaredFields returns DeclaredFields -func (m RareCommandDescriptor) GetDeclaredFields() []AbstractField { - return m.DeclaredFields -} - -//GetIsHidden returns IsHidden -func (m RareCommandDescriptor) GetIsHidden() *bool { - return m.IsHidden -} - -func (m RareCommandDescriptor) 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 RareCommandDescriptor) 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 RareCommandDescriptor) MarshalJSON() (buff []byte, e error) { - type MarshalTypeRareCommandDescriptor RareCommandDescriptor - s := struct { - DiscriminatorParam string `json:"name"` - MarshalTypeRareCommandDescriptor - }{ - "RARE", - (MarshalTypeRareCommandDescriptor)(m), - } - - return json.Marshal(&s) -} - -// UnmarshalJSON unmarshals from json -func (m *RareCommandDescriptor) UnmarshalJSON(data []byte) (e error) { - model := struct { - Category *string `json:"category"` - ReferencedFields []abstractfield `json:"referencedFields"` - DeclaredFields []abstractfield `json:"declaredFields"` - IsHidden *bool `json:"isHidden"` - DisplayQueryString *string `json:"displayQueryString"` - InternalQueryString *string `json:"internalQueryString"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Category = model.Category - - m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) - for i, n := range model.ReferencedFields { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.ReferencedFields[i] = nn.(AbstractField) - } else { - m.ReferencedFields[i] = nil - } - } - - m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) - for i, n := range model.DeclaredFields { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.DeclaredFields[i] = nn.(AbstractField) - } else { - m.DeclaredFields[i] = nil - } - } - - m.IsHidden = model.IsHidden - - m.DisplayQueryString = model.DisplayQueryString - - m.InternalQueryString = model.InternalQueryString - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go index 073f8cb5842..a716f18232c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go @@ -35,12 +35,6 @@ type RecallArchivedDataDetails struct { // This is the query that identifies the recalled data. Query *string `mandatory:"false" json:"query"` - - // This is the purpose of the recall - Purpose *string `mandatory:"false" json:"purpose"` - - // This indicates if only new data has to be recalled in this recall request - IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m RecallArchivedDataDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go index 21572dab222..af11863ac33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go @@ -89,9 +89,6 @@ type RecallArchivedDataResponse struct { // The underlying http response RawResponse *http.Response - // The RecalledDataInfo instance - RecalledDataInfo `presentIn:"body"` - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` @@ -100,9 +97,6 @@ type RecallArchivedDataResponse struct { // URI to entity or work request created. Location *string `presentIn:"header" name:"location"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` } func (response RecallArchivedDataResponse) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go deleted file mode 100644 index 970a2703f67..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RecallCount This is the recall count statistics for a given tenant -type RecallCount struct { - - // This is the total number of recalls made so far - RecallCount *int `mandatory:"true" json:"recallCount"` - - // This is the number of recalls that succeeded - RecallSucceeded *int `mandatory:"true" json:"recallSucceeded"` - - // This is the number of recalls that failed - RecallFailed *int `mandatory:"true" json:"recallFailed"` - - // This is the number of recalls in pending state - RecallPending *int `mandatory:"true" json:"recallPending"` - - // This is the maximum number of recalls (including successful and pending recalls) allowed - RecallLimit *int `mandatory:"true" json:"recallLimit"` -} - -func (m RecallCount) 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 RecallCount) 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/loganalytics/recall_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go deleted file mode 100644 index f7c9e39850f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "strings" -) - -// RecallStatusEnum Enum with underlying type: string -type RecallStatusEnum string - -// Set of constants representing the allowable values for RecallStatusEnum -const ( - RecallStatusRecalled RecallStatusEnum = "RECALLED" - RecallStatusPending RecallStatusEnum = "PENDING" - RecallStatusFailed RecallStatusEnum = "FAILED" -) - -var mappingRecallStatusEnum = map[string]RecallStatusEnum{ - "RECALLED": RecallStatusRecalled, - "PENDING": RecallStatusPending, - "FAILED": RecallStatusFailed, -} - -var mappingRecallStatusEnumLowerCase = map[string]RecallStatusEnum{ - "recalled": RecallStatusRecalled, - "pending": RecallStatusPending, - "failed": RecallStatusFailed, -} - -// GetRecallStatusEnumValues Enumerates the set of values for RecallStatusEnum -func GetRecallStatusEnumValues() []RecallStatusEnum { - values := make([]RecallStatusEnum, 0) - for _, v := range mappingRecallStatusEnum { - values = append(values, v) - } - return values -} - -// GetRecallStatusEnumStringValues Enumerates the set of values in String for RecallStatusEnum -func GetRecallStatusEnumStringValues() []string { - return []string{ - "RECALLED", - "PENDING", - "FAILED", - } -} - -// GetMappingRecallStatusEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingRecallStatusEnum(val string) (RecallStatusEnum, bool) { - enum, ok := mappingRecallStatusEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go index e152b79e75c..b5b03024934 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go @@ -36,21 +36,6 @@ type RecalledData struct { // This is the size in bytes StorageUsageInBytes *int64 `mandatory:"true" json:"storageUsageInBytes"` - - // This is the size of the archival data not recalled yet within the specified time range - NotRecalledDataInBytes *int64 `mandatory:"true" json:"notRecalledDataInBytes"` - - // This is the purpose of the recall - Purpose *string `mandatory:"true" json:"purpose"` - - // This is the query associated with the recall - QueryString *string `mandatory:"true" json:"queryString"` - - // This is the list of logsets associated with the recall - LogSets *string `mandatory:"true" json:"logSets"` - - // This is the user who initiated the recall request - CreatedBy *string `mandatory:"true" json:"createdBy"` } func (m RecalledData) String() string { @@ -79,19 +64,16 @@ type RecalledDataStatusEnum string const ( RecalledDataStatusRecalled RecalledDataStatusEnum = "RECALLED" RecalledDataStatusPending RecalledDataStatusEnum = "PENDING" - RecalledDataStatusFailed RecalledDataStatusEnum = "FAILED" ) var mappingRecalledDataStatusEnum = map[string]RecalledDataStatusEnum{ "RECALLED": RecalledDataStatusRecalled, "PENDING": RecalledDataStatusPending, - "FAILED": RecalledDataStatusFailed, } var mappingRecalledDataStatusEnumLowerCase = map[string]RecalledDataStatusEnum{ "recalled": RecalledDataStatusRecalled, "pending": RecalledDataStatusPending, - "failed": RecalledDataStatusFailed, } // GetRecalledDataStatusEnumValues Enumerates the set of values for RecalledDataStatusEnum @@ -108,7 +90,6 @@ func GetRecalledDataStatusEnumStringValues() []string { return []string{ "RECALLED", "PENDING", - "FAILED", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go deleted file mode 100644 index 01250b86a32..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RecalledDataInfo This is the synchronous result of a recall of archived data -type RecalledDataInfo struct { - - // This is the parent name of the list of overlapping recalls - CollectionName *string `mandatory:"true" json:"collectionName"` - - // This is the recall name made for a specific purpose - Purpose *string `mandatory:"false" json:"purpose"` -} - -func (m RecalledDataInfo) 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 RecalledDataInfo) 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/loganalytics/recalled_data_size.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go deleted file mode 100644 index 9f9f0e0bec5..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RecalledDataSize This is the recall related data size for the given timeframe -type RecalledDataSize struct { - - // This is the start of the time range of the archival data - TimeDataStarted *common.SDKTime `mandatory:"true" json:"timeDataStarted"` - - // This is the end of the time range of the archival data - TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` - - // This is the size of the recalled data - RecalledDataInBytes *int64 `mandatory:"true" json:"recalledDataInBytes"` - - // This is the size of the archival data not recalled yet - NotRecalledDataInBytes *int64 `mandatory:"true" json:"notRecalledDataInBytes"` -} - -func (m RecalledDataSize) 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 RecalledDataSize) 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/loganalytics/rule_summary_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go deleted file mode 100644 index 40eb8dde0e2..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// RuleSummaryReport A summary count of detection rules. -type RuleSummaryReport struct { - - // The total count of detection rules. - TotalCount *int `mandatory:"true" json:"totalCount"` - - // The count of ingest time rules. - IngestTimeRulesCount *int `mandatory:"true" json:"ingestTimeRulesCount"` - - // The count of saved search rules. - SavedSearchRulesCount *int `mandatory:"true" json:"savedSearchRulesCount"` -} - -func (m RuleSummaryReport) 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 RuleSummaryReport) 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/loganalytics/storage.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go index 2d6f09f7b2d..503c5d4f3f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Storage This is the storage configuration and status of a tenancy in Logging Analytics application +// Storage This is the storage configuration and status of a tenancy in Logan Analytics application type Storage struct { // This indicates if old data can be archived for a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go index 1326d1712d2..ddb6d5a3cb4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go @@ -22,7 +22,6 @@ const ( StorageOperationTypePurgeStorageData StorageOperationTypeEnum = "PURGE_STORAGE_DATA" StorageOperationTypeRecallArchivedStorageData StorageOperationTypeEnum = "RECALL_ARCHIVED_STORAGE_DATA" StorageOperationTypeReleaseRecalledStorageData StorageOperationTypeEnum = "RELEASE_RECALLED_STORAGE_DATA" - StorageOperationTypePurgeArchivalData StorageOperationTypeEnum = "PURGE_ARCHIVAL_DATA" StorageOperationTypeArchiveStorageData StorageOperationTypeEnum = "ARCHIVE_STORAGE_DATA" StorageOperationTypeCleanupArchivalStorageData StorageOperationTypeEnum = "CLEANUP_ARCHIVAL_STORAGE_DATA" StorageOperationTypeEncryptActiveData StorageOperationTypeEnum = "ENCRYPT_ACTIVE_DATA" @@ -34,7 +33,6 @@ var mappingStorageOperationTypeEnum = map[string]StorageOperationTypeEnum{ "PURGE_STORAGE_DATA": StorageOperationTypePurgeStorageData, "RECALL_ARCHIVED_STORAGE_DATA": StorageOperationTypeRecallArchivedStorageData, "RELEASE_RECALLED_STORAGE_DATA": StorageOperationTypeReleaseRecalledStorageData, - "PURGE_ARCHIVAL_DATA": StorageOperationTypePurgeArchivalData, "ARCHIVE_STORAGE_DATA": StorageOperationTypeArchiveStorageData, "CLEANUP_ARCHIVAL_STORAGE_DATA": StorageOperationTypeCleanupArchivalStorageData, "ENCRYPT_ACTIVE_DATA": StorageOperationTypeEncryptActiveData, @@ -46,7 +44,6 @@ var mappingStorageOperationTypeEnumLowerCase = map[string]StorageOperationTypeEn "purge_storage_data": StorageOperationTypePurgeStorageData, "recall_archived_storage_data": StorageOperationTypeRecallArchivedStorageData, "release_recalled_storage_data": StorageOperationTypeReleaseRecalledStorageData, - "purge_archival_data": StorageOperationTypePurgeArchivalData, "archive_storage_data": StorageOperationTypeArchiveStorageData, "cleanup_archival_storage_data": StorageOperationTypeCleanupArchivalStorageData, "encrypt_active_data": StorageOperationTypeEncryptActiveData, @@ -69,7 +66,6 @@ func GetStorageOperationTypeEnumStringValues() []string { "PURGE_STORAGE_DATA", "RECALL_ARCHIVED_STORAGE_DATA", "RELEASE_RECALLED_STORAGE_DATA", - "PURGE_ARCHIVAL_DATA", "ARCHIVE_STORAGE_DATA", "CLEANUP_ARCHIVAL_STORAGE_DATA", "ENCRYPT_ACTIVE_DATA", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go index 6efca088033..c69f8cf53da 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go @@ -15,7 +15,7 @@ import ( "strings" ) -// StorageUsage This is the storage usage information of a tenancy in Logging Analytics application +// StorageUsage This is the storage usage information of a tenancy in Logan Analytics application type StorageUsage struct { // This is the number of bytes of active data (non-archived) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go index 7490d53c02d..a6171bc1722 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go @@ -80,18 +80,6 @@ type StorageWorkRequest struct { // The type of customer encryption key. It can be archival, active or all. KeyType EncryptionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` - - // This is a list of logsets associated with this work request - LogSets *string `mandatory:"false" json:"logSets"` - - // This is the purpose of the operation associated with this work request - Purpose *string `mandatory:"false" json:"purpose"` - - // This is the query string applied on the operation associated with this work request - Query *string `mandatory:"false" json:"query"` - - // This is the flag to indicate if only new data has to be recalled in this work request - IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m StorageWorkRequest) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go index cd23dfb11d3..d14fefbbf9b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go @@ -80,18 +80,6 @@ type StorageWorkRequestSummary struct { // The type of customer encryption key. It can be archival, active or all. KeyType EncryptionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` - - // This is a list of logsets associated with this work request - LogSets *string `mandatory:"false" json:"logSets"` - - // This is the purpose of the operation associated with this work request - Purpose *string `mandatory:"false" json:"purpose"` - - // This is the query string applied on the operation associated with this work request - Query *string `mandatory:"false" json:"query"` - - // This is the flag to indicate if only new data has to be recalled in this work request - IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m StorageWorkRequestSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go deleted file mode 100644 index 0a4b7f82d5d..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "encoding/json" - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// TableColumn Result column that contains a table within each row. -type TableColumn struct { - - // Column display name - will be alias if column is renamed by queryStrng. - DisplayName *string `mandatory:"false" json:"displayName"` - - // If the column is a 'List of Values' column, this array contains the field values that are applicable to query results or all if no filters applied. - Values []FieldValue `mandatory:"false" json:"values"` - - // Identifies if all values in this column come from a pre-defined list of values. - IsListOfValues *bool `mandatory:"false" json:"isListOfValues"` - - // Identifies if this column allows multiple values to exist in a single row. - IsMultiValued *bool `mandatory:"false" json:"isMultiValued"` - - // A flag indicating whether or not the field is a case sensitive field. Only applies to string fields. - IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` - - // Identifies if this column can be used as a grouping field in any grouping command. - IsGroupable *bool `mandatory:"false" json:"isGroupable"` - - // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. - IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` - - // Same as displayName unless column renamed in which case this will hold the original display name for the column. - OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` - - // Internal identifier for the column. - InternalName *string `mandatory:"false" json:"internalName"` - - // Column descriptors for the table result. - Columns []AbstractColumn `mandatory:"false" json:"columns"` - - // Results data of the table. - Result []map[string]interface{} `mandatory:"false" json:"result"` - - // Subsystem column belongs to. - SubSystem SubSystemNameEnum `mandatory:"false" json:"subSystem,omitempty"` - - // Field denoting column data type. - ValueType ValueTypeEnum `mandatory:"false" json:"valueType,omitempty"` -} - -//GetDisplayName returns DisplayName -func (m TableColumn) GetDisplayName() *string { - return m.DisplayName -} - -//GetSubSystem returns SubSystem -func (m TableColumn) GetSubSystem() SubSystemNameEnum { - return m.SubSystem -} - -//GetValues returns Values -func (m TableColumn) GetValues() []FieldValue { - return m.Values -} - -//GetIsListOfValues returns IsListOfValues -func (m TableColumn) GetIsListOfValues() *bool { - return m.IsListOfValues -} - -//GetIsMultiValued returns IsMultiValued -func (m TableColumn) GetIsMultiValued() *bool { - return m.IsMultiValued -} - -//GetIsCaseSensitive returns IsCaseSensitive -func (m TableColumn) GetIsCaseSensitive() *bool { - return m.IsCaseSensitive -} - -//GetIsGroupable returns IsGroupable -func (m TableColumn) GetIsGroupable() *bool { - return m.IsGroupable -} - -//GetIsEvaluable returns IsEvaluable -func (m TableColumn) GetIsEvaluable() *bool { - return m.IsEvaluable -} - -//GetValueType returns ValueType -func (m TableColumn) GetValueType() ValueTypeEnum { - return m.ValueType -} - -//GetOriginalDisplayName returns OriginalDisplayName -func (m TableColumn) GetOriginalDisplayName() *string { - return m.OriginalDisplayName -} - -//GetInternalName returns InternalName -func (m TableColumn) GetInternalName() *string { - return m.InternalName -} - -func (m TableColumn) 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 TableColumn) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingSubSystemNameEnum(string(m.SubSystem)); !ok && m.SubSystem != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SubSystem: %s. Supported values are: %s.", m.SubSystem, strings.Join(GetSubSystemNameEnumStringValues(), ","))) - } - if _, ok := GetMappingValueTypeEnum(string(m.ValueType)); !ok && m.ValueType != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ValueType: %s. Supported values are: %s.", m.ValueType, strings.Join(GetValueTypeEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// MarshalJSON marshals to json representation -func (m TableColumn) MarshalJSON() (buff []byte, e error) { - type MarshalTypeTableColumn TableColumn - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeTableColumn - }{ - "TABLE_COLUMN", - (MarshalTypeTableColumn)(m), - } - - return json.Marshal(&s) -} - -// UnmarshalJSON unmarshals from json -func (m *TableColumn) UnmarshalJSON(data []byte) (e error) { - model := struct { - DisplayName *string `json:"displayName"` - SubSystem SubSystemNameEnum `json:"subSystem"` - Values []FieldValue `json:"values"` - IsListOfValues *bool `json:"isListOfValues"` - IsMultiValued *bool `json:"isMultiValued"` - IsCaseSensitive *bool `json:"isCaseSensitive"` - IsGroupable *bool `json:"isGroupable"` - IsEvaluable *bool `json:"isEvaluable"` - ValueType ValueTypeEnum `json:"valueType"` - OriginalDisplayName *string `json:"originalDisplayName"` - InternalName *string `json:"internalName"` - Columns []abstractcolumn `json:"columns"` - Result []map[string]interface{} `json:"result"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DisplayName = model.DisplayName - - m.SubSystem = model.SubSystem - - m.Values = make([]FieldValue, len(model.Values)) - for i, n := range model.Values { - m.Values[i] = n - } - - m.IsListOfValues = model.IsListOfValues - - m.IsMultiValued = model.IsMultiValued - - m.IsCaseSensitive = model.IsCaseSensitive - - m.IsGroupable = model.IsGroupable - - m.IsEvaluable = model.IsEvaluable - - m.ValueType = model.ValueType - - m.OriginalDisplayName = model.OriginalDisplayName - - m.InternalName = model.InternalName - - m.Columns = make([]AbstractColumn, len(model.Columns)) - for i, n := range model.Columns { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Columns[i] = nn.(AbstractColumn) - } else { - m.Columns[i] = nil - } - } - - m.Result = make([]map[string]interface{}, len(model.Result)) - for i, n := range model.Result { - m.Result[i] = n - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go index d53c6e6a6f5..666d8fa1ea0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go @@ -18,21 +18,24 @@ type TaskTypeEnum string // Set of constants representing the allowable values for TaskTypeEnum const ( - TaskTypeSavedSearch TaskTypeEnum = "SAVED_SEARCH" - TaskTypeAcceleration TaskTypeEnum = "ACCELERATION" - TaskTypePurge TaskTypeEnum = "PURGE" + TaskTypeSavedSearch TaskTypeEnum = "SAVED_SEARCH" + TaskTypeAcceleration TaskTypeEnum = "ACCELERATION" + TaskTypePurge TaskTypeEnum = "PURGE" + TaskTypeAccelerationMaintenance TaskTypeEnum = "ACCELERATION_MAINTENANCE" ) var mappingTaskTypeEnum = map[string]TaskTypeEnum{ - "SAVED_SEARCH": TaskTypeSavedSearch, - "ACCELERATION": TaskTypeAcceleration, - "PURGE": TaskTypePurge, + "SAVED_SEARCH": TaskTypeSavedSearch, + "ACCELERATION": TaskTypeAcceleration, + "PURGE": TaskTypePurge, + "ACCELERATION_MAINTENANCE": TaskTypeAccelerationMaintenance, } var mappingTaskTypeEnumLowerCase = map[string]TaskTypeEnum{ - "saved_search": TaskTypeSavedSearch, - "acceleration": TaskTypeAcceleration, - "purge": TaskTypePurge, + "saved_search": TaskTypeSavedSearch, + "acceleration": TaskTypeAcceleration, + "purge": TaskTypePurge, + "acceleration_maintenance": TaskTypeAccelerationMaintenance, } // GetTaskTypeEnumValues Enumerates the set of values for TaskTypeEnum @@ -50,6 +53,7 @@ func GetTaskTypeEnumStringValues() []string { "SAVED_SEARCH", "ACCELERATION", "PURGE", + "ACCELERATION_MAINTENANCE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go index 97ada724156..3df6a1ef263 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go @@ -55,13 +55,10 @@ type TrendColumn struct { // Sum across all column values for a given timestamp. TotalIntervalCounts []int64 `mandatory:"false" json:"totalIntervalCounts"` - // Sum of column values for a given timestamp after applying filter. TotalIntervalCountsAfterFilter []int64 `mandatory:"false" json:"totalIntervalCountsAfterFilter"` - // Number of aggregated groups for a given timestamp. IntervalGroupCounts []int64 `mandatory:"false" json:"intervalGroupCounts"` - // Number of aggregated groups for a given timestamp after applying filter. IntervalGroupCountsAfterFilter []int64 `mandatory:"false" json:"intervalGroupCountsAfterFilter"` // Subsystem column belongs to. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go index cc41f95287c..e183da9e858 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go @@ -15,7 +15,7 @@ import ( "strings" ) -// UpdateStorageDetails This is the input to update storage configuration of a tenancy in Logging Analytics application +// UpdateStorageDetails This is the input to update storage configuration of a tenancy in Logan Analytics application type UpdateStorageDetails struct { ArchivingConfiguration *ArchivingConfiguration `mandatory:"true" json:"archivingConfiguration"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go index 6797bd0dba1..afb462cb1c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go @@ -41,9 +41,6 @@ type UpsertLogAnalyticsAssociation struct { // The log group unique identifier. LogGroupId *string `mandatory:"false" json:"logGroupId"` - - // A list of association properties. - AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` } func (m UpsertLogAnalyticsAssociation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go index f267ddb6deb..93c34b93208 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go @@ -10,7 +10,6 @@ package loganalytics import ( - "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -107,12 +106,6 @@ type UpsertLogAnalyticsSourceDetails struct { // An array of categories to assign to the source. Specifying the name attribute for each category would suffice. // Oracle-defined category assignments cannot be removed. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` - - // An array of REST API endpoints for log collection. - Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` - - // A list of source properties. - SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m UpsertLogAnalyticsSourceDetails) String() string { @@ -130,171 +123,3 @@ func (m UpsertLogAnalyticsSourceDetails) ValidateEnumValue() (bool, error) { } return false, nil } - -// UnmarshalJSON unmarshals from json -func (m *UpsertLogAnalyticsSourceDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` - DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` - DatabaseCredential *string `json:"databaseCredential"` - ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` - IsForCloud *bool `json:"isForCloud"` - Labels []LogAnalyticsLabelView `json:"labels"` - MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` - Metrics []LogAnalyticsSourceMetric `json:"metrics"` - OobParsers []LogAnalyticsParser `json:"oobParsers"` - Parameters []LogAnalyticsParameter `json:"parameters"` - Patterns []LogAnalyticsSourcePattern `json:"patterns"` - Description *string `json:"description"` - DisplayName *string `json:"displayName"` - EditVersion *int64 `json:"editVersion"` - Functions []LogAnalyticsSourceFunction `json:"functions"` - SourceId *int64 `json:"sourceId"` - Name *string `json:"name"` - IsSecureContent *bool `json:"isSecureContent"` - IsSystem *bool `json:"isSystem"` - Parsers []LogAnalyticsParser `json:"parsers"` - RuleId *int64 `json:"ruleId"` - TypeName *string `json:"typeName"` - WarningConfig *int64 `json:"warningConfig"` - MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` - LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` - EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` - IsTimezoneOverride *bool `json:"isTimezoneOverride"` - UserParsers []LogAnalyticsParser `json:"userParsers"` - Categories []LogAnalyticsCategory `json:"categories"` - Endpoints []loganalyticsendpoint `json:"endpoints"` - SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) - for i, n := range model.LabelConditions { - m.LabelConditions[i] = n - } - - m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) - for i, n := range model.DataFilterDefinitions { - m.DataFilterDefinitions[i] = n - } - - m.DatabaseCredential = model.DatabaseCredential - - m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) - for i, n := range model.ExtendedFieldDefinitions { - m.ExtendedFieldDefinitions[i] = n - } - - m.IsForCloud = model.IsForCloud - - m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) - for i, n := range model.Labels { - m.Labels[i] = n - } - - m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) - for i, n := range model.MetricDefinitions { - m.MetricDefinitions[i] = n - } - - m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) - for i, n := range model.Metrics { - m.Metrics[i] = n - } - - m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) - for i, n := range model.OobParsers { - m.OobParsers[i] = n - } - - m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) - for i, n := range model.Parameters { - m.Parameters[i] = n - } - - m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) - for i, n := range model.Patterns { - m.Patterns[i] = n - } - - m.Description = model.Description - - m.DisplayName = model.DisplayName - - m.EditVersion = model.EditVersion - - m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) - for i, n := range model.Functions { - m.Functions[i] = n - } - - m.SourceId = model.SourceId - - m.Name = model.Name - - m.IsSecureContent = model.IsSecureContent - - m.IsSystem = model.IsSystem - - m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) - for i, n := range model.Parsers { - m.Parsers[i] = n - } - - m.RuleId = model.RuleId - - m.TypeName = model.TypeName - - m.WarningConfig = model.WarningConfig - - m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) - for i, n := range model.MetadataFields { - m.MetadataFields[i] = n - } - - m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) - for i, n := range model.LabelDefinitions { - m.LabelDefinitions[i] = n - } - - m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) - for i, n := range model.EntityTypes { - m.EntityTypes[i] = n - } - - m.IsTimezoneOverride = model.IsTimezoneOverride - - m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) - for i, n := range model.UserParsers { - m.UserParsers[i] = n - } - - m.Categories = make([]LogAnalyticsCategory, len(model.Categories)) - for i, n := range model.Categories { - m.Categories[i] = n - } - - m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) - for i, n := range model.Endpoints { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Endpoints[i] = nn.(LogAnalyticsEndpoint) - } else { - m.Endpoints[i] = nil - } - } - - m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) - for i, n := range model.SourceProperties { - m.SourceProperties[i] = n - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go deleted file mode 100644 index f6c85a04c50..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ValidateEndpointRequest wrapper for the ValidateEndpoint operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateEndpoint.go.html to see an example of how to use ValidateEndpointRequest. -type ValidateEndpointRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // Details of the REST endpoint configuration to validate. - ValidateEndpointDetails LogAnalyticsEndpoint `contributesTo:"body"` - - // 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 ValidateEndpointRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ValidateEndpointRequest) 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 ValidateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ValidateEndpointRequest) 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 ValidateEndpointRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ValidateEndpointResponse wrapper for the ValidateEndpoint operation -type ValidateEndpointResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ValidateEndpointResult instance - ValidateEndpointResult `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ValidateEndpointResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ValidateEndpointResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go deleted file mode 100644 index f5732c043df..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ValidateEndpointResult The result of the endpoint configuration validation -type ValidateEndpointResult struct { - - // The validation status. - Status *string `mandatory:"true" json:"status"` - - // The validation status description. - StatusDescription *string `mandatory:"false" json:"statusDescription"` - - // Validation results for each specified endpoint. - ValidationResults []EndpointResult `mandatory:"false" json:"validationResults"` -} - -func (m ValidateEndpointResult) 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 ValidateEndpointResult) 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/loganalytics/validate_label_condition_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go deleted file mode 100644 index 39ea49689e8..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ValidateLabelConditionDetails Required information needed to evaluate a source label condition. -type ValidateLabelConditionDetails struct { - - // String representation of the label condition to validate. - ConditionString *string `mandatory:"false" json:"conditionString"` - - ConditionBlock *ConditionBlock `mandatory:"false" json:"conditionBlock"` - - // An array of field name-value pairs to evaluate the label condition. - FieldValues []LogAnalyticsProperty `mandatory:"false" json:"fieldValues"` -} - -func (m ValidateLabelConditionDetails) 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 ValidateLabelConditionDetails) 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/loganalytics/validate_label_condition_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go deleted file mode 100644 index 47c10819873..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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 loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "net/http" - "strings" -) - -// ValidateLabelConditionRequest wrapper for the ValidateLabelCondition operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateLabelCondition.go.html to see an example of how to use ValidateLabelConditionRequest. -type ValidateLabelConditionRequest struct { - - // The Logging Analytics namespace used for the request. - NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - - // Details of source label condition to validate. - ValidateLabelConditionDetails `contributesTo:"body"` - - // 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 ValidateLabelConditionRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ValidateLabelConditionRequest) 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 ValidateLabelConditionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ValidateLabelConditionRequest) 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 ValidateLabelConditionRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ValidateLabelConditionResponse wrapper for the ValidateLabelCondition operation -type ValidateLabelConditionResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ValidateLabelConditionResult instance - ValidateLabelConditionResult `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ValidateLabelConditionResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ValidateLabelConditionResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go deleted file mode 100644 index c06a44a427f..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// LogAnalytics API -// -// The LogAnalytics API for the LogAnalytics service. -// - -package loganalytics - -import ( - "fmt" - "github.com/oracle/oci-go-sdk/v65/common" - "strings" -) - -// ValidateLabelConditionResult The result of the label condition validation -type ValidateLabelConditionResult struct { - - // String representation of the validated label condition. - ConditionString *string `mandatory:"true" json:"conditionString"` - - ConditionBlock *ConditionBlock `mandatory:"true" json:"conditionBlock"` - - // The validation status. - Status *string `mandatory:"true" json:"status"` - - // Field values against which the label condition was evaluated. - FieldValues []LogAnalyticsProperty `mandatory:"false" json:"fieldValues"` - - // The validation status description. - StatusDescription *string `mandatory:"false" json:"statusDescription"` - - // The result of evaluating the condition blocks against the specified field values. Either true or false. - EvaluationResult *bool `mandatory:"false" json:"evaluationResult"` -} - -func (m ValidateLabelConditionResult) 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 ValidateLabelConditionResult) 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/loganalytics/value_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go index 003aae9c81b..710765ac84c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go @@ -26,7 +26,6 @@ const ( ValueTypeInteger ValueTypeEnum = "INTEGER" ValueTypeTimestamp ValueTypeEnum = "TIMESTAMP" ValueTypeFacet ValueTypeEnum = "FACET" - ValueTypeTable ValueTypeEnum = "TABLE" ) var mappingValueTypeEnum = map[string]ValueTypeEnum{ @@ -38,7 +37,6 @@ var mappingValueTypeEnum = map[string]ValueTypeEnum{ "INTEGER": ValueTypeInteger, "TIMESTAMP": ValueTypeTimestamp, "FACET": ValueTypeFacet, - "TABLE": ValueTypeTable, } var mappingValueTypeEnumLowerCase = map[string]ValueTypeEnum{ @@ -50,7 +48,6 @@ var mappingValueTypeEnumLowerCase = map[string]ValueTypeEnum{ "integer": ValueTypeInteger, "timestamp": ValueTypeTimestamp, "facet": ValueTypeFacet, - "table": ValueTypeTable, } // GetValueTypeEnumValues Enumerates the set of values for ValueTypeEnum @@ -73,7 +70,6 @@ func GetValueTypeEnumStringValues() []string { "INTEGER", "TIMESTAMP", "FACET", - "TABLE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go deleted file mode 100644 index 64a20e8c360..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// ChangeNewsReportCompartmentDetails The information to be updated. -type ChangeNewsReportCompartmentDetails struct { - - // The OCID of the compartment into which the resource will be moved. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeNewsReportCompartmentDetails) 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 ChangeNewsReportCompartmentDetails) 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/change_news_report_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go deleted file mode 100644 index 7b4d57a25d6..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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" -) - -// ChangeNewsReportCompartmentRequest wrapper for the ChangeNewsReportCompartment operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ChangeNewsReportCompartment.go.html to see an example of how to use ChangeNewsReportCompartmentRequest. -type ChangeNewsReportCompartmentRequest struct { - - // Unique news report identifier. - NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` - - // The information to be updated. - ChangeNewsReportCompartmentDetails `contributesTo:"body"` - - // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` - // parameter to the value of the etag from a previous get, create, or update 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 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"` - - // A token that uniquely identifies a request that can be retried in case of a timeout or - // server error without risk of executing the same action again. Retry tokens expire after 24 - // hours. - // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting - // operations, such as a resource being deleted or purged from the system. - 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 ChangeNewsReportCompartmentRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ChangeNewsReportCompartmentRequest) 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 ChangeNewsReportCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ChangeNewsReportCompartmentRequest) 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 ChangeNewsReportCompartmentRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ChangeNewsReportCompartmentResponse wrapper for the ChangeNewsReportCompartment operation -type ChangeNewsReportCompartmentResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - 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 ChangeNewsReportCompartmentResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ChangeNewsReportCompartmentResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go deleted file mode 100644 index 4d3e7a05451..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// CreateNewsReportDetails The information about the news report to be created. -type CreateNewsReportDetails struct { - - // The news report name. - Name *string `mandatory:"true" json:"name"` - - // News report frequency. - NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` - - // The description of the news report. - Description *string `mandatory:"true" json:"description"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. - OnsTopicId *string `mandatory:"true" json:"onsTopicId"` - - // Compartment Identifier where the news report will be created. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` - - // Language of the news report. - Locale NewsLocaleEnum `mandatory:"true" json:"locale"` - - // 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"` - - // Defines if the news report will be enabled or disabled. - Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` -} - -func (m CreateNewsReportDetails) 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 CreateNewsReportDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) - } - if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) - } - - if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) - } - 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/create_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go deleted file mode 100644 index e115aa07c04..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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" -) - -// CreateNewsReportRequest wrapper for the CreateNewsReport operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateNewsReport.go.html to see an example of how to use CreateNewsReportRequest. -type CreateNewsReportRequest struct { - - // Details for the news report that will be created in Operations Insights. - CreateNewsReportDetails `contributesTo:"body"` - - // A token that uniquely identifies a request that can be retried in case of a timeout or - // server error without risk of executing the same action again. Retry tokens expire after 24 - // hours. - // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting - // operations, such as a resource being deleted or purged from the system. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // 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 - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateNewsReportRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateNewsReportRequest) 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 CreateNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateNewsReportRequest) 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 CreateNewsReportRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// CreateNewsReportResponse wrapper for the CreateNewsReport operation -type CreateNewsReportResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The NewsReport instance - NewsReport `presentIn:"body"` - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - 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"` - - // URI of the resource - Location *string `presentIn:"header" name:"location"` - - // URI of the resource - ContentLocation *string `presentIn:"header" name:"content-location"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` -} - -func (response CreateNewsReportResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateNewsReportResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go index 69eaddd71df..b339831bb16 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go @@ -27,7 +27,7 @@ type DataObjectColumnMetadata struct { // Category of the column. Category DataObjectColumnMetadataCategoryEnum `mandatory:"false" json:"category,omitempty"` - // Type name of a data object column. + // Type of a data object column. DataTypeName DataObjectColumnMetadataDataTypeNameEnum `mandatory:"false" json:"dataTypeName,omitempty"` // Display name of the column. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go deleted file mode 100644 index 8d2247bab1b..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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" -) - -// DeleteNewsReportRequest wrapper for the DeleteNewsReport operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DeleteNewsReport.go.html to see an example of how to use DeleteNewsReportRequest. -type DeleteNewsReportRequest struct { - - // Unique news report identifier. - NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` - - // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` - // parameter to the value of the etag from a previous get, create, or update 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 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 - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteNewsReportRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteNewsReportRequest) 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 DeleteNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteNewsReportRequest) 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 DeleteNewsReportRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// DeleteNewsReportResponse wrapper for the DeleteNewsReport operation -type DeleteNewsReportResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - 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 DeleteNewsReportResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteNewsReportResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go index 13c1c427eae..68bf81acbfe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go @@ -37,9 +37,6 @@ type ExadataInsightResourceForecastTrendSummary struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` - - // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. - SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m ExadataInsightResourceForecastTrendSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go deleted file mode 100644 index 9a79e5382f5..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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" -) - -// GetNewsReportRequest wrapper for the GetNewsReport operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/GetNewsReport.go.html to see an example of how to use GetNewsReportRequest. -type GetNewsReportRequest struct { - - // Unique news report identifier. - NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` - - // 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 - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetNewsReportRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetNewsReportRequest) 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 GetNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetNewsReportRequest) 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 GetNewsReportRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// GetNewsReportResponse wrapper for the GetNewsReport operation -type GetNewsReportResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The NewsReport instance - NewsReport `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 GetNewsReportResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetNewsReportResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go deleted file mode 100644 index 8234fbe20fe..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// IngestMySqlSqlTextDetails Collection of SQL Text Entries -type IngestMySqlSqlTextDetails struct { - - // List of SQL Text Entries. - Items []MySqlSqlText `mandatory:"false" json:"items"` -} - -func (m IngestMySqlSqlTextDetails) 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 IngestMySqlSqlTextDetails) 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/ingest_my_sql_sql_text_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go deleted file mode 100644 index f85a432ee7e..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// IngestMySqlSqlTextResponseDetails The response object returned from IngestMySqlSqlTextDetails operation. -type IngestMySqlSqlTextResponseDetails struct { - - // Success message returned as a result of the upload. - Message *string `mandatory:"true" json:"message"` -} - -func (m IngestMySqlSqlTextResponseDetails) 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 IngestMySqlSqlTextResponseDetails) 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/list_news_reports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go deleted file mode 100644 index 3dd54f89301..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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" -) - -// ListNewsReportsRequest wrapper for the ListNewsReports operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ListNewsReports.go.html to see an example of how to use ListNewsReportsRequest. -type ListNewsReportsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // Unique Operations Insights news report identifier - NewsReportId *string `mandatory:"false" contributesTo:"query" name:"newsReportId"` - - // Resource Status - Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` - - // Lifecycle states - LifecycleState []LifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` - - // 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"` - - // 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"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). - SortOrder ListNewsReportsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // News report list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. - SortBy ListNewsReportsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // A flag to search all resources within a given compartment and all sub-compartments. - CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` - - // 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 - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNewsReportsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNewsReportsRequest) 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 ListNewsReportsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNewsReportsRequest) 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 ListNewsReportsRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - 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(), ","))) - } - } - - for _, val := range request.LifecycleState { - if _, ok := GetMappingLifecycleStateEnum(string(val)); !ok && val != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", val, strings.Join(GetLifecycleStateEnumStringValues(), ","))) - } - } - - if _, ok := GetMappingListNewsReportsSortOrderEnum(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(GetListNewsReportsSortOrderEnumStringValues(), ","))) - } - if _, ok := GetMappingListNewsReportsSortByEnum(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(GetListNewsReportsSortByEnumStringValues(), ","))) - } - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// ListNewsReportsResponse wrapper for the ListNewsReports operation -type ListNewsReportsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of NewsReportCollection instances - NewsReportCollection `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. The total number of items in the result. - OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` - - // 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 ListNewsReportsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNewsReportsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNewsReportsSortOrderEnum Enum with underlying type: string -type ListNewsReportsSortOrderEnum string - -// Set of constants representing the allowable values for ListNewsReportsSortOrderEnum -const ( - ListNewsReportsSortOrderAsc ListNewsReportsSortOrderEnum = "ASC" - ListNewsReportsSortOrderDesc ListNewsReportsSortOrderEnum = "DESC" -) - -var mappingListNewsReportsSortOrderEnum = map[string]ListNewsReportsSortOrderEnum{ - "ASC": ListNewsReportsSortOrderAsc, - "DESC": ListNewsReportsSortOrderDesc, -} - -var mappingListNewsReportsSortOrderEnumLowerCase = map[string]ListNewsReportsSortOrderEnum{ - "asc": ListNewsReportsSortOrderAsc, - "desc": ListNewsReportsSortOrderDesc, -} - -// GetListNewsReportsSortOrderEnumValues Enumerates the set of values for ListNewsReportsSortOrderEnum -func GetListNewsReportsSortOrderEnumValues() []ListNewsReportsSortOrderEnum { - values := make([]ListNewsReportsSortOrderEnum, 0) - for _, v := range mappingListNewsReportsSortOrderEnum { - values = append(values, v) - } - return values -} - -// GetListNewsReportsSortOrderEnumStringValues Enumerates the set of values in String for ListNewsReportsSortOrderEnum -func GetListNewsReportsSortOrderEnumStringValues() []string { - return []string{ - "ASC", - "DESC", - } -} - -// GetMappingListNewsReportsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListNewsReportsSortOrderEnum(val string) (ListNewsReportsSortOrderEnum, bool) { - enum, ok := mappingListNewsReportsSortOrderEnumLowerCase[strings.ToLower(val)] - return enum, ok -} - -// ListNewsReportsSortByEnum Enum with underlying type: string -type ListNewsReportsSortByEnum string - -// Set of constants representing the allowable values for ListNewsReportsSortByEnum -const ( - ListNewsReportsSortByName ListNewsReportsSortByEnum = "name" - ListNewsReportsSortByNewsfrequency ListNewsReportsSortByEnum = "newsFrequency" -) - -var mappingListNewsReportsSortByEnum = map[string]ListNewsReportsSortByEnum{ - "name": ListNewsReportsSortByName, - "newsFrequency": ListNewsReportsSortByNewsfrequency, -} - -var mappingListNewsReportsSortByEnumLowerCase = map[string]ListNewsReportsSortByEnum{ - "name": ListNewsReportsSortByName, - "newsfrequency": ListNewsReportsSortByNewsfrequency, -} - -// GetListNewsReportsSortByEnumValues Enumerates the set of values for ListNewsReportsSortByEnum -func GetListNewsReportsSortByEnumValues() []ListNewsReportsSortByEnum { - values := make([]ListNewsReportsSortByEnum, 0) - for _, v := range mappingListNewsReportsSortByEnum { - values = append(values, v) - } - return values -} - -// GetListNewsReportsSortByEnumStringValues Enumerates the set of values in String for ListNewsReportsSortByEnum -func GetListNewsReportsSortByEnumStringValues() []string { - return []string{ - "name", - "newsFrequency", - } -} - -// GetMappingListNewsReportsSortByEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListNewsReportsSortByEnum(val string) (ListNewsReportsSortByEnum, bool) { - enum, ok := mappingListNewsReportsSortByEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go deleted file mode 100644 index 2f3c8ad8d35..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// MySqlSqlText MySql SQL Text type object. -type MySqlSqlText struct { - - // digest - // Example: `"323k3k99ua09a90adf"` - Digest *string `mandatory:"true" json:"digest"` - - // Collection timestamp. - // Example: `"2020-05-06T00:00:00.000Z"` - TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` - - // The normalized statement string. - // Example: `"SELECT username,profile,default_tablespace,temporary_tablespace FROM dba_users"` - DigestText *string `mandatory:"true" json:"digestText"` - - // Name of Database Schema. - // Example: `"performance_schema"` - SchemaName *string `mandatory:"false" json:"schemaName"` - - // SQL event name - // Example: `"SELECT"` - CommandType *string `mandatory:"false" json:"commandType"` -} - -func (m MySqlSqlText) 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 MySqlSqlText) 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/news_content_types.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go deleted file mode 100644 index 78fcd966873..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// NewsContentTypes Content types that the news report can handle. -type NewsContentTypes struct { - - // Supported resources for capacity planning content type. - CapacityPlanningResources []NewsContentTypesResourceEnum `mandatory:"true" json:"capacityPlanningResources"` -} - -func (m NewsContentTypes) 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 NewsContentTypes) 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/news_content_types_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go deleted file mode 100644 index be174c37bc4..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). -// - -package opsi - -import ( - "strings" -) - -// NewsContentTypesResourceEnum Enum with underlying type: string -type NewsContentTypesResourceEnum string - -// Set of constants representing the allowable values for NewsContentTypesResourceEnum -const ( - NewsContentTypesResourceHost NewsContentTypesResourceEnum = "HOST" - NewsContentTypesResourceDatabase NewsContentTypesResourceEnum = "DATABASE" - NewsContentTypesResourceExadata NewsContentTypesResourceEnum = "EXADATA" -) - -var mappingNewsContentTypesResourceEnum = map[string]NewsContentTypesResourceEnum{ - "HOST": NewsContentTypesResourceHost, - "DATABASE": NewsContentTypesResourceDatabase, - "EXADATA": NewsContentTypesResourceExadata, -} - -var mappingNewsContentTypesResourceEnumLowerCase = map[string]NewsContentTypesResourceEnum{ - "host": NewsContentTypesResourceHost, - "database": NewsContentTypesResourceDatabase, - "exadata": NewsContentTypesResourceExadata, -} - -// GetNewsContentTypesResourceEnumValues Enumerates the set of values for NewsContentTypesResourceEnum -func GetNewsContentTypesResourceEnumValues() []NewsContentTypesResourceEnum { - values := make([]NewsContentTypesResourceEnum, 0) - for _, v := range mappingNewsContentTypesResourceEnum { - values = append(values, v) - } - return values -} - -// GetNewsContentTypesResourceEnumStringValues Enumerates the set of values in String for NewsContentTypesResourceEnum -func GetNewsContentTypesResourceEnumStringValues() []string { - return []string{ - "HOST", - "DATABASE", - "EXADATA", - } -} - -// GetMappingNewsContentTypesResourceEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingNewsContentTypesResourceEnum(val string) (NewsContentTypesResourceEnum, bool) { - enum, ok := mappingNewsContentTypesResourceEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go deleted file mode 100644 index e93876dcaac..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). -// - -package opsi - -import ( - "strings" -) - -// NewsFrequencyEnum Enum with underlying type: string -type NewsFrequencyEnum string - -// Set of constants representing the allowable values for NewsFrequencyEnum -const ( - NewsFrequencyWeekly NewsFrequencyEnum = "WEEKLY" -) - -var mappingNewsFrequencyEnum = map[string]NewsFrequencyEnum{ - "WEEKLY": NewsFrequencyWeekly, -} - -var mappingNewsFrequencyEnumLowerCase = map[string]NewsFrequencyEnum{ - "weekly": NewsFrequencyWeekly, -} - -// GetNewsFrequencyEnumValues Enumerates the set of values for NewsFrequencyEnum -func GetNewsFrequencyEnumValues() []NewsFrequencyEnum { - values := make([]NewsFrequencyEnum, 0) - for _, v := range mappingNewsFrequencyEnum { - values = append(values, v) - } - return values -} - -// GetNewsFrequencyEnumStringValues Enumerates the set of values in String for NewsFrequencyEnum -func GetNewsFrequencyEnumStringValues() []string { - return []string{ - "WEEKLY", - } -} - -// GetMappingNewsFrequencyEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingNewsFrequencyEnum(val string) (NewsFrequencyEnum, bool) { - enum, ok := mappingNewsFrequencyEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go deleted file mode 100644 index 960f1827ad1..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). -// - -package opsi - -import ( - "strings" -) - -// NewsLocaleEnum Enum with underlying type: string -type NewsLocaleEnum string - -// Set of constants representing the allowable values for NewsLocaleEnum -const ( - NewsLocaleEn NewsLocaleEnum = "EN" -) - -var mappingNewsLocaleEnum = map[string]NewsLocaleEnum{ - "EN": NewsLocaleEn, -} - -var mappingNewsLocaleEnumLowerCase = map[string]NewsLocaleEnum{ - "en": NewsLocaleEn, -} - -// GetNewsLocaleEnumValues Enumerates the set of values for NewsLocaleEnum -func GetNewsLocaleEnumValues() []NewsLocaleEnum { - values := make([]NewsLocaleEnum, 0) - for _, v := range mappingNewsLocaleEnum { - values = append(values, v) - } - return values -} - -// GetNewsLocaleEnumStringValues Enumerates the set of values in String for NewsLocaleEnum -func GetNewsLocaleEnumStringValues() []string { - return []string{ - "EN", - } -} - -// GetMappingNewsLocaleEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingNewsLocaleEnum(val string) (NewsLocaleEnum, bool) { - enum, ok := mappingNewsLocaleEnumLowerCase[strings.ToLower(val)] - return enum, ok -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go deleted file mode 100644 index 9b2d6e999cf..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// NewsReport News report resource. -type NewsReport struct { - - // News report frequency. - NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` - - ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. - OnsTopicId *string `mandatory:"true" json:"onsTopicId"` - - // Language of the news report. - Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` - - // The description of the news report. - Description *string `mandatory:"false" json:"description"` - - // The news report name. - Name *string `mandatory:"false" json:"name"` - - // 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"` - - // Indicates the status of a news report in Operations Insights. - Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` - - // The time the the news report was first enabled. An RFC3339 formatted datetime string. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The time the news report was updated. An RFC3339 formatted datetime string. - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // The current state of the news report. - LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // 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"` -} - -func (m NewsReport) 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 NewsReport) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) - } - - if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) - } - if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) - } - if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) - } - 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/news_report_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go deleted file mode 100644 index b6839f355d7..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// NewsReportCollection Collection of news reports summary objects. -type NewsReportCollection struct { - - // Array of news reports summary objects. - Items []NewsReportSummary `mandatory:"true" json:"items"` -} - -func (m NewsReportCollection) 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 NewsReportCollection) 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/news_report_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go deleted file mode 100644 index c41f54fb49a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// NewsReportSummary Summary of a news report resource. -type NewsReportSummary struct { - - // News report frequency. - NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` - - ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Language of the news report. - Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` - - // The description of the news report. - Description *string `mandatory:"false" json:"description"` - - // The news report name. - Name *string `mandatory:"false" json:"name"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. - OnsTopicId *string `mandatory:"false" json:"onsTopicId"` - - // 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"` - - // Indicates the status of a news report in Operations Insights. - Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` - - // The time the the news report was first enabled. An RFC3339 formatted datetime string. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The time the news report was updated. An RFC3339 formatted datetime string. - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // The current state of the news report. - LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // 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"` -} - -func (m NewsReportSummary) 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 NewsReportSummary) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) - } - - if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) - } - if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) - } - if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) - } - 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/news_reports.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go deleted file mode 100644 index d95906b111a..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// NewsReports Logical grouping used for Operations Insights news reports related operations. -type NewsReports struct { - - // News report object. - NewsReports *interface{} `mandatory:"false" json:"newsReports"` -} - -func (m NewsReports) 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 NewsReports) 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 4ddc83267a5..d302d3c32b6 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 @@ -463,69 +463,6 @@ func (client OperationsInsightsClient) changeHostInsightCompartment(ctx context. return response, err } -// ChangeNewsReportCompartment Moves a news report resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ChangeNewsReportCompartment.go.html to see an example of how to use ChangeNewsReportCompartment API. -// A default retry strategy applies to this operation ChangeNewsReportCompartment() -func (client OperationsInsightsClient) ChangeNewsReportCompartment(ctx context.Context, request ChangeNewsReportCompartmentRequest) (response ChangeNewsReportCompartmentResponse, 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.changeNewsReportCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeNewsReportCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeNewsReportCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeNewsReportCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeNewsReportCompartmentResponse") - } - return -} - -// changeNewsReportCompartment implements the OCIOperation interface (enables retrying operations) -func (client OperationsInsightsClient) changeNewsReportCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/newsReports/{newsReportId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ChangeNewsReportCompartmentResponse - 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/NewsReports/ChangeNewsReportCompartment" - err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeNewsReportCompartment", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // ChangeOperationsInsightsPrivateEndpointCompartment Moves a private endpoint from one compartment to another. When provided, If-Match is checked against ETag values of the resource. // // See also @@ -1031,69 +968,6 @@ func (client OperationsInsightsClient) createHostInsight(ctx context.Context, re return response, err } -// CreateNewsReport Create a news report in Operations Insights. The report will be enabled in Operations Insights. Insights will be emailed as per selected frequency. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateNewsReport.go.html to see an example of how to use CreateNewsReport API. -// A default retry strategy applies to this operation CreateNewsReport() -func (client OperationsInsightsClient) CreateNewsReport(ctx context.Context, request CreateNewsReportRequest) (response CreateNewsReportResponse, 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.createNewsReport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateNewsReportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateNewsReportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateNewsReportResponse") - } - return -} - -// createNewsReport implements the OCIOperation interface (enables retrying operations) -func (client OperationsInsightsClient) createNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/newsReports", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateNewsReportResponse - 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/NewsReports/CreateNewsReport" - err = common.PostProcessServiceError(err, "OperationsInsights", "CreateNewsReport", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // CreateOperationsInsightsPrivateEndpoint Create a private endpoint resource for the tenant in Operations Insights. // This resource will be created in customer compartment. // @@ -1640,64 +1514,6 @@ func (client OperationsInsightsClient) deleteHostInsight(ctx context.Context, re return response, err } -// DeleteNewsReport Deletes a news report. The news report will be deleted and cannot be enabled again. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DeleteNewsReport.go.html to see an example of how to use DeleteNewsReport API. -// A default retry strategy applies to this operation DeleteNewsReport() -func (client OperationsInsightsClient) DeleteNewsReport(ctx context.Context, request DeleteNewsReportRequest) (response DeleteNewsReportResponse, 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.deleteNewsReport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteNewsReportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteNewsReportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteNewsReportResponse") - } - return -} - -// deleteNewsReport implements the OCIOperation interface (enables retrying operations) -func (client OperationsInsightsClient) deleteNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteNewsReportResponse - 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/NewsReports/DeleteNewsReport" - err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteNewsReport", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // DeleteOperationsInsightsPrivateEndpoint Deletes a private endpoint. // // See also @@ -2964,64 +2780,6 @@ func (client OperationsInsightsClient) getHostInsight(ctx context.Context, reque return response, err } -// GetNewsReport Gets details of a news report. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/GetNewsReport.go.html to see an example of how to use GetNewsReport API. -// A default retry strategy applies to this operation GetNewsReport() -func (client OperationsInsightsClient) GetNewsReport(ctx context.Context, request GetNewsReportRequest) (response GetNewsReportResponse, 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.getNewsReport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetNewsReportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetNewsReportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetNewsReportResponse") - } - return -} - -// getNewsReport implements the OCIOperation interface (enables retrying operations) -func (client OperationsInsightsClient) getNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetNewsReportResponse - 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/NewsReports/GetNewsReport" - err = common.PostProcessServiceError(err, "OperationsInsights", "GetNewsReport", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // GetOperationsInsightsPrivateEndpoint Gets the details of the specified private endpoint. // // See also @@ -5118,64 +4876,6 @@ func (client OperationsInsightsClient) listImportableEnterpriseManagerEntities(c return response, err } -// ListNewsReports Gets a list of news reports based on the query parameters specified. Either compartmentId or id query parameter must be specified. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ListNewsReports.go.html to see an example of how to use ListNewsReports API. -// A default retry strategy applies to this operation ListNewsReports() -func (client OperationsInsightsClient) ListNewsReports(ctx context.Context, request ListNewsReportsRequest) (response ListNewsReportsResponse, 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.listNewsReports, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListNewsReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListNewsReportsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListNewsReportsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListNewsReportsResponse") - } - return -} - -// listNewsReports implements the OCIOperation interface (enables retrying operations) -func (client OperationsInsightsClient) listNewsReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/newsReports", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListNewsReportsResponse - 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/NewsReport/ListNewsReports" - err = common.PostProcessServiceError(err, "OperationsInsights", "ListNewsReports", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // ListOperationsInsightsPrivateEndpoints Gets a list of Operation Insights private endpoints. // // See also @@ -9214,64 +8914,6 @@ func (client OperationsInsightsClient) updateHostInsight(ctx context.Context, re return response, err } -// UpdateNewsReport Updates the configuration of a news report. -// -// See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/UpdateNewsReport.go.html to see an example of how to use UpdateNewsReport API. -// A default retry strategy applies to this operation UpdateNewsReport() -func (client OperationsInsightsClient) UpdateNewsReport(ctx context.Context, request UpdateNewsReportRequest) (response UpdateNewsReportResponse, 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.updateNewsReport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateNewsReportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateNewsReportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateNewsReportResponse") - } - return -} - -// updateNewsReport implements the OCIOperation interface (enables retrying operations) -func (client OperationsInsightsClient) updateNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateNewsReportResponse - 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/NewsReports/UpdateNewsReport" - err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateNewsReport", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - // UpdateOperationsInsightsPrivateEndpoint Updates one or more attributes of the specified private endpoint. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go index 68e23c8b096..deacbed0bc6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go @@ -23,7 +23,7 @@ type QueryDataObjectResultSetColumnMetadata struct { // Name of the column in a data object query result set. Name *string `mandatory:"true" json:"name"` - // Type name of the column in a data object query result set. + // Type of the column in a data object query result set. DataTypeName QueryDataObjectResultSetColumnMetadataDataTypeNameEnum `mandatory:"false" json:"dataTypeName,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go index 5d0900f351d..1dc8b3a1fa8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go @@ -18,7 +18,7 @@ import ( ) // ResourceFilters Information to filter the actual target resources in an operation. -// e.g: While querying a DATABASE_INSIGHTS_DATA_OBJECT using /opsiDataObjects/actions/queryData API, +// e.g: While quering a DATABASE_INSIGHTS_DATA_OBJECT using /opsiDataObjects/{opsiDataObjectidentifier}/actions/queryData API, // if resourceFilters is set with valid value for definedTagEquals field, only data of the database insights // resources for which the specified freeform tags exist will be considered for the actual query scope. type ResourceFilters struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go index 9171a199747..f1daf7c80f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go @@ -49,9 +49,6 @@ type SummarizeDatabaseInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` - - // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. - SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeDatabaseInsightResourceForecastTrendAggregation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go index 2f44057e1ea..0d4ad61126b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go @@ -46,9 +46,6 @@ type SummarizeExadataInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` - - // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. - SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeExadataInsightResourceForecastTrendAggregation) String() string { 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 c97295ee891..26202e9cf89 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 @@ -46,9 +46,6 @@ type SummarizeHostInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` - - // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. - SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeHostInsightResourceForecastTrendAggregation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go deleted file mode 100644 index ab57fdda75c..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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. - -// Operations Insights API -// -// Use the Operations 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 Operations 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" -) - -// UpdateNewsReportDetails The information about the news report to be updated. -type UpdateNewsReportDetails struct { - - // Defines if the news report will be enabled or disabled. - Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` - - // News report frequency. - NewsFrequency NewsFrequencyEnum `mandatory:"false" json:"newsFrequency,omitempty"` - - // Language of the news report. - Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` - - ContentTypes *NewsContentTypes `mandatory:"false" json:"contentTypes"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. - OnsTopicId *string `mandatory:"false" json:"onsTopicId"` - - // 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 UpdateNewsReportDetails) 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 UpdateNewsReportDetails) ValidateEnumValue() (bool, error) { - errMessage := []string{} - - if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) - } - if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) - } - if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) - } - 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/update_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go deleted file mode 100644 index dcd74e69fed..00000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2023, 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" -) - -// UpdateNewsReportRequest wrapper for the UpdateNewsReport operation -// -// # See also -// -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/UpdateNewsReport.go.html to see an example of how to use UpdateNewsReportRequest. -type UpdateNewsReportRequest struct { - - // Unique news report identifier. - NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` - - // The configuration to be updated. - UpdateNewsReportDetails `contributesTo:"body"` - - // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` - // parameter to the value of the etag from a previous get, create, or update 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 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 - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateNewsReportRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateNewsReportRequest) 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 UpdateNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateNewsReportRequest) 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 UpdateNewsReportRequest) ValidateEnumValue() (bool, error) { - errMessage := []string{} - if len(errMessage) > 0 { - return true, fmt.Errorf(strings.Join(errMessage, "\n")) - } - return false, nil -} - -// UpdateNewsReportResponse wrapper for the UpdateNewsReport operation -type UpdateNewsReportResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - 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 UpdateNewsReportResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateNewsReportResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/modules.txt b/vendor/modules.txt index df2e5b21a43..ac48a82781d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -248,7 +248,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.45.0 => ./vendor/github.com/oracle/oci-go-sdk +# github.com/oracle/oci-go-sdk/v65 v65.45.0 ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection From 584c1695790e26b2e1a6365f5aaac72920d9e20b Mon Sep 17 00:00:00 2001 From: Terraform Team Automation Date: Fri, 28 Jul 2023 00:40:26 +0000 Subject: [PATCH 15/25] Added - Support for OPSI News Reports --- examples/opsi/news_report/news_report.tf | 103 +++ .../integrationtest/opsi_news_report_test.go | 395 +++++++++++ internal/service/opsi/opsi_export.go | 14 + .../opsi/opsi_news_report_data_source.go | 123 ++++ .../service/opsi/opsi_news_report_resource.go | 669 ++++++++++++++++++ .../opsi/opsi_news_reports_data_source.go | 176 +++++ internal/service/opsi/register_datasource.go | 2 + internal/service/opsi/register_resource.go | 1 + website/docs/d/opsi_news_report.html.markdown | 52 ++ .../docs/d/opsi_news_reports.html.markdown | 68 ++ .../guides/resource_discovery.html.markdown | 1 + .../docs/r/opsi_exadata_insight.html.markdown | 1 + website/docs/r/opsi_news_report.html.markdown | 96 +++ 13 files changed, 1701 insertions(+) create mode 100644 examples/opsi/news_report/news_report.tf create mode 100644 internal/integrationtest/opsi_news_report_test.go create mode 100644 internal/service/opsi/opsi_news_report_data_source.go create mode 100644 internal/service/opsi/opsi_news_report_resource.go create mode 100644 internal/service/opsi/opsi_news_reports_data_source.go create mode 100644 website/docs/d/opsi_news_report.html.markdown create mode 100644 website/docs/d/opsi_news_reports.html.markdown create mode 100644 website/docs/r/opsi_news_report.html.markdown diff --git a/examples/opsi/news_report/news_report.tf b/examples/opsi/news_report/news_report.tf new file mode 100644 index 00000000000..a782f6cb2de --- /dev/null +++ b/examples/opsi/news_report/news_report.tf @@ -0,0 +1,103 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + + +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "region" {} +variable "topic_id" {} +variable "compartment_ocid" {} + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} + +resource "oci_identity_tag_namespace" "tag-namespace1" { + compartment_id = var.tenancy_ocid + description = "example tag namespace" + name = "examples-tag-namespace-all" + is_retired = false +} + +resource "oci_identity_tag" "tag1" { + description = "example tag" + name = "example-tag" + tag_namespace_id = oci_identity_tag_namespace.tag-namespace1.id + is_cost_tracking = false + is_retired = false +} + +variable "news_frequency" { + default = "WEEKLY" +} + +variable "news_locale" { + default = "EN" +} + +variable "news_report_name" { + default = "Example_Report" +} + +variable "news_report_description" { + default = "Example Report Description" +} + +variable "cp_resources" { + default = [ "HOST","DATABASE","EXADATA" ] +} + + +variable "news_report_defined_tags_value" { + default = "value" +} + +variable "news_report_freeform_tags" { + default = { "bar-key" = "value" } +} + +variable "resource_status" { + default = "ENABLED" +} + +// To Create a News Report +resource "oci_opsi_news_report" "test_news_report" { + compartment_id = var.compartment_ocid + locale = var.news_locale + name = var.news_report_name + description = var.news_report_description + news_frequency = var.news_frequency + content_types { + capacity_planning_resources = var.cp_resources + } + ons_topic_id = var.topic_id + freeform_tags = var.news_report_freeform_tags + status = var.resource_status +} + +variable "news_report_state" { + default = ["ACTIVE"] +} + +variable "news_report_status" { + default = ["ENABLED"] +} + +// List news reports +data "oci_opsi_news_reports" "test_news_reports" { + compartment_id = var.compartment_ocid + state = var.news_report_state + status = var.news_report_status +} + +// Get a news report +data "oci_opsi_news_report" "test_news_report" { + news_report_id = oci_opsi_news_report.test_news_report.id +} + diff --git a/internal/integrationtest/opsi_news_report_test.go b/internal/integrationtest/opsi_news_report_test.go new file mode 100644 index 00000000000..1cadbaffa61 --- /dev/null +++ b/internal/integrationtest/opsi_news_report_test.go @@ -0,0 +1,395 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "context" + "fmt" + "strconv" + "testing" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/oracle/oci-go-sdk/v65/common" + oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + tf_client "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" + "github.com/oracle/terraform-provider-oci/internal/tfresource" + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + OpsiNewsReportRequiredOnlyResource = OpsiNewsReportResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Required, acctest.Create, OpsiNewsReportRepresentation) + + OpsiNewsReportResourceConfig = OpsiNewsReportResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Optional, acctest.Update, OpsiNewsReportRepresentation) + + OpsiNewsReportSingularDataSourceRepresentation = map[string]interface{}{ + "news_report_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_opsi_news_report.test_news_report.id}`}, + } + + OpsiNewsReportDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "compartment_id_in_subtree": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "news_report_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_opsi_news_report.test_news_report.id}`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: []string{`ACTIVE`}}, + "status": acctest.Representation{RepType: acctest.Optional, Create: []string{`ENABLED`}, Update: []string{`DISABLED`}}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: OpsiNewsReportDataSourceFilterRepresentation}, + } + + OpsiNewsReportDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_opsi_news_report.test_news_report.id}`}}, + } + + OpsiNewsReportRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "content_types": acctest.RepresentationGroup{RepType: acctest.Required, Group: OpsiNewsReportContentTypesRepresentation}, + "description": acctest.Representation{RepType: acctest.Required, Create: `TF_TEST_REPORT`}, + "locale": acctest.Representation{RepType: acctest.Required, Create: `EN`}, + "name": acctest.Representation{RepType: acctest.Required, Create: `TF_TEST_REPORT`}, + "news_frequency": acctest.Representation{RepType: acctest.Required, Create: `WEEKLY`}, + "ons_topic_id": acctest.Representation{RepType: acctest.Required, Create: `${var.topic_id}`}, + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"bar-key": "value"}, Update: map[string]string{"Department": "Accounting"}}, + "status": acctest.Representation{RepType: acctest.Optional, Create: `ENABLED`, Update: `DISABLED`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreChangesNewsReportRepresentation}, + } + + OpsiNewsReportContentTypesRepresentation = map[string]interface{}{ + "capacity_planning_resources": acctest.Representation{RepType: acctest.Required, Create: []string{`HOST`, `DATABASE`}, Update: []string{`HOST`, `DATABASE`, `EXADATA`}}, + } + + ignoreChangesNewsReportRepresentation = map[string]interface{}{ + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`}}, + } + + OpsiNewsReportResourceDependencies = DefinedTagsDependencies +) + +// issue-routing-tag: opsi/controlPlane +func TestOpsiNewsReportResource_basic(t *testing.T) { + httpreplay.SetScenario("TestOpsiNewsReportResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + compartmentIdU := utils.GetEnvSettingWithDefault("compartment_id_for_update", compartmentId) + compartmentIdUVariableStr := fmt.Sprintf("variable \"compartment_id_for_update\" { default = \"%s\" }\n", compartmentIdU) + + onsTopicId := utils.GetEnvSettingWithBlankDefault("topic_id") + if onsTopicId == "" { + t.Skip("Provision topic and set topic id to run this test") + } + topicIdVariableStr := fmt.Sprintf("variable \"topic_id\" { default = \"%s\" }\n", onsTopicId) + + resourceName := "oci_opsi_news_report.test_news_report" + datasourceName := "data.oci_opsi_news_reports.test_news_reports" + singularDatasourceName := "data.oci_opsi_news_report.test_news_report" + + var resId, resId2 string + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+topicIdVariableStr+OpsiNewsReportResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Optional, acctest.Create, OpsiNewsReportRepresentation), "opsi", "newsReport", t) + + acctest.ResourceTest(t, testAccCheckOpsiNewsReportDestroy, []resource.TestStep{ + //Step - Verify Create with Required + { + Config: config + compartmentIdVariableStr + topicIdVariableStr + OpsiNewsReportResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Required, acctest.Create, OpsiNewsReportRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "content_types.#", "1"), + resource.TestCheckResourceAttr(resourceName, "content_types.0.capacity_planning_resources.#", "2"), + resource.TestCheckResourceAttr(resourceName, "description", "TF_TEST_REPORT"), + //resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "locale", "EN"), + resource.TestCheckResourceAttr(resourceName, "name", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(resourceName, "news_frequency", "WEEKLY"), + resource.TestCheckResourceAttrSet(resourceName, "ons_topic_id"), + //resource.TestCheckResourceAttr(resourceName, "status", "ENABLED"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + if isEnableExportCompartment, _ := strconv.ParseBool(utils.GetEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil { + return errExport + } + } + return err + }, + ), + }, + + // delete before next Create + { + Config: config + compartmentIdVariableStr + OpsiNewsReportResourceDependencies, + }, + + //Step - Verify Create with Optionals + { + Config: config + compartmentIdVariableStr + topicIdVariableStr + OpsiNewsReportResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Optional, acctest.Create, OpsiNewsReportRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "content_types.#", "1"), + resource.TestCheckResourceAttr(resourceName, "content_types.0.capacity_planning_resources.#", "2"), + resource.TestCheckResourceAttr(resourceName, "description", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "locale", "EN"), + resource.TestCheckResourceAttr(resourceName, "name", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(resourceName, "news_frequency", "WEEKLY"), + resource.TestCheckResourceAttrSet(resourceName, "ons_topic_id"), + resource.TestCheckResourceAttr(resourceName, "status", "ENABLED"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + if isEnableExportCompartment, _ := strconv.ParseBool(utils.GetEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil { + return errExport + } + } + return err + }, + ), + }, + + //Step 1 - verify Update to the compartment (the compartment will be switched back in the next step) + { + Config: config + compartmentIdVariableStr + topicIdVariableStr + compartmentIdUVariableStr + OpsiNewsReportResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Optional, acctest.Create, + acctest.RepresentationCopyWithNewProperties(OpsiNewsReportRepresentation, map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id_for_update}`}, + })), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentIdU), + resource.TestCheckResourceAttr(resourceName, "content_types.#", "1"), + resource.TestCheckResourceAttr(resourceName, "content_types.0.capacity_planning_resources.#", "2"), + resource.TestCheckResourceAttr(resourceName, "description", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "locale", "EN"), + resource.TestCheckResourceAttr(resourceName, "name", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(resourceName, "news_frequency", "WEEKLY"), + resource.TestCheckResourceAttrSet(resourceName, "ons_topic_id"), + resource.TestCheckResourceAttr(resourceName, "status", "ENABLED"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("resource recreated when it was supposed to be updated") + } + return err + }, + ), + }, + + //Step 2 - verify updates to updatable parameters + { + Config: config + compartmentIdVariableStr + topicIdVariableStr + OpsiNewsReportResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Optional, acctest.Update, OpsiNewsReportRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "content_types.#", "1"), + resource.TestCheckResourceAttr(resourceName, "content_types.0.capacity_planning_resources.#", "3"), + resource.TestCheckResourceAttr(resourceName, "description", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "locale", "EN"), + resource.TestCheckResourceAttr(resourceName, "name", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(resourceName, "news_frequency", "WEEKLY"), + resource.TestCheckResourceAttrSet(resourceName, "ons_topic_id"), + resource.TestCheckResourceAttr(resourceName, "status", "DISABLED"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("Resource recreated when it was supposed to be updated.") + } + return err + }, + ), + }, + //Step 3 - verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_opsi_news_reports", "test_news_reports", acctest.Optional, acctest.Update, OpsiNewsReportDataSourceRepresentation) + + compartmentIdVariableStr + topicIdVariableStr + OpsiNewsReportResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Optional, acctest.Update, OpsiNewsReportRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "compartment_id_in_subtree", "false"), + resource.TestCheckResourceAttrSet(datasourceName, "news_report_id"), + resource.TestCheckResourceAttr(datasourceName, "state.#", "1"), + //resource.TestCheckResourceAttr(datasourceName, "status.#", "1"), //status is not a list + + resource.TestCheckResourceAttr(datasourceName, "news_report_collection.#", "1"), + resource.TestCheckResourceAttr(datasourceName, "news_report_collection.0.items.#", "1"), + ), + }, + //Step 4 - verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_opsi_news_report", "test_news_report", acctest.Required, acctest.Create, OpsiNewsReportSingularDataSourceRepresentation) + + compartmentIdVariableStr + topicIdVariableStr + OpsiNewsReportResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "news_report_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "content_types.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "content_types.0.capacity_planning_resources.#", "3"), + resource.TestCheckResourceAttr(singularDatasourceName, "description", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttr(singularDatasourceName, "locale", "EN"), + resource.TestCheckResourceAttr(singularDatasourceName, "name", "TF_TEST_REPORT"), + resource.TestCheckResourceAttr(singularDatasourceName, "news_frequency", "WEEKLY"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttr(singularDatasourceName, "status", "DISABLED"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_updated"), + ), + }, + //Step 5 - verify resource import + { + Config: config + OpsiNewsReportRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{}, + ResourceName: resourceName, + }, + }) +} + +func testAccCheckOpsiNewsReportDestroy(s *terraform.State) error { + noResourceFound := true + client := acctest.TestAccProvider.Meta().(*tf_client.OracleClients).OperationsInsightsClient() + for _, rs := range s.RootModule().Resources { + if rs.Type == "oci_opsi_news_report" { + noResourceFound = false + request := oci_opsi.GetNewsReportRequest{} + + tmp := rs.Primary.ID + request.NewsReportId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "opsi") + + response, err := client.GetNewsReport(context.Background(), request) + + if err == nil { + deletedLifecycleStates := map[string]bool{ + string(oci_opsi.LifecycleStateDeleted): true, + } + if _, ok := deletedLifecycleStates[string(response.LifecycleState)]; !ok { + //resource lifecycle state is not in expected deleted lifecycle states. + return fmt.Errorf("resource lifecycle state: %s is not in expected deleted lifecycle states", response.LifecycleState) + } + //resource lifecycle state is in expected deleted lifecycle states. continue with next one. + continue + } + + //Verify that exception is for '404 not found'. + if failure, isServiceError := common.IsServiceError(err); !isServiceError || failure.GetHTTPStatusCode() != 404 { + return err + } + } + } + if noResourceFound { + return fmt.Errorf("at least one resource was expected from the state file, but could not be found") + } + + return nil +} + +func init() { + if acctest.DependencyGraph == nil { + acctest.InitDependencyGraph() + } + if !acctest.InSweeperExcludeList("OpsiNewsReport") { + resource.AddTestSweepers("OpsiNewsReport", &resource.Sweeper{ + Name: "OpsiNewsReport", + Dependencies: acctest.DependencyGraph["newsReport"], + F: sweepOpsiNewsReportResource, + }) + } +} + +func sweepOpsiNewsReportResource(compartment string) error { + operationsInsightsClient := acctest.GetTestClients(&schema.ResourceData{}).OperationsInsightsClient() + newsReportIds, err := getOpsiNewsReportIds(compartment) + if err != nil { + return err + } + for _, newsReportId := range newsReportIds { + if ok := acctest.SweeperDefaultResourceId[newsReportId]; !ok { + deleteNewsReportRequest := oci_opsi.DeleteNewsReportRequest{} + + deleteNewsReportRequest.NewsReportId = &newsReportId + + deleteNewsReportRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "opsi") + _, error := operationsInsightsClient.DeleteNewsReport(context.Background(), deleteNewsReportRequest) + if error != nil { + fmt.Printf("Error deleting NewsReport %s %s, It is possible that the resource is already deleted. Please verify manually \n", newsReportId, error) + continue + } + acctest.WaitTillCondition(acctest.TestAccProvider, &newsReportId, OpsiNewsReportSweepWaitCondition, time.Duration(3*time.Minute), + OpsiNewsReportSweepResponseFetchOperation, "opsi", true) + } + } + return nil +} + +func getOpsiNewsReportIds(compartment string) ([]string, error) { + ids := acctest.GetResourceIdsToSweep(compartment, "NewsReportId") + if ids != nil { + return ids, nil + } + var resourceIds []string + compartmentId := compartment + operationsInsightsClient := acctest.GetTestClients(&schema.ResourceData{}).OperationsInsightsClient() + + listNewsReportsRequest := oci_opsi.ListNewsReportsRequest{} + listNewsReportsRequest.CompartmentId = &compartmentId + //listNewsReportsRequest.LifecycleState = oci_opsi.ListNewsReportsLifecycleStateActiveNeedsAttention + listNewsReportsResponse, err := operationsInsightsClient.ListNewsReports(context.Background(), listNewsReportsRequest) + + if err != nil { + return resourceIds, fmt.Errorf("Error getting NewsReport list for compartment id : %s , %s \n", compartmentId, err) + } + for _, newsReport := range listNewsReportsResponse.Items { + id := *newsReport.Id + resourceIds = append(resourceIds, id) + acctest.AddResourceIdToSweeperResourceIdMap(compartmentId, "NewsReportId", id) + } + return resourceIds, nil +} + +func OpsiNewsReportSweepWaitCondition(response common.OCIOperationResponse) bool { + // Only stop if the resource is available beyond 3 mins. As there could be an issue for the sweeper to delete the resource and manual intervention required. + if newsReportResponse, ok := response.Response.(oci_opsi.GetNewsReportResponse); ok { + return newsReportResponse.LifecycleState != oci_opsi.LifecycleStateDeleted + } + return false +} + +func OpsiNewsReportSweepResponseFetchOperation(client *tf_client.OracleClients, resourceId *string, retryPolicy *common.RetryPolicy) error { + _, err := client.OperationsInsightsClient().GetNewsReport(context.Background(), oci_opsi.GetNewsReportRequest{ + NewsReportId: resourceId, + RequestMetadata: common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + return err +} diff --git a/internal/service/opsi/opsi_export.go b/internal/service/opsi/opsi_export.go index 388288dade1..5df4a4d26a3 100644 --- a/internal/service/opsi/opsi_export.go +++ b/internal/service/opsi/opsi_export.go @@ -133,6 +133,19 @@ var exportOpsiOpsiConfigurationHints = &tf_export.TerraformResourceHints{ }, } +var exportOpsiNewsReportHints = &tf_export.TerraformResourceHints{ + ResourceClass: "oci_opsi_news_report", + DatasourceClass: "oci_opsi_news_reports", + DatasourceItemsAttr: "news_report_collection", + IsDatasourceCollection: true, + ResourceAbbreviation: "news_report", + RequireResourceRefresh: true, + DiscoverableLifecycleStates: []string{ + string(oci_opsi.LifecycleStateActive), + string(oci_opsi.LifecycleStateNeedsAttention), + }, +} + var opsiResourceGraph = tf_export.TerraformResourceGraph{ "oci_identity_compartment": { {TerraformResourceHints: exportOpsiEnterpriseManagerBridgeHints}, @@ -142,6 +155,7 @@ var opsiResourceGraph = tf_export.TerraformResourceGraph{ {TerraformResourceHints: exportOpsiOperationsInsightsWarehouseHints}, {TerraformResourceHints: exportOpsiOperationsInsightsPrivateEndpointHints}, {TerraformResourceHints: exportOpsiOpsiConfigurationHints}, + {TerraformResourceHints: exportOpsiNewsReportHints}, }, "oci_opsi_operations_insights_warehouse": { { diff --git a/internal/service/opsi/opsi_news_report_data_source.go b/internal/service/opsi/opsi_news_report_data_source.go new file mode 100644 index 00000000000..33d88222501 --- /dev/null +++ b/internal/service/opsi/opsi_news_report_data_source.go @@ -0,0 +1,123 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package opsi + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func OpsiNewsReportDataSource() *schema.Resource { + fieldMap := make(map[string]*schema.Schema) + fieldMap["news_report_id"] = &schema.Schema{ + Type: schema.TypeString, + Required: true, + } + return tfresource.GetSingularDataSourceItemSchema(OpsiNewsReportResource(), fieldMap, readSingularOpsiNewsReport) +} + +func readSingularOpsiNewsReport(d *schema.ResourceData, m interface{}) error { + sync := &OpsiNewsReportDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OperationsInsightsClient() + + return tfresource.ReadResource(sync) +} + +type OpsiNewsReportDataSourceCrud struct { + D *schema.ResourceData + Client *oci_opsi.OperationsInsightsClient + Res *oci_opsi.GetNewsReportResponse +} + +func (s *OpsiNewsReportDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *OpsiNewsReportDataSourceCrud) Get() error { + request := oci_opsi.GetNewsReportRequest{} + + if newsReportId, ok := s.D.GetOkExists("news_report_id"); ok { + tmp := newsReportId.(string) + request.NewsReportId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "opsi") + + response, err := s.Client.GetNewsReport(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *OpsiNewsReportDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.Id) + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.ContentTypes != nil { + s.D.Set("content_types", []interface{}{NewsContentTypesToMap(s.Res.ContentTypes)}) + } else { + s.D.Set("content_types", nil) + } + + if s.Res.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) + } + + if s.Res.Description != nil { + s.D.Set("description", *s.Res.Description) + } + + s.D.Set("freeform_tags", s.Res.FreeformTags) + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + s.D.Set("locale", s.Res.Locale) + + if s.Res.Name != nil { + s.D.Set("name", *s.Res.Name) + } + + s.D.Set("news_frequency", s.Res.NewsFrequency) + + if s.Res.OnsTopicId != nil { + s.D.Set("ons_topic_id", *s.Res.OnsTopicId) + } + + s.D.Set("state", s.Res.LifecycleState) + + s.D.Set("status", s.Res.Status) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeUpdated != nil { + s.D.Set("time_updated", s.Res.TimeUpdated.String()) + } + + return nil +} diff --git a/internal/service/opsi/opsi_news_report_resource.go b/internal/service/opsi/opsi_news_report_resource.go new file mode 100644 index 00000000000..d9f7b50e992 --- /dev/null +++ b/internal/service/opsi/opsi_news_report_resource.go @@ -0,0 +1,669 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package opsi + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" + oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func OpsiNewsReportResource() *schema.Resource { + return &schema.Resource{ + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Timeouts: tfresource.DefaultTimeout, + Create: createOpsiNewsReport, + Read: readOpsiNewsReport, + Update: updateOpsiNewsReport, + Delete: deleteOpsiNewsReport, + Schema: map[string]*schema.Schema{ + // Required + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "content_types": { + Type: schema.TypeList, + Required: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "capacity_planning_resources": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + // Optional + // Computed + }, + }, + }, + "description": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "locale": { + Type: schema.TypeString, + Required: true, + }, + "name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "news_frequency": { + Type: schema.TypeString, + Required: true, + }, + "ons_topic_id": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + "defined_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, + Elem: schema.TypeString, + }, + "freeform_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Elem: schema.TypeString, + }, + "status": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "system_tags": { + Type: schema.TypeMap, + Computed: true, + Elem: schema.TypeString, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "time_updated": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func createOpsiNewsReport(d *schema.ResourceData, m interface{}) error { + sync := &OpsiNewsReportResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OperationsInsightsClient() + + return tfresource.CreateResource(d, sync) +} + +func readOpsiNewsReport(d *schema.ResourceData, m interface{}) error { + sync := &OpsiNewsReportResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OperationsInsightsClient() + + return tfresource.ReadResource(sync) +} + +func updateOpsiNewsReport(d *schema.ResourceData, m interface{}) error { + sync := &OpsiNewsReportResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OperationsInsightsClient() + + return tfresource.UpdateResource(d, sync) +} + +func deleteOpsiNewsReport(d *schema.ResourceData, m interface{}) error { + sync := &OpsiNewsReportResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OperationsInsightsClient() + sync.DisableNotFoundRetries = true + + return tfresource.DeleteResource(d, sync) +} + +type OpsiNewsReportResourceCrud struct { + tfresource.BaseCrud + Client *oci_opsi.OperationsInsightsClient + Res *oci_opsi.NewsReport + DisableNotFoundRetries bool +} + +func (s *OpsiNewsReportResourceCrud) ID() string { + return *s.Res.Id +} + +func (s *OpsiNewsReportResourceCrud) CreatedPending() []string { + return []string{ + string(oci_opsi.LifecycleStateCreating), + } +} + +func (s *OpsiNewsReportResourceCrud) CreatedTarget() []string { + return []string{ + string(oci_opsi.LifecycleStateActive), + string(oci_opsi.LifecycleStateNeedsAttention), + } +} + +func (s *OpsiNewsReportResourceCrud) DeletedPending() []string { + return []string{ + string(oci_opsi.LifecycleStateDeleting), + } +} + +func (s *OpsiNewsReportResourceCrud) DeletedTarget() []string { + return []string{ + string(oci_opsi.LifecycleStateDeleted), + } +} + +func (s *OpsiNewsReportResourceCrud) Create() error { + request := oci_opsi.CreateNewsReportRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if contentTypes, ok := s.D.GetOkExists("content_types"); ok { + if tmpList := contentTypes.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "content_types", 0) + tmp, err := s.mapToNewsContentTypes(fieldKeyFormat) + if err != nil { + return err + } + request.ContentTypes = &tmp + } + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + request.DefinedTags = convertedDefinedTags + } + + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + request.Description = &tmp + } + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if locale, ok := s.D.GetOkExists("locale"); ok { + request.Locale = oci_opsi.NewsLocaleEnum(locale.(string)) + } + + if name, ok := s.D.GetOkExists("name"); ok { + tmp := name.(string) + request.Name = &tmp + } + + if newsFrequency, ok := s.D.GetOkExists("news_frequency"); ok { + request.NewsFrequency = oci_opsi.NewsFrequencyEnum(newsFrequency.(string)) + } + + if onsTopicId, ok := s.D.GetOkExists("ons_topic_id"); ok { + tmp := onsTopicId.(string) + request.OnsTopicId = &tmp + } + + if status, ok := s.D.GetOkExists("status"); ok { + request.Status = oci_opsi.ResourceStatusEnum(status.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi") + + response, err := s.Client.CreateNewsReport(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getNewsReportFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi"), oci_opsi.ActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) +} + +func (s *OpsiNewsReportResourceCrud) getNewsReportFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, + actionTypeEnum oci_opsi.ActionTypeEnum, timeout time.Duration) error { + + // Wait until it finishes + newsReportId, err := newsReportWaitForWorkRequest(workId, "opsi", + actionTypeEnum, timeout, s.DisableNotFoundRetries, s.Client) + + if err != nil { + return err + } + s.D.SetId(*newsReportId) + + return s.Get() +} + +func newsReportWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { + startTime := time.Now() + stopTime := startTime.Add(timeout) + return func(response oci_common.OCIOperationResponse) bool { + + // Stop after timeout has elapsed + if time.Now().After(stopTime) { + return false + } + + // Make sure we stop on default rules + if tfresource.ShouldRetry(response, false, "opsi", startTime) { + return true + } + + // Only stop if the time Finished is set + if workRequestResponse, ok := response.Response.(oci_opsi.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + } + return false + } +} + +func newsReportWaitForWorkRequest(wId *string, entityType string, action oci_opsi.ActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_opsi.OperationsInsightsClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "opsi") + retryPolicy.ShouldRetryOperation = newsReportWorkRequestShouldRetryFunc(timeout) + + response := oci_opsi.GetWorkRequestResponse{} + stateConf := &resource.StateChangeConf{ + Pending: []string{ + string(oci_opsi.OperationStatusInProgress), + string(oci_opsi.OperationStatusAccepted), + string(oci_opsi.OperationStatusCanceling), + }, + Target: []string{ + string(oci_opsi.OperationStatusSucceeded), + string(oci_opsi.OperationStatusFailed), + string(oci_opsi.OperationStatusCanceled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_opsi.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + wr := &response.WorkRequest + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + if strings.Contains(strings.ToLower(*res.EntityType), entityType) { + if res.ActionType == action { + identifier = res.Identifier + break + } + } + } + + // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled + if identifier == nil || response.Status == oci_opsi.OperationStatusFailed || response.Status == oci_opsi.OperationStatusCanceled { + return nil, getErrorFromOpsiNewsReportWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromOpsiNewsReportWorkRequest(client *oci_opsi.OperationsInsightsClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_opsi.ActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_opsi.ListWorkRequestErrorsRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if err != nil { + return err + } + + allErrs := make([]string, 0) + for _, wrkErr := range response.Items { + allErrs = append(allErrs, *wrkErr.Message) + } + errorMessage := strings.Join(allErrs, "\n") + + workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) + + return workRequestErr +} + +func (s *OpsiNewsReportResourceCrud) Get() error { + request := oci_opsi.GetNewsReportRequest{} + + tmp := s.D.Id() + request.NewsReportId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi") + + response, err := s.Client.GetNewsReport(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.NewsReport + return nil +} + +func (s *OpsiNewsReportResourceCrud) Update() error { + if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { + oldRaw, newRaw := s.D.GetChange("compartment_id") + if newRaw != "" && oldRaw != "" { + err := s.updateCompartment(compartment) + if err != nil { + return err + } + } + } + request := oci_opsi.UpdateNewsReportRequest{} + + if contentTypes, ok := s.D.GetOkExists("content_types"); ok { + if tmpList := contentTypes.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "content_types", 0) + tmp, err := s.mapToNewsContentTypes(fieldKeyFormat) + if err != nil { + return err + } + request.ContentTypes = &tmp + } + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + request.DefinedTags = convertedDefinedTags + } + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if locale, ok := s.D.GetOkExists("locale"); ok { + request.Locale = oci_opsi.NewsLocaleEnum(locale.(string)) + } + + if newsFrequency, ok := s.D.GetOkExists("news_frequency"); ok { + request.NewsFrequency = oci_opsi.NewsFrequencyEnum(newsFrequency.(string)) + } + + tmp := s.D.Id() + request.NewsReportId = &tmp + + if onsTopicId, ok := s.D.GetOkExists("ons_topic_id"); ok { + tmp := onsTopicId.(string) + request.OnsTopicId = &tmp + } + + if status, ok := s.D.GetOkExists("status"); ok { + request.Status = oci_opsi.ResourceStatusEnum(status.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi") + + response, err := s.Client.UpdateNewsReport(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getNewsReportFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi"), oci_opsi.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *OpsiNewsReportResourceCrud) Delete() error { + request := oci_opsi.DeleteNewsReportRequest{} + + tmp := s.D.Id() + request.NewsReportId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi") + + response, err := s.Client.DeleteNewsReport(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + // Wait until it finishes + _, delWorkRequestErr := newsReportWaitForWorkRequest(workId, "opsi", + oci_opsi.ActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client) + return delWorkRequestErr +} + +func (s *OpsiNewsReportResourceCrud) SetData() error { + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.ContentTypes != nil { + s.D.Set("content_types", []interface{}{NewsContentTypesToMap(s.Res.ContentTypes)}) + } else { + s.D.Set("content_types", nil) + } + + if s.Res.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) + } + + if s.Res.Description != nil { + s.D.Set("description", *s.Res.Description) + } + + s.D.Set("freeform_tags", s.Res.FreeformTags) + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + s.D.Set("locale", s.Res.Locale) + + if s.Res.Name != nil { + s.D.Set("name", *s.Res.Name) + } + + s.D.Set("news_frequency", s.Res.NewsFrequency) + + if s.Res.OnsTopicId != nil { + s.D.Set("ons_topic_id", *s.Res.OnsTopicId) + } + + s.D.Set("state", s.Res.LifecycleState) + + s.D.Set("status", s.Res.Status) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeUpdated != nil { + s.D.Set("time_updated", s.Res.TimeUpdated.String()) + } + + return nil +} + +func (s *OpsiNewsReportResourceCrud) mapToNewsContentTypes(fieldKeyFormat string) (oci_opsi.NewsContentTypes, error) { + result := oci_opsi.NewsContentTypes{} + + if capacityPlanningResources, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "capacity_planning_resources")); ok { + strArray := capacityPlanningResources.([]interface{}) + tmp := make([]oci_opsi.NewsContentTypesResourceEnum, len(strArray)) + for i := range strArray { + switch strArray[i].(string) { + case "HOST": + tmp[i] = oci_opsi.NewsContentTypesResourceHost + case "DATABASE": + tmp[i] = oci_opsi.NewsContentTypesResourceDatabase + case "EXADATA": + tmp[i] = oci_opsi.NewsContentTypesResourceExadata + default: + return result, fmt.Errorf("Not a valid capacity planning resource was provided") + } + } + result.CapacityPlanningResources = tmp + } + return result, nil +} + +func NewsContentTypesToMap(obj *oci_opsi.NewsContentTypes) map[string]interface{} { + result := map[string]interface{}{} + capacityPlanningResources := []interface{}{} + + for _, item := range obj.CapacityPlanningResources { + capacityPlanningResources = append(capacityPlanningResources, NewsContentTypesResourceToMap(item)) + } + result["capacity_planning_resources"] = capacityPlanningResources + return result +} + +func NewsContentTypesResourceToMap(obj oci_opsi.NewsContentTypesResourceEnum) string { + var result string + + switch obj { + case oci_opsi.NewsContentTypesResourceHost: + result = "HOST" + case oci_opsi.NewsContentTypesResourceDatabase: + result = "DATABASE" + case oci_opsi.NewsContentTypesResourceExadata: + result = "EXADATA" + default: + fmt.Println("ERROR, Nota a valid resource") + } + return result +} + +func NewsReportSummaryToMap(obj oci_opsi.NewsReportSummary) map[string]interface{} { + result := map[string]interface{}{} + + if obj.CompartmentId != nil { + result["compartment_id"] = string(*obj.CompartmentId) + } + + if obj.ContentTypes != nil { + result["content_types"] = []interface{}{NewsContentTypesToMap(obj.ContentTypes)} + } + + if obj.DefinedTags != nil { + result["defined_tags"] = tfresource.DefinedTagsToMap(obj.DefinedTags) + } + + if obj.Description != nil { + result["description"] = string(*obj.Description) + } + + result["freeform_tags"] = obj.FreeformTags + result["freeform_tags"] = obj.FreeformTags + + if obj.Id != nil { + result["id"] = string(*obj.Id) + } + + if obj.LifecycleDetails != nil { + result["lifecycle_details"] = string(*obj.LifecycleDetails) + } + + result["locale"] = string(obj.Locale) + + if obj.Name != nil { + result["name"] = string(*obj.Name) + } + + result["news_frequency"] = string(obj.NewsFrequency) + + if obj.OnsTopicId != nil { + result["ons_topic_id"] = string(*obj.OnsTopicId) + } + + result["state"] = string(obj.LifecycleState) + + result["status"] = string(obj.Status) + + if obj.SystemTags != nil { + result["system_tags"] = tfresource.SystemTagsToMap(obj.SystemTags) + } + + if obj.TimeCreated != nil { + result["time_created"] = obj.TimeCreated.String() + } + + if obj.TimeUpdated != nil { + result["time_updated"] = obj.TimeUpdated.String() + } + + return result +} + +func (s *OpsiNewsReportResourceCrud) updateCompartment(compartment interface{}) error { + changeCompartmentRequest := oci_opsi.ChangeNewsReportCompartmentRequest{} + + compartmentTmp := compartment.(string) + changeCompartmentRequest.CompartmentId = &compartmentTmp + + idTmp := s.D.Id() + changeCompartmentRequest.NewsReportId = &idTmp + + changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi") + + response, err := s.Client.ChangeNewsReportCompartment(context.Background(), changeCompartmentRequest) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getNewsReportFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "opsi"), oci_opsi.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) +} diff --git a/internal/service/opsi/opsi_news_reports_data_source.go b/internal/service/opsi/opsi_news_reports_data_source.go new file mode 100644 index 00000000000..b058adadd82 --- /dev/null +++ b/internal/service/opsi/opsi_news_reports_data_source.go @@ -0,0 +1,176 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package opsi + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func OpsiNewsReportsDataSource() *schema.Resource { + return &schema.Resource{ + Read: readOpsiNewsReports, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Optional: true, + }, + "compartment_id_in_subtree": { + Type: schema.TypeBool, + Optional: true, + }, + "news_report_id": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "status": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "news_report_collection": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + + "items": { + Type: schema.TypeList, + Computed: true, + Elem: tfresource.GetDataSourceItemSchema(OpsiNewsReportResource()), + }, + }, + }, + }, + }, + } +} + +func readOpsiNewsReports(d *schema.ResourceData, m interface{}) error { + sync := &OpsiNewsReportsDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OperationsInsightsClient() + + return tfresource.ReadResource(sync) +} + +type OpsiNewsReportsDataSourceCrud struct { + D *schema.ResourceData + Client *oci_opsi.OperationsInsightsClient + Res *oci_opsi.ListNewsReportsResponse +} + +func (s *OpsiNewsReportsDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *OpsiNewsReportsDataSourceCrud) Get() error { + request := oci_opsi.ListNewsReportsRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if compartmentIdInSubtree, ok := s.D.GetOkExists("compartment_id_in_subtree"); ok { + tmp := compartmentIdInSubtree.(bool) + request.CompartmentIdInSubtree = &tmp + } + + if newsReportId, ok := s.D.GetOkExists("id"); ok { + tmp := newsReportId.(string) + request.NewsReportId = &tmp + } + + if state, ok := s.D.GetOkExists("state"); ok { + interfaces := state.([]interface{}) + tmp := make([]oci_opsi.LifecycleStateEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_opsi.LifecycleStateEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange("state") { + request.LifecycleState = tmp + } + } + + if status, ok := s.D.GetOkExists("status"); ok { + interfaces := status.([]interface{}) + tmp := make([]oci_opsi.ResourceStatusEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_opsi.ResourceStatusEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange("status") { + request.Status = tmp + } + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "opsi") + + response, err := s.Client.ListNewsReports(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListNewsReports(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *OpsiNewsReportsDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("OpsiNewsReportsDataSource-", OpsiNewsReportsDataSource(), s.D)) + resources := []map[string]interface{}{} + newsReport := map[string]interface{}{} + + items := []interface{}{} + for _, item := range s.Res.Items { + items = append(items, NewsReportSummaryToMap(item)) + } + newsReport["items"] = items + + if f, fOk := s.D.GetOkExists("filter"); fOk { + items = tfresource.ApplyFiltersInCollection(f.(*schema.Set), items, OpsiNewsReportsDataSource().Schema["news_report_collection"].Elem.(*schema.Resource).Schema) + newsReport["items"] = items + } + + resources = append(resources, newsReport) + if err := s.D.Set("news_report_collection", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/opsi/register_datasource.go b/internal/service/opsi/register_datasource.go index ad6fc4cf553..0b4281b0b4b 100644 --- a/internal/service/opsi/register_datasource.go +++ b/internal/service/opsi/register_datasource.go @@ -20,6 +20,8 @@ func RegisterDatasource() { tfresource.RegisterDatasource("oci_opsi_host_insight", OpsiHostInsightDataSource()) tfresource.RegisterDatasource("oci_opsi_host_insights", OpsiHostInsightsDataSource()) tfresource.RegisterDatasource("oci_opsi_importable_compute_entities", OpsiImportableComputeEntitiesDataSource()) + tfresource.RegisterDatasource("oci_opsi_news_report", OpsiNewsReportDataSource()) + tfresource.RegisterDatasource("oci_opsi_news_reports", OpsiNewsReportsDataSource()) tfresource.RegisterDatasource("oci_opsi_importable_compute_entity", OpsiImportableComputeEntityDataSource()) tfresource.RegisterDatasource("oci_opsi_operations_insights_private_endpoint", OpsiOperationsInsightsPrivateEndpointDataSource()) tfresource.RegisterDatasource("oci_opsi_operations_insights_private_endpoints", OpsiOperationsInsightsPrivateEndpointsDataSource()) diff --git a/internal/service/opsi/register_resource.go b/internal/service/opsi/register_resource.go index 90e68a8c5e5..9adf047c636 100644 --- a/internal/service/opsi/register_resource.go +++ b/internal/service/opsi/register_resource.go @@ -11,6 +11,7 @@ func RegisterResource() { tfresource.RegisterResource("oci_opsi_enterprise_manager_bridge", OpsiEnterpriseManagerBridgeResource()) tfresource.RegisterResource("oci_opsi_exadata_insight", OpsiExadataInsightResource()) tfresource.RegisterResource("oci_opsi_host_insight", OpsiHostInsightResource()) + tfresource.RegisterResource("oci_opsi_news_report", OpsiNewsReportResource()) tfresource.RegisterResource("oci_opsi_operations_insights_private_endpoint", OpsiOperationsInsightsPrivateEndpointResource()) tfresource.RegisterResource("oci_opsi_operations_insights_warehouse", OpsiOperationsInsightsWarehouseResource()) tfresource.RegisterResource("oci_opsi_operations_insights_warehouse_download_warehouse_wallet", OpsiOperationsInsightsWarehouseDownloadWarehouseWalletResource()) diff --git a/website/docs/d/opsi_news_report.html.markdown b/website/docs/d/opsi_news_report.html.markdown new file mode 100644 index 00000000000..8a57d45ca3a --- /dev/null +++ b/website/docs/d/opsi_news_report.html.markdown @@ -0,0 +1,52 @@ +--- +subcategory: "Opsi" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_opsi_news_report" +sidebar_current: "docs-oci-datasource-opsi-news_report" +description: |- + Provides details about a specific News Report in Oracle Cloud Infrastructure Opsi service +--- + +# Data Source: oci_opsi_news_report +This data source provides details about a specific News Report resource in Oracle Cloud Infrastructure Opsi service. + +Gets details of a news report. + +## Example Usage + +```hcl +data "oci_opsi_news_report" "test_news_report" { + #Required + news_report_id = oci_opsi_news_report.test_news_report.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `news_report_id` - (Required) Unique news report identifier. + + +## Attributes Reference + +The following attributes are exported: + +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `content_types` - Content types that the news report can handle. + * `capacity_planning_resources` - Supported resources for capacity planning content type. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - The description of the news report. +* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. +* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. +* `locale` - Language of the news report. +* `name` - The news report name. +* `news_frequency` - News report frequency. +* `ons_topic_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. +* `state` - The current state of the news report. +* `status` - Indicates the status of a news report in Operations Insights. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The time the the news report was first enabled. An RFC3339 formatted datetime string. +* `time_updated` - The time the news report was updated. An RFC3339 formatted datetime string. + diff --git a/website/docs/d/opsi_news_reports.html.markdown b/website/docs/d/opsi_news_reports.html.markdown new file mode 100644 index 00000000000..f8dd4db6d4c --- /dev/null +++ b/website/docs/d/opsi_news_reports.html.markdown @@ -0,0 +1,68 @@ +--- +subcategory: "Opsi" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_opsi_news_reports" +sidebar_current: "docs-oci-datasource-opsi-news_reports" +description: |- + Provides the list of News Reports in Oracle Cloud Infrastructure Opsi service +--- + +# Data Source: oci_opsi_news_reports +This data source provides the list of News Reports in Oracle Cloud Infrastructure Opsi service. + +Gets a list of news reports based on the query parameters specified. Either compartmentId or id query parameter must be specified. + + +## Example Usage + +```hcl +data "oci_opsi_news_reports" "test_news_reports" { + + #Optional + compartment_id = var.compartment_id + compartment_id_in_subtree = var.news_report_compartment_id_in_subtree + news_report_id = oci_opsi_news_report.test_news_report.id + state = var.news_report_state + status = var.news_report_status +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `compartment_id_in_subtree` - (Optional) A flag to search all resources within a given compartment and all sub-compartments. +* `news_report_id` - (Optional) Unique Operations Insights news report identifier +* `state` - (Optional) Lifecycle states +* `status` - (Optional) Resource Status + + +## Attributes Reference + +The following attributes are exported: + +* `news_report_collection` - The list of news_report_collection. + +### NewsReport Reference + +The following attributes are exported: + +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `content_types` - Content types that the news report can handle. + * `capacity_planning_resources` - Supported resources for capacity planning content type. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - The description of the news report. +* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. +* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. +* `locale` - Language of the news report. +* `name` - The news report name. +* `news_frequency` - News report frequency. +* `ons_topic_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. +* `state` - The current state of the news report. +* `status` - Indicates the status of a news report in Operations Insights. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The time the the news report was first enabled. An RFC3339 formatted datetime string. +* `time_updated` - The time the news report was updated. An RFC3339 formatted datetime string. + diff --git a/website/docs/guides/resource_discovery.html.markdown b/website/docs/guides/resource_discovery.html.markdown index 0c0615fc7fd..88aa7affa8d 100644 --- a/website/docs/guides/resource_discovery.html.markdown +++ b/website/docs/guides/resource_discovery.html.markdown @@ -937,6 +937,7 @@ opsi * oci\_opsi\_operations\_insights\_warehouse\_rotate\_warehouse\_wallet * oci\_opsi\_operations\_insights\_private\_endpoint * oci\_opsi\_opsi\_configuration +* oci\_opsi\_news\_report optimizer diff --git a/website/docs/r/opsi_exadata_insight.html.markdown b/website/docs/r/opsi_exadata_insight.html.markdown index daf1e87b08b..8362a177ea9 100644 --- a/website/docs/r/opsi_exadata_insight.html.markdown +++ b/website/docs/r/opsi_exadata_insight.html.markdown @@ -169,3 +169,4 @@ ExadataInsights can be imported using the `id`, e.g. $ terraform import oci_opsi_exadata_insight.test_exadata_insight "id" ``` + diff --git a/website/docs/r/opsi_news_report.html.markdown b/website/docs/r/opsi_news_report.html.markdown new file mode 100644 index 00000000000..48fdc0efdb1 --- /dev/null +++ b/website/docs/r/opsi_news_report.html.markdown @@ -0,0 +1,96 @@ +--- +subcategory: "Opsi" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_opsi_news_report" +sidebar_current: "docs-oci-resource-opsi-news_report" +description: |- + Provides the News Report resource in Oracle Cloud Infrastructure Opsi service +--- + +# oci_opsi_news_report +This resource provides the News Report resource in Oracle Cloud Infrastructure Opsi service. + +Create a news report in Operations Insights. The report will be enabled in Operations Insights. Insights will be emailed as per selected frequency. + + +## Example Usage + +```hcl +resource "oci_opsi_news_report" "test_news_report" { + #Required + compartment_id = var.compartment_id + content_types { + #Required + capacity_planning_resources = var.news_report_content_types_capacity_planning_resources + } + description = var.news_report_description + locale = var.news_report_locale + name = var.news_report_name + news_frequency = var.news_report_news_frequency + ons_topic_id = oci_opsi_ons_topic.test_ons_topic.id + + #Optional + defined_tags = {"foo-namespace.bar-key"= "value"} + freeform_tags = {"bar-key"= "value"} + status = var.news_report_status +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) (Updatable) Compartment Identifier where the news report will be created. +* `content_types` - (Required) (Updatable) Content types that the news report can handle. + * `capacity_planning_resources` - (Required) (Updatable) Supported resources for capacity planning content type. +* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - (Required) The description of the news report. +* `freeform_tags` - (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `locale` - (Required) (Updatable) Language of the news report. +* `name` - (Required) The news report name. +* `news_frequency` - (Required) (Updatable) News report frequency. +* `ons_topic_id` - (Required) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. +* `status` - (Optional) (Updatable) Defines if the news report will be enabled or disabled. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `content_types` - Content types that the news report can handle. + * `capacity_planning_resources` - Supported resources for capacity planning content type. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - The description of the news report. +* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. +* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. +* `locale` - Language of the news report. +* `name` - The news report name. +* `news_frequency` - News report frequency. +* `ons_topic_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. +* `state` - The current state of the news report. +* `status` - Indicates the status of a news report in Operations Insights. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The time the the news report was first enabled. An RFC3339 formatted datetime string. +* `time_updated` - The time the news report was updated. An RFC3339 formatted datetime string. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the News Report + * `update` - (Defaults to 20 minutes), when updating the News Report + * `delete` - (Defaults to 20 minutes), when destroying the News Report + + +## Import + +NewsReports can be imported using the `id`, e.g. + +``` +$ terraform import oci_opsi_news_report.test_news_report "id" +``` + From 4d495c0acd1c0235fdf24e259398102e5e8ea73d Mon Sep 17 00:00:00 2001 From: Xinhao Zhou Date: Wed, 19 Apr 2023 11:41:05 -0700 Subject: [PATCH 16/25] Added - startCredentialRotation, completeCredentialRotation, getCredentialRotationStatus terraform implementation tests and examples --- .../credential_rotation/main.tf | 139 +++++++++++ examples/container_engine/main.tf | 2 +- ...ete_credential_rotation_management_test.go | 111 +++++++++ ...cluster_credential_rotation_status_test.go | 83 +++++++ ...art_credential_rotation_management_test.go | 154 ++++++++++++ ...credential_rotation_management_resource.go | 208 ++++++++++++++++ ..._credential_rotation_status_data_source.go | 94 ++++++++ .../containerengine_cluster_resource.go | 8 + ...credential_rotation_management_resource.go | 224 ++++++++++++++++++ .../containerengine/register_datasource.go | 1 + .../containerengine/register_resource.go | 2 + ...r_credential_rotation_status.html.markdown | 38 +++ .../d/containerengine_clusters.html.markdown | 1 + .../r/containerengine_cluster.html.markdown | 1 + ...edential_rotation_management.html.markdown | 51 ++++ ...edential_rotation_management.html.markdown | 52 ++++ 16 files changed, 1168 insertions(+), 1 deletion(-) create mode 100644 examples/container_engine/credential_rotation/main.tf create mode 100644 internal/integrationtest/containerengine_cluster_complete_credential_rotation_management_test.go create mode 100644 internal/integrationtest/containerengine_cluster_credential_rotation_status_test.go create mode 100644 internal/integrationtest/containerengine_cluster_start_credential_rotation_management_test.go create mode 100644 internal/service/containerengine/containerengine_cluster_complete_credential_rotation_management_resource.go create mode 100644 internal/service/containerengine/containerengine_cluster_credential_rotation_status_data_source.go create mode 100644 internal/service/containerengine/containerengine_cluster_start_credential_rotation_management_resource.go create mode 100644 website/docs/d/containerengine_cluster_credential_rotation_status.html.markdown create mode 100644 website/docs/r/containerengine_cluster_complete_credential_rotation_management.html.markdown create mode 100644 website/docs/r/containerengine_cluster_start_credential_rotation_management.html.markdown diff --git a/examples/container_engine/credential_rotation/main.tf b/examples/container_engine/credential_rotation/main.tf new file mode 100644 index 00000000000..958323eb7ba --- /dev/null +++ b/examples/container_engine/credential_rotation/main.tf @@ -0,0 +1,139 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "region" { + default = "us-ashburn-1" +} +variable "compartment_ocid" {} + +variable "cluster_start_credential_rotation_management_auto_completion_delay_duration" { + default = "P5D" +} + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} + +data "oci_identity_availability_domain" "ad1" { + compartment_id = var.tenancy_ocid + ad_number = 1 +} + +data "oci_identity_availability_domain" "ad2" { + compartment_id = var.tenancy_ocid + ad_number = 2 +} + +data "oci_containerengine_cluster_option" "test_cluster_option" { + cluster_option_id = "all" +} + +resource "oci_core_vcn" "test_vcn" { + cidr_block = "10.0.0.0/16" + compartment_id = var.compartment_ocid + display_name = "tfVcnForClusters" +} + +resource "oci_core_internet_gateway" "test_ig" { + compartment_id = var.compartment_ocid + display_name = "tfClusterInternetGateway" + vcn_id = oci_core_vcn.test_vcn.id +} + +resource "oci_core_route_table" "test_route_table" { + compartment_id = var.compartment_ocid + vcn_id = oci_core_vcn.test_vcn.id + display_name = "tfClustersRouteTable" + + route_rules { + destination = "0.0.0.0/0" + destination_type = "CIDR_BLOCK" + network_entity_id = oci_core_internet_gateway.test_ig.id + } +} + +resource "oci_core_subnet" "clusterSubnet_1" { + #Required + availability_domain = data.oci_identity_availability_domain.ad1.name + cidr_block = "10.0.20.0/24" + compartment_id = var.compartment_ocid + vcn_id = oci_core_vcn.test_vcn.id + + # Provider code tries to maintain compatibility with old versions. + security_list_ids = [oci_core_vcn.test_vcn.default_security_list_id] + display_name = "tfSubNet1ForClusters" + route_table_id = oci_core_route_table.test_route_table.id +} + +resource "oci_core_subnet" "clusterSubnet_2" { + #Required + availability_domain = data.oci_identity_availability_domain.ad2.name + cidr_block = "10.0.21.0/24" + compartment_id = var.compartment_ocid + vcn_id = oci_core_vcn.test_vcn.id + display_name = "tfSubNet1ForClusters" + + # Provider code tries to maintain compatibility with old versions. + security_list_ids = [oci_core_vcn.test_vcn.default_security_list_id] + route_table_id = oci_core_route_table.test_route_table.id +} + +resource "oci_containerengine_cluster" "test_cluster" { + #Required + compartment_id = var.compartment_ocid + kubernetes_version = reverse(data.oci_containerengine_cluster_option.test_cluster_option.kubernetes_versions)[0] + name = "tfTestCluster" + vcn_id = oci_core_vcn.test_vcn.id + + #Optional + options { + service_lb_subnet_ids = [oci_core_subnet.clusterSubnet_1.id, oci_core_subnet.clusterSubnet_2.id] + + #Optional + add_ons { + #Optional + is_kubernetes_dashboard_enabled = "true" + is_tiller_enabled = "true" + } + + admission_controller_options { + #Optional + is_pod_security_policy_enabled = false + } + + kubernetes_network_config { + #Optional + pods_cidr = "10.1.0.0/16" + services_cidr = "10.2.0.0/16" + } + } +} + +// start credential rotation on a cluster +resource "oci_containerengine_cluster_start_credential_rotation_management" "test_cluster_start_credential_rotation_management" { + #Required + auto_completion_delay_duration = var.cluster_start_credential_rotation_management_auto_completion_delay_duration + cluster_id = oci_containerengine_cluster.test_cluster.id +} + +// get credential rotation status +data "oci_containerengine_cluster_credential_rotation_status" "test_cluster_credential_rotation_status" { + #Required + cluster_id = oci_containerengine_cluster.test_cluster.id +} + +// complete credential rotation on a cluster +resource "oci_containerengine_cluster_complete_credential_rotation_management" "test_cluster_complete_credential_rotation_management" { + #Required + cluster_id = oci_containerengine_cluster.test_cluster.id + depends_on = [oci_containerengine_cluster_start_credential_rotation_management.test_cluster_start_credential_rotation_management] +} + diff --git a/examples/container_engine/main.tf b/examples/container_engine/main.tf index c50848345d7..00f4da2939c 100644 --- a/examples/container_engine/main.tf +++ b/examples/container_engine/main.tf @@ -289,7 +289,7 @@ resource "oci_containerengine_node_pool" "test_flex_shape_node_pool" { node_source_details { #Required - image_id = local.oracle_linux_images.0 + image_id = local.image_id source_type = "IMAGE" } diff --git a/internal/integrationtest/containerengine_cluster_complete_credential_rotation_management_test.go b/internal/integrationtest/containerengine_cluster_complete_credential_rotation_management_test.go new file mode 100644 index 00000000000..54f1e717ac6 --- /dev/null +++ b/internal/integrationtest/containerengine_cluster_complete_credential_rotation_management_test.go @@ -0,0 +1,111 @@ +// 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/terraform" + + "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 ( + ContainerengineClusterCompleteCredentialRotationManagementRepresentation = map[string]interface{}{ + "cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_containerengine_cluster.test_cluster.id}`}, + } +) + +// issue-routing-tag: containerengine/default +func TestContainerengineClusterCompleteCredentialRotationManagementResource_basic(t *testing.T) { + httpreplay.SetScenario("TestContainerengineClusterCompleteCredentialRotationManagementResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_containerengine_cluster.test_cluster" + singularDatasourceName := "data.oci_containerengine_cluster_credential_rotation_status.test_cluster_credential_rotation_status" + + // Save TF content to Create resource with only required properties. This has to be exactly the same as the config part in the create step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+ContainerengineClusterResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_complete_credential_rotation_management", "test_cluster_complete_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterCompleteCredentialRotationManagementRepresentation), "containerengine", "clusterCompleteCredentialRotationManagement", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // create cluster + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(resourceName, "kubernetes_version"), + resource.TestCheckResourceAttr(resourceName, "name", "name"), + resource.TestCheckResourceAttrSet(resourceName, "vcn_id"), + resource.TestCheckResourceAttrSet(resourceName, "metadata.0.time_credential_expiration"), + + func(s *terraform.State) (err error) { + _, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // start rotation + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_start_credential_rotation_management", "test_cluster_start_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterStartCredentialRotationManagementRepresentation), + }, + + // verify rotation status + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_start_credential_rotation_management", "test_cluster_start_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterStartCredentialRotationManagementRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_containerengine_cluster_credential_rotation_status", "test_cluster_credential_rotation_status", + acctest.Optional, acctest.Create, ContainerengineClusterCredentialRotationStatusSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "cluster_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "status", "WAITING"), + resource.TestCheckResourceAttr(singularDatasourceName, "status_details", "NEW_CREDENTIALS_ISSUED"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_auto_completion_scheduled"), + ), + }, + // complete rotation + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_complete_credential_rotation_management", "test_cluster_complete_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterCompleteCredentialRotationManagementRepresentation), + }, + // verify complete rotation status + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_complete_credential_rotation_management", "test_cluster_complete_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterCompleteCredentialRotationManagementRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_containerengine_cluster_credential_rotation_status", "test_cluster_credential_rotation_status", + acctest.Optional, acctest.Create, ContainerengineClusterCredentialRotationStatusSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "cluster_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "status", "COMPLETED"), + resource.TestCheckResourceAttr(singularDatasourceName, "status_details", "COMPLETED"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_auto_completion_scheduled"), + ), + }, + }) +} diff --git a/internal/integrationtest/containerengine_cluster_credential_rotation_status_test.go b/internal/integrationtest/containerengine_cluster_credential_rotation_status_test.go new file mode 100644 index 00000000000..d821874e51f --- /dev/null +++ b/internal/integrationtest/containerengine_cluster_credential_rotation_status_test.go @@ -0,0 +1,83 @@ +// 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/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + ContainerengineClusterCredentialRotationStatusSingularDataSourceRepresentation = map[string]interface{}{ + "cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_containerengine_cluster.test_cluster.id}`}, + } +) + +// issue-routing-tag: containerengine/default +func TestContainerengineClusterCredentialRotationStatusResource_basic(t *testing.T) { + httpreplay.SetScenario("TestContainerengineClusterCredentialRotationStatusResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_containerengine_cluster.test_cluster" + singularDatasourceName := "data.oci_containerengine_cluster_credential_rotation_status.test_cluster_credential_rotation_status" + + acctest.SaveConfigContent("", "", "", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // create cluster + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(resourceName, "kubernetes_version"), + resource.TestCheckResourceAttr(resourceName, "name", "name"), + resource.TestCheckResourceAttrSet(resourceName, "vcn_id"), + resource.TestCheckResourceAttrSet(resourceName, "metadata.0.time_credential_expiration"), + + func(s *terraform.State) (err error) { + _, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // start rotation + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_start_credential_rotation_management", "test_cluster_start_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterStartCredentialRotationManagementRepresentation), + }, + + // verify rotation status + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_start_credential_rotation_management", "test_cluster_start_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterStartCredentialRotationManagementRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_containerengine_cluster_credential_rotation_status", "test_cluster_credential_rotation_status", + acctest.Optional, acctest.Create, ContainerengineClusterCredentialRotationStatusSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "cluster_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "status", "WAITING"), + resource.TestCheckResourceAttr(singularDatasourceName, "status_details", "NEW_CREDENTIALS_ISSUED"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_auto_completion_scheduled"), + ), + }, + }) +} diff --git a/internal/integrationtest/containerengine_cluster_start_credential_rotation_management_test.go b/internal/integrationtest/containerengine_cluster_start_credential_rotation_management_test.go new file mode 100644 index 00000000000..46f2867086e --- /dev/null +++ b/internal/integrationtest/containerengine_cluster_start_credential_rotation_management_test.go @@ -0,0 +1,154 @@ +// 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/terraform" + + "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 ( + ContainerengineClusterRepresentationForCredentialRotation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "kubernetes_version": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_containerengine_cluster_option.test_cluster_option.kubernetes_versions[length(data.oci_containerengine_cluster_option.test_cluster_option.kubernetes_versions)-2]}`}, + "name": acctest.Representation{RepType: acctest.Required, Create: `name`}, + "vcn_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_vcn.test_vcn.id}`}, + "cluster_pod_network_options": acctest.RepresentationGroup{RepType: acctest.Optional, Group: clusterClusterPodNetworkOptionsRepresentationForCredentialRotation}, + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`}, + "endpoint_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterEndpointConfigRepresentationForCredentialRotation}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, + "image_policy_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterImagePolicyConfigRepresentationForCredentialRotation}, + "kms_key_id": acctest.Representation{RepType: acctest.Optional, Create: `${lookup(data.oci_kms_keys.test_keys_dependency.keys[0], "id")}`}, + "options": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterOptionsRepresentationForCredentialRotation}, + } + clusterClusterPodNetworkOptionsRepresentationForCredentialRotation = map[string]interface{}{ + "cni_type": acctest.Representation{RepType: acctest.Required, Create: `FLANNEL_OVERLAY`}, + } + ContainerengineClusterEndpointConfigRepresentationForCredentialRotation = map[string]interface{}{ + "is_public_ip_enabled": acctest.Representation{RepType: acctest.Optional, Create: `true`}, + "nsg_ids": acctest.Representation{RepType: acctest.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}}, + "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.test_subnet.id}`}, + } + ContainerengineClusterImagePolicyConfigRepresentationForCredentialRotation = map[string]interface{}{ + "is_policy_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "key_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterImagePolicyConfigKeyDetailsRepresentationForCredentialRotation}, + } + ContainerengineClusterOptionsRepresentationForCredentialRotation = map[string]interface{}{ + "add_ons": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterOptionsAddOnsRepresentationForCredentialRotation}, + "admission_controller_options": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterOptionsAdmissionControllerOptionsRepresentationForCredentialRotation}, + "kubernetes_network_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterOptionsKubernetesNetworkConfigRepresentationForCredentialRotation}, + "persistent_volume_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterOptionsPersistentVolumeConfigRepresentationForCredentialRotation}, + "service_lb_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineClusterOptionsServiceLbConfigRepresentationForCredentialRotation}, + "service_lb_subnet_ids": acctest.Representation{RepType: acctest.Optional, Create: []string{`${oci_core_subnet.clusterSubnet_1.id}`, `${oci_core_subnet.clusterSubnet_2.id}`}}, + } + ContainerengineClusterImagePolicyConfigKeyDetailsRepresentationForCredentialRotation = map[string]interface{}{ + "kms_key_id": acctest.Representation{RepType: acctest.Optional, Create: `${lookup(data.oci_kms_keys.test_keys_dependency_RSA.keys[0], "id")}`}, + } + ContainerengineClusterOptionsAddOnsRepresentationForCredentialRotation = map[string]interface{}{ + "is_kubernetes_dashboard_enabled": acctest.Representation{RepType: acctest.Optional, Create: `true`}, + "is_tiller_enabled": acctest.Representation{RepType: acctest.Optional, Create: `true`}, + } + ContainerengineClusterOptionsAdmissionControllerOptionsRepresentationForCredentialRotation = map[string]interface{}{ + "is_pod_security_policy_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + } + ContainerengineClusterOptionsKubernetesNetworkConfigRepresentationForCredentialRotation = map[string]interface{}{ + "pods_cidr": acctest.Representation{RepType: acctest.Optional, Create: `10.1.0.0/16`}, + "services_cidr": acctest.Representation{RepType: acctest.Optional, Create: `10.2.0.0/16`}, + } + ContainerengineClusterOptionsPersistentVolumeConfigRepresentationForCredentialRotation = map[string]interface{}{ + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}}, + } + ContainerengineClusterOptionsServiceLbConfigRepresentationForCredentialRotation = map[string]interface{}{ + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}}, + } + + ContainerengineStartCredentialRotationRepresentationForStartCredentialRotationForStartCredentialRotation = map[string]interface{}{ + "start_credential_rotation": acctest.RepresentationGroup{RepType: acctest.Optional, Group: ContainerengineStartCredentialRotationConfigRepresentationForStartCredentialRotationForCredentialRotation}, + } + + ContainerengineStartCredentialRotationConfigRepresentationForStartCredentialRotationForCredentialRotation = map[string]interface{}{ + "auto_completion_delay_duration": acctest.Representation{RepType: acctest.Optional, Create: `NONE`, Update: `P5D`}, + "start_credential_rotation_state": acctest.Representation{RepType: acctest.Optional, Create: `NONE`, Update: `NEW_CREDENTIALS_ISSUED`}, + } + + ContainerengineClusterStartCredentialRotationManagementRepresentation = map[string]interface{}{ + "auto_completion_delay_duration": acctest.Representation{RepType: acctest.Required, Create: `P5D`}, + "cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_containerengine_cluster.test_cluster.id}`}, + } +) + +// issue-routing-tag: containerengine/default +func TestContainerengineClusterStartCredentialRotationManagementResource_basic(t *testing.T) { + httpreplay.SetScenario("TestContainerengineClusterStartCredentialRotationManagementResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_containerengine_cluster.test_cluster" + singularDatasourceName := "data.oci_containerengine_cluster_credential_rotation_status.test_cluster_credential_rotation_status" + + // Save TF content to Create resource with only required properties. This has to be exactly the same as the config part in the create step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+ContainerengineClusterResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_start_credential_rotation_management", "test_cluster_start_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterStartCredentialRotationManagementRepresentation), "containerengine", "clusterStartCredentialRotationManagement", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // create cluster + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(resourceName, "kubernetes_version"), + resource.TestCheckResourceAttr(resourceName, "name", "name"), + resource.TestCheckResourceAttrSet(resourceName, "vcn_id"), + resource.TestCheckResourceAttrSet(resourceName, "metadata.0.time_credential_expiration"), + + func(s *terraform.State) (err error) { + _, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // start rotation + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_start_credential_rotation_management", "test_cluster_start_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterStartCredentialRotationManagementRepresentation), + }, + + // verify rotation status + { + Config: config + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster", "test_cluster", acctest.Optional, acctest.Create, ContainerengineClusterRepresentationForCredentialRotation) + + compartmentIdVariableStr + ContainerengineClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_containerengine_cluster_start_credential_rotation_management", "test_cluster_start_credential_rotation_management", acctest.Required, acctest.Create, ContainerengineClusterStartCredentialRotationManagementRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_containerengine_cluster_credential_rotation_status", "test_cluster_credential_rotation_status", + acctest.Optional, acctest.Create, ContainerengineClusterCredentialRotationStatusSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "cluster_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "status", "WAITING"), + resource.TestCheckResourceAttr(singularDatasourceName, "status_details", "NEW_CREDENTIALS_ISSUED"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_auto_completion_scheduled"), + ), + }, + }) +} diff --git a/internal/service/containerengine/containerengine_cluster_complete_credential_rotation_management_resource.go b/internal/service/containerengine/containerengine_cluster_complete_credential_rotation_management_resource.go new file mode 100644 index 00000000000..06e9c83432f --- /dev/null +++ b/internal/service/containerengine/containerengine_cluster_complete_credential_rotation_management_resource.go @@ -0,0 +1,208 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package containerengine + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" + oci_containerengine "github.com/oracle/oci-go-sdk/v65/containerengine" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func ContainerengineClusterCompleteCredentialRotationManagementResource() *schema.Resource { + return &schema.Resource{ + Timeouts: tfresource.DefaultTimeout, + Create: createContainerengineClusterCompleteCredentialRotationManagement, + Read: readContainerengineClusterCompleteCredentialRotationManagement, + Delete: deleteContainerengineClusterCompleteCredentialRotationManagement, + Schema: map[string]*schema.Schema{ + // Required + "cluster_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + + // Computed + }, + } +} + +func createContainerengineClusterCompleteCredentialRotationManagement(d *schema.ResourceData, m interface{}) error { + sync := &ContainerengineClusterCompleteCredentialRotationManagementResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ContainerEngineClient() + + return tfresource.CreateResource(d, sync) +} + +func readContainerengineClusterCompleteCredentialRotationManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +func deleteContainerengineClusterCompleteCredentialRotationManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +type ContainerengineClusterCompleteCredentialRotationManagementResourceCrud struct { + tfresource.BaseCrud + Client *oci_containerengine.ContainerEngineClient + Res *oci_containerengine.Cluster + DisableNotFoundRetries bool +} + +func (s *ContainerengineClusterCompleteCredentialRotationManagementResourceCrud) ID() string { + return *s.Res.Id +} + +func (s *ContainerengineClusterCompleteCredentialRotationManagementResourceCrud) Create() error { + request := oci_containerengine.CompleteCredentialRotationRequest{} + + if clusterId, ok := s.D.GetOkExists("cluster_id"); ok { + tmp := clusterId.(string) + request.ClusterId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "containerengine") + + response, err := s.Client.CompleteCredentialRotation(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + + // Wait until it finishes + clusterId, waitErr := clusterCompleteCredentialRotationManagementWaitForWorkRequest(workId, "cluster", + oci_containerengine.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate), s.DisableNotFoundRetries, s.Client) + if waitErr != nil { + return waitErr + } + + requestGet := oci_containerengine.GetClusterRequest{} + requestGet.ClusterId = clusterId + requestGet.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "containerengine") + responseGet, getClusterErr := s.Client.GetCluster(context.Background(), requestGet) + if getClusterErr != nil { + return getClusterErr + } + s.Res = &responseGet.Cluster + + return nil +} + +func clusterCompleteCredentialRotationManagementWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { + startTime := time.Now() + stopTime := startTime.Add(timeout) + return func(response oci_common.OCIOperationResponse) bool { + + // Stop after timeout has elapsed + if time.Now().After(stopTime) { + return false + } + + // Make sure we stop on default rules + if tfresource.ShouldRetry(response, false, "containerengine", startTime) { + return true + } + + // Only stop if the time Finished is set + if workRequestResponse, ok := response.Response.(oci_containerengine.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + } + return false + } +} + +func clusterCompleteCredentialRotationManagementWaitForWorkRequest(wId *string, entityType string, action oci_containerengine.WorkRequestResourceActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_containerengine.ContainerEngineClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "containerengine") + retryPolicy.ShouldRetryOperation = clusterCompleteCredentialRotationManagementWorkRequestShouldRetryFunc(timeout) + + response := oci_containerengine.GetWorkRequestResponse{} + stateConf := &resource.StateChangeConf{ + Pending: []string{ + string(oci_containerengine.WorkRequestStatusInProgress), + string(oci_containerengine.WorkRequestStatusAccepted), + string(oci_containerengine.WorkRequestStatusCanceling), + }, + Target: []string{ + string(oci_containerengine.WorkRequestStatusSucceeded), + string(oci_containerengine.WorkRequestStatusFailed), + string(oci_containerengine.WorkRequestStatusCanceled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_containerengine.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + wr := &response.WorkRequest + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + if strings.Contains(strings.ToLower(*res.EntityType), entityType) { + if res.ActionType == action { + identifier = res.Identifier + break + } + } + } + + // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled + if identifier == nil || response.Status == oci_containerengine.WorkRequestStatusFailed || response.Status == oci_containerengine.WorkRequestStatusCanceled { + return nil, getErrorFromContainerengineClusterCompleteCredentialRotationManagementWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromContainerengineClusterCompleteCredentialRotationManagementWorkRequest(client *oci_containerengine.ContainerEngineClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_containerengine.WorkRequestResourceActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_containerengine.ListWorkRequestErrorsRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if err != nil { + return err + } + + allErrs := make([]string, 0) + for _, wrkErr := range response.Items { + allErrs = append(allErrs, *wrkErr.Message) + } + errorMessage := strings.Join(allErrs, "\n") + + workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) + + return workRequestErr +} + +func (s *ContainerengineClusterCompleteCredentialRotationManagementResourceCrud) SetData() error { + return nil +} diff --git a/internal/service/containerengine/containerengine_cluster_credential_rotation_status_data_source.go b/internal/service/containerengine/containerengine_cluster_credential_rotation_status_data_source.go new file mode 100644 index 00000000000..44257c579be --- /dev/null +++ b/internal/service/containerengine/containerengine_cluster_credential_rotation_status_data_source.go @@ -0,0 +1,94 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package containerengine + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_containerengine "github.com/oracle/oci-go-sdk/v65/containerengine" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func ContainerengineClusterCredentialRotationStatusDataSource() *schema.Resource { + return &schema.Resource{ + Read: readSingularContainerengineClusterCredentialRotationStatus, + Schema: map[string]*schema.Schema{ + "cluster_id": { + Type: schema.TypeString, + Required: true, + }, + // Computed + "status": { + Type: schema.TypeString, + Computed: true, + }, + "status_details": { + Type: schema.TypeString, + Computed: true, + }, + "time_auto_completion_scheduled": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func readSingularContainerengineClusterCredentialRotationStatus(d *schema.ResourceData, m interface{}) error { + sync := &ContainerengineClusterCredentialRotationStatusDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ContainerEngineClient() + + return tfresource.ReadResource(sync) +} + +type ContainerengineClusterCredentialRotationStatusDataSourceCrud struct { + D *schema.ResourceData + Client *oci_containerengine.ContainerEngineClient + Res *oci_containerengine.GetCredentialRotationStatusResponse +} + +func (s *ContainerengineClusterCredentialRotationStatusDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *ContainerengineClusterCredentialRotationStatusDataSourceCrud) Get() error { + request := oci_containerengine.GetCredentialRotationStatusRequest{} + + if clusterId, ok := s.D.GetOkExists("cluster_id"); ok { + tmp := clusterId.(string) + request.ClusterId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "containerengine") + + response, err := s.Client.GetCredentialRotationStatus(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *ContainerengineClusterCredentialRotationStatusDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("ContainerengineClusterCredentialRotationStatusDataSource-", ContainerengineClusterCredentialRotationStatusDataSource(), s.D)) + + s.D.Set("status", s.Res.Status) + + s.D.Set("status_details", s.Res.StatusDetails) + + if s.Res.TimeAutoCompletionScheduled != nil { + s.D.Set("time_auto_completion_scheduled", s.Res.TimeAutoCompletionScheduled.String()) + } + + return nil +} diff --git a/internal/service/containerengine/containerengine_cluster_resource.go b/internal/service/containerengine/containerengine_cluster_resource.go index 5ac6e11b09b..867444733a3 100644 --- a/internal/service/containerengine/containerengine_cluster_resource.go +++ b/internal/service/containerengine/containerengine_cluster_resource.go @@ -409,6 +409,10 @@ func ContainerengineClusterResource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "time_credential_expiration": { + Type: schema.TypeString, + Computed: true, + }, "time_deleted": { Type: schema.TypeString, Computed: true, @@ -1247,6 +1251,10 @@ func ClusterMetadataToMap(obj *oci_containerengine.ClusterMetadata) map[string]i result["time_created"] = obj.TimeCreated.String() } + if obj.TimeCredentialExpiration != nil { + result["time_credential_expiration"] = obj.TimeCredentialExpiration.String() + } + if obj.TimeDeleted != nil { result["time_deleted"] = obj.TimeDeleted.String() } diff --git a/internal/service/containerengine/containerengine_cluster_start_credential_rotation_management_resource.go b/internal/service/containerengine/containerengine_cluster_start_credential_rotation_management_resource.go new file mode 100644 index 00000000000..551611da592 --- /dev/null +++ b/internal/service/containerengine/containerengine_cluster_start_credential_rotation_management_resource.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 containerengine + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" + oci_containerengine "github.com/oracle/oci-go-sdk/v65/containerengine" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func ContainerengineClusterStartCredentialRotationManagementResource() *schema.Resource { + return &schema.Resource{ + Timeouts: &schema.ResourceTimeout{ + Create: tfresource.GetTimeoutDuration("1h"), + Update: tfresource.GetTimeoutDuration("1h"), + Delete: tfresource.GetTimeoutDuration("1h"), + }, + Create: createContainerengineClusterStartCredentialRotationManagement, + Read: readContainerengineClusterStartCredentialRotationManagement, + Delete: deleteContainerengineClusterStartCredentialRotationManagement, + Schema: map[string]*schema.Schema{ + // Required + "auto_completion_delay_duration": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "cluster_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + + // Computed + }, + } +} + +func createContainerengineClusterStartCredentialRotationManagement(d *schema.ResourceData, m interface{}) error { + sync := &ContainerengineClusterStartCredentialRotationManagementResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ContainerEngineClient() + + return tfresource.CreateResource(d, sync) +} + +func readContainerengineClusterStartCredentialRotationManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +func deleteContainerengineClusterStartCredentialRotationManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +type ContainerengineClusterStartCredentialRotationManagementResourceCrud struct { + tfresource.BaseCrud + Client *oci_containerengine.ContainerEngineClient + Res *oci_containerengine.Cluster + DisableNotFoundRetries bool +} + +func (s *ContainerengineClusterStartCredentialRotationManagementResourceCrud) ID() string { + return *s.Res.Id +} + +func (s *ContainerengineClusterStartCredentialRotationManagementResourceCrud) Create() error { + request := oci_containerengine.StartCredentialRotationRequest{} + + if autoCompletionDelayDuration, ok := s.D.GetOkExists("auto_completion_delay_duration"); ok { + tmp := autoCompletionDelayDuration.(string) + request.AutoCompletionDelayDuration = &tmp + } + + if clusterId, ok := s.D.GetOkExists("cluster_id"); ok { + tmp := clusterId.(string) + request.ClusterId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "containerengine") + + response, err := s.Client.StartCredentialRotation(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + + // Wait until it finishes + _, waitErr := clusterStartCredentialRotationManagementWaitForWorkRequest(workId, "cluster", + oci_containerengine.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate), s.DisableNotFoundRetries, s.Client) + if waitErr != nil { + return waitErr + } + + requestGet := oci_containerengine.GetClusterRequest{} + clusterId, _ := s.D.GetOkExists("cluster_id") + tmpClusterId := clusterId.(string) + requestGet.ClusterId = &tmpClusterId + requestGet.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "containerengine") + responseGet, getClusterErr := s.Client.GetCluster(context.Background(), requestGet) + if getClusterErr != nil { + return getClusterErr + } + s.Res = &responseGet.Cluster + + return nil +} + +func clusterStartCredentialRotationManagementWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { + startTime := time.Now() + stopTime := startTime.Add(timeout) + return func(response oci_common.OCIOperationResponse) bool { + + // Stop after timeout has elapsed + if time.Now().After(stopTime) { + return false + } + + // Make sure we stop on default rules + if tfresource.ShouldRetry(response, false, "containerengine", startTime) { + return true + } + + // Only stop if the time Finished is set + if workRequestResponse, ok := response.Response.(oci_containerengine.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + } + return false + } +} + +func clusterStartCredentialRotationManagementWaitForWorkRequest(wId *string, entityType string, action oci_containerengine.WorkRequestResourceActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_containerengine.ContainerEngineClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "containerengine") + retryPolicy.ShouldRetryOperation = clusterStartCredentialRotationManagementWorkRequestShouldRetryFunc(timeout) + + response := oci_containerengine.GetWorkRequestResponse{} + stateConf := &resource.StateChangeConf{ + Pending: []string{ + string(oci_containerengine.WorkRequestStatusInProgress), + string(oci_containerengine.WorkRequestStatusAccepted), + string(oci_containerengine.WorkRequestStatusCanceling), + }, + Target: []string{ + string(oci_containerengine.WorkRequestStatusSucceeded), + string(oci_containerengine.WorkRequestStatusFailed), + string(oci_containerengine.WorkRequestStatusCanceled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_containerengine.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + wr := &response.WorkRequest + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + if strings.Contains(strings.ToLower(*res.EntityType), entityType) { + if res.ActionType == action { + identifier = res.Identifier + break + } + } + } + + // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled + if identifier == nil || response.Status == oci_containerengine.WorkRequestStatusFailed || response.Status == oci_containerengine.WorkRequestStatusCanceled { + return nil, getErrorFromContainerengineClusterStartCredentialRotationManagementWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromContainerengineClusterStartCredentialRotationManagementWorkRequest(client *oci_containerengine.ContainerEngineClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_containerengine.WorkRequestResourceActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_containerengine.ListWorkRequestErrorsRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if err != nil { + return err + } + + allErrs := make([]string, 0) + for _, wrkErr := range response.Items { + allErrs = append(allErrs, *wrkErr.Message) + } + errorMessage := strings.Join(allErrs, "\n") + + workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) + + return workRequestErr +} + +func (s *ContainerengineClusterStartCredentialRotationManagementResourceCrud) SetData() error { + return nil +} diff --git a/internal/service/containerengine/register_datasource.go b/internal/service/containerengine/register_datasource.go index c9d481cd7fe..a12287cfff8 100644 --- a/internal/service/containerengine/register_datasource.go +++ b/internal/service/containerengine/register_datasource.go @@ -9,6 +9,7 @@ func RegisterDatasource() { tfresource.RegisterDatasource("oci_containerengine_addon", ContainerengineAddonDataSource()) tfresource.RegisterDatasource("oci_containerengine_addon_options", ContainerengineAddonOptionsDataSource()) tfresource.RegisterDatasource("oci_containerengine_addons", ContainerengineAddonsDataSource()) + tfresource.RegisterDatasource("oci_containerengine_cluster_credential_rotation_status", ContainerengineClusterCredentialRotationStatusDataSource()) tfresource.RegisterDatasource("oci_containerengine_cluster_kube_config", ContainerengineClusterKubeConfigDataSource()) tfresource.RegisterDatasource("oci_containerengine_cluster_option", ContainerengineClusterOptionDataSource()) tfresource.RegisterDatasource("oci_containerengine_cluster_workload_mapping", ContainerengineClusterWorkloadMappingDataSource()) diff --git a/internal/service/containerengine/register_resource.go b/internal/service/containerengine/register_resource.go index 8a8386a523b..74d0e6a8b2e 100644 --- a/internal/service/containerengine/register_resource.go +++ b/internal/service/containerengine/register_resource.go @@ -9,6 +9,8 @@ func RegisterResource() { tfresource.RegisterResource("oci_containerengine_addon", ContainerengineAddonResource()) tfresource.RegisterResource("oci_containerengine_cluster", ContainerengineClusterResource()) tfresource.RegisterResource("oci_containerengine_cluster_workload_mapping", ContainerengineClusterWorkloadMappingResource()) + tfresource.RegisterResource("oci_containerengine_cluster_complete_credential_rotation_management", ContainerengineClusterCompleteCredentialRotationManagementResource()) + tfresource.RegisterResource("oci_containerengine_cluster_start_credential_rotation_management", ContainerengineClusterStartCredentialRotationManagementResource()) tfresource.RegisterResource("oci_containerengine_node_pool", ContainerengineNodePoolResource()) tfresource.RegisterResource("oci_containerengine_virtual_node_pool", ContainerengineVirtualNodePoolResource()) } diff --git a/website/docs/d/containerengine_cluster_credential_rotation_status.html.markdown b/website/docs/d/containerengine_cluster_credential_rotation_status.html.markdown new file mode 100644 index 00000000000..37724a33741 --- /dev/null +++ b/website/docs/d/containerengine_cluster_credential_rotation_status.html.markdown @@ -0,0 +1,38 @@ +--- +subcategory: "Container Engine" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_containerengine_cluster_credential_rotation_status" +sidebar_current: "docs-oci-datasource-containerengine-cluster_credential_rotation_status" +description: |- + Provides details about a specific Cluster Credential Rotation Status in Oracle Cloud Infrastructure Container Engine service +--- + +# Data Source: oci_containerengine_cluster_credential_rotation_status +This data source provides details about a specific Cluster Credential Rotation Status resource in Oracle Cloud Infrastructure Container Engine service. + +Get cluster credential rotation status. + +## Example Usage + +```hcl +data "oci_containerengine_cluster_credential_rotation_status" "test_cluster_credential_rotation_status" { + #Required + cluster_id = oci_containerengine_cluster.test_cluster.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `cluster_id` - (Required) The OCID of the cluster. + + +## Attributes Reference + +The following attributes are exported: + +* `status` - Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster. +* `status_details` - Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired. +* `time_auto_completion_scheduled` - The time by which retirement of old credentials should start. + diff --git a/website/docs/d/containerengine_clusters.html.markdown b/website/docs/d/containerengine_clusters.html.markdown index d45f52d5324..d92416c129c 100644 --- a/website/docs/d/containerengine_clusters.html.markdown +++ b/website/docs/d/containerengine_clusters.html.markdown @@ -73,6 +73,7 @@ The following attributes are exported: * `deleted_by_user_id` - The user who deleted the cluster. * `deleted_by_work_request_id` - The OCID of the work request which deleted the cluster. * `time_created` - The time the cluster was created. + * `time_credential_expiration` - The time until which the cluster credential is valid. * `time_deleted` - The time the cluster was deleted. * `time_updated` - The time the cluster was updated. * `updated_by_user_id` - The user who updated the cluster. diff --git a/website/docs/r/containerengine_cluster.html.markdown b/website/docs/r/containerengine_cluster.html.markdown index 7e2327f63c7..b4e08d848be 100644 --- a/website/docs/r/containerengine_cluster.html.markdown +++ b/website/docs/r/containerengine_cluster.html.markdown @@ -161,6 +161,7 @@ The following attributes are exported: * `deleted_by_user_id` - The user who deleted the cluster. * `deleted_by_work_request_id` - The OCID of the work request which deleted the cluster. * `time_created` - The time the cluster was created. + * `time_credential_expiration` - The time until which the cluster credential is valid. * `time_deleted` - The time the cluster was deleted. * `time_updated` - The time the cluster was updated. * `updated_by_user_id` - The user who updated the cluster. diff --git a/website/docs/r/containerengine_cluster_complete_credential_rotation_management.html.markdown b/website/docs/r/containerengine_cluster_complete_credential_rotation_management.html.markdown new file mode 100644 index 00000000000..15ab0138bb7 --- /dev/null +++ b/website/docs/r/containerengine_cluster_complete_credential_rotation_management.html.markdown @@ -0,0 +1,51 @@ +--- +subcategory: "Container Engine" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_containerengine_cluster_complete_credential_rotation_management" +sidebar_current: "docs-oci-resource-containerengine-cluster_complete_credential_rotation_management" +description: |- + Provides the Cluster Complete Credential Rotation Management resource in Oracle Cloud Infrastructure Container Engine service +--- + +# oci_containerengine_cluster_complete_credential_rotation_management +This resource provides the Cluster Complete Credential Rotation Management resource in Oracle Cloud Infrastructure Container Engine service. + +Complete cluster credential rotation. Retire old credentials from kubernetes components. + +## Example Usage + +```hcl +resource "oci_containerengine_cluster_complete_credential_rotation_management" "test_cluster_complete_credential_rotation_management" { + #Required + cluster_id = oci_containerengine_cluster.test_cluster.id + depends_on = [oci_containerengine_cluster_start_credential_rotation_management.test_cluster_start_credential_rotation_management] +} +``` + +## Argument Reference + +The following arguments are supported: + +* `cluster_id` - (Required) The OCID of the cluster. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the Cluster Complete Credential Rotation Management + * `update` - (Defaults to 20 minutes), when updating the Cluster Complete Credential Rotation Management + * `delete` - (Defaults to 20 minutes), when destroying the Cluster Complete Credential Rotation Management + + +## Import + +Import is not supported for this resource. + diff --git a/website/docs/r/containerengine_cluster_start_credential_rotation_management.html.markdown b/website/docs/r/containerengine_cluster_start_credential_rotation_management.html.markdown new file mode 100644 index 00000000000..4b567303de1 --- /dev/null +++ b/website/docs/r/containerengine_cluster_start_credential_rotation_management.html.markdown @@ -0,0 +1,52 @@ +--- +subcategory: "Container Engine" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_containerengine_cluster_start_credential_rotation_management" +sidebar_current: "docs-oci-resource-containerengine-cluster_start_credential_rotation_management" +description: |- + Provides the Cluster Start Credential Rotation Management resource in Oracle Cloud Infrastructure Container Engine service +--- + +# oci_containerengine_cluster_start_credential_rotation_management +This resource provides the Cluster Start Credential Rotation Management resource in Oracle Cloud Infrastructure Container Engine service. + +Start cluster credential rotation by adding new credentials, old credentials will still work after this operation. + +## Example Usage + +```hcl +resource "oci_containerengine_cluster_start_credential_rotation_management" "test_cluster_start_credential_rotation_management" { + #Required + auto_completion_delay_duration = var.cluster_start_credential_rotation_management_auto_completion_delay_duration + cluster_id = oci_containerengine_cluster.test_cluster.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `auto_completion_delay_duration` - (Required) The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days. +* `cluster_id` - (Required) The OCID of the cluster. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the Cluster Start Credential Rotation Management + * `update` - (Defaults to 20 minutes), when updating the Cluster Start Credential Rotation Management + * `delete` - (Defaults to 20 minutes), when destroying the Cluster Start Credential Rotation Management + + +## Import + +Import is not supported for this resource. + From 028ba4ccd6d76c2180abb6856f24a1337b7b6756 Mon Sep 17 00:00:00 2001 From: Shravan Thatikonda Date: Fri, 19 May 2023 15:20:22 +0000 Subject: [PATCH 17/25] Added - Support for TLS & ORDS BYO Certificates (Phase 2) | ADB-C@C --- examples/database/exadata_cc/adbd/adb.tf | 2 +- ..._vm_cluster_ords_certificate_management.tf | 6 + ...s_vm_cluster_ssl_certificate_management.tf | 5 + .../database/exadata_cc/adbd/variables.tf | 4 + ...luster_ords_certificate_management_test.go | 102 +++++++++++++ ...cluster_ssl_certificate_management_test.go | 106 +++++++++++++ .../database_autonomous_vm_cluster_test.go | 31 ++-- ...abase_autonomous_vm_cluster_data_source.go | 8 + ...er_ords_certificate_management_resource.go | 144 ++++++++++++++++++ ...database_autonomous_vm_cluster_resource.go | 16 ++ ...ter_ssl_certificate_management_resource.go | 144 ++++++++++++++++++ ...base_autonomous_vm_clusters_data_source.go | 8 + .../service/database/register_resource.go | 2 + ...tabase_autonomous_vm_cluster.html.markdown | 2 + ...abase_autonomous_vm_clusters.html.markdown | 2 + ...tabase_autonomous_vm_cluster.html.markdown | 2 + ..._ords_certificate_management.html.markdown | 61 ++++++++ ...r_ssl_certificate_management.html.markdown | 61 ++++++++ 18 files changed, 691 insertions(+), 15 deletions(-) create mode 100644 examples/database/exadata_cc/adbd/autonomous_vm_cluster_ords_certificate_management.tf create mode 100644 examples/database/exadata_cc/adbd/autonomous_vm_cluster_ssl_certificate_management.tf create mode 100644 internal/integrationtest/database_autonomous_vm_cluster_ords_certificate_management_test.go create mode 100644 internal/integrationtest/database_autonomous_vm_cluster_ssl_certificate_management_test.go create mode 100644 internal/service/database/database_autonomous_vm_cluster_ords_certificate_management_resource.go create mode 100644 internal/service/database/database_autonomous_vm_cluster_ssl_certificate_management_resource.go create mode 100644 website/docs/r/database_autonomous_vm_cluster_ords_certificate_management.html.markdown create mode 100644 website/docs/r/database_autonomous_vm_cluster_ssl_certificate_management.html.markdown diff --git a/examples/database/exadata_cc/adbd/adb.tf b/examples/database/exadata_cc/adbd/adb.tf index d098f7610a4..28dcc9259c7 100644 --- a/examples/database/exadata_cc/adbd/adb.tf +++ b/examples/database/exadata_cc/adbd/adb.tf @@ -10,7 +10,7 @@ resource "oci_database_autonomous_database" "test_autonomous_database" { #Required admin_password = random_string.autonomous_database_admin_password.result compartment_id = var.compartment_ocid - compute_count = "2" + ocpu_count = "2" data_storage_size_in_tbs = "1" db_name = "atpdb1" diff --git a/examples/database/exadata_cc/adbd/autonomous_vm_cluster_ords_certificate_management.tf b/examples/database/exadata_cc/adbd/autonomous_vm_cluster_ords_certificate_management.tf new file mode 100644 index 00000000000..f08877b7ee5 --- /dev/null +++ b/examples/database/exadata_cc/adbd/autonomous_vm_cluster_ords_certificate_management.tf @@ -0,0 +1,6 @@ +resource "oci_database_autonomous_vm_cluster_ords_certificate_management" "test_avm_ords_mgmt_res"{ + autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id + certificate_generation_type = "BYOC" + certificate_id = var.avm_certificate_id +} + diff --git a/examples/database/exadata_cc/adbd/autonomous_vm_cluster_ssl_certificate_management.tf b/examples/database/exadata_cc/adbd/autonomous_vm_cluster_ssl_certificate_management.tf new file mode 100644 index 00000000000..61c84810e3b --- /dev/null +++ b/examples/database/exadata_cc/adbd/autonomous_vm_cluster_ssl_certificate_management.tf @@ -0,0 +1,5 @@ +resource "oci_database_autonomous_vm_cluster_ssl_certificate_management" "test_avm_db_mgmt_res"{ + autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id + certificate_generation_type = "SYSTEM" +} + diff --git a/examples/database/exadata_cc/adbd/variables.tf b/examples/database/exadata_cc/adbd/variables.tf index 82a0804265a..9975eeb8e93 100644 --- a/examples/database/exadata_cc/adbd/variables.tf +++ b/examples/database/exadata_cc/adbd/variables.tf @@ -17,4 +17,8 @@ variable "compartment_ocid" { } variable "ssh_public_key" { +} + +variable "avm_certificate_id"{ + } \ No newline at end of file diff --git a/internal/integrationtest/database_autonomous_vm_cluster_ords_certificate_management_test.go b/internal/integrationtest/database_autonomous_vm_cluster_ords_certificate_management_test.go new file mode 100644 index 00000000000..dccf34ed9a1 --- /dev/null +++ b/internal/integrationtest/database_autonomous_vm_cluster_ords_certificate_management_test.go @@ -0,0 +1,102 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "strconv" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + certificateId = utils.GetEnvSettingWithBlankDefault("avm_certificate_id") + certificateVariableStr = fmt.Sprintf("variable \"avm_certificate_id\" { default = \"%s\" }\n", certificateId) + DatabaseAutonomousVmClusterOrdsCertificateManagementRepresentation = map[string]interface{}{ + "autonomous_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id}`}, + "certificate_generation_type": acctest.Representation{RepType: acctest.Required, Create: `BYOC`}, + "certificate_id": acctest.Representation{RepType: acctest.Required, Create: `${var.avm_certificate_id}`}, + } + + //DatabaseAutonomousVmClusterOrdsSystemCertificateManagementRepresentation = map[string]interface{}{ + // "autonomous_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id}`}, + // "certificate_generation_type": acctest.Representation{RepType: acctest.Required, Create: `SYSTEM`}, + //} + + DatabaseAutonomousVmClusterOrdsManagementResourceDependencies = certificateVariableStr + DatabaseAutonomousVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster", "test_autonomous_vm_cluster", acctest.Required, acctest.Create, DatabaseAutonomousVmClusterRepresentation) +) + +// issue-routing-tag: database/ExaCC +func TestDatabaseAutonomousVmClusterOrdsCertificateManagementResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseAutonomousVmClusterOrdsCertificateManagementResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_database_autonomous_vm_cluster_ords_certificate_management.test_autonomous_vm_cluster_ords_certificate_management" + singularDatasourceName := "data.oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster" + + var resId string + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+DatabaseAutonomousVmClusterOrdsManagementResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster_ords_certificate_management", "test_autonomous_vm_cluster_ords_certificate_management", acctest.Required, acctest.Create, DatabaseAutonomousVmClusterOrdsCertificateManagementRepresentation), "database", "autonomousVmClusterOrdsCertificateManagement", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify Create + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterOrdsManagementResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster_ords_certificate_management", "test_autonomous_vm_cluster_ords_certificate_management", acctest.Required, acctest.Create, DatabaseAutonomousVmClusterOrdsCertificateManagementRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "autonomous_vm_cluster_id"), + resource.TestCheckResourceAttr(resourceName, "certificate_generation_type", "BYOC"), + resource.TestCheckResourceAttrSet(resourceName, "certificate_id"), + ), + }, + + // delete before next Create + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterOrdsManagementResourceDependencies, + }, + // verify Create with optionals + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterOrdsManagementResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster_ords_certificate_management", "test_autonomous_vm_cluster_ords_certificate_management", acctest.Optional, acctest.Create, DatabaseAutonomousVmClusterOrdsCertificateManagementRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "autonomous_vm_cluster_id"), + resource.TestCheckResourceAttr(resourceName, "certificate_generation_type", "BYOC"), + resource.TestCheckResourceAttrSet(resourceName, "certificate_id"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + if isEnableExportCompartment, _ := strconv.ParseBool(utils.GetEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil { + return errExport + } + } + return err + }, + ), + }, + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterOrdsManagementResourceDependencies + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_vm_cluster", "test_autonomous_vm_cluster", acctest.Required, acctest.Create, DatabaseDatabaseAutonomousVmClusterSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "autonomous_vm_cluster_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_ords_certificate_expires"), + ), + }, + }) +} diff --git a/internal/integrationtest/database_autonomous_vm_cluster_ssl_certificate_management_test.go b/internal/integrationtest/database_autonomous_vm_cluster_ssl_certificate_management_test.go new file mode 100644 index 00000000000..507f2257887 --- /dev/null +++ b/internal/integrationtest/database_autonomous_vm_cluster_ssl_certificate_management_test.go @@ -0,0 +1,106 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "strconv" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + DatabaseAutonomousVmClusterSslCertificateManagementRepresentation = map[string]interface{}{ + "autonomous_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id}`}, + "certificate_generation_type": acctest.Representation{RepType: acctest.Required, Create: `BYOC`}, + "certificate_id": acctest.Representation{RepType: acctest.Required, Create: `${var.avm_certificate_id}`}, + } + + DatabaseAutonomousVmClusterSslManagementResourceDependencies = DatabaseAutonomousVmClusterResourceDependencies + certificateVariableStr + + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster", "test_autonomous_vm_cluster", acctest.Required, acctest.Create, DatabaseAutonomousVmClusterRepresentation) + + //DatabaseAutonomousVmClusterSslCertificateManagementResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_apigateway_certificate", "test_certificate", acctest.Required, acctest.Create, certificateRepresentation) + + // GenerateResourceFromRepresentationMap("oci_apigateway_certificate", "test_certificate", Required, Create, apiGatewaycertificateRepresentation) + + // acctest.GenerateResourceFromRepresentationMap("oci_certificates_management_ca_bundle", "test_ca_bundle", acctest.Required, acctest.Create, caBundleRepresentation) + + // acctest.GenerateResourceFromRepresentationMap("oci_certificates_management_certificate_authority", "test_certificate_authority", acctest.Required, acctest.Create, certificateAuthorityRepresentation) + + // acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster", "test_autonomous_vm_cluster", acctest.Required, acctest.Create, autonomousVmClusterRepresentation) + + // acctest.GenerateResourceFromRepresentationMap("oci_database_exadata_infrastructure", "test_exadata_infrastructure", acctest.Required, acctest.Create, exadataInfrastructureRepresentation) + + // acctest.GenerateResourceFromRepresentationMap("oci_database_vm_cluster_network", "test_vm_cluster_network", acctest.Required, acctest.Create, vmClusterNetworkRepresentation) + + // KeyResourceDependencyConfig + + // acctest.GenerateResourceFromRepresentationMap("oci_objectstorage_bucket", "test_bucket", acctest.Required, acctest.Create, bucketRepresentation) + + // GenerateDataSourceFromRepresentationMap("oci_objectstorage_namespace", "test_namespace", Required, Create, namespaceSingularDataSourceRepresentation) +) + +// issue-routing-tag: database/ExaCC +func TestDatabaseAutonomousVmClusterSslCertificateManagementResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseAutonomousVmClusterSslCertificateManagementResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_database_autonomous_vm_cluster_ssl_certificate_management.test_autonomous_vm_cluster_ssl_certificate_management" + singularDatasourceName := "data.oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster" + + var resId string + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+DatabaseAutonomousVmClusterSslManagementResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster_ssl_certificate_management", "test_autonomous_vm_cluster_ssl_certificate_management", acctest.Required, acctest.Create, DatabaseAutonomousVmClusterSslCertificateManagementRepresentation), "database", "autonomousVmClusterSslCertificateManagement", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify Create + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterSslManagementResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster_ssl_certificate_management", "test_autonomous_vm_cluster_ssl_certificate_management", acctest.Required, acctest.Create, DatabaseAutonomousVmClusterSslCertificateManagementRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "autonomous_vm_cluster_id"), + resource.TestCheckResourceAttr(resourceName, "certificate_generation_type", "BYOC"), + resource.TestCheckResourceAttrSet(resourceName, "certificate_id"), + ), + }, + + // delete before next Create + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterSslManagementResourceDependencies, + }, + // verify Create with optionals + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterSslManagementResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster_ssl_certificate_management", "test_autonomous_vm_cluster_ssl_certificate_management", acctest.Optional, acctest.Create, DatabaseAutonomousVmClusterSslCertificateManagementRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "autonomous_vm_cluster_id"), + resource.TestCheckResourceAttr(resourceName, "certificate_generation_type", "BYOC"), + resource.TestCheckResourceAttrSet(resourceName, "certificate_id"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + if isEnableExportCompartment, _ := strconv.ParseBool(utils.GetEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil { + return errExport + } + } + return err + }, + ), + }, + { + Config: config + compartmentIdVariableStr + DatabaseAutonomousVmClusterOrdsManagementResourceDependencies + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_vm_cluster", "test_autonomous_vm_cluster", acctest.Required, acctest.Create, DatabaseDatabaseAutonomousVmClusterSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "autonomous_vm_cluster_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_database_ssl_certificate_expires"), + ), + }, + }) +} diff --git a/internal/integrationtest/database_autonomous_vm_cluster_test.go b/internal/integrationtest/database_autonomous_vm_cluster_test.go index f171c3c426d..4bcca4173cd 100644 --- a/internal/integrationtest/database_autonomous_vm_cluster_test.go +++ b/internal/integrationtest/database_autonomous_vm_cluster_test.go @@ -48,11 +48,11 @@ var ( } DatabaseAutonomousVmClusterRepresentation = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "display_name": acctest.Representation{RepType: acctest.Required, Create: `autonomousVmCluster`}, - "exadata_infrastructure_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_exadata_infrastructure.test_exadata_infrastructure.id}`}, - "vm_cluster_network_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_vm_cluster_network.test_vm_cluster_network.id}`}, - "compute_model": acctest.Representation{RepType: acctest.Optional, Create: `OCPU`}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `autonomousVmCluster`}, + "exadata_infrastructure_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_exadata_infrastructure.test_exadata_infrastructure.id}`}, + "vm_cluster_network_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_vm_cluster_network.test_vm_cluster_network.id}`}, + //"compute_model": acctest.Representation{RepType: acctest.Optional, Create: `OCPU`}, "autonomous_data_storage_size_in_tbs": acctest.Representation{RepType: acctest.Required, Create: `2.0`}, "cpu_core_count_per_node": acctest.Representation{RepType: acctest.Required, Create: `10`}, "db_servers": acctest.Representation{RepType: acctest.Optional, Create: []string{`${data.oci_database_db_servers.test_db_servers.db_servers.0.id}`, `${data.oci_database_db_servers.test_db_servers.db_servers.1.id}`}}, @@ -166,14 +166,14 @@ func TestDatabaseAutonomousVmClusterResource_basic(t *testing.T) { acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster", "test_autonomous_vm_cluster", acctest.Optional, acctest.Create, DatabaseAutonomousVmClusterRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_vm_cluster", "test_autonomous_vm_cluster1", acctest.Optional, acctest.Create, acctest.RepresentationCopyWithNewProperties(DatabaseAutonomousVmClusterRepresentation, map[string]interface{}{ - "compute_model": acctest.Representation{RepType: acctest.Required, Create: `ECPU`}, + // "compute_model": acctest.Representation{RepType: acctest.Required, Create: `ECPU`}, "display_name": acctest.Representation{RepType: acctest.Required, Create: "testAVM2"}, "vm_cluster_network_id": acctest.Representation{RepType: acctest.Required, Create: "${oci_database_vm_cluster_network.test_vm_cluster_network2.id}"}, })), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName1, "compartment_id", compartmentId), resource.TestCheckResourceAttr(resourceName1, "display_name", "testAVM2"), - resource.TestCheckResourceAttr(resourceName1, "compute_model", "ECPU"), + //resource.TestCheckResourceAttr(resourceName1, "compute_model", "OCPU"), resource.TestCheckResourceAttrSet(resourceName1, "exadata_infrastructure_id"), resource.TestCheckResourceAttrSet(resourceName1, "vm_cluster_network_id"), @@ -195,7 +195,7 @@ func TestDatabaseAutonomousVmClusterResource_basic(t *testing.T) { Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "autonomous_data_storage_size_in_tbs", "2"), resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), - resource.TestCheckResourceAttr(resourceName, "compute_model", "OCPU"), + //resource.TestCheckResourceAttr(resourceName, "compute_model", "OCPU"), resource.TestCheckResourceAttr(resourceName, "cpu_core_count_per_node", "10"), resource.TestCheckResourceAttr(resourceName, "db_servers.#", "2"), resource.TestCheckResourceAttr(resourceName, "display_name", "autonomousVmCluster"), @@ -244,7 +244,7 @@ func TestDatabaseAutonomousVmClusterResource_basic(t *testing.T) { Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "autonomous_data_storage_size_in_tbs", "2"), resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentIdU), - resource.TestCheckResourceAttr(resourceName, "compute_model", "OCPU"), + //resource.TestCheckResourceAttr(resourceName, "compute_model", "OCPU"), resource.TestCheckResourceAttr(resourceName, "cpu_core_count_per_node", "10"), resource.TestCheckResourceAttr(resourceName, "db_servers.#", "2"), resource.TestCheckResourceAttr(resourceName, "display_name", "autonomousVmCluster"), @@ -288,7 +288,7 @@ func TestDatabaseAutonomousVmClusterResource_basic(t *testing.T) { Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "autonomous_data_storage_size_in_tbs", "2"), resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), - resource.TestCheckResourceAttr(resourceName, "compute_model", "OCPU"), + //resource.TestCheckResourceAttr(resourceName, "compute_model", "OCPU"), resource.TestCheckResourceAttr(resourceName, "cpu_core_count_per_node", "10"), resource.TestCheckResourceAttr(resourceName, "db_servers.#", "2"), resource.TestCheckResourceAttr(resourceName, "display_name", "autonomousVmCluster"), @@ -342,10 +342,10 @@ func TestDatabaseAutonomousVmClusterResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.available_container_databases"), //resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.autonomous_data_storage_size_in_tbs", "1"), resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.available_cpus"), - resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.compute_model", "OCPU"), + //resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.compute_model", "OCPU"), resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.available_data_storage_size_in_tbs"), resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.compartment_id", compartmentId), - resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.compute_model", "OCPU"), + //resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.compute_model", "OCPU"), resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.cpu_core_count_per_node", "10"), resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.cpus_enabled"), resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.data_storage_size_in_tbs"), @@ -369,6 +369,9 @@ func TestDatabaseAutonomousVmClusterResource_basic(t *testing.T) { //resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.ocpus_enabled"), resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.state"), resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.time_created"), + // these are set only when certificate is rotated + //resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.time_database_ssl_certificate_expires"), + //resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.time_ords_certificate_expires"), resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.time_zone", "US/Pacific"), resource.TestCheckResourceAttr(datasourceName, "autonomous_vm_clusters.0.total_container_databases", "2"), resource.TestCheckResourceAttrSet(datasourceName, "autonomous_vm_clusters.0.vm_cluster_network_id"), @@ -388,9 +391,9 @@ func TestDatabaseAutonomousVmClusterResource_basic(t *testing.T) { //resource.TestCheckResourceAttr(singularDatasourceName, "autonomous_data_storage_size_in_tbs", "1"), resource.TestCheckResourceAttrSet(singularDatasourceName, "available_cpus"), resource.TestCheckResourceAttrSet(singularDatasourceName, "available_data_storage_size_in_tbs"), - resource.TestCheckResourceAttr(singularDatasourceName, "compute_model", "OCPU"), + //resource.TestCheckResourceAttr(singularDatasourceName, "compute_model", "OCPU"), resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), - resource.TestCheckResourceAttr(singularDatasourceName, "compute_model", "OCPU"), + //resource.TestCheckResourceAttr(singularDatasourceName, "compute_model", "OCPU"), resource.TestCheckResourceAttr(singularDatasourceName, "cpu_core_count_per_node", "10"), resource.TestCheckResourceAttrSet(singularDatasourceName, "cpus_enabled"), resource.TestCheckResourceAttrSet(singularDatasourceName, "data_storage_size_in_tbs"), diff --git a/internal/service/database/database_autonomous_vm_cluster_data_source.go b/internal/service/database/database_autonomous_vm_cluster_data_source.go index 3b66a2a5af1..f18398c19b7 100644 --- a/internal/service/database/database_autonomous_vm_cluster_data_source.go +++ b/internal/service/database/database_autonomous_vm_cluster_data_source.go @@ -190,6 +190,14 @@ func (s *DatabaseAutonomousVmClusterDataSourceCrud) SetData() error { s.D.Set("time_created", s.Res.TimeCreated.String()) } + if s.Res.TimeDatabaseSslCertificateExpires != nil { + s.D.Set("time_database_ssl_certificate_expires", s.Res.TimeDatabaseSslCertificateExpires.String()) + } + + if s.Res.TimeOrdsCertificateExpires != nil { + s.D.Set("time_ords_certificate_expires", s.Res.TimeOrdsCertificateExpires.String()) + } + if s.Res.TimeZone != nil { s.D.Set("time_zone", *s.Res.TimeZone) } diff --git a/internal/service/database/database_autonomous_vm_cluster_ords_certificate_management_resource.go b/internal/service/database/database_autonomous_vm_cluster_ords_certificate_management_resource.go new file mode 100644 index 00000000000..6ff356df6d6 --- /dev/null +++ b/internal/service/database/database_autonomous_vm_cluster_ords_certificate_management_resource.go @@ -0,0 +1,144 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_database "github.com/oracle/oci-go-sdk/v65/database" + oci_work_requests "github.com/oracle/oci-go-sdk/v65/workrequests" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseAutonomousVmClusterOrdsCertificateManagementResource() *schema.Resource { + return &schema.Resource{ + Timeouts: tfresource.DefaultTimeout, + Create: createDatabaseAutonomousVmClusterOrdsCertificateManagement, + Read: readDatabaseAutonomousVmClusterOrdsCertificateManagement, + Delete: deleteDatabaseAutonomousVmClusterOrdsCertificateManagement, + Schema: map[string]*schema.Schema{ + // Required + "autonomous_vm_cluster_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "certificate_generation_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "ca_bundle_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "certificate_authority_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "certificate_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + } +} + +func createDatabaseAutonomousVmClusterOrdsCertificateManagement(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseAutonomousVmClusterOrdsCertificateManagementResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + sync.WorkRequestClient = m.(*client.OracleClients).WorkRequestClient + + return tfresource.CreateResource(d, sync) +} + +func readDatabaseAutonomousVmClusterOrdsCertificateManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +func deleteDatabaseAutonomousVmClusterOrdsCertificateManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +type DatabaseAutonomousVmClusterOrdsCertificateManagementResourceCrud struct { + tfresource.BaseCrud + Client *oci_database.DatabaseClient + Res *oci_database.RotateAutonomousVmClusterOrdsCertsResponse + DisableNotFoundRetries bool + WorkRequestClient *oci_work_requests.WorkRequestClient +} + +func (s *DatabaseAutonomousVmClusterOrdsCertificateManagementResourceCrud) ID() string { + return tfresource.GenerateDataSourceHashID("DatabaseAutonomousVmClusterOrdsCertificateManagementResource-", DatabaseAutonomousVmClusterOrdsCertificateManagementResource(), s.D) +} + +func (s *DatabaseAutonomousVmClusterOrdsCertificateManagementResourceCrud) Create() error { + request := oci_database.RotateAutonomousVmClusterOrdsCertsRequest{} + + if autonomousVmClusterId, ok := s.D.GetOkExists("autonomous_vm_cluster_id"); ok { + tmp := autonomousVmClusterId.(string) + request.AutonomousVmClusterId = &tmp + } + + if caBundleId, ok := s.D.GetOkExists("ca_bundle_id"); ok { + tmp := caBundleId.(string) + request.CaBundleId = &tmp + } + + if certificateAuthorityId, ok := s.D.GetOkExists("certificate_authority_id"); ok { + tmp := certificateAuthorityId.(string) + request.CertificateAuthorityId = &tmp + } + + if certificateGenerationType, ok := s.D.GetOkExists("certificate_generation_type"); ok { + request.CertificateGenerationType = oci_database.RotateAutonomousVmClusterOrdsCertsDetailsCertificateGenerationTypeEnum(certificateGenerationType.(string)) + } + + if certificateId, ok := s.D.GetOkExists("certificate_id"); ok { + tmp := certificateId.(string) + request.CertificateId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.RotateAutonomousVmClusterOrdsCerts(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + s.Res = &response + + if workId != nil { + var identifier *string + var err error + identifier, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "autonomousvmcluster", oci_work_requests.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate), s.DisableNotFoundRetries) + if identifier != nil { + s.D.SetId(*identifier) + } + if err != nil { + return err + } + } + return nil +} + +func (s *DatabaseAutonomousVmClusterOrdsCertificateManagementResourceCrud) SetData() error { + return nil +} diff --git a/internal/service/database/database_autonomous_vm_cluster_resource.go b/internal/service/database/database_autonomous_vm_cluster_resource.go index 8d5efe11ec3..78a27ae524f 100644 --- a/internal/service/database/database_autonomous_vm_cluster_resource.go +++ b/internal/service/database/database_autonomous_vm_cluster_resource.go @@ -389,6 +389,14 @@ func DatabaseAutonomousVmClusterResource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "time_database_ssl_certificate_expires": { + Type: schema.TypeString, + Computed: true, + }, + "time_ords_certificate_expires": { + Type: schema.TypeString, + Computed: true, + }, }, } } @@ -805,6 +813,14 @@ func (s *DatabaseAutonomousVmClusterResourceCrud) SetData() error { s.D.Set("time_created", s.Res.TimeCreated.String()) } + if s.Res.TimeDatabaseSslCertificateExpires != nil { + s.D.Set("time_database_ssl_certificate_expires", s.Res.TimeDatabaseSslCertificateExpires.String()) + } + + if s.Res.TimeOrdsCertificateExpires != nil { + s.D.Set("time_ords_certificate_expires", s.Res.TimeOrdsCertificateExpires.String()) + } + if s.Res.TimeZone != nil { s.D.Set("time_zone", *s.Res.TimeZone) } diff --git a/internal/service/database/database_autonomous_vm_cluster_ssl_certificate_management_resource.go b/internal/service/database/database_autonomous_vm_cluster_ssl_certificate_management_resource.go new file mode 100644 index 00000000000..c67580eba2a --- /dev/null +++ b/internal/service/database/database_autonomous_vm_cluster_ssl_certificate_management_resource.go @@ -0,0 +1,144 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_database "github.com/oracle/oci-go-sdk/v65/database" + oci_work_requests "github.com/oracle/oci-go-sdk/v65/workrequests" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseAutonomousVmClusterSslCertificateManagementResource() *schema.Resource { + return &schema.Resource{ + Timeouts: tfresource.DefaultTimeout, + Create: createDatabaseAutonomousVmClusterSslCertificateManagement, + Read: readDatabaseAutonomousVmClusterSslCertificateManagement, + Delete: deleteDatabaseAutonomousVmClusterSslCertificateManagement, + Schema: map[string]*schema.Schema{ + // Required + "autonomous_vm_cluster_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "certificate_generation_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "ca_bundle_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "certificate_authority_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "certificate_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + } +} + +func createDatabaseAutonomousVmClusterSslCertificateManagement(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseAutonomousVmClusterSslCertificateManagementResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + sync.WorkRequestClient = m.(*client.OracleClients).WorkRequestClient + + return tfresource.CreateResource(d, sync) +} + +func readDatabaseAutonomousVmClusterSslCertificateManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +func deleteDatabaseAutonomousVmClusterSslCertificateManagement(d *schema.ResourceData, m interface{}) error { + return nil +} + +type DatabaseAutonomousVmClusterSslCertificateManagementResourceCrud struct { + tfresource.BaseCrud + Client *oci_database.DatabaseClient + Res *oci_database.RotateAutonomousVmClusterSslCertsResponse + DisableNotFoundRetries bool + WorkRequestClient *oci_work_requests.WorkRequestClient +} + +func (s *DatabaseAutonomousVmClusterSslCertificateManagementResourceCrud) ID() string { + return tfresource.GenerateDataSourceHashID("DatabaseAutonomousVmClusterSslCertificateManagementResource-", DatabaseAutonomousVmClusterSslCertificateManagementResource(), s.D) +} + +func (s *DatabaseAutonomousVmClusterSslCertificateManagementResourceCrud) Create() error { + request := oci_database.RotateAutonomousVmClusterSslCertsRequest{} + + if autonomousVmClusterId, ok := s.D.GetOkExists("autonomous_vm_cluster_id"); ok { + tmp := autonomousVmClusterId.(string) + request.AutonomousVmClusterId = &tmp + } + + if caBundleId, ok := s.D.GetOkExists("ca_bundle_id"); ok { + tmp := caBundleId.(string) + request.CaBundleId = &tmp + } + + if certificateAuthorityId, ok := s.D.GetOkExists("certificate_authority_id"); ok { + tmp := certificateAuthorityId.(string) + request.CertificateAuthorityId = &tmp + } + + if certificateGenerationType, ok := s.D.GetOkExists("certificate_generation_type"); ok { + request.CertificateGenerationType = oci_database.RotateAutonomousVmClusterSslCertsDetailsCertificateGenerationTypeEnum(certificateGenerationType.(string)) + } + + if certificateId, ok := s.D.GetOkExists("certificate_id"); ok { + tmp := certificateId.(string) + request.CertificateId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.RotateAutonomousVmClusterSslCerts(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + s.Res = &response + + if workId != nil { + var identifier *string + var err error + identifier, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "autonomousvmcluster", oci_work_requests.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate), s.DisableNotFoundRetries) + if identifier != nil { + s.D.SetId(*identifier) + } + if err != nil { + return err + } + } + return nil +} + +func (s *DatabaseAutonomousVmClusterSslCertificateManagementResourceCrud) SetData() error { + return nil +} diff --git a/internal/service/database/database_autonomous_vm_clusters_data_source.go b/internal/service/database/database_autonomous_vm_clusters_data_source.go index 64c3db3ca2d..d2e6addc35f 100644 --- a/internal/service/database/database_autonomous_vm_clusters_data_source.go +++ b/internal/service/database/database_autonomous_vm_clusters_data_source.go @@ -243,6 +243,14 @@ func (s *DatabaseAutonomousVmClustersDataSourceCrud) SetData() error { autonomousVmCluster["time_created"] = r.TimeCreated.String() } + if r.TimeDatabaseSslCertificateExpires != nil { + autonomousVmCluster["time_database_ssl_certificate_expires"] = r.TimeDatabaseSslCertificateExpires.String() + } + + if r.TimeOrdsCertificateExpires != nil { + autonomousVmCluster["time_ords_certificate_expires"] = r.TimeOrdsCertificateExpires.String() + } + if r.TimeZone != nil { autonomousVmCluster["time_zone"] = *r.TimeZone } diff --git a/internal/service/database/register_resource.go b/internal/service/database/register_resource.go index 7779466abe7..9aff31645a2 100644 --- a/internal/service/database/register_resource.go +++ b/internal/service/database/register_resource.go @@ -16,6 +16,8 @@ func RegisterResource() { tfresource.RegisterResource("oci_database_autonomous_database_wallet", DatabaseAutonomousDatabaseWalletResource()) tfresource.RegisterResource("oci_database_autonomous_exadata_infrastructure", DatabaseAutonomousExadataInfrastructureResource()) tfresource.RegisterResource("oci_database_autonomous_vm_cluster", DatabaseAutonomousVmClusterResource()) + tfresource.RegisterResource("oci_database_autonomous_vm_cluster_ords_certificate_management", DatabaseAutonomousVmClusterOrdsCertificateManagementResource()) + tfresource.RegisterResource("oci_database_autonomous_vm_cluster_ssl_certificate_management", DatabaseAutonomousVmClusterSslCertificateManagementResource()) tfresource.RegisterResource("oci_database_backup", DatabaseBackupResource()) tfresource.RegisterResource("oci_database_backup_cancel_management", DatabaseBackupCancelManagementResource()) tfresource.RegisterResource("oci_database_backup_destination", DatabaseBackupDestinationResource()) diff --git a/website/docs/d/database_autonomous_vm_cluster.html.markdown b/website/docs/d/database_autonomous_vm_cluster.html.markdown index 9d80d71ee96..abedb4dd52a 100644 --- a/website/docs/d/database_autonomous_vm_cluster.html.markdown +++ b/website/docs/d/database_autonomous_vm_cluster.html.markdown @@ -78,6 +78,8 @@ The following attributes are exported: * `scan_listener_port_tls` - The SCAN Listener TLS port number. Default value is 2484. * `state` - The current state of the Autonomous VM cluster. * `time_created` - The date and time that the Autonomous VM cluster was created. +* `time_database_ssl_certificate_expires` - The date and time of Database SSL certificate expiration. +* `time_ords_certificate_expires` - The date and time of ORDS certificate expiration. * `time_zone` - The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). * `total_container_databases` - The total number of Autonomous Container Databases that can be created. * `vm_cluster_network_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. diff --git a/website/docs/d/database_autonomous_vm_clusters.html.markdown b/website/docs/d/database_autonomous_vm_clusters.html.markdown index b84e2516f9a..009d29f9dd6 100644 --- a/website/docs/d/database_autonomous_vm_clusters.html.markdown +++ b/website/docs/d/database_autonomous_vm_clusters.html.markdown @@ -92,6 +92,8 @@ The following attributes are exported: * `scan_listener_port_tls` - The SCAN Listener TLS port number. Default value is 2484. * `state` - The current state of the Autonomous VM cluster. * `time_created` - The date and time that the Autonomous VM cluster was created. +* `time_database_ssl_certificate_expires` - The date and time of Database SSL certificate expiration. +* `time_ords_certificate_expires` - The date and time of ORDS certificate expiration. * `time_zone` - The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). * `total_container_databases` - The total number of Autonomous Container Databases that can be created. * `vm_cluster_network_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. diff --git a/website/docs/r/database_autonomous_vm_cluster.html.markdown b/website/docs/r/database_autonomous_vm_cluster.html.markdown index 7609b8b24df..863b94eb063 100644 --- a/website/docs/r/database_autonomous_vm_cluster.html.markdown +++ b/website/docs/r/database_autonomous_vm_cluster.html.markdown @@ -148,6 +148,8 @@ The following attributes are exported: * `scan_listener_port_tls` - The SCAN Listener TLS port number. Default value is 2484. * `state` - The current state of the Autonomous VM cluster. * `time_created` - The date and time that the Autonomous VM cluster was created. +* `time_database_ssl_certificate_expires` - The date and time of Database SSL certificate expiration. +* `time_ords_certificate_expires` - The date and time of ORDS certificate expiration. * `time_zone` - The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). * `total_container_databases` - The total number of Autonomous Container Databases that can be created. * `vm_cluster_network_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM cluster network. diff --git a/website/docs/r/database_autonomous_vm_cluster_ords_certificate_management.html.markdown b/website/docs/r/database_autonomous_vm_cluster_ords_certificate_management.html.markdown new file mode 100644 index 00000000000..cd990514a8b --- /dev/null +++ b/website/docs/r/database_autonomous_vm_cluster_ords_certificate_management.html.markdown @@ -0,0 +1,61 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_autonomous_vm_cluster_ords_certificate_management" +sidebar_current: "docs-oci-resource-database-autonomous_vm_cluster_ords_certificate_management" +description: |- + Provides the Autonomous Vm Cluster Ords Certificate Management resource in Oracle Cloud Infrastructure Database service +--- + +# oci_database_autonomous_vm_cluster_ords_certificate_management +This resource provides the Autonomous Vm Cluster Ords Certificate Management resource in Oracle Cloud Infrastructure Database service. + +Rotates the Oracle REST Data Services (ORDS) certificates for Autonomous Exadata VM cluster. + + +## Example Usage + +```hcl +resource "oci_database_autonomous_vm_cluster_ords_certificate_management" "test_autonomous_vm_cluster_ords_certificate_management" { + #Required + autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id + certificate_generation_type = var.autonomous_vm_cluster_ords_certificate_management_certificate_generation_type + + #Optional + ca_bundle_id = oci_certificates_management_ca_bundle.test_ca_bundle.id + certificate_authority_id = oci_certificates_management_certificate_authority.test_certificate_authority.id + certificate_id = oci_apigateway_certificate.test_certificate.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `autonomous_vm_cluster_id` - (Required) The autonomous VM cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +* `ca_bundle_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate bundle. +* `certificate_authority_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate authority. +* `certificate_generation_type` - (Required) Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate. +* `certificate_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate to use. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the Autonomous Vm Cluster Ords Certificate Management + * `update` - (Defaults to 20 minutes), when updating the Autonomous Vm Cluster Ords Certificate Management + * `delete` - (Defaults to 20 minutes), when destroying the Autonomous Vm Cluster Ords Certificate Management + + +## Import + +Import is not supported for this resource. + diff --git a/website/docs/r/database_autonomous_vm_cluster_ssl_certificate_management.html.markdown b/website/docs/r/database_autonomous_vm_cluster_ssl_certificate_management.html.markdown new file mode 100644 index 00000000000..90d9c01174a --- /dev/null +++ b/website/docs/r/database_autonomous_vm_cluster_ssl_certificate_management.html.markdown @@ -0,0 +1,61 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_autonomous_vm_cluster_ssl_certificate_management" +sidebar_current: "docs-oci-resource-database-autonomous_vm_cluster_ssl_certificate_management" +description: |- + Provides the Autonomous Vm Cluster Ssl Certificate Management resource in Oracle Cloud Infrastructure Database service +--- + +# oci_database_autonomous_vm_cluster_ssl_certificate_management +This resource provides the Autonomous Vm Cluster Ssl Certificate Management resource in Oracle Cloud Infrastructure Database service. + +Rotates the SSL certificates for Autonomous Exadata VM cluster. + + +## Example Usage + +```hcl +resource "oci_database_autonomous_vm_cluster_ssl_certificate_management" "test_autonomous_vm_cluster_ssl_certificate_management" { + #Required + autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id + certificate_generation_type = var.autonomous_vm_cluster_ssl_certificate_management_certificate_generation_type + + #Optional + ca_bundle_id = oci_certificates_management_ca_bundle.test_ca_bundle.id + certificate_authority_id = oci_certificates_management_certificate_authority.test_certificate_authority.id + certificate_id = oci_apigateway_certificate.test_certificate.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `autonomous_vm_cluster_id` - (Required) The autonomous VM cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +* `ca_bundle_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate bundle. +* `certificate_authority_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate authority. +* `certificate_generation_type` - (Required) Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate. +* `certificate_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate to use. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the Autonomous Vm Cluster Ssl Certificate Management + * `update` - (Defaults to 20 minutes), when updating the Autonomous Vm Cluster Ssl Certificate Management + * `delete` - (Defaults to 20 minutes), when destroying the Autonomous Vm Cluster Ssl Certificate Management + + +## Import + +Import is not supported for this resource. + From 61a4a764876da7fee7c94b0d73f32037bffe8f6a Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Mon, 31 Jul 2023 17:22:48 -0700 Subject: [PATCH 18/25] Vendored - oci-go-sdk v65.46.0 changes for existing & new services --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index e7d61916f4f..019f5bdcd72 100644 --- a/go.mod +++ b/go.mod @@ -76,6 +76,6 @@ require ( ) // Uncomment this line to get OCI Go SDK from local source instead of github -//replace github.com/oracle/oci-go-sdk => ../../oracle/oci-go-sdk +replace github.com/oracle/oci-go-sdk/v65 v65.45.0 => ./vendor/github.com/oracle/oci-go-sdk go 1.18 From 180ca7a0bafdec9326ac053b00ae6b07385f8238 Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Mon, 31 Jul 2023 17:46:26 -0700 Subject: [PATCH 19/25] Vendored - oci-go-sdk v65.46.0 changes for existing & new services --- go.sum | 2 - .../integrationtest/opsi_news_report_test.go | 2 +- .../opsi/opsi_news_report_data_source.go | 2 +- .../service/opsi/opsi_news_report_resource.go | 2 +- .../opsi/opsi_news_reports_data_source.go | 2 +- .../oracle/oci-go-sdk/v65/common/version.go | 2 +- .../v65/containerengine/cluster_metadata.go | 3 + ...te_credential_rotation_request_response.go | 99 ++++ .../containerengine/containerengine_client.go | 184 +++++++ .../credential_rotation_status.go | 156 ++++++ ...ential_rotation_status_request_response.go | 94 ++++ .../start_credential_rotation_details.go | 41 ++ ...rt_credential_rotation_request_response.go | 102 ++++ ...t_scheduled_activities_request_response.go | 9 + .../v65/fusionapps/scheduled_activity.go | 89 +++- .../fusionapps/scheduled_activity_summary.go | 47 +- .../v65/loganalytics/abstract_column.go | 8 + .../abstract_command_descriptor.go | 24 + .../v65/loganalytics/association_property.go | 45 ++ .../v65/loganalytics/condition_block.go | 109 ++++ .../v65/loganalytics/creation_source_type.go | 4 + .../v65/loganalytics/credential_endpoint.go | 54 ++ ...og_analytics_em_bridge_request_response.go | 3 + .../effective_property_collection.go | 39 ++ .../effective_property_summary.go | 48 ++ .../v65/loganalytics/endpoint_credentials.go | 99 ++++ .../v65/loganalytics/endpoint_proxy.go | 95 ++++ .../v65/loganalytics/endpoint_request.go | 99 ++++ .../v65/loganalytics/endpoint_response.go | 42 ++ .../v65/loganalytics/endpoint_result.go | 51 ++ .../estimate_recall_data_size_details.go | 6 + .../estimate_recall_data_size_result.go | 9 + .../frequent_command_descriptor.go | 152 ++++++ .../get_recall_count_request_response.go | 89 ++++ ...get_recalled_data_size_request_response.go | 105 ++++ .../get_rules_summary_request_response.go | 92 ++++ .../oci-go-sdk/v65/loganalytics/level.go | 43 ++ ...t_effective_properties_request_response.go | 219 ++++++++ ...st_overlapping_recalls_request_response.go | 208 ++++++++ ...st_properties_metadata_request_response.go | 214 ++++++++ .../list_scheduled_tasks_request_response.go | 22 +- ..._storage_work_requests_request_response.go | 4 + .../loganalytics/log_analytics_association.go | 3 + .../log_analytics_association_parameter.go | 6 + .../loganalytics/log_analytics_endpoint.go | 123 +++++ .../loganalytics/log_analytics_preference.go | 2 +- .../loganalytics/log_analytics_property.go | 42 ++ .../v65/loganalytics/log_analytics_source.go | 205 ++++++++ .../log_analytics_source_label_condition.go | 5 + .../log_analytics_source_pattern.go | 3 + .../log_analytics_source_summary.go | 193 +++++++ .../v65/loganalytics/log_endpoint.go | 66 +++ .../v65/loganalytics/log_list_endpoint.go | 66 +++ .../loganalytics/log_list_type_endpoint.go | 60 +++ .../v65/loganalytics/log_type_endpoint.go | 56 ++ .../v65/loganalytics/loganalytics_client.go | 478 +++++++++++++++++- .../v65/loganalytics/name_value_pair.go | 42 ++ .../oci-go-sdk/v65/loganalytics/namespace.go | 2 +- .../v65/loganalytics/namespace_summary.go | 2 +- .../outlier_command_descriptor.go | 152 ++++++ .../overlapping_recall_collection.go | 39 ++ .../overlapping_recall_summary.go | 63 +++ .../v65/loganalytics/pattern_override.go | 45 ++ .../loganalytics/property_metadata_summary.go | 51 ++ .../property_metadata_summary_collection.go | 39 ++ .../v65/loganalytics/query_aggregation.go | 6 + .../loganalytics/rare_command_descriptor.go | 152 ++++++ .../recall_archived_data_details.go | 6 + .../recall_archived_data_request_response.go | 6 + .../v65/loganalytics/recall_count.go | 51 ++ .../v65/loganalytics/recall_status.go | 60 +++ .../v65/loganalytics/recalled_data.go | 19 + .../v65/loganalytics/recalled_data_info.go | 42 ++ .../v65/loganalytics/recalled_data_size.go | 48 ++ .../v65/loganalytics/rule_summary_report.go | 45 ++ .../oci-go-sdk/v65/loganalytics/storage.go | 2 +- .../loganalytics/storage_operation_type.go | 4 + .../v65/loganalytics/storage_usage.go | 2 +- .../v65/loganalytics/storage_work_request.go | 12 + .../storage_work_request_summary.go | 12 + .../v65/loganalytics/table_column.go | 220 ++++++++ .../oci-go-sdk/v65/loganalytics/task_type.go | 22 +- .../v65/loganalytics/trend_column.go | 3 + .../loganalytics/update_storage_details.go | 2 +- .../upsert_log_analytics_association.go | 3 + .../upsert_log_analytics_source_details.go | 175 +++++++ .../validate_endpoint_request_response.go | 92 ++++ .../loganalytics/validate_endpoint_result.go | 45 ++ .../validate_label_condition_details.go | 44 ++ ...lidate_label_condition_request_response.go | 92 ++++ .../validate_label_condition_result.go | 53 ++ .../oci-go-sdk/v65/loganalytics/value_type.go | 4 + .../change_news_report_compartment_details.go | 41 ++ ...ews_report_compartment_request_response.go | 106 ++++ .../v65/opsi/create_news_report_details.go | 78 +++ .../create_news_report_request_response.go | 110 ++++ .../v65/opsi/data_object_column_metadata.go | 2 +- .../delete_news_report_request_response.go | 96 ++++ ...insight_resource_forecast_trend_summary.go | 3 + .../opsi/get_news_report_request_response.go | 94 ++++ .../opsi/ingest_my_sql_sql_text_details.go | 41 ++ ...ingest_my_sql_sql_text_response_details.go | 41 ++ .../list_news_reports_request_response.go | 231 +++++++++ .../oci-go-sdk/v65/opsi/my_sql_sql_text.go | 58 +++ .../oci-go-sdk/v65/opsi/news_content_types.go | 41 ++ .../v65/opsi/news_content_types_resource.go | 62 +++ .../oci-go-sdk/v65/opsi/news_frequency.go | 54 ++ .../oracle/oci-go-sdk/v65/opsi/news_locale.go | 54 ++ .../oracle/oci-go-sdk/v65/opsi/news_report.go | 100 ++++ .../v65/opsi/news_report_collection.go | 41 ++ .../v65/opsi/news_report_summary.go | 100 ++++ .../oci-go-sdk/v65/opsi/news_reports.go | 41 ++ .../opsi/opsi_operationsinsights_client.go | 358 +++++++++++++ ..._data_object_result_set_column_metadata.go | 2 +- .../oci-go-sdk/v65/opsi/resource_filters.go | 2 +- ...ght_resource_forecast_trend_aggregation.go | 3 + ...ght_resource_forecast_trend_aggregation.go | 3 + ...ght_resource_forecast_trend_aggregation.go | 3 + .../v65/opsi/update_news_report_details.go | 69 +++ .../update_news_report_request_response.go | 99 ++++ vendor/modules.txt | 2 +- 121 files changed, 7543 insertions(+), 76 deletions(-) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go diff --git a/go.sum b/go.sum index 5217f818551..aaeb6a3ea56 100644 --- a/go.sum +++ b/go.sum @@ -289,8 +289,6 @@ 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.45.0 h1:EpCst/iZma9s8eYS0QJ9qsTmGxX5GPehYGN1jwGIteU= -github.com/oracle/oci-go-sdk/v65 v65.45.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/internal/integrationtest/opsi_news_report_test.go b/internal/integrationtest/opsi_news_report_test.go index 1cadbaffa61..6e2fde51c9d 100644 --- a/internal/integrationtest/opsi_news_report_test.go +++ b/internal/integrationtest/opsi_news_report_test.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/oracle/oci-go-sdk/v65/common" - oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + oci_opsi "github.com/oracle/oci-go-sdk/v65/opsi" "github.com/oracle/terraform-provider-oci/httpreplay" "github.com/oracle/terraform-provider-oci/internal/acctest" diff --git a/internal/service/opsi/opsi_news_report_data_source.go b/internal/service/opsi/opsi_news_report_data_source.go index 33d88222501..00cb096fe73 100644 --- a/internal/service/opsi/opsi_news_report_data_source.go +++ b/internal/service/opsi/opsi_news_report_data_source.go @@ -7,7 +7,7 @@ import ( "context" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + oci_opsi "github.com/oracle/oci-go-sdk/v65/opsi" "github.com/oracle/terraform-provider-oci/internal/client" "github.com/oracle/terraform-provider-oci/internal/tfresource" diff --git a/internal/service/opsi/opsi_news_report_resource.go b/internal/service/opsi/opsi_news_report_resource.go index d9f7b50e992..a4c49bec33b 100644 --- a/internal/service/opsi/opsi_news_report_resource.go +++ b/internal/service/opsi/opsi_news_report_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" oci_common "github.com/oracle/oci-go-sdk/v65/common" - oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + oci_opsi "github.com/oracle/oci-go-sdk/v65/opsi" "github.com/oracle/terraform-provider-oci/internal/client" "github.com/oracle/terraform-provider-oci/internal/tfresource" diff --git a/internal/service/opsi/opsi_news_reports_data_source.go b/internal/service/opsi/opsi_news_reports_data_source.go index b058adadd82..5e6903063ac 100644 --- a/internal/service/opsi/opsi_news_reports_data_source.go +++ b/internal/service/opsi/opsi_news_reports_data_source.go @@ -7,7 +7,7 @@ import ( "context" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - oci_opsi "github.com/oracle/oci-go-sdk/v65/operationsinsights" + oci_opsi "github.com/oracle/oci-go-sdk/v65/opsi" "github.com/oracle/terraform-provider-oci/internal/client" "github.com/oracle/terraform-provider-oci/internal/tfresource" 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 c97ae2dc7b7..72214352d28 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 = "45" + minor = "46" patch = "0" tag = "" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go index 52f40640bef..c6fd02a06ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go @@ -46,6 +46,9 @@ type ClusterMetadata struct { // The OCID of the work request which updated the cluster. UpdatedByWorkRequestId *string `mandatory:"false" json:"updatedByWorkRequestId"` + + // The time until which the cluster credential is valid. + TimeCredentialExpiration *common.SDKTime `mandatory:"false" json:"timeCredentialExpiration"` } func (m ClusterMetadata) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go new file mode 100644 index 00000000000..a6ccdf73c1c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/complete_credential_rotation_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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 containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CompleteCredentialRotationRequest wrapper for the CompleteCredentialRotation operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotationRequest. +type CompleteCredentialRotationRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // A token you supply to uniquely identify the request and provide idempotency if + // the request is retried. Idempotency tokens expire after 24 hours. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // 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"` + + // 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"` + + // 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 CompleteCredentialRotationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CompleteCredentialRotationRequest) 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 CompleteCredentialRotationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CompleteCredentialRotationRequest) 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 CompleteCredentialRotationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CompleteCredentialRotationResponse wrapper for the CompleteCredentialRotation operation +type CompleteCredentialRotationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + 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 CompleteCredentialRotationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CompleteCredentialRotationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} 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 21823560065..7b37b393b4f 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 @@ -148,6 +148,69 @@ func (client ContainerEngineClient) clusterMigrateToNativeVcn(ctx context.Contex return response, err } +// CompleteCredentialRotation Complete cluster credential rotation. Retire old credentials from kubernetes components. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/CompleteCredentialRotation.go.html to see an example of how to use CompleteCredentialRotation API. +// A default retry strategy applies to this operation CompleteCredentialRotation() +func (client ContainerEngineClient) CompleteCredentialRotation(ctx context.Context, request CompleteCredentialRotationRequest) (response CompleteCredentialRotationResponse, 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.completeCredentialRotation, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CompleteCredentialRotationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CompleteCredentialRotationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CompleteCredentialRotationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CompleteCredentialRotationResponse") + } + return +} + +// completeCredentialRotation implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) completeCredentialRotation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/completeCredentialRotation", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CompleteCredentialRotationResponse + 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/containerengine/20180222/Cluster/CompleteCredentialRotation" + err = common.PostProcessServiceError(err, "ContainerEngine", "CompleteCredentialRotation", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateCluster Create a new cluster. // // See also @@ -1095,6 +1158,64 @@ func (client ContainerEngineClient) getClusterOptions(ctx context.Context, reque return response, err } +// GetCredentialRotationStatus Get cluster credential rotation status. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatus API. +// A default retry strategy applies to this operation GetCredentialRotationStatus() +func (client ContainerEngineClient) GetCredentialRotationStatus(ctx context.Context, request GetCredentialRotationStatusRequest) (response GetCredentialRotationStatusResponse, 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.getCredentialRotationStatus, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetCredentialRotationStatusResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetCredentialRotationStatusResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetCredentialRotationStatusResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetCredentialRotationStatusResponse") + } + return +} + +// getCredentialRotationStatus implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getCredentialRotationStatus(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters/{clusterId}/credentialRotationStatus", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetCredentialRotationStatusResponse + 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/containerengine/20180222/CredentialRotationStatus/GetCredentialRotationStatus" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetCredentialRotationStatus", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetNodePool Get the details of a node pool. // // See also @@ -2144,6 +2265,69 @@ func (client ContainerEngineClient) listWorkloadMappings(ctx context.Context, re return response, err } +// StartCredentialRotation Start cluster credential rotation by adding new credentials, old credentials will still work after this operation. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotation API. +// A default retry strategy applies to this operation StartCredentialRotation() +func (client ContainerEngineClient) StartCredentialRotation(ctx context.Context, request StartCredentialRotationRequest) (response StartCredentialRotationResponse, 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.startCredentialRotation, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StartCredentialRotationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StartCredentialRotationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StartCredentialRotationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartCredentialRotationResponse") + } + return +} + +// startCredentialRotation implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) startCredentialRotation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/startCredentialRotation", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StartCredentialRotationResponse + 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/containerengine/20180222/Cluster/StartCredentialRotation" + err = common.PostProcessServiceError(err, "ContainerEngine", "StartCredentialRotation", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateAddon Update addon details for a cluster. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go new file mode 100644 index 00000000000..eeb9cacc1e8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/credential_rotation_status.go @@ -0,0 +1,156 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CredentialRotationStatus Information regarding cluster's credential rotation. +type CredentialRotationStatus struct { + + // Credential rotation status of a kubernetes cluster + // IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. + // WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. + // COMPLETED: New credentials are functional on kuberentes cluster. + Status CredentialRotationStatusStatusEnum `mandatory:"true" json:"status"` + + // Details of a kuberenetes cluster credential rotation status: + // ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. + // NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. + // RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. + // COMPLETED: Credential rotation is complete. Old credentials are retired. + StatusDetails CredentialRotationStatusStatusDetailsEnum `mandatory:"true" json:"statusDetails"` + + // The time by which retirement of old credentials should start. + TimeAutoCompletionScheduled *common.SDKTime `mandatory:"false" json:"timeAutoCompletionScheduled"` +} + +func (m CredentialRotationStatus) 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 CredentialRotationStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCredentialRotationStatusStatusEnum(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(GetCredentialRotationStatusStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingCredentialRotationStatusStatusDetailsEnum(string(m.StatusDetails)); !ok && m.StatusDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for StatusDetails: %s. Supported values are: %s.", m.StatusDetails, strings.Join(GetCredentialRotationStatusStatusDetailsEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CredentialRotationStatusStatusEnum Enum with underlying type: string +type CredentialRotationStatusStatusEnum string + +// Set of constants representing the allowable values for CredentialRotationStatusStatusEnum +const ( + CredentialRotationStatusStatusInProgress CredentialRotationStatusStatusEnum = "IN_PROGRESS" + CredentialRotationStatusStatusWaiting CredentialRotationStatusStatusEnum = "WAITING" + CredentialRotationStatusStatusCompleted CredentialRotationStatusStatusEnum = "COMPLETED" +) + +var mappingCredentialRotationStatusStatusEnum = map[string]CredentialRotationStatusStatusEnum{ + "IN_PROGRESS": CredentialRotationStatusStatusInProgress, + "WAITING": CredentialRotationStatusStatusWaiting, + "COMPLETED": CredentialRotationStatusStatusCompleted, +} + +var mappingCredentialRotationStatusStatusEnumLowerCase = map[string]CredentialRotationStatusStatusEnum{ + "in_progress": CredentialRotationStatusStatusInProgress, + "waiting": CredentialRotationStatusStatusWaiting, + "completed": CredentialRotationStatusStatusCompleted, +} + +// GetCredentialRotationStatusStatusEnumValues Enumerates the set of values for CredentialRotationStatusStatusEnum +func GetCredentialRotationStatusStatusEnumValues() []CredentialRotationStatusStatusEnum { + values := make([]CredentialRotationStatusStatusEnum, 0) + for _, v := range mappingCredentialRotationStatusStatusEnum { + values = append(values, v) + } + return values +} + +// GetCredentialRotationStatusStatusEnumStringValues Enumerates the set of values in String for CredentialRotationStatusStatusEnum +func GetCredentialRotationStatusStatusEnumStringValues() []string { + return []string{ + "IN_PROGRESS", + "WAITING", + "COMPLETED", + } +} + +// GetMappingCredentialRotationStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCredentialRotationStatusStatusEnum(val string) (CredentialRotationStatusStatusEnum, bool) { + enum, ok := mappingCredentialRotationStatusStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CredentialRotationStatusStatusDetailsEnum Enum with underlying type: string +type CredentialRotationStatusStatusDetailsEnum string + +// Set of constants representing the allowable values for CredentialRotationStatusStatusDetailsEnum +const ( + CredentialRotationStatusStatusDetailsIssuingNewCredentials CredentialRotationStatusStatusDetailsEnum = "ISSUING_NEW_CREDENTIALS" + CredentialRotationStatusStatusDetailsNewCredentialsIssued CredentialRotationStatusStatusDetailsEnum = "NEW_CREDENTIALS_ISSUED" + CredentialRotationStatusStatusDetailsRetiringOldCredentials CredentialRotationStatusStatusDetailsEnum = "RETIRING_OLD_CREDENTIALS" + CredentialRotationStatusStatusDetailsCompleted CredentialRotationStatusStatusDetailsEnum = "COMPLETED" +) + +var mappingCredentialRotationStatusStatusDetailsEnum = map[string]CredentialRotationStatusStatusDetailsEnum{ + "ISSUING_NEW_CREDENTIALS": CredentialRotationStatusStatusDetailsIssuingNewCredentials, + "NEW_CREDENTIALS_ISSUED": CredentialRotationStatusStatusDetailsNewCredentialsIssued, + "RETIRING_OLD_CREDENTIALS": CredentialRotationStatusStatusDetailsRetiringOldCredentials, + "COMPLETED": CredentialRotationStatusStatusDetailsCompleted, +} + +var mappingCredentialRotationStatusStatusDetailsEnumLowerCase = map[string]CredentialRotationStatusStatusDetailsEnum{ + "issuing_new_credentials": CredentialRotationStatusStatusDetailsIssuingNewCredentials, + "new_credentials_issued": CredentialRotationStatusStatusDetailsNewCredentialsIssued, + "retiring_old_credentials": CredentialRotationStatusStatusDetailsRetiringOldCredentials, + "completed": CredentialRotationStatusStatusDetailsCompleted, +} + +// GetCredentialRotationStatusStatusDetailsEnumValues Enumerates the set of values for CredentialRotationStatusStatusDetailsEnum +func GetCredentialRotationStatusStatusDetailsEnumValues() []CredentialRotationStatusStatusDetailsEnum { + values := make([]CredentialRotationStatusStatusDetailsEnum, 0) + for _, v := range mappingCredentialRotationStatusStatusDetailsEnum { + values = append(values, v) + } + return values +} + +// GetCredentialRotationStatusStatusDetailsEnumStringValues Enumerates the set of values in String for CredentialRotationStatusStatusDetailsEnum +func GetCredentialRotationStatusStatusDetailsEnumStringValues() []string { + return []string{ + "ISSUING_NEW_CREDENTIALS", + "NEW_CREDENTIALS_ISSUED", + "RETIRING_OLD_CREDENTIALS", + "COMPLETED", + } +} + +// GetMappingCredentialRotationStatusStatusDetailsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCredentialRotationStatusStatusDetailsEnum(val string) (CredentialRotationStatusStatusDetailsEnum, bool) { + enum, ok := mappingCredentialRotationStatusStatusDetailsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go new file mode 100644 index 00000000000..5abcc731664 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_credential_rotation_status_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2023, 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 containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCredentialRotationStatusRequest wrapper for the GetCredentialRotationStatus operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/GetCredentialRotationStatus.go.html to see an example of how to use GetCredentialRotationStatusRequest. +type GetCredentialRotationStatusRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCredentialRotationStatusRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCredentialRotationStatusRequest) 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 GetCredentialRotationStatusRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCredentialRotationStatusRequest) 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 GetCredentialRotationStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCredentialRotationStatusResponse wrapper for the GetCredentialRotationStatus operation +type GetCredentialRotationStatusResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CredentialRotationStatus instance + CredentialRotationStatus `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 GetCredentialRotationStatusResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCredentialRotationStatusResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go new file mode 100644 index 00000000000..dbb4f2b549c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StartCredentialRotationDetails Properties that define a request to start credential rotation on a kubernetes cluster. +type StartCredentialRotationDetails struct { + + // The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days. + AutoCompletionDelayDuration *string `mandatory:"true" json:"autoCompletionDelayDuration"` +} + +func (m StartCredentialRotationDetails) 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 StartCredentialRotationDetails) 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/containerengine/start_credential_rotation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go new file mode 100644 index 00000000000..11e1ff95d21 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/start_credential_rotation_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2023, 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 containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StartCredentialRotationRequest wrapper for the StartCredentialRotation operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/containerengine/StartCredentialRotation.go.html to see an example of how to use StartCredentialRotationRequest. +type StartCredentialRotationRequest struct { + + // The OCID of the cluster. + ClusterId *string `mandatory:"true" contributesTo:"path" name:"clusterId"` + + // The details for a kubernetes cluster to start credential rotation. + StartCredentialRotationDetails `contributesTo:"body"` + + // A token you supply to uniquely identify the request and provide idempotency if + // the request is retried. Idempotency tokens expire after 24 hours. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // 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"` + + // 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"` + + // 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 StartCredentialRotationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartCredentialRotationRequest) 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 StartCredentialRotationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartCredentialRotationRequest) 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 StartCredentialRotationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StartCredentialRotationResponse wrapper for the StartCredentialRotation operation +type StartCredentialRotationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + 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 StartCredentialRotationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartCredentialRotationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go index 3d0e4c7935c..fdb06f8263f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/list_scheduled_activities_request_response.go @@ -36,6 +36,12 @@ type ListScheduledActivitiesRequest struct { // A filter that returns all resources that match the specified status LifecycleState ScheduledActivityLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + // A filter that returns all resources that match the specified scheduledActivityAssociationId. + ScheduledActivityAssociationId *string `mandatory:"false" contributesTo:"query" name:"scheduledActivityAssociationId"` + + // A filter that returns all resources that match the specified scheduledActivityPhase. + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"false" contributesTo:"query" name:"scheduledActivityPhase" omitEmpty:"true"` + // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -93,6 +99,9 @@ func (request ListScheduledActivitiesRequest) ValidateEnumValue() (bool, error) if _, ok := GetMappingScheduledActivityLifecycleStateEnum(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(GetScheduledActivityLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(request.ScheduledActivityPhase)); !ok && request.ScheduledActivityPhase != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", request.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) + } if _, ok := GetMappingListScheduledActivitiesSortOrderEnum(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(GetListScheduledActivitiesSortOrderEnumStringValues(), ","))) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go index c494935fe94..3c858ee9863 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity.go @@ -43,6 +43,12 @@ type ScheduledActivity struct { // Current time the scheduled activity is scheduled to end. An RFC3339 formatted datetime string. TimeExpectedFinish *common.SDKTime `mandatory:"true" json:"timeExpectedFinish"` + // A property describing the phase of the scheduled activity. + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"true" json:"scheduledActivityPhase"` + + // The unique identifier that associates a scheduled activity with others in one complete maintenance. For example, with ZDT, a complete upgrade maintenance includes 5 scheduled activities - PREPARE, EXECUTE, POST, PRE_MAINTENANCE, and POST_MAINTENANCE. All of them share the same unique identifier - scheduledActivityAssociationId. + ScheduledActivityAssociationId *string `mandatory:"true" json:"scheduledActivityAssociationId"` + // List of actions Actions []Action `mandatory:"false" json:"actions"` @@ -80,6 +86,9 @@ func (m ScheduledActivity) ValidateEnumValue() (bool, error) { if _, ok := GetMappingScheduledActivityServiceAvailabilityEnum(string(m.ServiceAvailability)); !ok && m.ServiceAvailability != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceAvailability: %s. Supported values are: %s.", m.ServiceAvailability, strings.Join(GetScheduledActivityServiceAvailabilityEnumStringValues(), ","))) } + if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(m.ScheduledActivityPhase)); !ok && m.ScheduledActivityPhase != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", m.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) + } if _, ok := GetMappingScheduledActivityLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetScheduledActivityLifecycleDetailsEnumStringValues(), ","))) @@ -93,20 +102,22 @@ func (m ScheduledActivity) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *ScheduledActivity) UnmarshalJSON(data []byte) (e error) { model := struct { - Actions []action `json:"actions"` - TimeFinished *common.SDKTime `json:"timeFinished"` - DelayInHours *int `json:"delayInHours"` - TimeCreated *common.SDKTime `json:"timeCreated"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails ScheduledActivityLifecycleDetailsEnum `json:"lifecycleDetails"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` - FusionEnvironmentId *string `json:"fusionEnvironmentId"` - LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` - ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` - TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` - TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` + Actions []action `json:"actions"` + TimeFinished *common.SDKTime `json:"timeFinished"` + DelayInHours *int `json:"delayInHours"` + TimeCreated *common.SDKTime `json:"timeCreated"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + LifecycleDetails ScheduledActivityLifecycleDetailsEnum `json:"lifecycleDetails"` + Id *string `json:"id"` + DisplayName *string `json:"displayName"` + RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` + FusionEnvironmentId *string `json:"fusionEnvironmentId"` + LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` + ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` + TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` + TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `json:"scheduledActivityPhase"` + ScheduledActivityAssociationId *string `json:"scheduledActivityAssociationId"` }{} e = json.Unmarshal(data, &model) @@ -153,6 +164,10 @@ func (m *ScheduledActivity) UnmarshalJSON(data []byte) (e error) { m.TimeExpectedFinish = model.TimeExpectedFinish + m.ScheduledActivityPhase = model.ScheduledActivityPhase + + m.ScheduledActivityAssociationId = model.ScheduledActivityAssociationId + return } @@ -355,3 +370,49 @@ func GetMappingScheduledActivityLifecycleDetailsEnum(val string) (ScheduledActiv enum, ok := mappingScheduledActivityLifecycleDetailsEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ScheduledActivityScheduledActivityPhaseEnum Enum with underlying type: string +type ScheduledActivityScheduledActivityPhaseEnum string + +// Set of constants representing the allowable values for ScheduledActivityScheduledActivityPhaseEnum +const ( + ScheduledActivityScheduledActivityPhasePreMaintenance ScheduledActivityScheduledActivityPhaseEnum = "PRE_MAINTENANCE" + ScheduledActivityScheduledActivityPhaseMaintenance ScheduledActivityScheduledActivityPhaseEnum = "MAINTENANCE" + ScheduledActivityScheduledActivityPhasePostMaintenance ScheduledActivityScheduledActivityPhaseEnum = "POST_MAINTENANCE" +) + +var mappingScheduledActivityScheduledActivityPhaseEnum = map[string]ScheduledActivityScheduledActivityPhaseEnum{ + "PRE_MAINTENANCE": ScheduledActivityScheduledActivityPhasePreMaintenance, + "MAINTENANCE": ScheduledActivityScheduledActivityPhaseMaintenance, + "POST_MAINTENANCE": ScheduledActivityScheduledActivityPhasePostMaintenance, +} + +var mappingScheduledActivityScheduledActivityPhaseEnumLowerCase = map[string]ScheduledActivityScheduledActivityPhaseEnum{ + "pre_maintenance": ScheduledActivityScheduledActivityPhasePreMaintenance, + "maintenance": ScheduledActivityScheduledActivityPhaseMaintenance, + "post_maintenance": ScheduledActivityScheduledActivityPhasePostMaintenance, +} + +// GetScheduledActivityScheduledActivityPhaseEnumValues Enumerates the set of values for ScheduledActivityScheduledActivityPhaseEnum +func GetScheduledActivityScheduledActivityPhaseEnumValues() []ScheduledActivityScheduledActivityPhaseEnum { + values := make([]ScheduledActivityScheduledActivityPhaseEnum, 0) + for _, v := range mappingScheduledActivityScheduledActivityPhaseEnum { + values = append(values, v) + } + return values +} + +// GetScheduledActivityScheduledActivityPhaseEnumStringValues Enumerates the set of values in String for ScheduledActivityScheduledActivityPhaseEnum +func GetScheduledActivityScheduledActivityPhaseEnumStringValues() []string { + return []string{ + "PRE_MAINTENANCE", + "MAINTENANCE", + "POST_MAINTENANCE", + } +} + +// GetMappingScheduledActivityScheduledActivityPhaseEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScheduledActivityScheduledActivityPhaseEnum(val string) (ScheduledActivityScheduledActivityPhaseEnum, bool) { + enum, ok := mappingScheduledActivityScheduledActivityPhaseEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go index 8663e6870df..900d98f9aef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/fusionapps/scheduled_activity_summary.go @@ -43,6 +43,12 @@ type ScheduledActivitySummary struct { // Service availability / impact during scheduled activity execution, up down ServiceAvailability ScheduledActivityServiceAvailabilityEnum `mandatory:"true" json:"serviceAvailability"` + // A property describing the phase of the scheduled activity. + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `mandatory:"true" json:"scheduledActivityPhase"` + + // The unique identifier that associates a scheduled activity with others in one complete maintenance. For example, with ZDT, a complete upgrade maintenance includes 5 scheduled activities - PREPARE, EXECUTE, POST, PRE_MAINTENANCE, and POST_MAINTENANCE. All of them share the same unique identifier - scheduledActivityAssociationId. + ScheduledActivityAssociationId *string `mandatory:"true" json:"scheduledActivityAssociationId"` + // List of actions Actions []Action `mandatory:"false" json:"actions"` @@ -88,6 +94,9 @@ func (m ScheduledActivitySummary) ValidateEnumValue() (bool, error) { if _, ok := GetMappingScheduledActivityServiceAvailabilityEnum(string(m.ServiceAvailability)); !ok && m.ServiceAvailability != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceAvailability: %s. Supported values are: %s.", m.ServiceAvailability, strings.Join(GetScheduledActivityServiceAvailabilityEnumStringValues(), ","))) } + if _, ok := GetMappingScheduledActivityScheduledActivityPhaseEnum(string(m.ScheduledActivityPhase)); !ok && m.ScheduledActivityPhase != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScheduledActivityPhase: %s. Supported values are: %s.", m.ScheduledActivityPhase, strings.Join(GetScheduledActivityScheduledActivityPhaseEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) @@ -98,22 +107,24 @@ func (m ScheduledActivitySummary) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *ScheduledActivitySummary) UnmarshalJSON(data []byte) (e error) { model := struct { - Actions []action `json:"actions"` - TimeFinished *common.SDKTime `json:"timeFinished"` - DelayInHours *int `json:"delayInHours"` - TimeAccepted *common.SDKTime `json:"timeAccepted"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - Id *string `json:"id"` - DisplayName *string `json:"displayName"` - RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` - FusionEnvironmentId *string `json:"fusionEnvironmentId"` - LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` - TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` - TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` - ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` + Actions []action `json:"actions"` + TimeFinished *common.SDKTime `json:"timeFinished"` + DelayInHours *int `json:"delayInHours"` + TimeAccepted *common.SDKTime `json:"timeAccepted"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + LifecycleDetails *string `json:"lifecycleDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + Id *string `json:"id"` + DisplayName *string `json:"displayName"` + RunCycle ScheduledActivityRunCycleEnum `json:"runCycle"` + FusionEnvironmentId *string `json:"fusionEnvironmentId"` + LifecycleState ScheduledActivityLifecycleStateEnum `json:"lifecycleState"` + TimeScheduledStart *common.SDKTime `json:"timeScheduledStart"` + TimeExpectedFinish *common.SDKTime `json:"timeExpectedFinish"` + ServiceAvailability ScheduledActivityServiceAvailabilityEnum `json:"serviceAvailability"` + ScheduledActivityPhase ScheduledActivityScheduledActivityPhaseEnum `json:"scheduledActivityPhase"` + ScheduledActivityAssociationId *string `json:"scheduledActivityAssociationId"` }{} e = json.Unmarshal(data, &model) @@ -164,5 +175,9 @@ func (m *ScheduledActivitySummary) UnmarshalJSON(data []byte) (e error) { m.ServiceAvailability = model.ServiceAvailability + m.ScheduledActivityPhase = model.ScheduledActivityPhase + + m.ScheduledActivityAssociationId = model.ScheduledActivityAssociationId + return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go index b1905a3df92..abb1e87fdfe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_column.go @@ -137,6 +137,10 @@ func (m *abstractcolumn) UnmarshalPolymorphicJSON(data []byte) (interface{}, err mm := TimeStatsDataColumn{} err = json.Unmarshal(data, &mm) return mm, err + case "TABLE_COLUMN": + mm := TableColumn{} + err = json.Unmarshal(data, &mm) + return mm, err case "CHART_COLUMN": mm := ChartColumn{} err = json.Unmarshal(data, &mm) @@ -240,6 +244,7 @@ const ( AbstractColumnTypeTimeStatsDataColumn AbstractColumnTypeEnum = "TIME_STATS_DATA_COLUMN" AbstractColumnTypeTimeClusterColumn AbstractColumnTypeEnum = "TIME_CLUSTER_COLUMN" AbstractColumnTypeTimeClusterDataColumn AbstractColumnTypeEnum = "TIME_CLUSTER_DATA_COLUMN" + AbstractColumnTypeTableColumn AbstractColumnTypeEnum = "TABLE_COLUMN" AbstractColumnTypeTimeColumn AbstractColumnTypeEnum = "TIME_COLUMN" AbstractColumnTypeTrendColumn AbstractColumnTypeEnum = "TREND_COLUMN" AbstractColumnTypeClassifyColumn AbstractColumnTypeEnum = "CLASSIFY_COLUMN" @@ -253,6 +258,7 @@ var mappingAbstractColumnTypeEnum = map[string]AbstractColumnTypeEnum{ "TIME_STATS_DATA_COLUMN": AbstractColumnTypeTimeStatsDataColumn, "TIME_CLUSTER_COLUMN": AbstractColumnTypeTimeClusterColumn, "TIME_CLUSTER_DATA_COLUMN": AbstractColumnTypeTimeClusterDataColumn, + "TABLE_COLUMN": AbstractColumnTypeTableColumn, "TIME_COLUMN": AbstractColumnTypeTimeColumn, "TREND_COLUMN": AbstractColumnTypeTrendColumn, "CLASSIFY_COLUMN": AbstractColumnTypeClassifyColumn, @@ -266,6 +272,7 @@ var mappingAbstractColumnTypeEnumLowerCase = map[string]AbstractColumnTypeEnum{ "time_stats_data_column": AbstractColumnTypeTimeStatsDataColumn, "time_cluster_column": AbstractColumnTypeTimeClusterColumn, "time_cluster_data_column": AbstractColumnTypeTimeClusterDataColumn, + "table_column": AbstractColumnTypeTableColumn, "time_column": AbstractColumnTypeTimeColumn, "trend_column": AbstractColumnTypeTrendColumn, "classify_column": AbstractColumnTypeClassifyColumn, @@ -290,6 +297,7 @@ func GetAbstractColumnTypeEnumStringValues() []string { "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", + "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go index 39950c1a2d7..342a2556aa5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/abstract_command_descriptor.go @@ -96,6 +96,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := TailCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "OUTLIER": + mm := OutlierCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "DEMO_MODE": mm := DemoModeCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -140,6 +144,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := BucketCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "RARE": + mm := RareCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "ADD_INSIGHTS": mm := AddInsightsCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -216,6 +224,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := ClusterSplitCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "FREQUENT": + mm := FrequentCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "CLUSTER_DETAILS": mm := ClusterDetailsCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -387,6 +399,9 @@ const ( AbstractCommandDescriptorNameAnomaly AbstractCommandDescriptorNameEnum = "ANOMALY" AbstractCommandDescriptorNameDedup AbstractCommandDescriptorNameEnum = "DEDUP" AbstractCommandDescriptorNameTimeCluster AbstractCommandDescriptorNameEnum = "TIME_CLUSTER" + AbstractCommandDescriptorNameFrequent AbstractCommandDescriptorNameEnum = "FREQUENT" + AbstractCommandDescriptorNameRare AbstractCommandDescriptorNameEnum = "RARE" + AbstractCommandDescriptorNameOutlier AbstractCommandDescriptorNameEnum = "OUTLIER" ) var mappingAbstractCommandDescriptorNameEnum = map[string]AbstractCommandDescriptorNameEnum{ @@ -440,6 +455,9 @@ var mappingAbstractCommandDescriptorNameEnum = map[string]AbstractCommandDescrip "ANOMALY": AbstractCommandDescriptorNameAnomaly, "DEDUP": AbstractCommandDescriptorNameDedup, "TIME_CLUSTER": AbstractCommandDescriptorNameTimeCluster, + "FREQUENT": AbstractCommandDescriptorNameFrequent, + "RARE": AbstractCommandDescriptorNameRare, + "OUTLIER": AbstractCommandDescriptorNameOutlier, } var mappingAbstractCommandDescriptorNameEnumLowerCase = map[string]AbstractCommandDescriptorNameEnum{ @@ -493,6 +511,9 @@ var mappingAbstractCommandDescriptorNameEnumLowerCase = map[string]AbstractComma "anomaly": AbstractCommandDescriptorNameAnomaly, "dedup": AbstractCommandDescriptorNameDedup, "time_cluster": AbstractCommandDescriptorNameTimeCluster, + "frequent": AbstractCommandDescriptorNameFrequent, + "rare": AbstractCommandDescriptorNameRare, + "outlier": AbstractCommandDescriptorNameOutlier, } // GetAbstractCommandDescriptorNameEnumValues Enumerates the set of values for AbstractCommandDescriptorNameEnum @@ -557,6 +578,9 @@ func GetAbstractCommandDescriptorNameEnumStringValues() []string { "ANOMALY", "DEDUP", "TIME_CLUSTER", + "FREQUENT", + "RARE", + "OUTLIER", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go new file mode 100644 index 00000000000..264c3ff0e44 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/association_property.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AssociationProperty A property represented as a name-value pair. +type AssociationProperty struct { + + // The name of the association property. + Name *string `mandatory:"true" json:"name"` + + // The value of the association property. + Value *string `mandatory:"false" json:"value"` + + // A list of pattern level overrides for this property. + Patterns []PatternOverride `mandatory:"false" json:"patterns"` +} + +func (m AssociationProperty) 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 AssociationProperty) 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/loganalytics/condition_block.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go new file mode 100644 index 00000000000..41df142d3ae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/condition_block.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConditionBlock A condition block. This could represent a single condition, or have nested condition blocks under it. +// To form a single condition, specify the fieldName, labelConditionOperator and labelConditionValue(s). +// To form nested conditions, specify the conditions in conditionBlocks, and how to join them in conditionBlocksOperator. +type ConditionBlock struct { + + // Operator using which the conditionBlocks should be joined. Specify this for nested conditions. + ConditionBlocksOperator ConditionBlockConditionBlocksOperatorEnum `mandatory:"false" json:"conditionBlocksOperator,omitempty"` + + // The name of the field the condition is based on. Specify this if this condition block represents a single condition. + FieldName *string `mandatory:"false" json:"fieldName"` + + // The condition operator. Specify this if this condition block represents a single condition. + LabelConditionOperator *string `mandatory:"false" json:"labelConditionOperator"` + + // The condition value. Specify this if this condition block represents a single condition. + LabelConditionValue *string `mandatory:"false" json:"labelConditionValue"` + + // A list of condition values. Specify this if this condition block represents a single condition. + LabelConditionValues []string `mandatory:"false" json:"labelConditionValues"` + + // Condition blocks to evaluate within this condition block. Specify this for nested conditions. + ConditionBlocks []ConditionBlock `mandatory:"false" json:"conditionBlocks"` +} + +func (m ConditionBlock) 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 ConditionBlock) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingConditionBlockConditionBlocksOperatorEnum(string(m.ConditionBlocksOperator)); !ok && m.ConditionBlocksOperator != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConditionBlocksOperator: %s. Supported values are: %s.", m.ConditionBlocksOperator, strings.Join(GetConditionBlockConditionBlocksOperatorEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ConditionBlockConditionBlocksOperatorEnum Enum with underlying type: string +type ConditionBlockConditionBlocksOperatorEnum string + +// Set of constants representing the allowable values for ConditionBlockConditionBlocksOperatorEnum +const ( + ConditionBlockConditionBlocksOperatorAnd ConditionBlockConditionBlocksOperatorEnum = "AND" + ConditionBlockConditionBlocksOperatorOr ConditionBlockConditionBlocksOperatorEnum = "OR" + ConditionBlockConditionBlocksOperatorNotAnd ConditionBlockConditionBlocksOperatorEnum = "NOT_AND" + ConditionBlockConditionBlocksOperatorNotOr ConditionBlockConditionBlocksOperatorEnum = "NOT_OR" +) + +var mappingConditionBlockConditionBlocksOperatorEnum = map[string]ConditionBlockConditionBlocksOperatorEnum{ + "AND": ConditionBlockConditionBlocksOperatorAnd, + "OR": ConditionBlockConditionBlocksOperatorOr, + "NOT_AND": ConditionBlockConditionBlocksOperatorNotAnd, + "NOT_OR": ConditionBlockConditionBlocksOperatorNotOr, +} + +var mappingConditionBlockConditionBlocksOperatorEnumLowerCase = map[string]ConditionBlockConditionBlocksOperatorEnum{ + "and": ConditionBlockConditionBlocksOperatorAnd, + "or": ConditionBlockConditionBlocksOperatorOr, + "not_and": ConditionBlockConditionBlocksOperatorNotAnd, + "not_or": ConditionBlockConditionBlocksOperatorNotOr, +} + +// GetConditionBlockConditionBlocksOperatorEnumValues Enumerates the set of values for ConditionBlockConditionBlocksOperatorEnum +func GetConditionBlockConditionBlocksOperatorEnumValues() []ConditionBlockConditionBlocksOperatorEnum { + values := make([]ConditionBlockConditionBlocksOperatorEnum, 0) + for _, v := range mappingConditionBlockConditionBlocksOperatorEnum { + values = append(values, v) + } + return values +} + +// GetConditionBlockConditionBlocksOperatorEnumStringValues Enumerates the set of values in String for ConditionBlockConditionBlocksOperatorEnum +func GetConditionBlockConditionBlocksOperatorEnumStringValues() []string { + return []string{ + "AND", + "OR", + "NOT_AND", + "NOT_OR", + } +} + +// GetMappingConditionBlockConditionBlocksOperatorEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingConditionBlockConditionBlocksOperatorEnum(val string) (ConditionBlockConditionBlocksOperatorEnum, bool) { + enum, ok := mappingConditionBlockConditionBlocksOperatorEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go index 2e9512345b5..971c67fb506 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/creation_source_type.go @@ -19,6 +19,7 @@ type CreationSourceTypeEnum string // Set of constants representing the allowable values for CreationSourceTypeEnum const ( CreationSourceTypeEmBridge CreationSourceTypeEnum = "EM_BRIDGE" + CreationSourceTypeBulkDiscovery CreationSourceTypeEnum = "BULK_DISCOVERY" CreationSourceTypeServiceConnectorHub CreationSourceTypeEnum = "SERVICE_CONNECTOR_HUB" CreationSourceTypeDiscovery CreationSourceTypeEnum = "DISCOVERY" CreationSourceTypeNone CreationSourceTypeEnum = "NONE" @@ -26,6 +27,7 @@ const ( var mappingCreationSourceTypeEnum = map[string]CreationSourceTypeEnum{ "EM_BRIDGE": CreationSourceTypeEmBridge, + "BULK_DISCOVERY": CreationSourceTypeBulkDiscovery, "SERVICE_CONNECTOR_HUB": CreationSourceTypeServiceConnectorHub, "DISCOVERY": CreationSourceTypeDiscovery, "NONE": CreationSourceTypeNone, @@ -33,6 +35,7 @@ var mappingCreationSourceTypeEnum = map[string]CreationSourceTypeEnum{ var mappingCreationSourceTypeEnumLowerCase = map[string]CreationSourceTypeEnum{ "em_bridge": CreationSourceTypeEmBridge, + "bulk_discovery": CreationSourceTypeBulkDiscovery, "service_connector_hub": CreationSourceTypeServiceConnectorHub, "discovery": CreationSourceTypeDiscovery, "none": CreationSourceTypeNone, @@ -51,6 +54,7 @@ func GetCreationSourceTypeEnumValues() []CreationSourceTypeEnum { func GetCreationSourceTypeEnumStringValues() []string { return []string{ "EM_BRIDGE", + "BULK_DISCOVERY", "SERVICE_CONNECTOR_HUB", "DISCOVERY", "NONE", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go new file mode 100644 index 00000000000..32a9eb16d9c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/credential_endpoint.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CredentialEndpoint The endpoint from where to fetch a credential, for example, the OAuth 2.0 token. +type CredentialEndpoint struct { + + // The credential endpoint name. + Name *string `mandatory:"true" json:"name"` + + Request *EndpointRequest `mandatory:"true" json:"request"` + + // The credential endpoint description. + Description *string `mandatory:"false" json:"description"` + + // The credential endpoint model. + Model *string `mandatory:"false" json:"model"` + + // The endpoint unique identifier. + EndpointId *int64 `mandatory:"false" json:"endpointId"` + + Response *EndpointResponse `mandatory:"false" json:"response"` + + Proxy *EndpointProxy `mandatory:"false" json:"proxy"` +} + +func (m CredentialEndpoint) 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 CredentialEndpoint) 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/loganalytics/delete_log_analytics_em_bridge_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go index d6e99cb18b1..fd6fecdf744 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/delete_log_analytics_em_bridge_request_response.go @@ -34,6 +34,9 @@ type DeleteLogAnalyticsEmBridgeRequest struct { // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // If true, delete entities created by this bridge + IsDeleteEntities *bool `mandatory:"false" contributesTo:"query" name:"isDeleteEntities"` + // 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/loganalytics/effective_property_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go new file mode 100644 index 00000000000..a6a6c0a8570 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EffectivePropertyCollection A collection of effective properties. +type EffectivePropertyCollection struct { + + // A list of properties and their effective values. + Items []EffectivePropertySummary `mandatory:"false" json:"items"` +} + +func (m EffectivePropertyCollection) 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 EffectivePropertyCollection) 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/loganalytics/effective_property_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go new file mode 100644 index 00000000000..7cf73ed0101 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/effective_property_summary.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EffectivePropertySummary A property and its effective value details. +type EffectivePropertySummary struct { + + // The property name. + Name *string `mandatory:"true" json:"name"` + + // The effective value of the property. This is determined by considering the value set at the most effective level. + Value *string `mandatory:"false" json:"value"` + + // The level from which the effective value was determined. + EffectiveLevel *string `mandatory:"false" json:"effectiveLevel"` + + // A list of pattern level override values for the property. + Patterns []PatternOverride `mandatory:"false" json:"patterns"` +} + +func (m EffectivePropertySummary) 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 EffectivePropertySummary) 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/loganalytics/endpoint_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go new file mode 100644 index 00000000000..4ae5523abc6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_credentials.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointCredentials An object containing credential details to authenticate/authorize a REST request. +type EndpointCredentials struct { + + // The credential type. NONE indicates credentials are not needed to access the endpoint. + // BASIC_AUTH represents a username and password based model. TOKEN could be static or dynamic. + // In case of dynamic tokens, also specify the endpoint from which the token must be fetched. + CredentialType EndpointCredentialsCredentialTypeEnum `mandatory:"false" json:"credentialType,omitempty"` + + // The named credential name on the management agent. + CredentialName *string `mandatory:"false" json:"credentialName"` + + CredentialEndpoint *CredentialEndpoint `mandatory:"false" json:"credentialEndpoint"` +} + +func (m EndpointCredentials) 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 EndpointCredentials) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEndpointCredentialsCredentialTypeEnum(string(m.CredentialType)); !ok && m.CredentialType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CredentialType: %s. Supported values are: %s.", m.CredentialType, strings.Join(GetEndpointCredentialsCredentialTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EndpointCredentialsCredentialTypeEnum Enum with underlying type: string +type EndpointCredentialsCredentialTypeEnum string + +// Set of constants representing the allowable values for EndpointCredentialsCredentialTypeEnum +const ( + EndpointCredentialsCredentialTypeNone EndpointCredentialsCredentialTypeEnum = "NONE" + EndpointCredentialsCredentialTypeBasicAuth EndpointCredentialsCredentialTypeEnum = "BASIC_AUTH" + EndpointCredentialsCredentialTypeStaticToken EndpointCredentialsCredentialTypeEnum = "STATIC_TOKEN" + EndpointCredentialsCredentialTypeDynamicToken EndpointCredentialsCredentialTypeEnum = "DYNAMIC_TOKEN" +) + +var mappingEndpointCredentialsCredentialTypeEnum = map[string]EndpointCredentialsCredentialTypeEnum{ + "NONE": EndpointCredentialsCredentialTypeNone, + "BASIC_AUTH": EndpointCredentialsCredentialTypeBasicAuth, + "STATIC_TOKEN": EndpointCredentialsCredentialTypeStaticToken, + "DYNAMIC_TOKEN": EndpointCredentialsCredentialTypeDynamicToken, +} + +var mappingEndpointCredentialsCredentialTypeEnumLowerCase = map[string]EndpointCredentialsCredentialTypeEnum{ + "none": EndpointCredentialsCredentialTypeNone, + "basic_auth": EndpointCredentialsCredentialTypeBasicAuth, + "static_token": EndpointCredentialsCredentialTypeStaticToken, + "dynamic_token": EndpointCredentialsCredentialTypeDynamicToken, +} + +// GetEndpointCredentialsCredentialTypeEnumValues Enumerates the set of values for EndpointCredentialsCredentialTypeEnum +func GetEndpointCredentialsCredentialTypeEnumValues() []EndpointCredentialsCredentialTypeEnum { + values := make([]EndpointCredentialsCredentialTypeEnum, 0) + for _, v := range mappingEndpointCredentialsCredentialTypeEnum { + values = append(values, v) + } + return values +} + +// GetEndpointCredentialsCredentialTypeEnumStringValues Enumerates the set of values in String for EndpointCredentialsCredentialTypeEnum +func GetEndpointCredentialsCredentialTypeEnumStringValues() []string { + return []string{ + "NONE", + "BASIC_AUTH", + "STATIC_TOKEN", + "DYNAMIC_TOKEN", + } +} + +// GetMappingEndpointCredentialsCredentialTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEndpointCredentialsCredentialTypeEnum(val string) (EndpointCredentialsCredentialTypeEnum, bool) { + enum, ok := mappingEndpointCredentialsCredentialTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go new file mode 100644 index 00000000000..21054dc841a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_proxy.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointProxy An object containing the endpoint proxy details. +type EndpointProxy struct { + + // The proxy URL. + Url *string `mandatory:"true" json:"url"` + + // The named credential name on the management agent, containing the proxy credentials. + CredentialName *string `mandatory:"false" json:"credentialName"` + + // The credential type. NONE indicates credentials are not needed to access the proxy. + // BASIC_AUTH represents a username and password based model. TOKEN represents a token based model. + CredentialType EndpointProxyCredentialTypeEnum `mandatory:"false" json:"credentialType,omitempty"` +} + +func (m EndpointProxy) 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 EndpointProxy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEndpointProxyCredentialTypeEnum(string(m.CredentialType)); !ok && m.CredentialType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CredentialType: %s. Supported values are: %s.", m.CredentialType, strings.Join(GetEndpointProxyCredentialTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EndpointProxyCredentialTypeEnum Enum with underlying type: string +type EndpointProxyCredentialTypeEnum string + +// Set of constants representing the allowable values for EndpointProxyCredentialTypeEnum +const ( + EndpointProxyCredentialTypeNone EndpointProxyCredentialTypeEnum = "NONE" + EndpointProxyCredentialTypeBasicAuth EndpointProxyCredentialTypeEnum = "BASIC_AUTH" + EndpointProxyCredentialTypeToken EndpointProxyCredentialTypeEnum = "TOKEN" +) + +var mappingEndpointProxyCredentialTypeEnum = map[string]EndpointProxyCredentialTypeEnum{ + "NONE": EndpointProxyCredentialTypeNone, + "BASIC_AUTH": EndpointProxyCredentialTypeBasicAuth, + "TOKEN": EndpointProxyCredentialTypeToken, +} + +var mappingEndpointProxyCredentialTypeEnumLowerCase = map[string]EndpointProxyCredentialTypeEnum{ + "none": EndpointProxyCredentialTypeNone, + "basic_auth": EndpointProxyCredentialTypeBasicAuth, + "token": EndpointProxyCredentialTypeToken, +} + +// GetEndpointProxyCredentialTypeEnumValues Enumerates the set of values for EndpointProxyCredentialTypeEnum +func GetEndpointProxyCredentialTypeEnumValues() []EndpointProxyCredentialTypeEnum { + values := make([]EndpointProxyCredentialTypeEnum, 0) + for _, v := range mappingEndpointProxyCredentialTypeEnum { + values = append(values, v) + } + return values +} + +// GetEndpointProxyCredentialTypeEnumStringValues Enumerates the set of values in String for EndpointProxyCredentialTypeEnum +func GetEndpointProxyCredentialTypeEnumStringValues() []string { + return []string{ + "NONE", + "BASIC_AUTH", + "TOKEN", + } +} + +// GetMappingEndpointProxyCredentialTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEndpointProxyCredentialTypeEnum(val string) (EndpointProxyCredentialTypeEnum, bool) { + enum, ok := mappingEndpointProxyCredentialTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go new file mode 100644 index 00000000000..74c0b7e89e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_request.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointRequest An object containing details to make a REST request. +type EndpointRequest struct { + + // The request URL. + Url *string `mandatory:"true" json:"url"` + + // The endpoint method - GET or POST. + Method EndpointRequestMethodEnum `mandatory:"false" json:"method,omitempty"` + + // The request content type. + ContentType *string `mandatory:"false" json:"contentType"` + + // The request payload, applicable for POST requests. + Payload *string `mandatory:"false" json:"payload"` + + // The request headers represented as a list of name-value pairs. + Headers []NameValuePair `mandatory:"false" json:"headers"` + + // The request form parameters represented as a list of name-value pairs. + FormParameters []NameValuePair `mandatory:"false" json:"formParameters"` +} + +func (m EndpointRequest) 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 EndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEndpointRequestMethodEnum(string(m.Method)); !ok && m.Method != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Method: %s. Supported values are: %s.", m.Method, strings.Join(GetEndpointRequestMethodEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EndpointRequestMethodEnum Enum with underlying type: string +type EndpointRequestMethodEnum string + +// Set of constants representing the allowable values for EndpointRequestMethodEnum +const ( + EndpointRequestMethodGet EndpointRequestMethodEnum = "GET" + EndpointRequestMethodPost EndpointRequestMethodEnum = "POST" +) + +var mappingEndpointRequestMethodEnum = map[string]EndpointRequestMethodEnum{ + "GET": EndpointRequestMethodGet, + "POST": EndpointRequestMethodPost, +} + +var mappingEndpointRequestMethodEnumLowerCase = map[string]EndpointRequestMethodEnum{ + "get": EndpointRequestMethodGet, + "post": EndpointRequestMethodPost, +} + +// GetEndpointRequestMethodEnumValues Enumerates the set of values for EndpointRequestMethodEnum +func GetEndpointRequestMethodEnumValues() []EndpointRequestMethodEnum { + values := make([]EndpointRequestMethodEnum, 0) + for _, v := range mappingEndpointRequestMethodEnum { + values = append(values, v) + } + return values +} + +// GetEndpointRequestMethodEnumStringValues Enumerates the set of values in String for EndpointRequestMethodEnum +func GetEndpointRequestMethodEnumStringValues() []string { + return []string{ + "GET", + "POST", + } +} + +// GetMappingEndpointRequestMethodEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEndpointRequestMethodEnum(val string) (EndpointRequestMethodEnum, bool) { + enum, ok := mappingEndpointRequestMethodEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go new file mode 100644 index 00000000000..94985a50bfe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_response.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointResponse An object containing details of a REST response. +type EndpointResponse struct { + + // The response content type. + ContentType *string `mandatory:"false" json:"contentType"` + + // A sample response. + Example *string `mandatory:"false" json:"example"` +} + +func (m EndpointResponse) 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 EndpointResponse) 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/loganalytics/endpoint_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go new file mode 100644 index 00000000000..f55258d29a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/endpoint_result.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointResult The validation status of a specified endpoint. +type EndpointResult struct { + + // The endpoint name. + EndpointName *string `mandatory:"false" json:"endpointName"` + + // The endpoint URL. + Url *string `mandatory:"false" json:"url"` + + // The endpoint validation status. + Status *string `mandatory:"false" json:"status"` + + // The list of violations (if any). + Violations []Violation `mandatory:"false" json:"violations"` + + // The resolved log endpoints based on the specified list endpoint response. + LogEndpoints []string `mandatory:"false" json:"logEndpoints"` +} + +func (m EndpointResult) 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 EndpointResult) 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/loganalytics/estimate_recall_data_size_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go index d215871962e..bb6d14667ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_details.go @@ -23,6 +23,12 @@ type EstimateRecallDataSizeDetails struct { // This is the end of the time range for the data to be recalled TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` + + // This is the list of logsets to be accounted for in the recalled data + LogSets *string `mandatory:"false" json:"logSets"` + + // This indicates if only new data has to be recalled in the timeframe + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m EstimateRecallDataSizeDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go index 30097ac3635..869a859295f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/estimate_recall_data_size_result.go @@ -31,6 +31,15 @@ type EstimateRecallDataSizeResult struct { // This indicates if the time range of data to be recalled overlaps with existing recalled data IsOverlappingWithExistingRecalls *bool `mandatory:"false" json:"isOverlappingWithExistingRecalls"` + + // This is the number of core groups estimated for this recall + CoreGroupCount *int `mandatory:"false" json:"coreGroupCount"` + + // This is the max number of core groups that is available for any recall + CoreGroupCountLimit *int `mandatory:"false" json:"coreGroupCountLimit"` + + // This is the size limit in bytes + SizeLimitInBytes *int64 `mandatory:"false" json:"sizeLimitInBytes"` } func (m EstimateRecallDataSizeResult) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go new file mode 100644 index 00000000000..deb5b052b2e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/frequent_command_descriptor.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FrequentCommandDescriptor Command descriptor for querylanguage FREQUENT command. +type FrequentCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +//GetDisplayQueryString returns DisplayQueryString +func (m FrequentCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +//GetInternalQueryString returns InternalQueryString +func (m FrequentCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +//GetCategory returns Category +func (m FrequentCommandDescriptor) GetCategory() *string { + return m.Category +} + +//GetReferencedFields returns ReferencedFields +func (m FrequentCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +//GetDeclaredFields returns DeclaredFields +func (m FrequentCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +//GetIsHidden returns IsHidden +func (m FrequentCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m FrequentCommandDescriptor) 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 FrequentCommandDescriptor) 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 FrequentCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFrequentCommandDescriptor FrequentCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeFrequentCommandDescriptor + }{ + "FREQUENT", + (MarshalTypeFrequentCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *FrequentCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go new file mode 100644 index 00000000000..abbf7c5e576 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recall_count_request_response.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRecallCountRequest wrapper for the GetRecallCount operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecallCount.go.html to see an example of how to use GetRecallCountRequest. +type GetRecallCountRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // 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 GetRecallCountRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRecallCountRequest) 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 GetRecallCountRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRecallCountRequest) 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 GetRecallCountRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRecallCountResponse wrapper for the GetRecallCount operation +type GetRecallCountResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecallCount instance + RecallCount `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetRecallCountResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRecallCountResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go new file mode 100644 index 00000000000..881b3013feb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_recalled_data_size_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRecalledDataSizeRequest wrapper for the GetRecalledDataSize operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecalledDataSize.go.html to see an example of how to use GetRecalledDataSizeRequest. +type GetRecalledDataSizeRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // This is the start of the time range for recalled data + TimeDataStarted *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataStarted"` + + // This is the end of the time range for recalled data + TimeDataEnded *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataEnded"` + + // 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 GetRecalledDataSizeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRecalledDataSizeRequest) 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 GetRecalledDataSizeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRecalledDataSizeRequest) 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 GetRecalledDataSizeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRecalledDataSizeResponse wrapper for the GetRecalledDataSize operation +type GetRecalledDataSizeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RecalledDataSize instance + RecalledDataSize `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, 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 additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response GetRecalledDataSizeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRecalledDataSizeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go new file mode 100644 index 00000000000..837163113c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/get_rules_summary_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRulesSummaryRequest wrapper for the GetRulesSummary operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRulesSummary.go.html to see an example of how to use GetRulesSummaryRequest. +type GetRulesSummaryRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The ID of the compartment in which to list resources. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // 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 GetRulesSummaryRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRulesSummaryRequest) 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 GetRulesSummaryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRulesSummaryRequest) 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 GetRulesSummaryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRulesSummaryResponse wrapper for the GetRulesSummary operation +type GetRulesSummaryResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RuleSummaryReport instance + RuleSummaryReport `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetRulesSummaryResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRulesSummaryResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go new file mode 100644 index 00000000000..af9b70ca9c2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/level.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Level An object used to represent a level at which a property or resource or constraint is defined. +type Level struct { + + // The level name. + Name *string `mandatory:"true" json:"name"` + + // A string representation of constraints that apply at this level. + // For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql. + Constraints *string `mandatory:"false" json:"constraints"` +} + +func (m Level) 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 Level) 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/loganalytics/list_effective_properties_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go new file mode 100644 index 00000000000..870bd325094 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_effective_properties_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListEffectivePropertiesRequest wrapper for the ListEffectiveProperties operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListEffectiveProperties.go.html to see an example of how to use ListEffectivePropertiesRequest. +type ListEffectivePropertiesRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The agent ocid. + AgentId *string `mandatory:"false" contributesTo:"query" name:"agentId"` + + // The source name. + SourceName *string `mandatory:"false" contributesTo:"query" name:"sourceName"` + + // The include pattern flag. + IsIncludePatterns *bool `mandatory:"false" contributesTo:"query" name:"isIncludePatterns"` + + // The entity ocid. + EntityId *string `mandatory:"false" contributesTo:"query" name:"entityId"` + + // The pattern id. + PatternId *int `mandatory:"false" contributesTo:"query" name:"patternId"` + + // The property name used for filtering. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListEffectivePropertiesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The attribute used to sort the returned properties + SortBy ListEffectivePropertiesSortByEnum `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 ListEffectivePropertiesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListEffectivePropertiesRequest) 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 ListEffectivePropertiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListEffectivePropertiesRequest) 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 ListEffectivePropertiesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListEffectivePropertiesSortOrderEnum(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(GetListEffectivePropertiesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListEffectivePropertiesSortByEnum(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(GetListEffectivePropertiesSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListEffectivePropertiesResponse wrapper for the ListEffectiveProperties operation +type ListEffectivePropertiesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of EffectivePropertyCollection instances + EffectivePropertyCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListEffectivePropertiesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListEffectivePropertiesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListEffectivePropertiesSortOrderEnum Enum with underlying type: string +type ListEffectivePropertiesSortOrderEnum string + +// Set of constants representing the allowable values for ListEffectivePropertiesSortOrderEnum +const ( + ListEffectivePropertiesSortOrderAsc ListEffectivePropertiesSortOrderEnum = "ASC" + ListEffectivePropertiesSortOrderDesc ListEffectivePropertiesSortOrderEnum = "DESC" +) + +var mappingListEffectivePropertiesSortOrderEnum = map[string]ListEffectivePropertiesSortOrderEnum{ + "ASC": ListEffectivePropertiesSortOrderAsc, + "DESC": ListEffectivePropertiesSortOrderDesc, +} + +var mappingListEffectivePropertiesSortOrderEnumLowerCase = map[string]ListEffectivePropertiesSortOrderEnum{ + "asc": ListEffectivePropertiesSortOrderAsc, + "desc": ListEffectivePropertiesSortOrderDesc, +} + +// GetListEffectivePropertiesSortOrderEnumValues Enumerates the set of values for ListEffectivePropertiesSortOrderEnum +func GetListEffectivePropertiesSortOrderEnumValues() []ListEffectivePropertiesSortOrderEnum { + values := make([]ListEffectivePropertiesSortOrderEnum, 0) + for _, v := range mappingListEffectivePropertiesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListEffectivePropertiesSortOrderEnumStringValues Enumerates the set of values in String for ListEffectivePropertiesSortOrderEnum +func GetListEffectivePropertiesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListEffectivePropertiesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListEffectivePropertiesSortOrderEnum(val string) (ListEffectivePropertiesSortOrderEnum, bool) { + enum, ok := mappingListEffectivePropertiesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListEffectivePropertiesSortByEnum Enum with underlying type: string +type ListEffectivePropertiesSortByEnum string + +// Set of constants representing the allowable values for ListEffectivePropertiesSortByEnum +const ( + ListEffectivePropertiesSortByName ListEffectivePropertiesSortByEnum = "name" + ListEffectivePropertiesSortByDisplayname ListEffectivePropertiesSortByEnum = "displayName" +) + +var mappingListEffectivePropertiesSortByEnum = map[string]ListEffectivePropertiesSortByEnum{ + "name": ListEffectivePropertiesSortByName, + "displayName": ListEffectivePropertiesSortByDisplayname, +} + +var mappingListEffectivePropertiesSortByEnumLowerCase = map[string]ListEffectivePropertiesSortByEnum{ + "name": ListEffectivePropertiesSortByName, + "displayname": ListEffectivePropertiesSortByDisplayname, +} + +// GetListEffectivePropertiesSortByEnumValues Enumerates the set of values for ListEffectivePropertiesSortByEnum +func GetListEffectivePropertiesSortByEnumValues() []ListEffectivePropertiesSortByEnum { + values := make([]ListEffectivePropertiesSortByEnum, 0) + for _, v := range mappingListEffectivePropertiesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListEffectivePropertiesSortByEnumStringValues Enumerates the set of values in String for ListEffectivePropertiesSortByEnum +func GetListEffectivePropertiesSortByEnumStringValues() []string { + return []string{ + "name", + "displayName", + } +} + +// GetMappingListEffectivePropertiesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListEffectivePropertiesSortByEnum(val string) (ListEffectivePropertiesSortByEnum, bool) { + enum, ok := mappingListEffectivePropertiesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go new file mode 100644 index 00000000000..74b990bd76e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_overlapping_recalls_request_response.go @@ -0,0 +1,208 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListOverlappingRecallsRequest wrapper for the ListOverlappingRecalls operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListOverlappingRecalls.go.html to see an example of how to use ListOverlappingRecallsRequest. +type ListOverlappingRecallsRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // 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"` + + // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // This is the query parameter of which field to sort by. Only one sort order may be provided. Default order for timeDataStarted + // is descending. If no value is specified timeDataStarted is default. + SortBy ListOverlappingRecallsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListOverlappingRecallsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // This is the start of the time range for recalled data + TimeDataStarted *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataStarted"` + + // This is the end of the time range for recalled data + TimeDataEnded *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeDataEnded"` + + // 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 ListOverlappingRecallsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListOverlappingRecallsRequest) 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 ListOverlappingRecallsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListOverlappingRecallsRequest) 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 ListOverlappingRecallsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListOverlappingRecallsSortByEnum(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(GetListOverlappingRecallsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListOverlappingRecallsSortOrderEnum(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(GetListOverlappingRecallsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListOverlappingRecallsResponse wrapper for the ListOverlappingRecalls operation +type ListOverlappingRecallsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of OverlappingRecallCollection instances + OverlappingRecallCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, 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 additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListOverlappingRecallsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListOverlappingRecallsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListOverlappingRecallsSortByEnum Enum with underlying type: string +type ListOverlappingRecallsSortByEnum string + +// Set of constants representing the allowable values for ListOverlappingRecallsSortByEnum +const ( + ListOverlappingRecallsSortByTimestarted ListOverlappingRecallsSortByEnum = "timeStarted" + ListOverlappingRecallsSortByTimedatastarted ListOverlappingRecallsSortByEnum = "timeDataStarted" +) + +var mappingListOverlappingRecallsSortByEnum = map[string]ListOverlappingRecallsSortByEnum{ + "timeStarted": ListOverlappingRecallsSortByTimestarted, + "timeDataStarted": ListOverlappingRecallsSortByTimedatastarted, +} + +var mappingListOverlappingRecallsSortByEnumLowerCase = map[string]ListOverlappingRecallsSortByEnum{ + "timestarted": ListOverlappingRecallsSortByTimestarted, + "timedatastarted": ListOverlappingRecallsSortByTimedatastarted, +} + +// GetListOverlappingRecallsSortByEnumValues Enumerates the set of values for ListOverlappingRecallsSortByEnum +func GetListOverlappingRecallsSortByEnumValues() []ListOverlappingRecallsSortByEnum { + values := make([]ListOverlappingRecallsSortByEnum, 0) + for _, v := range mappingListOverlappingRecallsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListOverlappingRecallsSortByEnumStringValues Enumerates the set of values in String for ListOverlappingRecallsSortByEnum +func GetListOverlappingRecallsSortByEnumStringValues() []string { + return []string{ + "timeStarted", + "timeDataStarted", + } +} + +// GetMappingListOverlappingRecallsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOverlappingRecallsSortByEnum(val string) (ListOverlappingRecallsSortByEnum, bool) { + enum, ok := mappingListOverlappingRecallsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListOverlappingRecallsSortOrderEnum Enum with underlying type: string +type ListOverlappingRecallsSortOrderEnum string + +// Set of constants representing the allowable values for ListOverlappingRecallsSortOrderEnum +const ( + ListOverlappingRecallsSortOrderAsc ListOverlappingRecallsSortOrderEnum = "ASC" + ListOverlappingRecallsSortOrderDesc ListOverlappingRecallsSortOrderEnum = "DESC" +) + +var mappingListOverlappingRecallsSortOrderEnum = map[string]ListOverlappingRecallsSortOrderEnum{ + "ASC": ListOverlappingRecallsSortOrderAsc, + "DESC": ListOverlappingRecallsSortOrderDesc, +} + +var mappingListOverlappingRecallsSortOrderEnumLowerCase = map[string]ListOverlappingRecallsSortOrderEnum{ + "asc": ListOverlappingRecallsSortOrderAsc, + "desc": ListOverlappingRecallsSortOrderDesc, +} + +// GetListOverlappingRecallsSortOrderEnumValues Enumerates the set of values for ListOverlappingRecallsSortOrderEnum +func GetListOverlappingRecallsSortOrderEnumValues() []ListOverlappingRecallsSortOrderEnum { + values := make([]ListOverlappingRecallsSortOrderEnum, 0) + for _, v := range mappingListOverlappingRecallsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListOverlappingRecallsSortOrderEnumStringValues Enumerates the set of values in String for ListOverlappingRecallsSortOrderEnum +func GetListOverlappingRecallsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListOverlappingRecallsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOverlappingRecallsSortOrderEnum(val string) (ListOverlappingRecallsSortOrderEnum, bool) { + enum, ok := mappingListOverlappingRecallsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go new file mode 100644 index 00000000000..4ae6f6ea0d6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_properties_metadata_request_response.go @@ -0,0 +1,214 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPropertiesMetadataRequest wrapper for the ListPropertiesMetadata operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListPropertiesMetadata.go.html to see an example of how to use ListPropertiesMetadataRequest. +type ListPropertiesMetadataRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // The property name used for filtering. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The property display text used for filtering. Only properties matching the specified display + // name or description will be returned. + DisplayText *string `mandatory:"false" contributesTo:"query" name:"displayText"` + + // The level for which applicable properties are to be listed. + Level *string `mandatory:"false" contributesTo:"query" name:"level"` + + // The constraints that apply to the properties at a certain level. + Constraints *string `mandatory:"false" contributesTo:"query" name:"constraints"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListPropertiesMetadataSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The attribute used to sort the returned properties + SortBy ListPropertiesMetadataSortByEnum `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 ListPropertiesMetadataRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPropertiesMetadataRequest) 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 ListPropertiesMetadataRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPropertiesMetadataRequest) 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 ListPropertiesMetadataRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPropertiesMetadataSortOrderEnum(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(GetListPropertiesMetadataSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListPropertiesMetadataSortByEnum(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(GetListPropertiesMetadataSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPropertiesMetadataResponse wrapper for the ListPropertiesMetadata operation +type ListPropertiesMetadataResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of PropertyMetadataSummaryCollection instances + PropertyMetadataSummaryCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the previous page of the list. Include this value as the `page` parameter for the + // subsequent request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then additional items may be available on the next page of the list. Include this value as the `page` parameter for the + // subsequent request to get the next batch of items. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListPropertiesMetadataResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPropertiesMetadataResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPropertiesMetadataSortOrderEnum Enum with underlying type: string +type ListPropertiesMetadataSortOrderEnum string + +// Set of constants representing the allowable values for ListPropertiesMetadataSortOrderEnum +const ( + ListPropertiesMetadataSortOrderAsc ListPropertiesMetadataSortOrderEnum = "ASC" + ListPropertiesMetadataSortOrderDesc ListPropertiesMetadataSortOrderEnum = "DESC" +) + +var mappingListPropertiesMetadataSortOrderEnum = map[string]ListPropertiesMetadataSortOrderEnum{ + "ASC": ListPropertiesMetadataSortOrderAsc, + "DESC": ListPropertiesMetadataSortOrderDesc, +} + +var mappingListPropertiesMetadataSortOrderEnumLowerCase = map[string]ListPropertiesMetadataSortOrderEnum{ + "asc": ListPropertiesMetadataSortOrderAsc, + "desc": ListPropertiesMetadataSortOrderDesc, +} + +// GetListPropertiesMetadataSortOrderEnumValues Enumerates the set of values for ListPropertiesMetadataSortOrderEnum +func GetListPropertiesMetadataSortOrderEnumValues() []ListPropertiesMetadataSortOrderEnum { + values := make([]ListPropertiesMetadataSortOrderEnum, 0) + for _, v := range mappingListPropertiesMetadataSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPropertiesMetadataSortOrderEnumStringValues Enumerates the set of values in String for ListPropertiesMetadataSortOrderEnum +func GetListPropertiesMetadataSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPropertiesMetadataSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPropertiesMetadataSortOrderEnum(val string) (ListPropertiesMetadataSortOrderEnum, bool) { + enum, ok := mappingListPropertiesMetadataSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPropertiesMetadataSortByEnum Enum with underlying type: string +type ListPropertiesMetadataSortByEnum string + +// Set of constants representing the allowable values for ListPropertiesMetadataSortByEnum +const ( + ListPropertiesMetadataSortByName ListPropertiesMetadataSortByEnum = "name" + ListPropertiesMetadataSortByDisplayname ListPropertiesMetadataSortByEnum = "displayName" +) + +var mappingListPropertiesMetadataSortByEnum = map[string]ListPropertiesMetadataSortByEnum{ + "name": ListPropertiesMetadataSortByName, + "displayName": ListPropertiesMetadataSortByDisplayname, +} + +var mappingListPropertiesMetadataSortByEnumLowerCase = map[string]ListPropertiesMetadataSortByEnum{ + "name": ListPropertiesMetadataSortByName, + "displayname": ListPropertiesMetadataSortByDisplayname, +} + +// GetListPropertiesMetadataSortByEnumValues Enumerates the set of values for ListPropertiesMetadataSortByEnum +func GetListPropertiesMetadataSortByEnumValues() []ListPropertiesMetadataSortByEnum { + values := make([]ListPropertiesMetadataSortByEnum, 0) + for _, v := range mappingListPropertiesMetadataSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPropertiesMetadataSortByEnumStringValues Enumerates the set of values in String for ListPropertiesMetadataSortByEnum +func GetListPropertiesMetadataSortByEnumStringValues() []string { + return []string{ + "name", + "displayName", + } +} + +// GetMappingListPropertiesMetadataSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPropertiesMetadataSortByEnum(val string) (ListPropertiesMetadataSortByEnum, bool) { + enum, ok := mappingListPropertiesMetadataSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go index 6f1d68e6bec..a90d4a39ccd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_scheduled_tasks_request_response.go @@ -140,24 +140,21 @@ type ListScheduledTasksTaskTypeEnum string // Set of constants representing the allowable values for ListScheduledTasksTaskTypeEnum const ( - ListScheduledTasksTaskTypeSavedSearch ListScheduledTasksTaskTypeEnum = "SAVED_SEARCH" - ListScheduledTasksTaskTypeAcceleration ListScheduledTasksTaskTypeEnum = "ACCELERATION" - ListScheduledTasksTaskTypePurge ListScheduledTasksTaskTypeEnum = "PURGE" - ListScheduledTasksTaskTypeAccelerationMaintenance ListScheduledTasksTaskTypeEnum = "ACCELERATION_MAINTENANCE" + ListScheduledTasksTaskTypeSavedSearch ListScheduledTasksTaskTypeEnum = "SAVED_SEARCH" + ListScheduledTasksTaskTypeAcceleration ListScheduledTasksTaskTypeEnum = "ACCELERATION" + ListScheduledTasksTaskTypePurge ListScheduledTasksTaskTypeEnum = "PURGE" ) var mappingListScheduledTasksTaskTypeEnum = map[string]ListScheduledTasksTaskTypeEnum{ - "SAVED_SEARCH": ListScheduledTasksTaskTypeSavedSearch, - "ACCELERATION": ListScheduledTasksTaskTypeAcceleration, - "PURGE": ListScheduledTasksTaskTypePurge, - "ACCELERATION_MAINTENANCE": ListScheduledTasksTaskTypeAccelerationMaintenance, + "SAVED_SEARCH": ListScheduledTasksTaskTypeSavedSearch, + "ACCELERATION": ListScheduledTasksTaskTypeAcceleration, + "PURGE": ListScheduledTasksTaskTypePurge, } var mappingListScheduledTasksTaskTypeEnumLowerCase = map[string]ListScheduledTasksTaskTypeEnum{ - "saved_search": ListScheduledTasksTaskTypeSavedSearch, - "acceleration": ListScheduledTasksTaskTypeAcceleration, - "purge": ListScheduledTasksTaskTypePurge, - "acceleration_maintenance": ListScheduledTasksTaskTypeAccelerationMaintenance, + "saved_search": ListScheduledTasksTaskTypeSavedSearch, + "acceleration": ListScheduledTasksTaskTypeAcceleration, + "purge": ListScheduledTasksTaskTypePurge, } // GetListScheduledTasksTaskTypeEnumValues Enumerates the set of values for ListScheduledTasksTaskTypeEnum @@ -175,7 +172,6 @@ func GetListScheduledTasksTaskTypeEnumStringValues() []string { "SAVED_SEARCH", "ACCELERATION", "PURGE", - "ACCELERATION_MAINTENANCE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go index be28382f3e6..7cc354ce90d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/list_storage_work_requests_request_response.go @@ -241,6 +241,7 @@ const ( ListStorageWorkRequestsOperationTypePurgeStorageData ListStorageWorkRequestsOperationTypeEnum = "PURGE_STORAGE_DATA" ListStorageWorkRequestsOperationTypeRecallArchivedStorageData ListStorageWorkRequestsOperationTypeEnum = "RECALL_ARCHIVED_STORAGE_DATA" ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData ListStorageWorkRequestsOperationTypeEnum = "RELEASE_RECALLED_STORAGE_DATA" + ListStorageWorkRequestsOperationTypePurgeArchivalData ListStorageWorkRequestsOperationTypeEnum = "PURGE_ARCHIVAL_DATA" ListStorageWorkRequestsOperationTypeArchiveStorageData ListStorageWorkRequestsOperationTypeEnum = "ARCHIVE_STORAGE_DATA" ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData ListStorageWorkRequestsOperationTypeEnum = "CLEANUP_ARCHIVAL_STORAGE_DATA" ListStorageWorkRequestsOperationTypeEncryptActiveData ListStorageWorkRequestsOperationTypeEnum = "ENCRYPT_ACTIVE_DATA" @@ -252,6 +253,7 @@ var mappingListStorageWorkRequestsOperationTypeEnum = map[string]ListStorageWork "PURGE_STORAGE_DATA": ListStorageWorkRequestsOperationTypePurgeStorageData, "RECALL_ARCHIVED_STORAGE_DATA": ListStorageWorkRequestsOperationTypeRecallArchivedStorageData, "RELEASE_RECALLED_STORAGE_DATA": ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData, + "PURGE_ARCHIVAL_DATA": ListStorageWorkRequestsOperationTypePurgeArchivalData, "ARCHIVE_STORAGE_DATA": ListStorageWorkRequestsOperationTypeArchiveStorageData, "CLEANUP_ARCHIVAL_STORAGE_DATA": ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData, "ENCRYPT_ACTIVE_DATA": ListStorageWorkRequestsOperationTypeEncryptActiveData, @@ -263,6 +265,7 @@ var mappingListStorageWorkRequestsOperationTypeEnumLowerCase = map[string]ListSt "purge_storage_data": ListStorageWorkRequestsOperationTypePurgeStorageData, "recall_archived_storage_data": ListStorageWorkRequestsOperationTypeRecallArchivedStorageData, "release_recalled_storage_data": ListStorageWorkRequestsOperationTypeReleaseRecalledStorageData, + "purge_archival_data": ListStorageWorkRequestsOperationTypePurgeArchivalData, "archive_storage_data": ListStorageWorkRequestsOperationTypeArchiveStorageData, "cleanup_archival_storage_data": ListStorageWorkRequestsOperationTypeCleanupArchivalStorageData, "encrypt_active_data": ListStorageWorkRequestsOperationTypeEncryptActiveData, @@ -285,6 +288,7 @@ func GetListStorageWorkRequestsOperationTypeEnumStringValues() []string { "PURGE_STORAGE_DATA", "RECALL_ARCHIVED_STORAGE_DATA", "RELEASE_RECALLED_STORAGE_DATA", + "PURGE_ARCHIVAL_DATA", "ARCHIVE_STORAGE_DATA", "CLEANUP_ARCHIVAL_STORAGE_DATA", "ENCRYPT_ACTIVE_DATA", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go index f6e9231b3ae..fb51c924dd1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association.go @@ -70,6 +70,9 @@ type LogAnalyticsAssociation struct { // The log group compartment. LogGroupCompartment *string `mandatory:"false" json:"logGroupCompartment"` + + // A list of association properties. + AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` } func (m LogAnalyticsAssociation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go index f1c305d2314..beed9577581 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_association_parameter.go @@ -39,6 +39,12 @@ type LogAnalyticsAssociationParameter struct { // The status. Either FAILED or SUCCEEDED. Status LogAnalyticsAssociationParameterStatusEnum `mandatory:"false" json:"status,omitempty"` + // The status description. + StatusDescription *string `mandatory:"false" json:"statusDescription"` + + // A list of association properties. + AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` + // A list of missing properties. MissingProperties []string `mandatory:"false" json:"missingProperties"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go new file mode 100644 index 00000000000..1e03ef36e13 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_endpoint.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsEndpoint Endpoint configuration for REST API based log collection. +type LogAnalyticsEndpoint interface { +} + +type loganalyticsendpoint struct { + JsonData []byte + EndpointType string `json:"endpointType"` +} + +// UnmarshalJSON unmarshals json +func (m *loganalyticsendpoint) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerloganalyticsendpoint loganalyticsendpoint + s := struct { + Model Unmarshalerloganalyticsendpoint + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.EndpointType = s.Model.EndpointType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *loganalyticsendpoint) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.EndpointType { + case "LOG_LIST": + mm := LogListTypeEndpoint{} + err = json.Unmarshal(data, &mm) + return mm, err + case "LOG": + mm := LogTypeEndpoint{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for LogAnalyticsEndpoint: %s.", m.EndpointType) + return *m, nil + } +} + +func (m loganalyticsendpoint) 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 loganalyticsendpoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LogAnalyticsEndpointEndpointTypeEnum Enum with underlying type: string +type LogAnalyticsEndpointEndpointTypeEnum string + +// Set of constants representing the allowable values for LogAnalyticsEndpointEndpointTypeEnum +const ( + LogAnalyticsEndpointEndpointTypeLogList LogAnalyticsEndpointEndpointTypeEnum = "LOG_LIST" + LogAnalyticsEndpointEndpointTypeLog LogAnalyticsEndpointEndpointTypeEnum = "LOG" +) + +var mappingLogAnalyticsEndpointEndpointTypeEnum = map[string]LogAnalyticsEndpointEndpointTypeEnum{ + "LOG_LIST": LogAnalyticsEndpointEndpointTypeLogList, + "LOG": LogAnalyticsEndpointEndpointTypeLog, +} + +var mappingLogAnalyticsEndpointEndpointTypeEnumLowerCase = map[string]LogAnalyticsEndpointEndpointTypeEnum{ + "log_list": LogAnalyticsEndpointEndpointTypeLogList, + "log": LogAnalyticsEndpointEndpointTypeLog, +} + +// GetLogAnalyticsEndpointEndpointTypeEnumValues Enumerates the set of values for LogAnalyticsEndpointEndpointTypeEnum +func GetLogAnalyticsEndpointEndpointTypeEnumValues() []LogAnalyticsEndpointEndpointTypeEnum { + values := make([]LogAnalyticsEndpointEndpointTypeEnum, 0) + for _, v := range mappingLogAnalyticsEndpointEndpointTypeEnum { + values = append(values, v) + } + return values +} + +// GetLogAnalyticsEndpointEndpointTypeEnumStringValues Enumerates the set of values in String for LogAnalyticsEndpointEndpointTypeEnum +func GetLogAnalyticsEndpointEndpointTypeEnumStringValues() []string { + return []string{ + "LOG_LIST", + "LOG", + } +} + +// GetMappingLogAnalyticsEndpointEndpointTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLogAnalyticsEndpointEndpointTypeEnum(val string) (LogAnalyticsEndpointEndpointTypeEnum, bool) { + enum, ok := mappingLogAnalyticsEndpointEndpointTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go index 8f75c50505c..cd827bfeec3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_preference.go @@ -18,7 +18,7 @@ import ( // LogAnalyticsPreference The preference information type LogAnalyticsPreference struct { - // The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported. + // The preference name. Name *string `mandatory:"false" json:"name"` // The preference value. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go new file mode 100644 index 00000000000..c3db3f91083 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_property.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsProperty A property represented as a name-value pair. +type LogAnalyticsProperty struct { + + // The property name. + Name *string `mandatory:"true" json:"name"` + + // The property value. + Value *string `mandatory:"false" json:"value"` +} + +func (m LogAnalyticsProperty) 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 LogAnalyticsProperty) 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/loganalytics/log_analytics_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go index eca91aac934..46bea2b5e84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source.go @@ -10,6 +10,7 @@ package loganalytics import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -130,6 +131,12 @@ type LogAnalyticsSource struct { // An array of categories assigned to this source. // The isSystem flag denotes if each category assignment is user-created or Oracle-defined. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` + + // An array of REST API endpoints for log collection. + Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` + + // A list of source properties. + SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m LogAnalyticsSource) String() string { @@ -147,3 +154,201 @@ func (m LogAnalyticsSource) ValidateEnumValue() (bool, error) { } return false, nil } + +// UnmarshalJSON unmarshals from json +func (m *LogAnalyticsSource) UnmarshalJSON(data []byte) (e error) { + model := struct { + LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` + AssociationCount *int `json:"associationCount"` + AssociationEntity []LogAnalyticsAssociation `json:"associationEntity"` + DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` + DatabaseCredential *string `json:"databaseCredential"` + ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` + IsForCloud *bool `json:"isForCloud"` + Labels []LogAnalyticsLabelView `json:"labels"` + MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` + Metrics []LogAnalyticsSourceMetric `json:"metrics"` + OobParsers []LogAnalyticsParser `json:"oobParsers"` + Parameters []LogAnalyticsParameter `json:"parameters"` + PatternCount *int `json:"patternCount"` + Patterns []LogAnalyticsSourcePattern `json:"patterns"` + Description *string `json:"description"` + DisplayName *string `json:"displayName"` + EditVersion *int64 `json:"editVersion"` + Functions []LogAnalyticsSourceFunction `json:"functions"` + SourceId *int64 `json:"sourceId"` + Name *string `json:"name"` + IsSecureContent *bool `json:"isSecureContent"` + IsSystem *bool `json:"isSystem"` + Parsers []LogAnalyticsParser `json:"parsers"` + IsAutoAssociationEnabled *bool `json:"isAutoAssociationEnabled"` + IsAutoAssociationOverride *bool `json:"isAutoAssociationOverride"` + RuleId *int64 `json:"ruleId"` + TypeName *string `json:"typeName"` + TypeDisplayName *string `json:"typeDisplayName"` + WarningConfig *int64 `json:"warningConfig"` + MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` + LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` + EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` + IsTimezoneOverride *bool `json:"isTimezoneOverride"` + UserParsers []LogAnalyticsParser `json:"userParsers"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + EventTypes []EventType `json:"eventTypes"` + Categories []LogAnalyticsCategory `json:"categories"` + Endpoints []loganalyticsendpoint `json:"endpoints"` + SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) + for i, n := range model.LabelConditions { + m.LabelConditions[i] = n + } + + m.AssociationCount = model.AssociationCount + + m.AssociationEntity = make([]LogAnalyticsAssociation, len(model.AssociationEntity)) + for i, n := range model.AssociationEntity { + m.AssociationEntity[i] = n + } + + m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) + for i, n := range model.DataFilterDefinitions { + m.DataFilterDefinitions[i] = n + } + + m.DatabaseCredential = model.DatabaseCredential + + m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) + for i, n := range model.ExtendedFieldDefinitions { + m.ExtendedFieldDefinitions[i] = n + } + + m.IsForCloud = model.IsForCloud + + m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) + for i, n := range model.Labels { + m.Labels[i] = n + } + + m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) + for i, n := range model.MetricDefinitions { + m.MetricDefinitions[i] = n + } + + m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) + for i, n := range model.Metrics { + m.Metrics[i] = n + } + + m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) + for i, n := range model.OobParsers { + m.OobParsers[i] = n + } + + m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) + for i, n := range model.Parameters { + m.Parameters[i] = n + } + + m.PatternCount = model.PatternCount + + m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) + for i, n := range model.Patterns { + m.Patterns[i] = n + } + + m.Description = model.Description + + m.DisplayName = model.DisplayName + + m.EditVersion = model.EditVersion + + m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) + for i, n := range model.Functions { + m.Functions[i] = n + } + + m.SourceId = model.SourceId + + m.Name = model.Name + + m.IsSecureContent = model.IsSecureContent + + m.IsSystem = model.IsSystem + + m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) + for i, n := range model.Parsers { + m.Parsers[i] = n + } + + m.IsAutoAssociationEnabled = model.IsAutoAssociationEnabled + + m.IsAutoAssociationOverride = model.IsAutoAssociationOverride + + m.RuleId = model.RuleId + + m.TypeName = model.TypeName + + m.TypeDisplayName = model.TypeDisplayName + + m.WarningConfig = model.WarningConfig + + m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) + for i, n := range model.MetadataFields { + m.MetadataFields[i] = n + } + + m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) + for i, n := range model.LabelDefinitions { + m.LabelDefinitions[i] = n + } + + m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) + for i, n := range model.EntityTypes { + m.EntityTypes[i] = n + } + + m.IsTimezoneOverride = model.IsTimezoneOverride + + m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) + for i, n := range model.UserParsers { + m.UserParsers[i] = n + } + + m.TimeUpdated = model.TimeUpdated + + m.EventTypes = make([]EventType, len(model.EventTypes)) + for i, n := range model.EventTypes { + m.EventTypes[i] = n + } + + m.Categories = make([]LogAnalyticsCategory, len(model.Categories)) + for i, n := range model.Categories { + m.Categories[i] = n + } + + m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) + for i, n := range model.Endpoints { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Endpoints[i] = nn.(LogAnalyticsEndpoint) + } else { + m.Endpoints[i] = nil + } + } + + m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) + for i, n := range model.SourceProperties { + m.SourceProperties[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go index 7b2e1213dac..7ec9b314591 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_label_condition.go @@ -18,6 +18,11 @@ import ( // LogAnalyticsSourceLabelCondition LogAnalyticsSourceLabelCondition type LogAnalyticsSourceLabelCondition struct { + // String representation of the label condition. This supports specifying multiple condition blocks at various nested levels. + ConditionString *string `mandatory:"false" json:"conditionString"` + + ConditionBlock *ConditionBlock `mandatory:"false" json:"conditionBlock"` + // The message. Message *string `mandatory:"false" json:"message"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go index dad75a985bb..df744795968 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_pattern.go @@ -75,6 +75,9 @@ type LogAnalyticsSourcePattern struct { // The source entity type. EntityType []string `mandatory:"false" json:"entityType"` + + // A list of pattern properties. + PatternProperties []LogAnalyticsProperty `mandatory:"false" json:"patternProperties"` } func (m LogAnalyticsSourcePattern) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go index 473f7e51152..905fcd7c138 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_analytics_source_summary.go @@ -10,6 +10,7 @@ package loganalytics import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -123,6 +124,12 @@ type LogAnalyticsSourceSummary struct { // The last updated date. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // An array of REST API endpoints for log collection. + Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` + + // A list of source properties. + SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m LogAnalyticsSourceSummary) String() string { @@ -140,3 +147,189 @@ func (m LogAnalyticsSourceSummary) ValidateEnumValue() (bool, error) { } return false, nil } + +// UnmarshalJSON unmarshals from json +func (m *LogAnalyticsSourceSummary) UnmarshalJSON(data []byte) (e error) { + model := struct { + LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` + AssociationCount *int `json:"associationCount"` + AssociationEntity []LogAnalyticsAssociation `json:"associationEntity"` + DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` + DatabaseCredential *string `json:"databaseCredential"` + ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` + IsForCloud *bool `json:"isForCloud"` + Labels []LogAnalyticsLabelView `json:"labels"` + MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` + Metrics []LogAnalyticsSourceMetric `json:"metrics"` + OobParsers []LogAnalyticsParser `json:"oobParsers"` + Parameters []LogAnalyticsParameter `json:"parameters"` + PatternCount *int `json:"patternCount"` + Patterns []LogAnalyticsSourcePattern `json:"patterns"` + Description *string `json:"description"` + DisplayName *string `json:"displayName"` + EditVersion *int64 `json:"editVersion"` + Functions []LogAnalyticsSourceFunction `json:"functions"` + SourceId *int64 `json:"sourceId"` + Name *string `json:"name"` + IsSecureContent *bool `json:"isSecureContent"` + IsSystem *bool `json:"isSystem"` + Parsers []LogAnalyticsParser `json:"parsers"` + IsAutoAssociationEnabled *bool `json:"isAutoAssociationEnabled"` + IsAutoAssociationOverride *bool `json:"isAutoAssociationOverride"` + RuleId *int64 `json:"ruleId"` + TypeName *string `json:"typeName"` + TypeDisplayName *string `json:"typeDisplayName"` + WarningConfig *int64 `json:"warningConfig"` + MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` + LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` + EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` + IsTimezoneOverride *bool `json:"isTimezoneOverride"` + UserParsers []LogAnalyticsParser `json:"userParsers"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + Endpoints []loganalyticsendpoint `json:"endpoints"` + SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) + for i, n := range model.LabelConditions { + m.LabelConditions[i] = n + } + + m.AssociationCount = model.AssociationCount + + m.AssociationEntity = make([]LogAnalyticsAssociation, len(model.AssociationEntity)) + for i, n := range model.AssociationEntity { + m.AssociationEntity[i] = n + } + + m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) + for i, n := range model.DataFilterDefinitions { + m.DataFilterDefinitions[i] = n + } + + m.DatabaseCredential = model.DatabaseCredential + + m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) + for i, n := range model.ExtendedFieldDefinitions { + m.ExtendedFieldDefinitions[i] = n + } + + m.IsForCloud = model.IsForCloud + + m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) + for i, n := range model.Labels { + m.Labels[i] = n + } + + m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) + for i, n := range model.MetricDefinitions { + m.MetricDefinitions[i] = n + } + + m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) + for i, n := range model.Metrics { + m.Metrics[i] = n + } + + m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) + for i, n := range model.OobParsers { + m.OobParsers[i] = n + } + + m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) + for i, n := range model.Parameters { + m.Parameters[i] = n + } + + m.PatternCount = model.PatternCount + + m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) + for i, n := range model.Patterns { + m.Patterns[i] = n + } + + m.Description = model.Description + + m.DisplayName = model.DisplayName + + m.EditVersion = model.EditVersion + + m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) + for i, n := range model.Functions { + m.Functions[i] = n + } + + m.SourceId = model.SourceId + + m.Name = model.Name + + m.IsSecureContent = model.IsSecureContent + + m.IsSystem = model.IsSystem + + m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) + for i, n := range model.Parsers { + m.Parsers[i] = n + } + + m.IsAutoAssociationEnabled = model.IsAutoAssociationEnabled + + m.IsAutoAssociationOverride = model.IsAutoAssociationOverride + + m.RuleId = model.RuleId + + m.TypeName = model.TypeName + + m.TypeDisplayName = model.TypeDisplayName + + m.WarningConfig = model.WarningConfig + + m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) + for i, n := range model.MetadataFields { + m.MetadataFields[i] = n + } + + m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) + for i, n := range model.LabelDefinitions { + m.LabelDefinitions[i] = n + } + + m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) + for i, n := range model.EntityTypes { + m.EntityTypes[i] = n + } + + m.IsTimezoneOverride = model.IsTimezoneOverride + + m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) + for i, n := range model.UserParsers { + m.UserParsers[i] = n + } + + m.TimeUpdated = model.TimeUpdated + + m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) + for i, n := range model.Endpoints { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Endpoints[i] = nn.(LogAnalyticsEndpoint) + } else { + m.Endpoints[i] = nil + } + } + + m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) + for i, n := range model.SourceProperties { + m.SourceProperties[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go new file mode 100644 index 00000000000..7ebcd727e59 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_endpoint.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogEndpoint An endpoint used to fetch logs. +type LogEndpoint struct { + + // The endpoint name. + Name *string `mandatory:"true" json:"name"` + + Request *EndpointRequest `mandatory:"true" json:"request"` + + // The endpoint description. + Description *string `mandatory:"false" json:"description"` + + // The endpoint model. + Model *string `mandatory:"false" json:"model"` + + // The endpoint unique identifier. + EndpointId *int64 `mandatory:"false" json:"endpointId"` + + Response *EndpointResponse `mandatory:"false" json:"response"` + + Credentials *EndpointCredentials `mandatory:"false" json:"credentials"` + + Proxy *EndpointProxy `mandatory:"false" json:"proxy"` + + // A flag indicating whether or not the endpoint is enabled for log collection. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The system flag. A value of false denotes a custom, or user + // defined endpoint. A value of true denotes an Oracle defined endpoint. + IsSystem *bool `mandatory:"false" json:"isSystem"` + + // A list of endpoint properties. + EndpointProperties []LogAnalyticsProperty `mandatory:"false" json:"endpointProperties"` +} + +func (m LogEndpoint) 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 LogEndpoint) 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/loganalytics/log_list_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go new file mode 100644 index 00000000000..503ad991bd9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_endpoint.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogListEndpoint An endpoint used to fetch a list of log URLs. +type LogListEndpoint struct { + + // The endpoint name. + Name *string `mandatory:"true" json:"name"` + + Request *EndpointRequest `mandatory:"true" json:"request"` + + // The endpoint description. + Description *string `mandatory:"false" json:"description"` + + // The endpoint model. + Model *string `mandatory:"false" json:"model"` + + // The endpoint unique identifier. + EndpointId *int64 `mandatory:"false" json:"endpointId"` + + Response *EndpointResponse `mandatory:"false" json:"response"` + + Credentials *EndpointCredentials `mandatory:"false" json:"credentials"` + + Proxy *EndpointProxy `mandatory:"false" json:"proxy"` + + // A flag indicating whether or not the endpoint is enabled for log collection. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The system flag. A value of false denotes a custom, or user + // defined endpoint. A value of true denotes an Oracle defined endpoint. + IsSystem *bool `mandatory:"false" json:"isSystem"` + + // A list of endpoint properties. + EndpointProperties []LogAnalyticsProperty `mandatory:"false" json:"endpointProperties"` +} + +func (m LogListEndpoint) 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 LogListEndpoint) 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/loganalytics/log_list_type_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go new file mode 100644 index 00000000000..5d104116aa8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_list_type_endpoint.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogListTypeEndpoint The LOG_LIST type endpoint configuration. The list of logs is first fetched using the listEndpoint configuration, +// and then the logs are subsequently fetched using the logEndpoints, which reference the list endpoint response. +// For time based incremental collection, specify the START_TIME macro with the desired time format, +// example: {START_TIME:yyMMddHHmmssZ}. +// For offset based incremental collection, specify the START_OFFSET macro with offset identifier in the API response, +// example: {START_OFFSET:$.offset} +type LogListTypeEndpoint struct { + ListEndpoint *LogListEndpoint `mandatory:"true" json:"listEndpoint"` + + // Log endpoints, which reference the listEndpoint response, to fetch log data. + LogEndpoints []LogEndpoint `mandatory:"true" json:"logEndpoints"` +} + +func (m LogListTypeEndpoint) 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 LogListTypeEndpoint) 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 LogListTypeEndpoint) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLogListTypeEndpoint LogListTypeEndpoint + s := struct { + DiscriminatorParam string `json:"endpointType"` + MarshalTypeLogListTypeEndpoint + }{ + "LOG_LIST", + (MarshalTypeLogListTypeEndpoint)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go new file mode 100644 index 00000000000..a027d5687fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/log_type_endpoint.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogTypeEndpoint The LOG type endpoint configuration. Logs are fetched from the specified endpoint. +// For time based incremental collection, specify the START_TIME macro with the desired time format, +// example: {START_TIME:yyMMddHHmmssZ}. +// For offset based incremental collection, specify the START_OFFSET macro with offset identifier in the API response, +// example: {START_OFFSET:$.offset} +type LogTypeEndpoint struct { + LogEndpoint *LogEndpoint `mandatory:"true" json:"logEndpoint"` +} + +func (m LogTypeEndpoint) 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 LogTypeEndpoint) 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 LogTypeEndpoint) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLogTypeEndpoint LogTypeEndpoint + s := struct { + DiscriminatorParam string `json:"endpointType"` + MarshalTypeLogTypeEndpoint + }{ + "LOG", + (MarshalTypeLogTypeEndpoint)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go index b616e456f44..efa0e8555b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/loganalytics_client.go @@ -4704,7 +4704,7 @@ func (client LogAnalyticsClient) getParserSummary(ctx context.Context, request c return response, err } -// GetPreferences Lists the preferences of the tenant. Currently, only "DEFAULT_HOMEPAGE" is supported. +// GetPreferences Lists the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. // // See also // @@ -4879,6 +4879,180 @@ func (client LogAnalyticsClient) getQueryWorkRequest(ctx context.Context, reques return response, err } +// GetRecallCount This API gets the number of recalls made and the maximum recalls that can be made +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecallCount.go.html to see an example of how to use GetRecallCount API. +// A default retry strategy applies to this operation GetRecallCount() +func (client LogAnalyticsClient) GetRecallCount(ctx context.Context, request GetRecallCountRequest) (response GetRecallCountResponse, 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.getRecallCount, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetRecallCountResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetRecallCountResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetRecallCountResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetRecallCountResponse") + } + return +} + +// getRecallCount implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) getRecallCount(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/recallCount", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetRecallCountResponse + 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/logan-api-spec/20200601/Storage/GetRecallCount" + err = common.PostProcessServiceError(err, "LogAnalytics", "GetRecallCount", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetRecalledDataSize This API gets the datasize of recalls for a given timeframe +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRecalledDataSize.go.html to see an example of how to use GetRecalledDataSize API. +// A default retry strategy applies to this operation GetRecalledDataSize() +func (client LogAnalyticsClient) GetRecalledDataSize(ctx context.Context, request GetRecalledDataSizeRequest) (response GetRecalledDataSizeResponse, 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.getRecalledDataSize, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetRecalledDataSizeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetRecalledDataSizeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetRecalledDataSizeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetRecalledDataSizeResponse") + } + return +} + +// getRecalledDataSize implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) getRecalledDataSize(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/recalledDataSize", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetRecalledDataSizeResponse + 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/logan-api-spec/20200601/Storage/GetRecalledDataSize" + err = common.PostProcessServiceError(err, "LogAnalytics", "GetRecalledDataSize", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetRulesSummary Returns the count of detection rules in a compartment. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/GetRulesSummary.go.html to see an example of how to use GetRulesSummary API. +// A default retry strategy applies to this operation GetRulesSummary() +func (client LogAnalyticsClient) GetRulesSummary(ctx context.Context, request GetRulesSummaryRequest) (response GetRulesSummaryResponse, 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.getRulesSummary, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetRulesSummaryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetRulesSummaryResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetRulesSummaryResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetRulesSummaryResponse") + } + return +} + +// getRulesSummary implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) getRulesSummary(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/rulesSummary", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetRulesSummaryResponse + 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/logan-api-spec/20200601/Rule/GetRulesSummary" + err = common.PostProcessServiceError(err, "LogAnalytics", "GetRulesSummary", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetScheduledTask Get the scheduled task for the specified task identifier. // // See also @@ -5757,6 +5931,64 @@ func (client LogAnalyticsClient) listConfigWorkRequests(ctx context.Context, req return response, err } +// ListEffectiveProperties Returns a list of effective properties for the specified resource. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListEffectiveProperties.go.html to see an example of how to use ListEffectiveProperties API. +// A default retry strategy applies to this operation ListEffectiveProperties() +func (client LogAnalyticsClient) ListEffectiveProperties(ctx context.Context, request ListEffectivePropertiesRequest) (response ListEffectivePropertiesResponse, 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.listEffectiveProperties, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListEffectivePropertiesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListEffectivePropertiesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListEffectivePropertiesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListEffectivePropertiesResponse") + } + return +} + +// listEffectiveProperties implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) listEffectiveProperties(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/effectiveProperties", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListEffectivePropertiesResponse + 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/logan-api-spec/20200601/LogAnalyticsProperty/ListEffectiveProperties" + err = common.PostProcessServiceError(err, "LogAnalytics", "ListEffectiveProperties", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListEncryptionKeyInfo This API returns the list of customer owned encryption key info. // // See also @@ -6797,6 +7029,64 @@ func (client LogAnalyticsClient) listNamespaces(ctx context.Context, request com return response, err } +// ListOverlappingRecalls This API gets the list of overlapping recalls made in the given timeframe +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListOverlappingRecalls.go.html to see an example of how to use ListOverlappingRecalls API. +// A default retry strategy applies to this operation ListOverlappingRecalls() +func (client LogAnalyticsClient) ListOverlappingRecalls(ctx context.Context, request ListOverlappingRecallsRequest) (response ListOverlappingRecallsResponse, 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.listOverlappingRecalls, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListOverlappingRecallsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListOverlappingRecallsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListOverlappingRecallsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListOverlappingRecallsResponse") + } + return +} + +// listOverlappingRecalls implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) listOverlappingRecalls(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/storage/overlappingRecalls", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListOverlappingRecallsResponse + 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/logan-api-spec/20200601/Storage/ListOverlappingRecalls" + err = common.PostProcessServiceError(err, "LogAnalytics", "ListOverlappingRecalls", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListParserFunctions Lists the parser functions defined for the specified parser. // // See also @@ -6971,6 +7261,64 @@ func (client LogAnalyticsClient) listParsers(ctx context.Context, request common return response, err } +// ListPropertiesMetadata Returns a list of properties along with their metadata. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ListPropertiesMetadata.go.html to see an example of how to use ListPropertiesMetadata API. +// A default retry strategy applies to this operation ListPropertiesMetadata() +func (client LogAnalyticsClient) ListPropertiesMetadata(ctx context.Context, request ListPropertiesMetadataRequest) (response ListPropertiesMetadataResponse, 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.listPropertiesMetadata, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListPropertiesMetadataResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListPropertiesMetadataResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListPropertiesMetadataResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListPropertiesMetadataResponse") + } + return +} + +// listPropertiesMetadata implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) listPropertiesMetadata(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/namespaces/{namespaceName}/propertiesMetadata", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListPropertiesMetadataResponse + 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/logan-api-spec/20200601/LogAnalyticsProperty/ListPropertiesMetadata" + err = common.PostProcessServiceError(err, "LogAnalytics", "ListPropertiesMetadata", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListQueryWorkRequests List active asynchronous queries. // // See also @@ -8986,7 +9334,7 @@ func (client LogAnalyticsClient) removeEntityAssociations(ctx context.Context, r return response, err } -// RemovePreferences Removes the tenant preferences. Currently, only "DEFAULT_HOMEPAGE" is supported. +// RemovePreferences Removes the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. // // See also // @@ -10098,7 +10446,7 @@ func (client LogAnalyticsClient) updateLookupData(ctx context.Context, request c return response, err } -// UpdatePreferences Updates the tenant preferences. Currently, only "DEFAULT_HOMEPAGE" is supported. +// UpdatePreferences Updates the tenant preferences such as DEFAULT_HOMEPAGE and collection properties. // // See also // @@ -10883,6 +11231,66 @@ func (client LogAnalyticsClient) validateAssociationParameters(ctx context.Conte return response, err } +// ValidateEndpoint Validates the REST endpoint configuration. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateEndpoint.go.html to see an example of how to use ValidateEndpoint API. +// A default retry strategy applies to this operation ValidateEndpoint() +func (client LogAnalyticsClient) ValidateEndpoint(ctx context.Context, request ValidateEndpointRequest) (response ValidateEndpointResponse, 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.validateEndpoint, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateEndpointResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateEndpointResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateEndpointResponse") + } + return +} + +// validateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) validateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + if !common.IsEnvVarFalse(common.UsingExpectHeaderEnvVar) { + extraHeaders["Expect"] = "100-continue" + } + httpRequest, err := request.HTTPRequest(http.MethodPost, "/namespaces/{namespaceName}/sources/actions/validateEndpoint", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateEndpointResponse + 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/logan-api-spec/20200601/LogAnalyticsSource/ValidateEndpoint" + err = common.PostProcessServiceError(err, "LogAnalytics", "ValidateEndpoint", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ValidateFile Validates a log file to check whether it is eligible to be uploaded or not. // // See also @@ -10941,6 +11349,70 @@ func (client LogAnalyticsClient) validateFile(ctx context.Context, request commo return response, err } +// ValidateLabelCondition Validates specified condition for a source label. If both conditionString +// and conditionBlocks are specified, they would be validated to ensure they represent +// identical conditions. If one of them is input, the response would include the validated +// representation of the other structure too. Additionally, if field values +// are passed, the condition specification would be evaluated against them. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateLabelCondition.go.html to see an example of how to use ValidateLabelCondition API. +// A default retry strategy applies to this operation ValidateLabelCondition() +func (client LogAnalyticsClient) ValidateLabelCondition(ctx context.Context, request ValidateLabelConditionRequest) (response ValidateLabelConditionResponse, 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.validateLabelCondition, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateLabelConditionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateLabelConditionResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateLabelConditionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateLabelConditionResponse") + } + return +} + +// validateLabelCondition implements the OCIOperation interface (enables retrying operations) +func (client LogAnalyticsClient) validateLabelCondition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + if !common.IsEnvVarFalse(common.UsingExpectHeaderEnvVar) { + extraHeaders["Expect"] = "100-continue" + } + httpRequest, err := request.HTTPRequest(http.MethodPost, "/namespaces/{namespaceName}/sources/actions/validateLabelCondition", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateLabelConditionResponse + 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/logan-api-spec/20200601/LogAnalyticsSource/ValidateLabelCondition" + err = common.PostProcessServiceError(err, "LogAnalytics", "ValidateLabelCondition", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ValidateSource Checks if the specified input is a valid log source definition. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go new file mode 100644 index 00000000000..52779346ca7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/name_value_pair.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NameValuePair An object representing a name-value pair. +type NameValuePair struct { + + // The name. + Name *string `mandatory:"true" json:"name"` + + // The value. + Value *string `mandatory:"false" json:"value"` +} + +func (m NameValuePair) 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 NameValuePair) 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/loganalytics/namespace.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go index 89653dad288..c1e46a5128c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Namespace This is the namespace details of a tenancy in Logan Analytics application +// Namespace This is the namespace details of a tenancy in Logging Analytics application type Namespace struct { // This is the namespace name of a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go index 92f924481c7..8e4ab81fb5e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/namespace_summary.go @@ -15,7 +15,7 @@ import ( "strings" ) -// NamespaceSummary The is the namespace summary of a tenancy in Logan Analytics application +// NamespaceSummary The is the namespace summary of a tenancy in Logging Analytics application type NamespaceSummary struct { // This is the namespace name of a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go new file mode 100644 index 00000000000..f294f9770a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/outlier_command_descriptor.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OutlierCommandDescriptor Command descriptor for querylanguage OUTLIER command. +type OutlierCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +//GetDisplayQueryString returns DisplayQueryString +func (m OutlierCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +//GetInternalQueryString returns InternalQueryString +func (m OutlierCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +//GetCategory returns Category +func (m OutlierCommandDescriptor) GetCategory() *string { + return m.Category +} + +//GetReferencedFields returns ReferencedFields +func (m OutlierCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +//GetDeclaredFields returns DeclaredFields +func (m OutlierCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +//GetIsHidden returns IsHidden +func (m OutlierCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m OutlierCommandDescriptor) 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 OutlierCommandDescriptor) 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 OutlierCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeOutlierCommandDescriptor OutlierCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeOutlierCommandDescriptor + }{ + "OUTLIER", + (MarshalTypeOutlierCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *OutlierCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go new file mode 100644 index 00000000000..c73843bd131 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OverlappingRecallCollection This is the list of overlapping recall requests +type OverlappingRecallCollection struct { + + // This is the array of overlapping recall requests + Items []OverlappingRecallSummary `mandatory:"true" json:"items"` +} + +func (m OverlappingRecallCollection) 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 OverlappingRecallCollection) 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/loganalytics/overlapping_recall_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go new file mode 100644 index 00000000000..a03ee863faa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/overlapping_recall_summary.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OverlappingRecallSummary This is the information about overlapping recall requests +type OverlappingRecallSummary struct { + + // This is the start of the time range of the archival data + TimeDataStarted *common.SDKTime `mandatory:"true" json:"timeDataStarted"` + + // This is the end of the time range of the archival data + TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` + + // This is the time when the recall operation was started for this recall request + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // This is the status of the recall + Status RecallStatusEnum `mandatory:"true" json:"status"` + + // This is the purpose of the recall + Purpose *string `mandatory:"true" json:"purpose"` + + // This is the query associated with the recall + QueryString *string `mandatory:"true" json:"queryString"` + + // This is the list of logsets associated with this recall + LogSets *string `mandatory:"true" json:"logSets"` + + // This is the user who initiated the recall request + CreatedBy *string `mandatory:"true" json:"createdBy"` +} + +func (m OverlappingRecallSummary) 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 OverlappingRecallSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingRecallStatusEnum(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(GetRecallStatusEnumStringValues(), ","))) + } + + 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/loganalytics/pattern_override.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go new file mode 100644 index 00000000000..852e3d9cc87 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/pattern_override.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PatternOverride Details of pattern level override for a property. +type PatternOverride struct { + + // The pattern id. + Id *string `mandatory:"true" json:"id"` + + // The value of the property. + Value *string `mandatory:"true" json:"value"` + + // The effective level of the property value. + EffectiveLevel *string `mandatory:"false" json:"effectiveLevel"` +} + +func (m PatternOverride) 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 PatternOverride) 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/loganalytics/property_metadata_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go new file mode 100644 index 00000000000..cebda6f8a10 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PropertyMetadataSummary Summary of property metadata details. +type PropertyMetadataSummary struct { + + // The property name. + Name *string `mandatory:"false" json:"name"` + + // The property display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The property description. + Description *string `mandatory:"false" json:"description"` + + // The default property value. + DefaultValue *string `mandatory:"false" json:"defaultValue"` + + // A list of levels at which the property could be defined. + Levels []Level `mandatory:"false" json:"levels"` +} + +func (m PropertyMetadataSummary) 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 PropertyMetadataSummary) 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/loganalytics/property_metadata_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go new file mode 100644 index 00000000000..2aa26cf5193 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/property_metadata_summary_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PropertyMetadataSummaryCollection A collection of property metadata objects. +type PropertyMetadataSummaryCollection struct { + + // An array of properties along with their metadata summary. + Items []PropertyMetadataSummary `mandatory:"false" json:"items"` +} + +func (m PropertyMetadataSummaryCollection) 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 PropertyMetadataSummaryCollection) 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/loganalytics/query_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go index 3130c349d2c..a35ae7d1e01 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/query_aggregation.go @@ -34,6 +34,9 @@ type QueryAggregation struct { // Explanation of why results may be partial. Only set if arePartialResults is true. PartialResultReason *string `mandatory:"false" json:"partialResultReason"` + // True if the data returned by query is hidden. + IsContentHidden *bool `mandatory:"false" json:"isContentHidden"` + // Query result columns Columns []AbstractColumn `mandatory:"false" json:"columns"` @@ -70,6 +73,7 @@ func (m *QueryAggregation) UnmarshalJSON(data []byte) (e error) { TotalMatchedCount *int64 `json:"totalMatchedCount"` ArePartialResults *bool `json:"arePartialResults"` PartialResultReason *string `json:"partialResultReason"` + IsContentHidden *bool `json:"isContentHidden"` Columns []abstractcolumn `json:"columns"` Fields []abstractcolumn `json:"fields"` Items []map[string]interface{} `json:"items"` @@ -90,6 +94,8 @@ func (m *QueryAggregation) UnmarshalJSON(data []byte) (e error) { m.PartialResultReason = model.PartialResultReason + m.IsContentHidden = model.IsContentHidden + m.Columns = make([]AbstractColumn, len(model.Columns)) for i, n := range model.Columns { nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go new file mode 100644 index 00000000000..536267e0056 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rare_command_descriptor.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RareCommandDescriptor Command descriptor for querylanguage RARE command. +type RareCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +//GetDisplayQueryString returns DisplayQueryString +func (m RareCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +//GetInternalQueryString returns InternalQueryString +func (m RareCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +//GetCategory returns Category +func (m RareCommandDescriptor) GetCategory() *string { + return m.Category +} + +//GetReferencedFields returns ReferencedFields +func (m RareCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +//GetDeclaredFields returns DeclaredFields +func (m RareCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +//GetIsHidden returns IsHidden +func (m RareCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m RareCommandDescriptor) 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 RareCommandDescriptor) 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 RareCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeRareCommandDescriptor RareCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeRareCommandDescriptor + }{ + "RARE", + (MarshalTypeRareCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *RareCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go index a716f18232c..073f8cb5842 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_details.go @@ -35,6 +35,12 @@ type RecallArchivedDataDetails struct { // This is the query that identifies the recalled data. Query *string `mandatory:"false" json:"query"` + + // This is the purpose of the recall + Purpose *string `mandatory:"false" json:"purpose"` + + // This indicates if only new data has to be recalled in this recall request + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m RecallArchivedDataDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go index af11863ac33..21572dab222 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_archived_data_request_response.go @@ -89,6 +89,9 @@ type RecallArchivedDataResponse struct { // The underlying http response RawResponse *http.Response + // The RecalledDataInfo instance + RecalledDataInfo `presentIn:"body"` + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` @@ -97,6 +100,9 @@ type RecallArchivedDataResponse struct { // URI to entity or work request created. Location *string `presentIn:"header" name:"location"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` } func (response RecallArchivedDataResponse) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go new file mode 100644 index 00000000000..970a2703f67 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_count.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RecallCount This is the recall count statistics for a given tenant +type RecallCount struct { + + // This is the total number of recalls made so far + RecallCount *int `mandatory:"true" json:"recallCount"` + + // This is the number of recalls that succeeded + RecallSucceeded *int `mandatory:"true" json:"recallSucceeded"` + + // This is the number of recalls that failed + RecallFailed *int `mandatory:"true" json:"recallFailed"` + + // This is the number of recalls in pending state + RecallPending *int `mandatory:"true" json:"recallPending"` + + // This is the maximum number of recalls (including successful and pending recalls) allowed + RecallLimit *int `mandatory:"true" json:"recallLimit"` +} + +func (m RecallCount) 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 RecallCount) 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/loganalytics/recall_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go new file mode 100644 index 00000000000..f7c9e39850f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recall_status.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "strings" +) + +// RecallStatusEnum Enum with underlying type: string +type RecallStatusEnum string + +// Set of constants representing the allowable values for RecallStatusEnum +const ( + RecallStatusRecalled RecallStatusEnum = "RECALLED" + RecallStatusPending RecallStatusEnum = "PENDING" + RecallStatusFailed RecallStatusEnum = "FAILED" +) + +var mappingRecallStatusEnum = map[string]RecallStatusEnum{ + "RECALLED": RecallStatusRecalled, + "PENDING": RecallStatusPending, + "FAILED": RecallStatusFailed, +} + +var mappingRecallStatusEnumLowerCase = map[string]RecallStatusEnum{ + "recalled": RecallStatusRecalled, + "pending": RecallStatusPending, + "failed": RecallStatusFailed, +} + +// GetRecallStatusEnumValues Enumerates the set of values for RecallStatusEnum +func GetRecallStatusEnumValues() []RecallStatusEnum { + values := make([]RecallStatusEnum, 0) + for _, v := range mappingRecallStatusEnum { + values = append(values, v) + } + return values +} + +// GetRecallStatusEnumStringValues Enumerates the set of values in String for RecallStatusEnum +func GetRecallStatusEnumStringValues() []string { + return []string{ + "RECALLED", + "PENDING", + "FAILED", + } +} + +// GetMappingRecallStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRecallStatusEnum(val string) (RecallStatusEnum, bool) { + enum, ok := mappingRecallStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go index b5b03024934..e152b79e75c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data.go @@ -36,6 +36,21 @@ type RecalledData struct { // This is the size in bytes StorageUsageInBytes *int64 `mandatory:"true" json:"storageUsageInBytes"` + + // This is the size of the archival data not recalled yet within the specified time range + NotRecalledDataInBytes *int64 `mandatory:"true" json:"notRecalledDataInBytes"` + + // This is the purpose of the recall + Purpose *string `mandatory:"true" json:"purpose"` + + // This is the query associated with the recall + QueryString *string `mandatory:"true" json:"queryString"` + + // This is the list of logsets associated with the recall + LogSets *string `mandatory:"true" json:"logSets"` + + // This is the user who initiated the recall request + CreatedBy *string `mandatory:"true" json:"createdBy"` } func (m RecalledData) String() string { @@ -64,16 +79,19 @@ type RecalledDataStatusEnum string const ( RecalledDataStatusRecalled RecalledDataStatusEnum = "RECALLED" RecalledDataStatusPending RecalledDataStatusEnum = "PENDING" + RecalledDataStatusFailed RecalledDataStatusEnum = "FAILED" ) var mappingRecalledDataStatusEnum = map[string]RecalledDataStatusEnum{ "RECALLED": RecalledDataStatusRecalled, "PENDING": RecalledDataStatusPending, + "FAILED": RecalledDataStatusFailed, } var mappingRecalledDataStatusEnumLowerCase = map[string]RecalledDataStatusEnum{ "recalled": RecalledDataStatusRecalled, "pending": RecalledDataStatusPending, + "failed": RecalledDataStatusFailed, } // GetRecalledDataStatusEnumValues Enumerates the set of values for RecalledDataStatusEnum @@ -90,6 +108,7 @@ func GetRecalledDataStatusEnumStringValues() []string { return []string{ "RECALLED", "PENDING", + "FAILED", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go new file mode 100644 index 00000000000..01250b86a32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_info.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RecalledDataInfo This is the synchronous result of a recall of archived data +type RecalledDataInfo struct { + + // This is the parent name of the list of overlapping recalls + CollectionName *string `mandatory:"true" json:"collectionName"` + + // This is the recall name made for a specific purpose + Purpose *string `mandatory:"false" json:"purpose"` +} + +func (m RecalledDataInfo) 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 RecalledDataInfo) 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/loganalytics/recalled_data_size.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go new file mode 100644 index 00000000000..9f9f0e0bec5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/recalled_data_size.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RecalledDataSize This is the recall related data size for the given timeframe +type RecalledDataSize struct { + + // This is the start of the time range of the archival data + TimeDataStarted *common.SDKTime `mandatory:"true" json:"timeDataStarted"` + + // This is the end of the time range of the archival data + TimeDataEnded *common.SDKTime `mandatory:"true" json:"timeDataEnded"` + + // This is the size of the recalled data + RecalledDataInBytes *int64 `mandatory:"true" json:"recalledDataInBytes"` + + // This is the size of the archival data not recalled yet + NotRecalledDataInBytes *int64 `mandatory:"true" json:"notRecalledDataInBytes"` +} + +func (m RecalledDataSize) 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 RecalledDataSize) 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/loganalytics/rule_summary_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go new file mode 100644 index 00000000000..40eb8dde0e2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/rule_summary_report.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RuleSummaryReport A summary count of detection rules. +type RuleSummaryReport struct { + + // The total count of detection rules. + TotalCount *int `mandatory:"true" json:"totalCount"` + + // The count of ingest time rules. + IngestTimeRulesCount *int `mandatory:"true" json:"ingestTimeRulesCount"` + + // The count of saved search rules. + SavedSearchRulesCount *int `mandatory:"true" json:"savedSearchRulesCount"` +} + +func (m RuleSummaryReport) 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 RuleSummaryReport) 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/loganalytics/storage.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go index 503c5d4f3f7..2d6f09f7b2d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage.go @@ -15,7 +15,7 @@ import ( "strings" ) -// Storage This is the storage configuration and status of a tenancy in Logan Analytics application +// Storage This is the storage configuration and status of a tenancy in Logging Analytics application type Storage struct { // This indicates if old data can be archived for a tenancy diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go index ddb6d5a3cb4..1326d1712d2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_operation_type.go @@ -22,6 +22,7 @@ const ( StorageOperationTypePurgeStorageData StorageOperationTypeEnum = "PURGE_STORAGE_DATA" StorageOperationTypeRecallArchivedStorageData StorageOperationTypeEnum = "RECALL_ARCHIVED_STORAGE_DATA" StorageOperationTypeReleaseRecalledStorageData StorageOperationTypeEnum = "RELEASE_RECALLED_STORAGE_DATA" + StorageOperationTypePurgeArchivalData StorageOperationTypeEnum = "PURGE_ARCHIVAL_DATA" StorageOperationTypeArchiveStorageData StorageOperationTypeEnum = "ARCHIVE_STORAGE_DATA" StorageOperationTypeCleanupArchivalStorageData StorageOperationTypeEnum = "CLEANUP_ARCHIVAL_STORAGE_DATA" StorageOperationTypeEncryptActiveData StorageOperationTypeEnum = "ENCRYPT_ACTIVE_DATA" @@ -33,6 +34,7 @@ var mappingStorageOperationTypeEnum = map[string]StorageOperationTypeEnum{ "PURGE_STORAGE_DATA": StorageOperationTypePurgeStorageData, "RECALL_ARCHIVED_STORAGE_DATA": StorageOperationTypeRecallArchivedStorageData, "RELEASE_RECALLED_STORAGE_DATA": StorageOperationTypeReleaseRecalledStorageData, + "PURGE_ARCHIVAL_DATA": StorageOperationTypePurgeArchivalData, "ARCHIVE_STORAGE_DATA": StorageOperationTypeArchiveStorageData, "CLEANUP_ARCHIVAL_STORAGE_DATA": StorageOperationTypeCleanupArchivalStorageData, "ENCRYPT_ACTIVE_DATA": StorageOperationTypeEncryptActiveData, @@ -44,6 +46,7 @@ var mappingStorageOperationTypeEnumLowerCase = map[string]StorageOperationTypeEn "purge_storage_data": StorageOperationTypePurgeStorageData, "recall_archived_storage_data": StorageOperationTypeRecallArchivedStorageData, "release_recalled_storage_data": StorageOperationTypeReleaseRecalledStorageData, + "purge_archival_data": StorageOperationTypePurgeArchivalData, "archive_storage_data": StorageOperationTypeArchiveStorageData, "cleanup_archival_storage_data": StorageOperationTypeCleanupArchivalStorageData, "encrypt_active_data": StorageOperationTypeEncryptActiveData, @@ -66,6 +69,7 @@ func GetStorageOperationTypeEnumStringValues() []string { "PURGE_STORAGE_DATA", "RECALL_ARCHIVED_STORAGE_DATA", "RELEASE_RECALLED_STORAGE_DATA", + "PURGE_ARCHIVAL_DATA", "ARCHIVE_STORAGE_DATA", "CLEANUP_ARCHIVAL_STORAGE_DATA", "ENCRYPT_ACTIVE_DATA", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go index c69f8cf53da..6efca088033 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_usage.go @@ -15,7 +15,7 @@ import ( "strings" ) -// StorageUsage This is the storage usage information of a tenancy in Logan Analytics application +// StorageUsage This is the storage usage information of a tenancy in Logging Analytics application type StorageUsage struct { // This is the number of bytes of active data (non-archived) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go index a6171bc1722..7490d53c02d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request.go @@ -80,6 +80,18 @@ type StorageWorkRequest struct { // The type of customer encryption key. It can be archival, active or all. KeyType EncryptionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` + + // This is a list of logsets associated with this work request + LogSets *string `mandatory:"false" json:"logSets"` + + // This is the purpose of the operation associated with this work request + Purpose *string `mandatory:"false" json:"purpose"` + + // This is the query string applied on the operation associated with this work request + Query *string `mandatory:"false" json:"query"` + + // This is the flag to indicate if only new data has to be recalled in this work request + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m StorageWorkRequest) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go index d14fefbbf9b..cd23dfb11d3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/storage_work_request_summary.go @@ -80,6 +80,18 @@ type StorageWorkRequestSummary struct { // The type of customer encryption key. It can be archival, active or all. KeyType EncryptionKeyTypeEnum `mandatory:"false" json:"keyType,omitempty"` + + // This is a list of logsets associated with this work request + LogSets *string `mandatory:"false" json:"logSets"` + + // This is the purpose of the operation associated with this work request + Purpose *string `mandatory:"false" json:"purpose"` + + // This is the query string applied on the operation associated with this work request + Query *string `mandatory:"false" json:"query"` + + // This is the flag to indicate if only new data has to be recalled in this work request + IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` } func (m StorageWorkRequestSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go new file mode 100644 index 00000000000..0a4b7f82d5d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/table_column.go @@ -0,0 +1,220 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TableColumn Result column that contains a table within each row. +type TableColumn struct { + + // Column display name - will be alias if column is renamed by queryStrng. + DisplayName *string `mandatory:"false" json:"displayName"` + + // If the column is a 'List of Values' column, this array contains the field values that are applicable to query results or all if no filters applied. + Values []FieldValue `mandatory:"false" json:"values"` + + // Identifies if all values in this column come from a pre-defined list of values. + IsListOfValues *bool `mandatory:"false" json:"isListOfValues"` + + // Identifies if this column allows multiple values to exist in a single row. + IsMultiValued *bool `mandatory:"false" json:"isMultiValued"` + + // A flag indicating whether or not the field is a case sensitive field. Only applies to string fields. + IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` + + // Identifies if this column can be used as a grouping field in any grouping command. + IsGroupable *bool `mandatory:"false" json:"isGroupable"` + + // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. + IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + + // Same as displayName unless column renamed in which case this will hold the original display name for the column. + OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` + + // Internal identifier for the column. + InternalName *string `mandatory:"false" json:"internalName"` + + // Column descriptors for the table result. + Columns []AbstractColumn `mandatory:"false" json:"columns"` + + // Results data of the table. + Result []map[string]interface{} `mandatory:"false" json:"result"` + + // Subsystem column belongs to. + SubSystem SubSystemNameEnum `mandatory:"false" json:"subSystem,omitempty"` + + // Field denoting column data type. + ValueType ValueTypeEnum `mandatory:"false" json:"valueType,omitempty"` +} + +//GetDisplayName returns DisplayName +func (m TableColumn) GetDisplayName() *string { + return m.DisplayName +} + +//GetSubSystem returns SubSystem +func (m TableColumn) GetSubSystem() SubSystemNameEnum { + return m.SubSystem +} + +//GetValues returns Values +func (m TableColumn) GetValues() []FieldValue { + return m.Values +} + +//GetIsListOfValues returns IsListOfValues +func (m TableColumn) GetIsListOfValues() *bool { + return m.IsListOfValues +} + +//GetIsMultiValued returns IsMultiValued +func (m TableColumn) GetIsMultiValued() *bool { + return m.IsMultiValued +} + +//GetIsCaseSensitive returns IsCaseSensitive +func (m TableColumn) GetIsCaseSensitive() *bool { + return m.IsCaseSensitive +} + +//GetIsGroupable returns IsGroupable +func (m TableColumn) GetIsGroupable() *bool { + return m.IsGroupable +} + +//GetIsEvaluable returns IsEvaluable +func (m TableColumn) GetIsEvaluable() *bool { + return m.IsEvaluable +} + +//GetValueType returns ValueType +func (m TableColumn) GetValueType() ValueTypeEnum { + return m.ValueType +} + +//GetOriginalDisplayName returns OriginalDisplayName +func (m TableColumn) GetOriginalDisplayName() *string { + return m.OriginalDisplayName +} + +//GetInternalName returns InternalName +func (m TableColumn) GetInternalName() *string { + return m.InternalName +} + +func (m TableColumn) 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 TableColumn) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSubSystemNameEnum(string(m.SubSystem)); !ok && m.SubSystem != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SubSystem: %s. Supported values are: %s.", m.SubSystem, strings.Join(GetSubSystemNameEnumStringValues(), ","))) + } + if _, ok := GetMappingValueTypeEnum(string(m.ValueType)); !ok && m.ValueType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ValueType: %s. Supported values are: %s.", m.ValueType, strings.Join(GetValueTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m TableColumn) MarshalJSON() (buff []byte, e error) { + type MarshalTypeTableColumn TableColumn + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeTableColumn + }{ + "TABLE_COLUMN", + (MarshalTypeTableColumn)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *TableColumn) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + SubSystem SubSystemNameEnum `json:"subSystem"` + Values []FieldValue `json:"values"` + IsListOfValues *bool `json:"isListOfValues"` + IsMultiValued *bool `json:"isMultiValued"` + IsCaseSensitive *bool `json:"isCaseSensitive"` + IsGroupable *bool `json:"isGroupable"` + IsEvaluable *bool `json:"isEvaluable"` + ValueType ValueTypeEnum `json:"valueType"` + OriginalDisplayName *string `json:"originalDisplayName"` + InternalName *string `json:"internalName"` + Columns []abstractcolumn `json:"columns"` + Result []map[string]interface{} `json:"result"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.SubSystem = model.SubSystem + + m.Values = make([]FieldValue, len(model.Values)) + for i, n := range model.Values { + m.Values[i] = n + } + + m.IsListOfValues = model.IsListOfValues + + m.IsMultiValued = model.IsMultiValued + + m.IsCaseSensitive = model.IsCaseSensitive + + m.IsGroupable = model.IsGroupable + + m.IsEvaluable = model.IsEvaluable + + m.ValueType = model.ValueType + + m.OriginalDisplayName = model.OriginalDisplayName + + m.InternalName = model.InternalName + + m.Columns = make([]AbstractColumn, len(model.Columns)) + for i, n := range model.Columns { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Columns[i] = nn.(AbstractColumn) + } else { + m.Columns[i] = nil + } + } + + m.Result = make([]map[string]interface{}, len(model.Result)) + for i, n := range model.Result { + m.Result[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go index 666d8fa1ea0..d53c6e6a6f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/task_type.go @@ -18,24 +18,21 @@ type TaskTypeEnum string // Set of constants representing the allowable values for TaskTypeEnum const ( - TaskTypeSavedSearch TaskTypeEnum = "SAVED_SEARCH" - TaskTypeAcceleration TaskTypeEnum = "ACCELERATION" - TaskTypePurge TaskTypeEnum = "PURGE" - TaskTypeAccelerationMaintenance TaskTypeEnum = "ACCELERATION_MAINTENANCE" + TaskTypeSavedSearch TaskTypeEnum = "SAVED_SEARCH" + TaskTypeAcceleration TaskTypeEnum = "ACCELERATION" + TaskTypePurge TaskTypeEnum = "PURGE" ) var mappingTaskTypeEnum = map[string]TaskTypeEnum{ - "SAVED_SEARCH": TaskTypeSavedSearch, - "ACCELERATION": TaskTypeAcceleration, - "PURGE": TaskTypePurge, - "ACCELERATION_MAINTENANCE": TaskTypeAccelerationMaintenance, + "SAVED_SEARCH": TaskTypeSavedSearch, + "ACCELERATION": TaskTypeAcceleration, + "PURGE": TaskTypePurge, } var mappingTaskTypeEnumLowerCase = map[string]TaskTypeEnum{ - "saved_search": TaskTypeSavedSearch, - "acceleration": TaskTypeAcceleration, - "purge": TaskTypePurge, - "acceleration_maintenance": TaskTypeAccelerationMaintenance, + "saved_search": TaskTypeSavedSearch, + "acceleration": TaskTypeAcceleration, + "purge": TaskTypePurge, } // GetTaskTypeEnumValues Enumerates the set of values for TaskTypeEnum @@ -53,7 +50,6 @@ func GetTaskTypeEnumStringValues() []string { "SAVED_SEARCH", "ACCELERATION", "PURGE", - "ACCELERATION_MAINTENANCE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go index 3df6a1ef263..97ada724156 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/trend_column.go @@ -55,10 +55,13 @@ type TrendColumn struct { // Sum across all column values for a given timestamp. TotalIntervalCounts []int64 `mandatory:"false" json:"totalIntervalCounts"` + // Sum of column values for a given timestamp after applying filter. TotalIntervalCountsAfterFilter []int64 `mandatory:"false" json:"totalIntervalCountsAfterFilter"` + // Number of aggregated groups for a given timestamp. IntervalGroupCounts []int64 `mandatory:"false" json:"intervalGroupCounts"` + // Number of aggregated groups for a given timestamp after applying filter. IntervalGroupCountsAfterFilter []int64 `mandatory:"false" json:"intervalGroupCountsAfterFilter"` // Subsystem column belongs to. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go index e183da9e858..cc41f95287c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/update_storage_details.go @@ -15,7 +15,7 @@ import ( "strings" ) -// UpdateStorageDetails This is the input to update storage configuration of a tenancy in Logan Analytics application +// UpdateStorageDetails This is the input to update storage configuration of a tenancy in Logging Analytics application type UpdateStorageDetails struct { ArchivingConfiguration *ArchivingConfiguration `mandatory:"true" json:"archivingConfiguration"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go index afb462cb1c1..6797bd0dba1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_association.go @@ -41,6 +41,9 @@ type UpsertLogAnalyticsAssociation struct { // The log group unique identifier. LogGroupId *string `mandatory:"false" json:"logGroupId"` + + // A list of association properties. + AssociationProperties []AssociationProperty `mandatory:"false" json:"associationProperties"` } func (m UpsertLogAnalyticsAssociation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go index 93c34b93208..f267ddb6deb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/upsert_log_analytics_source_details.go @@ -10,6 +10,7 @@ package loganalytics import ( + "encoding/json" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "strings" @@ -106,6 +107,12 @@ type UpsertLogAnalyticsSourceDetails struct { // An array of categories to assign to the source. Specifying the name attribute for each category would suffice. // Oracle-defined category assignments cannot be removed. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` + + // An array of REST API endpoints for log collection. + Endpoints []LogAnalyticsEndpoint `mandatory:"false" json:"endpoints"` + + // A list of source properties. + SourceProperties []LogAnalyticsProperty `mandatory:"false" json:"sourceProperties"` } func (m UpsertLogAnalyticsSourceDetails) String() string { @@ -123,3 +130,171 @@ func (m UpsertLogAnalyticsSourceDetails) ValidateEnumValue() (bool, error) { } return false, nil } + +// UnmarshalJSON unmarshals from json +func (m *UpsertLogAnalyticsSourceDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + LabelConditions []LogAnalyticsSourceLabelCondition `json:"labelConditions"` + DataFilterDefinitions []LogAnalyticsSourceDataFilter `json:"dataFilterDefinitions"` + DatabaseCredential *string `json:"databaseCredential"` + ExtendedFieldDefinitions []LogAnalyticsSourceExtendedFieldDefinition `json:"extendedFieldDefinitions"` + IsForCloud *bool `json:"isForCloud"` + Labels []LogAnalyticsLabelView `json:"labels"` + MetricDefinitions []LogAnalyticsMetric `json:"metricDefinitions"` + Metrics []LogAnalyticsSourceMetric `json:"metrics"` + OobParsers []LogAnalyticsParser `json:"oobParsers"` + Parameters []LogAnalyticsParameter `json:"parameters"` + Patterns []LogAnalyticsSourcePattern `json:"patterns"` + Description *string `json:"description"` + DisplayName *string `json:"displayName"` + EditVersion *int64 `json:"editVersion"` + Functions []LogAnalyticsSourceFunction `json:"functions"` + SourceId *int64 `json:"sourceId"` + Name *string `json:"name"` + IsSecureContent *bool `json:"isSecureContent"` + IsSystem *bool `json:"isSystem"` + Parsers []LogAnalyticsParser `json:"parsers"` + RuleId *int64 `json:"ruleId"` + TypeName *string `json:"typeName"` + WarningConfig *int64 `json:"warningConfig"` + MetadataFields []LogAnalyticsSourceMetadataField `json:"metadataFields"` + LabelDefinitions []LogAnalyticsLabelDefinition `json:"labelDefinitions"` + EntityTypes []LogAnalyticsSourceEntityType `json:"entityTypes"` + IsTimezoneOverride *bool `json:"isTimezoneOverride"` + UserParsers []LogAnalyticsParser `json:"userParsers"` + Categories []LogAnalyticsCategory `json:"categories"` + Endpoints []loganalyticsendpoint `json:"endpoints"` + SourceProperties []LogAnalyticsProperty `json:"sourceProperties"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.LabelConditions = make([]LogAnalyticsSourceLabelCondition, len(model.LabelConditions)) + for i, n := range model.LabelConditions { + m.LabelConditions[i] = n + } + + m.DataFilterDefinitions = make([]LogAnalyticsSourceDataFilter, len(model.DataFilterDefinitions)) + for i, n := range model.DataFilterDefinitions { + m.DataFilterDefinitions[i] = n + } + + m.DatabaseCredential = model.DatabaseCredential + + m.ExtendedFieldDefinitions = make([]LogAnalyticsSourceExtendedFieldDefinition, len(model.ExtendedFieldDefinitions)) + for i, n := range model.ExtendedFieldDefinitions { + m.ExtendedFieldDefinitions[i] = n + } + + m.IsForCloud = model.IsForCloud + + m.Labels = make([]LogAnalyticsLabelView, len(model.Labels)) + for i, n := range model.Labels { + m.Labels[i] = n + } + + m.MetricDefinitions = make([]LogAnalyticsMetric, len(model.MetricDefinitions)) + for i, n := range model.MetricDefinitions { + m.MetricDefinitions[i] = n + } + + m.Metrics = make([]LogAnalyticsSourceMetric, len(model.Metrics)) + for i, n := range model.Metrics { + m.Metrics[i] = n + } + + m.OobParsers = make([]LogAnalyticsParser, len(model.OobParsers)) + for i, n := range model.OobParsers { + m.OobParsers[i] = n + } + + m.Parameters = make([]LogAnalyticsParameter, len(model.Parameters)) + for i, n := range model.Parameters { + m.Parameters[i] = n + } + + m.Patterns = make([]LogAnalyticsSourcePattern, len(model.Patterns)) + for i, n := range model.Patterns { + m.Patterns[i] = n + } + + m.Description = model.Description + + m.DisplayName = model.DisplayName + + m.EditVersion = model.EditVersion + + m.Functions = make([]LogAnalyticsSourceFunction, len(model.Functions)) + for i, n := range model.Functions { + m.Functions[i] = n + } + + m.SourceId = model.SourceId + + m.Name = model.Name + + m.IsSecureContent = model.IsSecureContent + + m.IsSystem = model.IsSystem + + m.Parsers = make([]LogAnalyticsParser, len(model.Parsers)) + for i, n := range model.Parsers { + m.Parsers[i] = n + } + + m.RuleId = model.RuleId + + m.TypeName = model.TypeName + + m.WarningConfig = model.WarningConfig + + m.MetadataFields = make([]LogAnalyticsSourceMetadataField, len(model.MetadataFields)) + for i, n := range model.MetadataFields { + m.MetadataFields[i] = n + } + + m.LabelDefinitions = make([]LogAnalyticsLabelDefinition, len(model.LabelDefinitions)) + for i, n := range model.LabelDefinitions { + m.LabelDefinitions[i] = n + } + + m.EntityTypes = make([]LogAnalyticsSourceEntityType, len(model.EntityTypes)) + for i, n := range model.EntityTypes { + m.EntityTypes[i] = n + } + + m.IsTimezoneOverride = model.IsTimezoneOverride + + m.UserParsers = make([]LogAnalyticsParser, len(model.UserParsers)) + for i, n := range model.UserParsers { + m.UserParsers[i] = n + } + + m.Categories = make([]LogAnalyticsCategory, len(model.Categories)) + for i, n := range model.Categories { + m.Categories[i] = n + } + + m.Endpoints = make([]LogAnalyticsEndpoint, len(model.Endpoints)) + for i, n := range model.Endpoints { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Endpoints[i] = nn.(LogAnalyticsEndpoint) + } else { + m.Endpoints[i] = nil + } + } + + m.SourceProperties = make([]LogAnalyticsProperty, len(model.SourceProperties)) + for i, n := range model.SourceProperties { + m.SourceProperties[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go new file mode 100644 index 00000000000..f6c85a04c50 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateEndpointRequest wrapper for the ValidateEndpoint operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateEndpoint.go.html to see an example of how to use ValidateEndpointRequest. +type ValidateEndpointRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // Details of the REST endpoint configuration to validate. + ValidateEndpointDetails LogAnalyticsEndpoint `contributesTo:"body"` + + // 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 ValidateEndpointRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateEndpointRequest) 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 ValidateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateEndpointRequest) 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 ValidateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateEndpointResponse wrapper for the ValidateEndpoint operation +type ValidateEndpointResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ValidateEndpointResult instance + ValidateEndpointResult `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ValidateEndpointResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateEndpointResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go new file mode 100644 index 00000000000..f5732c043df --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_endpoint_result.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateEndpointResult The result of the endpoint configuration validation +type ValidateEndpointResult struct { + + // The validation status. + Status *string `mandatory:"true" json:"status"` + + // The validation status description. + StatusDescription *string `mandatory:"false" json:"statusDescription"` + + // Validation results for each specified endpoint. + ValidationResults []EndpointResult `mandatory:"false" json:"validationResults"` +} + +func (m ValidateEndpointResult) 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 ValidateEndpointResult) 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/loganalytics/validate_label_condition_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go new file mode 100644 index 00000000000..39ea49689e8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateLabelConditionDetails Required information needed to evaluate a source label condition. +type ValidateLabelConditionDetails struct { + + // String representation of the label condition to validate. + ConditionString *string `mandatory:"false" json:"conditionString"` + + ConditionBlock *ConditionBlock `mandatory:"false" json:"conditionBlock"` + + // An array of field name-value pairs to evaluate the label condition. + FieldValues []LogAnalyticsProperty `mandatory:"false" json:"fieldValues"` +} + +func (m ValidateLabelConditionDetails) 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 ValidateLabelConditionDetails) 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/loganalytics/validate_label_condition_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go new file mode 100644 index 00000000000..47c10819873 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2023, 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 loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateLabelConditionRequest wrapper for the ValidateLabelCondition operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/loganalytics/ValidateLabelCondition.go.html to see an example of how to use ValidateLabelConditionRequest. +type ValidateLabelConditionRequest struct { + + // The Logging Analytics namespace used for the request. + NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` + + // Details of source label condition to validate. + ValidateLabelConditionDetails `contributesTo:"body"` + + // 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 ValidateLabelConditionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateLabelConditionRequest) 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 ValidateLabelConditionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateLabelConditionRequest) 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 ValidateLabelConditionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateLabelConditionResponse wrapper for the ValidateLabelCondition operation +type ValidateLabelConditionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ValidateLabelConditionResult instance + ValidateLabelConditionResult `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. When you contact Oracle about a specific request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ValidateLabelConditionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateLabelConditionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go new file mode 100644 index 00000000000..c06a44a427f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/validate_label_condition_result.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateLabelConditionResult The result of the label condition validation +type ValidateLabelConditionResult struct { + + // String representation of the validated label condition. + ConditionString *string `mandatory:"true" json:"conditionString"` + + ConditionBlock *ConditionBlock `mandatory:"true" json:"conditionBlock"` + + // The validation status. + Status *string `mandatory:"true" json:"status"` + + // Field values against which the label condition was evaluated. + FieldValues []LogAnalyticsProperty `mandatory:"false" json:"fieldValues"` + + // The validation status description. + StatusDescription *string `mandatory:"false" json:"statusDescription"` + + // The result of evaluating the condition blocks against the specified field values. Either true or false. + EvaluationResult *bool `mandatory:"false" json:"evaluationResult"` +} + +func (m ValidateLabelConditionResult) 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 ValidateLabelConditionResult) 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/loganalytics/value_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go index 710765ac84c..003aae9c81b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loganalytics/value_type.go @@ -26,6 +26,7 @@ const ( ValueTypeInteger ValueTypeEnum = "INTEGER" ValueTypeTimestamp ValueTypeEnum = "TIMESTAMP" ValueTypeFacet ValueTypeEnum = "FACET" + ValueTypeTable ValueTypeEnum = "TABLE" ) var mappingValueTypeEnum = map[string]ValueTypeEnum{ @@ -37,6 +38,7 @@ var mappingValueTypeEnum = map[string]ValueTypeEnum{ "INTEGER": ValueTypeInteger, "TIMESTAMP": ValueTypeTimestamp, "FACET": ValueTypeFacet, + "TABLE": ValueTypeTable, } var mappingValueTypeEnumLowerCase = map[string]ValueTypeEnum{ @@ -48,6 +50,7 @@ var mappingValueTypeEnumLowerCase = map[string]ValueTypeEnum{ "integer": ValueTypeInteger, "timestamp": ValueTypeTimestamp, "facet": ValueTypeFacet, + "table": ValueTypeTable, } // GetValueTypeEnumValues Enumerates the set of values for ValueTypeEnum @@ -70,6 +73,7 @@ func GetValueTypeEnumStringValues() []string { "INTEGER", "TIMESTAMP", "FACET", + "TABLE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go new file mode 100644 index 00000000000..64a20e8c360 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// ChangeNewsReportCompartmentDetails The information to be updated. +type ChangeNewsReportCompartmentDetails struct { + + // The OCID of the compartment into which the resource will be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeNewsReportCompartmentDetails) 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 ChangeNewsReportCompartmentDetails) 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/change_news_report_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go new file mode 100644 index 00000000000..7b4d57a25d6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// ChangeNewsReportCompartmentRequest wrapper for the ChangeNewsReportCompartment operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ChangeNewsReportCompartment.go.html to see an example of how to use ChangeNewsReportCompartmentRequest. +type ChangeNewsReportCompartmentRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // The information to be updated. + ChangeNewsReportCompartmentDetails `contributesTo:"body"` + + // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` + // parameter to the value of the etag from a previous get, create, or update 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 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"` + + // A token that uniquely identifies a request that can be retried in case of a timeout or + // server error without risk of executing the same action again. Retry tokens expire after 24 + // hours. + // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting + // operations, such as a resource being deleted or purged from the system. + 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 ChangeNewsReportCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeNewsReportCompartmentRequest) 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 ChangeNewsReportCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeNewsReportCompartmentRequest) 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 ChangeNewsReportCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeNewsReportCompartmentResponse wrapper for the ChangeNewsReportCompartment operation +type ChangeNewsReportCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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 ChangeNewsReportCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeNewsReportCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go new file mode 100644 index 00000000000..4d3e7a05451 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// CreateNewsReportDetails The information about the news report to be created. +type CreateNewsReportDetails struct { + + // The news report name. + Name *string `mandatory:"true" json:"name"` + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` + + // The description of the news report. + Description *string `mandatory:"true" json:"description"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"true" json:"onsTopicId"` + + // Compartment Identifier where the news report will be created. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"true" json:"locale"` + + // 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"` + + // Defines if the news report will be enabled or disabled. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` +} + +func (m CreateNewsReportDetails) 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 CreateNewsReportDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + 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/create_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go new file mode 100644 index 00000000000..e115aa07c04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// CreateNewsReportRequest wrapper for the CreateNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateNewsReport.go.html to see an example of how to use CreateNewsReportRequest. +type CreateNewsReportRequest struct { + + // Details for the news report that will be created in Operations Insights. + CreateNewsReportDetails `contributesTo:"body"` + + // A token that uniquely identifies a request that can be retried in case of a timeout or + // server error without risk of executing the same action again. Retry tokens expire after 24 + // hours. + // *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting + // operations, such as a resource being deleted or purged from the system. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateNewsReportRequest) 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 CreateNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateNewsReportRequest) 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 CreateNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateNewsReportResponse wrapper for the CreateNewsReport operation +type CreateNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NewsReport instance + NewsReport `presentIn:"body"` + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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"` + + // URI of the resource + Location *string `presentIn:"header" name:"location"` + + // URI of the resource + ContentLocation *string `presentIn:"header" name:"content-location"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response CreateNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go index b339831bb16..69eaddd71df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go @@ -27,7 +27,7 @@ type DataObjectColumnMetadata struct { // Category of the column. Category DataObjectColumnMetadataCategoryEnum `mandatory:"false" json:"category,omitempty"` - // Type of a data object column. + // Type name of a data object column. DataTypeName DataObjectColumnMetadataDataTypeNameEnum `mandatory:"false" json:"dataTypeName,omitempty"` // Display name of the column. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go new file mode 100644 index 00000000000..8d2247bab1b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_news_report_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// DeleteNewsReportRequest wrapper for the DeleteNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DeleteNewsReport.go.html to see an example of how to use DeleteNewsReportRequest. +type DeleteNewsReportRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` + // parameter to the value of the etag from a previous get, create, or update 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 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteNewsReportRequest) 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 DeleteNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteNewsReportRequest) 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 DeleteNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteNewsReportResponse wrapper for the DeleteNewsReport operation +type DeleteNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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 DeleteNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go index 68bf81acbfe..13c1c427eae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go @@ -37,6 +37,9 @@ type ExadataInsightResourceForecastTrendSummary struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m ExadataInsightResourceForecastTrendSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go new file mode 100644 index 00000000000..9a79e5382f5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_news_report_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// GetNewsReportRequest wrapper for the GetNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/GetNewsReport.go.html to see an example of how to use GetNewsReportRequest. +type GetNewsReportRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetNewsReportRequest) 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 GetNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetNewsReportRequest) 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 GetNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetNewsReportResponse wrapper for the GetNewsReport operation +type GetNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NewsReport instance + NewsReport `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 GetNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go new file mode 100644 index 00000000000..8234fbe20fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// IngestMySqlSqlTextDetails Collection of SQL Text Entries +type IngestMySqlSqlTextDetails struct { + + // List of SQL Text Entries. + Items []MySqlSqlText `mandatory:"false" json:"items"` +} + +func (m IngestMySqlSqlTextDetails) 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 IngestMySqlSqlTextDetails) 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/ingest_my_sql_sql_text_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go new file mode 100644 index 00000000000..f85a432ee7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// IngestMySqlSqlTextResponseDetails The response object returned from IngestMySqlSqlTextDetails operation. +type IngestMySqlSqlTextResponseDetails struct { + + // Success message returned as a result of the upload. + Message *string `mandatory:"true" json:"message"` +} + +func (m IngestMySqlSqlTextResponseDetails) 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 IngestMySqlSqlTextResponseDetails) 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/list_news_reports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go new file mode 100644 index 00000000000..3dd54f89301 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go @@ -0,0 +1,231 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// ListNewsReportsRequest wrapper for the ListNewsReports operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ListNewsReports.go.html to see an example of how to use ListNewsReportsRequest. +type ListNewsReportsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // Unique Operations Insights news report identifier + NewsReportId *string `mandatory:"false" contributesTo:"query" name:"newsReportId"` + + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + + // Lifecycle states + LifecycleState []LifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` + + // 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"` + + // 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"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListNewsReportsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // News report list sort options. If `fields` parameter is selected, the `sortBy` parameter must be one of the fields specified. + SortBy ListNewsReportsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // A flag to search all resources within a given compartment and all sub-compartments. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNewsReportsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNewsReportsRequest) 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 ListNewsReportsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNewsReportsRequest) 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 ListNewsReportsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + 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(), ","))) + } + } + + for _, val := range request.LifecycleState { + if _, ok := GetMappingLifecycleStateEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", val, strings.Join(GetLifecycleStateEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingListNewsReportsSortOrderEnum(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(GetListNewsReportsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListNewsReportsSortByEnum(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(GetListNewsReportsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNewsReportsResponse wrapper for the ListNewsReports operation +type ListNewsReportsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of NewsReportCollection instances + NewsReportCollection `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. The total number of items in the result. + OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` + + // 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 ListNewsReportsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNewsReportsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNewsReportsSortOrderEnum Enum with underlying type: string +type ListNewsReportsSortOrderEnum string + +// Set of constants representing the allowable values for ListNewsReportsSortOrderEnum +const ( + ListNewsReportsSortOrderAsc ListNewsReportsSortOrderEnum = "ASC" + ListNewsReportsSortOrderDesc ListNewsReportsSortOrderEnum = "DESC" +) + +var mappingListNewsReportsSortOrderEnum = map[string]ListNewsReportsSortOrderEnum{ + "ASC": ListNewsReportsSortOrderAsc, + "DESC": ListNewsReportsSortOrderDesc, +} + +var mappingListNewsReportsSortOrderEnumLowerCase = map[string]ListNewsReportsSortOrderEnum{ + "asc": ListNewsReportsSortOrderAsc, + "desc": ListNewsReportsSortOrderDesc, +} + +// GetListNewsReportsSortOrderEnumValues Enumerates the set of values for ListNewsReportsSortOrderEnum +func GetListNewsReportsSortOrderEnumValues() []ListNewsReportsSortOrderEnum { + values := make([]ListNewsReportsSortOrderEnum, 0) + for _, v := range mappingListNewsReportsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNewsReportsSortOrderEnumStringValues Enumerates the set of values in String for ListNewsReportsSortOrderEnum +func GetListNewsReportsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNewsReportsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNewsReportsSortOrderEnum(val string) (ListNewsReportsSortOrderEnum, bool) { + enum, ok := mappingListNewsReportsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNewsReportsSortByEnum Enum with underlying type: string +type ListNewsReportsSortByEnum string + +// Set of constants representing the allowable values for ListNewsReportsSortByEnum +const ( + ListNewsReportsSortByName ListNewsReportsSortByEnum = "name" + ListNewsReportsSortByNewsfrequency ListNewsReportsSortByEnum = "newsFrequency" +) + +var mappingListNewsReportsSortByEnum = map[string]ListNewsReportsSortByEnum{ + "name": ListNewsReportsSortByName, + "newsFrequency": ListNewsReportsSortByNewsfrequency, +} + +var mappingListNewsReportsSortByEnumLowerCase = map[string]ListNewsReportsSortByEnum{ + "name": ListNewsReportsSortByName, + "newsfrequency": ListNewsReportsSortByNewsfrequency, +} + +// GetListNewsReportsSortByEnumValues Enumerates the set of values for ListNewsReportsSortByEnum +func GetListNewsReportsSortByEnumValues() []ListNewsReportsSortByEnum { + values := make([]ListNewsReportsSortByEnum, 0) + for _, v := range mappingListNewsReportsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNewsReportsSortByEnumStringValues Enumerates the set of values in String for ListNewsReportsSortByEnum +func GetListNewsReportsSortByEnumStringValues() []string { + return []string{ + "name", + "newsFrequency", + } +} + +// GetMappingListNewsReportsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNewsReportsSortByEnum(val string) (ListNewsReportsSortByEnum, bool) { + enum, ok := mappingListNewsReportsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go new file mode 100644 index 00000000000..2f3c8ad8d35 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// MySqlSqlText MySql SQL Text type object. +type MySqlSqlText struct { + + // digest + // Example: `"323k3k99ua09a90adf"` + Digest *string `mandatory:"true" json:"digest"` + + // Collection timestamp. + // Example: `"2020-05-06T00:00:00.000Z"` + TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` + + // The normalized statement string. + // Example: `"SELECT username,profile,default_tablespace,temporary_tablespace FROM dba_users"` + DigestText *string `mandatory:"true" json:"digestText"` + + // Name of Database Schema. + // Example: `"performance_schema"` + SchemaName *string `mandatory:"false" json:"schemaName"` + + // SQL event name + // Example: `"SELECT"` + CommandType *string `mandatory:"false" json:"commandType"` +} + +func (m MySqlSqlText) 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 MySqlSqlText) 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/news_content_types.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go new file mode 100644 index 00000000000..78fcd966873 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsContentTypes Content types that the news report can handle. +type NewsContentTypes struct { + + // Supported resources for capacity planning content type. + CapacityPlanningResources []NewsContentTypesResourceEnum `mandatory:"true" json:"capacityPlanningResources"` +} + +func (m NewsContentTypes) 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 NewsContentTypes) 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/news_content_types_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go new file mode 100644 index 00000000000..be174c37bc4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "strings" +) + +// NewsContentTypesResourceEnum Enum with underlying type: string +type NewsContentTypesResourceEnum string + +// Set of constants representing the allowable values for NewsContentTypesResourceEnum +const ( + NewsContentTypesResourceHost NewsContentTypesResourceEnum = "HOST" + NewsContentTypesResourceDatabase NewsContentTypesResourceEnum = "DATABASE" + NewsContentTypesResourceExadata NewsContentTypesResourceEnum = "EXADATA" +) + +var mappingNewsContentTypesResourceEnum = map[string]NewsContentTypesResourceEnum{ + "HOST": NewsContentTypesResourceHost, + "DATABASE": NewsContentTypesResourceDatabase, + "EXADATA": NewsContentTypesResourceExadata, +} + +var mappingNewsContentTypesResourceEnumLowerCase = map[string]NewsContentTypesResourceEnum{ + "host": NewsContentTypesResourceHost, + "database": NewsContentTypesResourceDatabase, + "exadata": NewsContentTypesResourceExadata, +} + +// GetNewsContentTypesResourceEnumValues Enumerates the set of values for NewsContentTypesResourceEnum +func GetNewsContentTypesResourceEnumValues() []NewsContentTypesResourceEnum { + values := make([]NewsContentTypesResourceEnum, 0) + for _, v := range mappingNewsContentTypesResourceEnum { + values = append(values, v) + } + return values +} + +// GetNewsContentTypesResourceEnumStringValues Enumerates the set of values in String for NewsContentTypesResourceEnum +func GetNewsContentTypesResourceEnumStringValues() []string { + return []string{ + "HOST", + "DATABASE", + "EXADATA", + } +} + +// GetMappingNewsContentTypesResourceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNewsContentTypesResourceEnum(val string) (NewsContentTypesResourceEnum, bool) { + enum, ok := mappingNewsContentTypesResourceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go new file mode 100644 index 00000000000..e93876dcaac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "strings" +) + +// NewsFrequencyEnum Enum with underlying type: string +type NewsFrequencyEnum string + +// Set of constants representing the allowable values for NewsFrequencyEnum +const ( + NewsFrequencyWeekly NewsFrequencyEnum = "WEEKLY" +) + +var mappingNewsFrequencyEnum = map[string]NewsFrequencyEnum{ + "WEEKLY": NewsFrequencyWeekly, +} + +var mappingNewsFrequencyEnumLowerCase = map[string]NewsFrequencyEnum{ + "weekly": NewsFrequencyWeekly, +} + +// GetNewsFrequencyEnumValues Enumerates the set of values for NewsFrequencyEnum +func GetNewsFrequencyEnumValues() []NewsFrequencyEnum { + values := make([]NewsFrequencyEnum, 0) + for _, v := range mappingNewsFrequencyEnum { + values = append(values, v) + } + return values +} + +// GetNewsFrequencyEnumStringValues Enumerates the set of values in String for NewsFrequencyEnum +func GetNewsFrequencyEnumStringValues() []string { + return []string{ + "WEEKLY", + } +} + +// GetMappingNewsFrequencyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNewsFrequencyEnum(val string) (NewsFrequencyEnum, bool) { + enum, ok := mappingNewsFrequencyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go new file mode 100644 index 00000000000..960f1827ad1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "strings" +) + +// NewsLocaleEnum Enum with underlying type: string +type NewsLocaleEnum string + +// Set of constants representing the allowable values for NewsLocaleEnum +const ( + NewsLocaleEn NewsLocaleEnum = "EN" +) + +var mappingNewsLocaleEnum = map[string]NewsLocaleEnum{ + "EN": NewsLocaleEn, +} + +var mappingNewsLocaleEnumLowerCase = map[string]NewsLocaleEnum{ + "en": NewsLocaleEn, +} + +// GetNewsLocaleEnumValues Enumerates the set of values for NewsLocaleEnum +func GetNewsLocaleEnumValues() []NewsLocaleEnum { + values := make([]NewsLocaleEnum, 0) + for _, v := range mappingNewsLocaleEnum { + values = append(values, v) + } + return values +} + +// GetNewsLocaleEnumStringValues Enumerates the set of values in String for NewsLocaleEnum +func GetNewsLocaleEnumStringValues() []string { + return []string{ + "EN", + } +} + +// GetMappingNewsLocaleEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNewsLocaleEnum(val string) (NewsLocaleEnum, bool) { + enum, ok := mappingNewsLocaleEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go new file mode 100644 index 00000000000..9b2d6e999cf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReport News report resource. +type NewsReport struct { + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` + + ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"true" json:"onsTopicId"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` + + // The description of the news report. + Description *string `mandatory:"false" json:"description"` + + // The news report name. + Name *string `mandatory:"false" json:"name"` + + // 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"` + + // Indicates the status of a news report in Operations Insights. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The time the the news report was first enabled. An RFC3339 formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the news report was updated. An RFC3339 formatted datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The current state of the news report. + LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // 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"` +} + +func (m NewsReport) 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 NewsReport) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) + } + 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/news_report_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go new file mode 100644 index 00000000000..b6839f355d7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReportCollection Collection of news reports summary objects. +type NewsReportCollection struct { + + // Array of news reports summary objects. + Items []NewsReportSummary `mandatory:"true" json:"items"` +} + +func (m NewsReportCollection) 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 NewsReportCollection) 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/news_report_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go new file mode 100644 index 00000000000..c41f54fb49a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReportSummary Summary of a news report resource. +type NewsReportSummary struct { + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"true" json:"newsFrequency"` + + ContentTypes *NewsContentTypes `mandatory:"true" json:"contentTypes"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the news report resource. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` + + // The description of the news report. + Description *string `mandatory:"false" json:"description"` + + // The news report name. + Name *string `mandatory:"false" json:"name"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"false" json:"onsTopicId"` + + // 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"` + + // Indicates the status of a news report in Operations Insights. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The time the the news report was first enabled. An RFC3339 formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the news report was updated. An RFC3339 formatted datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The current state of the news report. + LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // 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"` +} + +func (m NewsReportSummary) 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 NewsReportSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) + } + 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/news_reports.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go new file mode 100644 index 00000000000..d95906b111a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// NewsReports Logical grouping used for Operations Insights news reports related operations. +type NewsReports struct { + + // News report object. + NewsReports *interface{} `mandatory:"false" json:"newsReports"` +} + +func (m NewsReports) 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 NewsReports) 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 d302d3c32b6..4ddc83267a5 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 @@ -463,6 +463,69 @@ func (client OperationsInsightsClient) changeHostInsightCompartment(ctx context. return response, err } +// ChangeNewsReportCompartment Moves a news report resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ChangeNewsReportCompartment.go.html to see an example of how to use ChangeNewsReportCompartment API. +// A default retry strategy applies to this operation ChangeNewsReportCompartment() +func (client OperationsInsightsClient) ChangeNewsReportCompartment(ctx context.Context, request ChangeNewsReportCompartmentRequest) (response ChangeNewsReportCompartmentResponse, 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.changeNewsReportCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeNewsReportCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeNewsReportCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeNewsReportCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeNewsReportCompartmentResponse") + } + return +} + +// changeNewsReportCompartment implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) changeNewsReportCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/newsReports/{newsReportId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeNewsReportCompartmentResponse + 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/NewsReports/ChangeNewsReportCompartment" + err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeNewsReportCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeOperationsInsightsPrivateEndpointCompartment Moves a private endpoint from one compartment to another. When provided, If-Match is checked against ETag values of the resource. // // See also @@ -968,6 +1031,69 @@ func (client OperationsInsightsClient) createHostInsight(ctx context.Context, re return response, err } +// CreateNewsReport Create a news report in Operations Insights. The report will be enabled in Operations Insights. Insights will be emailed as per selected frequency. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateNewsReport.go.html to see an example of how to use CreateNewsReport API. +// A default retry strategy applies to this operation CreateNewsReport() +func (client OperationsInsightsClient) CreateNewsReport(ctx context.Context, request CreateNewsReportRequest) (response CreateNewsReportResponse, 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.createNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateNewsReportResponse") + } + return +} + +// createNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) createNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/newsReports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateNewsReportResponse + 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/NewsReports/CreateNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "CreateNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateOperationsInsightsPrivateEndpoint Create a private endpoint resource for the tenant in Operations Insights. // This resource will be created in customer compartment. // @@ -1514,6 +1640,64 @@ func (client OperationsInsightsClient) deleteHostInsight(ctx context.Context, re return response, err } +// DeleteNewsReport Deletes a news report. The news report will be deleted and cannot be enabled again. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DeleteNewsReport.go.html to see an example of how to use DeleteNewsReport API. +// A default retry strategy applies to this operation DeleteNewsReport() +func (client OperationsInsightsClient) DeleteNewsReport(ctx context.Context, request DeleteNewsReportRequest) (response DeleteNewsReportResponse, 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.deleteNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteNewsReportResponse") + } + return +} + +// deleteNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) deleteNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteNewsReportResponse + 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/NewsReports/DeleteNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteOperationsInsightsPrivateEndpoint Deletes a private endpoint. // // See also @@ -2780,6 +2964,64 @@ func (client OperationsInsightsClient) getHostInsight(ctx context.Context, reque return response, err } +// GetNewsReport Gets details of a news report. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/GetNewsReport.go.html to see an example of how to use GetNewsReport API. +// A default retry strategy applies to this operation GetNewsReport() +func (client OperationsInsightsClient) GetNewsReport(ctx context.Context, request GetNewsReportRequest) (response GetNewsReportResponse, 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.getNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetNewsReportResponse") + } + return +} + +// getNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) getNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetNewsReportResponse + 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/NewsReports/GetNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "GetNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetOperationsInsightsPrivateEndpoint Gets the details of the specified private endpoint. // // See also @@ -4876,6 +5118,64 @@ func (client OperationsInsightsClient) listImportableEnterpriseManagerEntities(c return response, err } +// ListNewsReports Gets a list of news reports based on the query parameters specified. Either compartmentId or id query parameter must be specified. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ListNewsReports.go.html to see an example of how to use ListNewsReports API. +// A default retry strategy applies to this operation ListNewsReports() +func (client OperationsInsightsClient) ListNewsReports(ctx context.Context, request ListNewsReportsRequest) (response ListNewsReportsResponse, 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.listNewsReports, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListNewsReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListNewsReportsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListNewsReportsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNewsReportsResponse") + } + return +} + +// listNewsReports implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) listNewsReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/newsReports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListNewsReportsResponse + 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/NewsReport/ListNewsReports" + err = common.PostProcessServiceError(err, "OperationsInsights", "ListNewsReports", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListOperationsInsightsPrivateEndpoints Gets a list of Operation Insights private endpoints. // // See also @@ -8914,6 +9214,64 @@ func (client OperationsInsightsClient) updateHostInsight(ctx context.Context, re return response, err } +// UpdateNewsReport Updates the configuration of a news report. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/UpdateNewsReport.go.html to see an example of how to use UpdateNewsReport API. +// A default retry strategy applies to this operation UpdateNewsReport() +func (client OperationsInsightsClient) UpdateNewsReport(ctx context.Context, request UpdateNewsReportRequest) (response UpdateNewsReportResponse, 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.updateNewsReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateNewsReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateNewsReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateNewsReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateNewsReportResponse") + } + return +} + +// updateNewsReport implements the OCIOperation interface (enables retrying operations) +func (client OperationsInsightsClient) updateNewsReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/newsReports/{newsReportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateNewsReportResponse + 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/NewsReports/UpdateNewsReport" + err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateNewsReport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateOperationsInsightsPrivateEndpoint Updates one or more attributes of the specified private endpoint. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go index deacbed0bc6..68e23c8b096 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go @@ -23,7 +23,7 @@ type QueryDataObjectResultSetColumnMetadata struct { // Name of the column in a data object query result set. Name *string `mandatory:"true" json:"name"` - // Type of the column in a data object query result set. + // Type name of the column in a data object query result set. DataTypeName QueryDataObjectResultSetColumnMetadataDataTypeNameEnum `mandatory:"false" json:"dataTypeName,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go index 1dc8b3a1fa8..5d0900f351d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go @@ -18,7 +18,7 @@ import ( ) // ResourceFilters Information to filter the actual target resources in an operation. -// e.g: While quering a DATABASE_INSIGHTS_DATA_OBJECT using /opsiDataObjects/{opsiDataObjectidentifier}/actions/queryData API, +// e.g: While querying a DATABASE_INSIGHTS_DATA_OBJECT using /opsiDataObjects/actions/queryData API, // if resourceFilters is set with valid value for definedTagEquals field, only data of the database insights // resources for which the specified freeform tags exist will be considered for the actual query scope. type ResourceFilters struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go index f1daf7c80f4..9171a199747 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go @@ -49,6 +49,9 @@ type SummarizeDatabaseInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeDatabaseInsightResourceForecastTrendAggregation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go index 0d4ad61126b..2f44057e1ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go @@ -46,6 +46,9 @@ type SummarizeExadataInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeExadataInsightResourceForecastTrendAggregation) String() string { 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 26202e9cf89..c97295ee891 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 @@ -46,6 +46,9 @@ type SummarizeHostInsightResourceForecastTrendAggregation struct { // Time series data result of the forecasting analysis. ProjectedData []ProjectedDataItem `mandatory:"true" json:"projectedData"` + + // Auto-ML algorithm leveraged for the forecast. Only applicable for Auto-ML forecast. + SelectedForecastAlgorithm *string `mandatory:"false" json:"selectedForecastAlgorithm"` } func (m SummarizeHostInsightResourceForecastTrendAggregation) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go new file mode 100644 index 00000000000..ab57fdda75c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Operations Insights API +// +// Use the Operations 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 Operations 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" +) + +// UpdateNewsReportDetails The information about the news report to be updated. +type UpdateNewsReportDetails struct { + + // Defines if the news report will be enabled or disabled. + Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` + + // News report frequency. + NewsFrequency NewsFrequencyEnum `mandatory:"false" json:"newsFrequency,omitempty"` + + // Language of the news report. + Locale NewsLocaleEnum `mandatory:"false" json:"locale,omitempty"` + + ContentTypes *NewsContentTypes `mandatory:"false" json:"contentTypes"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. + OnsTopicId *string `mandatory:"false" json:"onsTopicId"` + + // 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 UpdateNewsReportDetails) 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 UpdateNewsReportDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingResourceStatusEnum(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(GetResourceStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingNewsFrequencyEnum(string(m.NewsFrequency)); !ok && m.NewsFrequency != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NewsFrequency: %s. Supported values are: %s.", m.NewsFrequency, strings.Join(GetNewsFrequencyEnumStringValues(), ","))) + } + if _, ok := GetMappingNewsLocaleEnum(string(m.Locale)); !ok && m.Locale != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Locale: %s. Supported values are: %s.", m.Locale, strings.Join(GetNewsLocaleEnumStringValues(), ","))) + } + 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/update_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go new file mode 100644 index 00000000000..dcd74e69fed --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// UpdateNewsReportRequest wrapper for the UpdateNewsReport operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/UpdateNewsReport.go.html to see an example of how to use UpdateNewsReportRequest. +type UpdateNewsReportRequest struct { + + // Unique news report identifier. + NewsReportId *string `mandatory:"true" contributesTo:"path" name:"newsReportId"` + + // The configuration to be updated. + UpdateNewsReportDetails `contributesTo:"body"` + + // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` + // parameter to the value of the etag from a previous get, create, or update 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 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateNewsReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateNewsReportRequest) 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 UpdateNewsReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateNewsReportRequest) 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 UpdateNewsReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateNewsReportResponse wrapper for the UpdateNewsReport operation +type UpdateNewsReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + 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 UpdateNewsReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateNewsReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/modules.txt b/vendor/modules.txt index ac48a82781d..df2e5b21a43 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -248,7 +248,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.45.0 +# github.com/oracle/oci-go-sdk/v65 v65.45.0 => ./vendor/github.com/oracle/oci-go-sdk ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection From 336be1b393f2039401b200c0100dd160987b5587 Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Mon, 31 Jul 2023 18:33:14 -0700 Subject: [PATCH 20/25] Finalize changelog and release for version v5.7.0 --- CHANGELOG.md | 8 ++++++++ internal/globalvar/version.go | 4 ++-- website/oci.erb | 9 +++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6042d8e019..a22d829da4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 5.7.0 (Unreleased) + +### Added +Support for TLS & ORDS BYO Certificates (Phase 2) | ADB-C@C +startCredentialRotation, completeCredentialRotation, getCredentialRotationStatus terraform implementation tests and examples +Support for OPSI News Reports +Support for Budgets - Single Use Budgets + ## 5.6.0 (July 26, 2023) ### Added diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index d102ab19d9f..3347e8d2bd5 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -7,8 +7,8 @@ import ( "log" ) -const Version = "5.6.0" -const ReleaseDate = "2023-07-26" +const Version = "5.7.0" +const ReleaseDate = "" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) diff --git a/website/oci.erb b/website/oci.erb index dd0a716d866..c33b78b2b2f 100644 --- a/website/oci.erb +++ b/website/oci.erb @@ -6097,6 +6097,12 @@

  • oci_opsi_importable_compute_entity
  • +
  • + oci_opsi_news_report +
  • +
  • + oci_opsi_news_reports +
  • oci_opsi_operations_insights_private_endpoint
  • @@ -6144,6 +6150,9 @@
  • oci_opsi_host_insight
  • +
  • + oci_opsi_news_report +
  • oci_opsi_operations_insights_private_endpoint
  • From 39eadfcea21bfc960e021f0bd2bd6c507fc60b3d Mon Sep 17 00:00:00 2001 From: jotruon Date: Tue, 1 Aug 2023 10:47:31 -0700 Subject: [PATCH 21/25] Exempted - Fix release date --- CHANGELOG.md | 7 +++---- internal/globalvar/version.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a22d829da4a..0937017c600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,9 @@ ## 5.7.0 (Unreleased) ### Added -Support for TLS & ORDS BYO Certificates (Phase 2) | ADB-C@C -startCredentialRotation, completeCredentialRotation, getCredentialRotationStatus terraform implementation tests and examples -Support for OPSI News Reports -Support for Budgets - Single Use Budgets +- Support for TLS & ORDS BYO Certificates (Phase 2) | ADB-C@C +- Support for OPSI News Reports +- Support for Budgets - Single Use Budgets ## 5.6.0 (July 26, 2023) diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index 3347e8d2bd5..7dee63ed500 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -8,7 +8,7 @@ import ( ) const Version = "5.7.0" -const ReleaseDate = "" +const ReleaseDate = "2023-08-02" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) From aa2534edda46ff631c7bacfa712a3925cb1ba6b9 Mon Sep 17 00:00:00 2001 From: Varun Date: Tue, 1 Aug 2023 18:46:52 +0000 Subject: [PATCH 22/25] Vendored - oci-go-sdk for release version v65 --- go.mod | 4 ++-- go.sum | 2 ++ vendor/modules.txt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 019f5bdcd72..5d490859750 100644 --- a/go.mod +++ b/go.mod @@ -53,7 +53,7 @@ require ( github.com/mitchellh/mapstructure v1.1.2 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/oklog/run v1.0.0 // indirect - github.com/oracle/oci-go-sdk/v65 v65.45.0 + github.com/oracle/oci-go-sdk/v65 v65.46.0 github.com/pmezard/go-difflib v1.0.0 // indirect github.com/sony/gobreaker v0.5.0 // indirect github.com/ulikunitz/xz v0.5.8 // indirect @@ -76,6 +76,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.45.0 => ./vendor/github.com/oracle/oci-go-sdk +//replace github.com/oracle/oci-go-sdk => ../../oracle/oci-go-sdk go 1.18 diff --git a/go.sum b/go.sum index aaeb6a3ea56..a2f7ac5bb21 100644 --- a/go.sum +++ b/go.sum @@ -289,6 +289,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.46.0 h1:4Tk81VNjCsnuAtVtICM+cLlcZw6AOiMtIvuVEwk78Lc= +github.com/oracle/oci-go-sdk/v65 v65.46.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/vendor/modules.txt b/vendor/modules.txt index df2e5b21a43..3daf611832a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -248,7 +248,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.45.0 => ./vendor/github.com/oracle/oci-go-sdk +# github.com/oracle/oci-go-sdk/v65 v65.46.0 ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection From bba51fb4371258177942f674ed86e9ead9b2dacf Mon Sep 17 00:00:00 2001 From: jotruon Date: Tue, 1 Aug 2023 14:16:08 -0700 Subject: [PATCH 23/25] Added - Release for v5.7.0 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0937017c600..54ef035dfe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 5.7.0 (Unreleased) +## 5.7.0 (August 01, 2023) ### Added - Support for TLS & ORDS BYO Certificates (Phase 2) | ADB-C@C From 7e85cdcd93f8147db6504cd3ccd3c694b605969c Mon Sep 17 00:00:00 2001 From: tf-oci-pub Date: Tue, 1 Aug 2023 21:16:49 +0000 Subject: [PATCH 24/25] Added - README.md of service examples with magic button --- examples/zips/adm.zip | Bin 1859 -> 1859 bytes examples/zips/aiAnomalyDetection.zip | Bin 3302 -> 3302 bytes examples/zips/aiDocument.zip | Bin 1793 -> 1793 bytes examples/zips/aiVision.zip | Bin 1655 -> 1655 bytes examples/zips/always_free.zip | Bin 3850 -> 3850 bytes examples/zips/analytics.zip | Bin 2765 -> 2765 bytes examples/zips/announcements_service.zip | Bin 2717 -> 2717 bytes examples/zips/api_gateway.zip | Bin 27070 -> 27070 bytes examples/zips/apm.zip | Bin 16986 -> 16986 bytes examples/zips/appmgmt_control.zip | Bin 2681 -> 2681 bytes examples/zips/artifacts.zip | Bin 7103 -> 7103 bytes examples/zips/audit.zip | Bin 1804 -> 1804 bytes examples/zips/autoscaling.zip | Bin 5682 -> 5682 bytes examples/zips/bastion.zip | Bin 4998 -> 4998 bytes examples/zips/big_data_service.zip | Bin 7245 -> 7245 bytes examples/zips/blockchain.zip | Bin 1898 -> 1898 bytes examples/zips/budget.zip | Bin 3741 -> 3741 bytes examples/zips/certificatesManagement.zip | Bin 10431 -> 10431 bytes examples/zips/cloudBridge.zip | Bin 9946 -> 9946 bytes examples/zips/cloudMigrations.zip | Bin 8427 -> 8427 bytes examples/zips/cloudguard.zip | Bin 21656 -> 21656 bytes examples/zips/compute.zip | Bin 46855 -> 46855 bytes examples/zips/computeinstanceagent.zip | Bin 3311 -> 3311 bytes examples/zips/concepts.zip | Bin 4863 -> 4863 bytes examples/zips/container_engine.zip | Bin 20446 -> 21994 bytes examples/zips/container_instances.zip | Bin 3129 -> 3129 bytes examples/zips/database.zip | Bin 133909 -> 134794 bytes examples/zips/databaseTools.zip | Bin 3784 -> 3784 bytes examples/zips/databasemanagement.zip | Bin 6032 -> 6032 bytes examples/zips/databasemigration.zip | Bin 3707 -> 3707 bytes examples/zips/datacatalog.zip | Bin 2819 -> 2819 bytes examples/zips/dataflow.zip | Bin 3602 -> 3602 bytes examples/zips/dataintegration.zip | Bin 5203 -> 5203 bytes examples/zips/datalabeling.zip | Bin 2175 -> 2175 bytes examples/zips/datasafe.zip | Bin 41897 -> 41897 bytes examples/zips/datascience.zip | Bin 48846 -> 48846 bytes examples/zips/devops.zip | Bin 42339 -> 42339 bytes examples/zips/disaster_recovery.zip | Bin 13731 -> 13731 bytes examples/zips/dns.zip | Bin 12059 -> 12059 bytes examples/zips/em_warehouse.zip | Bin 2424 -> 2424 bytes examples/zips/email.zip | Bin 4640 -> 4640 bytes examples/zips/events.zip | Bin 1807 -> 1807 bytes examples/zips/fast_connect.zip | Bin 8345 -> 8345 bytes examples/zips/functions.zip | Bin 3475 -> 3475 bytes examples/zips/fusionapps.zip | Bin 12252 -> 12252 bytes examples/zips/goldengate.zip | Bin 5136 -> 5136 bytes examples/zips/health_checks.zip | Bin 8824 -> 8824 bytes examples/zips/id6.zip | Bin 1003 -> 1003 bytes examples/zips/identity.zip | Bin 16320 -> 16320 bytes examples/zips/identity_data_plane.zip | Bin 1948 -> 1948 bytes examples/zips/identity_domains.zip | Bin 31309 -> 31309 bytes examples/zips/integration.zip | Bin 2004 -> 2004 bytes examples/zips/jms.zip | Bin 11623 -> 11623 bytes examples/zips/kms.zip | Bin 7652 -> 7652 bytes examples/zips/license_manager.zip | Bin 5213 -> 5213 bytes examples/zips/limits.zip | Bin 2522 -> 2522 bytes examples/zips/load_balancer.zip | Bin 6517 -> 6517 bytes examples/zips/log_analytics.zip | Bin 16315 -> 16315 bytes examples/zips/logging.zip | Bin 9045 -> 9045 bytes examples/zips/management_agent.zip | Bin 3044 -> 3044 bytes examples/zips/management_dashboard.zip | Bin 5586 -> 5586 bytes examples/zips/marketplace.zip | Bin 3062 -> 3062 bytes examples/zips/media_services.zip | Bin 9156 -> 9156 bytes examples/zips/metering_computation.zip | Bin 4442 -> 4442 bytes examples/zips/monitoring.zip | Bin 3630 -> 3630 bytes examples/zips/mysql.zip | Bin 7901 -> 7901 bytes examples/zips/network_firewall.zip | Bin 4573 -> 4573 bytes examples/zips/network_load_balancer.zip | Bin 6539 -> 6539 bytes examples/zips/networking.zip | Bin 39056 -> 39056 bytes examples/zips/nosql.zip | Bin 4137 -> 4137 bytes examples/zips/notifications.zip | Bin 6647 -> 6647 bytes examples/zips/object_storage.zip | Bin 8939 -> 8939 bytes examples/zips/ocvp.zip | Bin 4324 -> 4324 bytes examples/zips/onesubscription.zip | Bin 7807 -> 7807 bytes examples/zips/opa.zip | Bin 1629 -> 1629 bytes examples/zips/opensearch.zip | Bin 2613 -> 2613 bytes examples/zips/operator_access_control.zip | Bin 6781 -> 6781 bytes examples/zips/opsi.zip | Bin 26028 -> 27188 bytes examples/zips/optimizer.zip | Bin 2311 -> 2311 bytes .../zips/oracle_cloud_vmware_solution.zip | Bin 3979 -> 3979 bytes examples/zips/oracle_content_experience.zip | Bin 2090 -> 2090 bytes examples/zips/oracle_digital_assistant.zip | Bin 3038 -> 3038 bytes examples/zips/osmanagement.zip | Bin 8728 -> 8728 bytes examples/zips/osp_gateway.zip | Bin 3540 -> 3540 bytes examples/zips/osub_billing_schedule.zip | Bin 1704 -> 1704 bytes .../zips/osub_organization_subscription.zip | Bin 1757 -> 1757 bytes examples/zips/osub_subscription.zip | Bin 1795 -> 1795 bytes examples/zips/osub_usage.zip | Bin 1749 -> 1749 bytes examples/zips/pic.zip | Bin 8004 -> 8004 bytes examples/zips/queue.zip | Bin 2696 -> 2696 bytes examples/zips/recovery.zip | Bin 4505 -> 4505 bytes examples/zips/resourcemanager.zip | Bin 6565 -> 6565 bytes examples/zips/serviceManagerProxy.zip | Bin 1691 -> 1691 bytes examples/zips/service_catalog.zip | Bin 3853 -> 3853 bytes examples/zips/service_connector_hub.zip | Bin 2758 -> 2758 bytes examples/zips/service_mesh.zip | Bin 9180 -> 9180 bytes examples/zips/stack_monitoring.zip | Bin 9255 -> 9255 bytes examples/zips/storage.zip | Bin 26432 -> 26432 bytes examples/zips/streaming.zip | Bin 2116 -> 2116 bytes examples/zips/usage_proxy.zip | Bin 3238 -> 3238 bytes examples/zips/vault_secret.zip | Bin 1767 -> 1767 bytes examples/zips/vbs_inst.zip | Bin 1787 -> 1787 bytes examples/zips/visual_builder.zip | Bin 1860 -> 1860 bytes examples/zips/vn_monitoring.zip | Bin 3387 -> 3387 bytes .../zips/vulnerability_scanning_service.zip | Bin 2340 -> 2340 bytes examples/zips/web_app_acceleration.zip | Bin 2374 -> 2374 bytes examples/zips/web_app_firewall.zip | Bin 2814 -> 2814 bytes ..._application_acceleration_and_security.zip | Bin 6483 -> 6483 bytes 108 files changed, 0 insertions(+), 0 deletions(-) diff --git a/examples/zips/adm.zip b/examples/zips/adm.zip index e46c6e420c0b33f2da28b18dacb2a72c7e92f118..ad072937f46467f1745e5b7fa519916ff4128b46 100644 GIT binary patch delta 186 zcmX@icbJbaz?+$civa}0S22c9iaa5FHnykurzV5tU5gA|GYX%2|O zP)&A_LLlDQdVz@rq<| UZm0sRJie#`r92*Bfdf2h09;`>4FCWD delta 186 zcmaDR`Am{8z?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O z6bp8cLLlC__$fOJNb}?#4ttp3i`83&W%TA`)mz|twC&dC5iZK8S0fjeC4qyU{O@7W~ z4ilWL%DfjM_>9>ICb(IiC5RCsTFPq94AeVWfK3J>aGuo;RltDF6;)scn*&(jHk%p% Dz9=#N delta 164 zcmZqVYvkh#@MdP=VgP}4i+_bprHCofHdLD8>LR1QgylIe-Z)Hu*V| zIZSY}D)U~5;4@|;nBZo4mLNumXep~XGf?kj0X7+kzOO$fgDW DW_v)a diff --git a/examples/zips/always_free.zip b/examples/zips/always_free.zip index ba3ae4a0a2c2f032b197fbe0aaba5d4406676c39..a77a65bee8ee1151269c6200bdddfaba835fc0f6 100644 GIT binary patch delta 164 zcmeB@>yqOO@MdP=VgLd0RgB>i`Lx(=%TA`)mz|twFU0~DiZuia0fjeC_2L4HO@7Q} z0TZ08#JwLP_>|iiCb(IiC!7%?TE%O@4AeWhflme^aFy2{RluCj4OL(PpCee{37;AO DDBCm; delta 164 zcmeB@>yqOO@MdP=VgP}4i+_bprHCy%Y;rDAo`x1Qgyl)r$)(Hu*7^ z1x#?V68CrdRCM#z?+$civa}0S22c9#e{(l`2-JYb9A?Zw6DQYk%0QIaaN45^%;U60 S75K;Lf+~>81<|scOAP?QwLiW9 delta 203 zcmX>rdRCM#z?+$civa}IE&dfYkxzqNz3E_zX4Aomwo)u$p=d*}5KwsI|O&Ay5MzbC@v$O`KfEDFabv!)cEyFptv~ SRp1||3#vdW7evc)E;Rru!A<}G diff --git a/examples/zips/announcements_service.zip b/examples/zips/announcements_service.zip index 8ef53011c921c6a84cce365141d4a4511671746d..4b9b03bfe65f9af381abdd51403a48af52f632d7 100644 GIT binary patch delta 225 zcmbO$I#-l0z?+$civa}0S22c9iaa5FHnykurzV5tU5gA|GYX%2|O zbZd5yLLlC_GJu%{qa zfI2p_F|J|-3r>y|P@QbeF3b}e!pXplFbtw)vKYG;Tu(Z?2n$3{J+~Q#>6349+rpK~ z@mNEZ#tJ}0Ax?yvx?jKru9Qn~J~PDBwIUWU(aCQ_4nPDqh?-+s#UthhQ@J@(Oj{75 zv_stpQ|WzmOSn>bjRa;vP)L9S5K3rIKFB69nO8>)M+m&oc842aro+ksvCH1X7%p0A z63U2StR%=-fy9DLee40NYGwjAAi-=76WG{EmJr9H1Xi4-16<`&OLjJBxY(P5MNyP; zIoQCJ`Z_FthU-UXdrYOFE{GspRYiG{AF7HMNuj6$3CWJAT8<>!psG+#aY9wmkpi&=9%`RbAhy7LESoMh zxi(c3)tr;5Ua01nrTL<&SeAz7LD_U?R29wXXl8s!_drzC delta 1279 zcmdmYnQ`A`M!o=VW)?065LmbPSJ*^8Eq3*$gDIL#2PZES5aB|SiM2+OkzxU>-s=Pw z1M1k!#<+?VEI2tV5$ixKb{``OFYg*NRxcL?^!yIRFvdAZm_j6_1!3Oy%ZCF>OJJ z(hhYaOr`hLE#XS#H4>NwK_LMSKq#R-`5>FbWL_OH93k*R+Z}FznGP!l#4dXiW4LIg zNhl+Rv63KT1riG~^|1%6s+kGgfCRHSOkiUtSwb9(5?FDT4sexAE!o+i;bLzJ7DZ9Y z>g%uo8m=Fm?J<>xx*&pZk&7NT%v9CM0qMM4*ph-?0K)LXfRBt29ce*Un1&w> za)i5sH`oH26gEVz(_jnPOjda`HrF5iTT|P(36WDHgEm6{cV@ zppK1C0-3;KlV@ouPX1@g&J!BK$-s==tjXQX5RDLPAcjqT%4`EOZ89Uj@Mde4wNNA9 zuvuf+J=urd38sAWRQ7CUi0!SyVB07AoAaW(KuQqgW(lvW&*w8SFudSkV9=Q?$gMFs z#+;K2>Qta}H?QX239}aH6FCb^b09Vy;Io3;&&Y2EwclFE046%QNN6WSslKowlKYWE zb#kjP#1xc}cp~fqGi0;A$bNQ+DPeLtljUT1kxYUHT!0KBBxcI&WP~ZV#8kRP4x#j~ zoD&N;NWifVC5$G26qcWyuPlwJcfE2P+*Kkf>d-*4SM$PDx=t+xu2fR}C)7n^n%Zzt z4^2O)=qxQ=Bm+*D)0xY03``1!x@)s*zR8=n4XsWhbhoY*`x5+`Z zX`f95stQZnB2kJ7855m0GrIlLo`CHffzRVDYFgCw8@P8!kevG){Dfk9`oAh*Wk z7;{c8s8fN?-MpH6C(K%)Pvk5x&4Ji-fX@nUKO?^x)P8Fr1DNRKBB7lSrTW5#NbW}t z)yb{G5K~Y>;)$>e%#h9cBKz4Pri97qOqP@3MKTE*Z~-!ikeDg6lM$xe5>x3GIfT-` za!xGZAOXidlrWn7QCNO*zOpo?-u23Ha94?_s6zwEUd;XeQ!i8%=S@9P4Yf84Kvl8M%mY=0q`5z;if(g9R2A>d(X>Qa*r96K zZDEfpu+B_svbm)msyQ8&L8z+!TDqgENVh_B?O#i&$zQB=QB}EEqp8|%9g3<#-zEpu zrhPUMs46UNi%>z;-kJ<=(NRYzg>6Cpc csyRUpQK)8|cc?~Hk?V*SHrE{?T1=eO07*GPyZ`_I diff --git a/examples/zips/appmgmt_control.zip b/examples/zips/appmgmt_control.zip index 02153b6f825d74ee53447c0ea3308cb5a55c59b1..5467200e85f65c925980402c4e264ec18ce6670c 100644 GIT binary patch delta 287 zcmew<@>7H_z?+$civa}0S22c9# zIZSNx3dSf#h$tJg6Nc`|xy+t$rF)rMp-SCYJusDSX7z_F7H_z?+$civa}IE&dfYkx!3Zz3E_zX4ApR{>)M=V6j9SuozH$;*vvPp~+c{ z<}k6%D;T2~A);)|P8hl;=Q4Z3mF{J3g(`Jp^}tlRnbjYzl#|T|sx*?_h8bx0<-xB5F;$&b3X$9hmzdgZPCwnkDf%O8#Hcw<^VSOnlS}+q_e<+Go{r4u%*xB delta 641 zcmdmQzTccLz?+$civa}IE&dfYkxzqNz3E_zX4Aomwo)u$p=eW>(BwW2DPEA6{_$B` z^?_RKCkJv!O|0Xcd`pyvi<5yFq!oxK{`LfGo$SHr1l9`_+dPqxg$W`$li3E@M2O%o z=3uze5SA}cr9SLtFwx1K?7N|+a@b?)U&9dzQ@NRkvy>5{w3W*oQ|Uu4PqX#1|nc4 z>I@YSo2)O%1`(Vi>WeAJBNl+FwO-5%Q`H->L`=Z~aTipr*Tu0|;4YDls_LSIE2deN glHr(wn*3=I@MdP=VgLd0RgB>i`BYSG%TA`)1952uHv=QfOJ)WJmTI6hNTCRj=71;+ z*JcMP1mcaI9ZW1B&67o$jbMV4{g`(`1i4vsVS=0OSppd$qElFnn1OmHpJbJR2)tyq UL=|vlb3heX!DbB>c*dp%0PTu3`Tzg` delta 186 zcmeC->*3=I@MdP=VgP}4i+_bp%F5QsN+b}+GkG*1>~Hi8LG_G8`&5#(mkg$Zu9X9;A4h)!WOVg~A+e3DfLBJh&c U5>>#J%>h+l1)DWk;2E150Fe4YVgLXD diff --git a/examples/zips/autoscaling.zip b/examples/zips/autoscaling.zip index 0c705a01a21df6cf9f781b2995add6a7b8dbfb16..d253900fe6f99d48d4f04b6560c2d5633b94ca33 100644 GIT binary patch delta 358 zcmdm_vq^_9z?+$civa}0S22c9qGwWWcARAn8b2Hm2CWxpZrx8r)<}A)$Mu_NdE@QZ;DR%%=w3EjaCOY{j&qIjP zRlINqY<|ki12y(5zZp#FW+Q=YsOUl=3ud50Cp!wuKs5gmazYhI6m~-uIE5}?EaHHw cVw#8}s=zN1XH{BtoJKIEo3l8386l#-xs2hWrrZHg(M}#ynCRrAJP#pC zSMkCfu=y!357gMN{AMtvn~emrp`r_gESP}~o$M$q1JV3P$O%;-QP>St;1s%mv4{hz cifJN_r~i`PA5L%TA`)mz|twEyV&BiqruM0fi^_90m(b4rVlg ziB0Zf+yxQzVKRUTZf<6}&jb-oW7UU?&SCXugowUpL#S0_e+?BCppz#56Ow@_yD4CWDqtq)geovw&<<7LkDx88K#UNYioNIpa>Djt IEeXPE0D>@Tz5oCK delta 319 zcmZouZ&T+B@MdP=VgP}4i+_bprHCwG<0jC{hP31Qedwa~Lc%IhfG| zCN{Z`aTi3;hsgjYxVf3>J`+SVja45mI)~Mt5hD7Y4WU+z{WVlnloKK9!|BTcQ9GB{ z5N^U%-jz^un*>alfliwIPe=x$?52Pfs(_iG6RN;$K|54|KZ3TX0x?2pD)yoa$O+qn JwIm3u0RRI6fsOzG diff --git a/examples/zips/big_data_service.zip b/examples/zips/big_data_service.zip index 663900161b50435352fbd1ff191a6d15267913fa..f2ce62587f8e20a8e92fb1abae9ba9924ed87518 100644 GIT binary patch delta 522 zcmX?Wan^z_z?+$civa}0S22c918&VP z0Y)Z>=zk##xTu|QB-HZRA`nriuOUi*h}a{Pie85*l@zxHxnS}_2^om8N^uudfd}H= zPyw;Y0#a-cRellysHzT1gk!3*mh?nbwOkUW4aqDiDSuQ|JyKz)0<6+*n1<)U1)(m# MF6|3er7oie08^Hz`Tzg` delta 522 zcmX?Wan^z_z?+$civa}IE&dfYkx!ppz3E_zX4ApR4qQ@#AhBDCPqNH77#P0FF)%1j z;*_1(!vj_WRJU<{00#?5&E(GLR1Qgylc_$NCY;pjz zIZSYJAM;*_pg)TdOmK4tOAsSO^d74@Gf?m3hiozs0Sh)eRDqdnuBZZx><(Z77j`uO Dq$f0D delta 164 zcmaFG_ll1%z?+$civa}IE&dfYkx!Fdz3E_zX4Aomc2X>0p%??O5KwsIPz7ePxuOa%vO9nUT-enB DDE~jo diff --git a/examples/zips/budget.zip b/examples/zips/budget.zip index 363db5bb4100b535ca3bbe6c547935b8d065e77d..b6b2a5aecf703c9cb17125c18a0f163009a375bd 100644 GIT binary patch delta 289 zcmbO$J6D!3z?+$civa}0S22c95T^4eh2c!1XxRig%<4_Kg_PYnPcpIK)B delta 289 zcmbO$J6D!3z?+$civa}IE&dfYkx!Lfz3E_zX4AomR#Gfrp$KEJ5KwsHq@7@)$^MKw z=*lK9V1%pNe2ei3GeqSfRy~;R&EHx57$Ksb?B*Eym$KWzRlZ{X0oDJE+n5<>^JGU} u8HiRJ9!IEv7#G6blNazS^`)M zsC=_6V=^OHaPkr+XPD^ZcT5KbLAt@FLkZ)_8<~_R2e1h9gobc3FeB`O7&=*jB@U*4 zb1O>>)YRL;29s;pcyZ|QVGDrkSJd$NKwhd^d(u|B%%!CIbqXxur^%D}*=%)sD}tYz{sUPZVK?|5IbLIUfy zuoJRlz-F`r|LoijG^1LUfx#MXMy-e_T>ngwi%|V}QbEZ2A%;GcDuyeKm(GLw`=U%B zrc!s=Lb%fXvYAk&I`Yn-c$xfBK?Y*tB>8Z#z(qBv0FOc*s=!=@KvXS)ieacKx)gIz zRaB`;O*U3CLsiwI6o)FntL%fStwz}wRmB_SNK_RWDp9B^o~jg~s;E*8KvnTp6=E&i d$9ZZAs470HHKLj^RXrY6g}6pNSYW1x8UUBo78?Kn delta 856 zcmdlVxId6Dz?+$civa}IE&dfYkKg9V(4TAmN=OH z&8;jkP*ZOU8%(ZYgLtD+2?gG6RD@vX;rmcopF`yyJbz3JI*+ z!cNGJ0h`eh{IhdA(2QzX1_o=m8MPv!aQ!nyE<*L^Nd+P6hZy=)su->`UOErz?~5{l zm`dGc3*k!l%Vt8A>c~5T;$`wj1sRBmljOs}0vFYw0z3+Nr~-2p0#UUHDu$t|=u*r< zRZ*oXHQ89n3{_Q+QXHxPud)xSwi;z$R26TOBT-dks6?Tvc&bu_s-j9Y09D0XRfx54 dALpqhpsM(&)`)7xRP}gN72+E8V1bz$Y5+p;Oi2I$ diff --git a/examples/zips/cloudBridge.zip b/examples/zips/cloudBridge.zip index 2b6f628294f940f0655e53b919e573de43bc0532..82b6f20e8a412c8243c176f988102cf4c99187ad 100644 GIT binary patch delta 874 zcmccRd&`$Ez?+$civa}0S22c9#}umcqonHOJBs{R4d>@~gX@UlS7C;j(;{SsY5091C%94# z;qQ!K-wB*r?XV0OE<%h949b%y3Q0`%5QTeha+2r)h=FQi#&Ep}VnK`$QINyr6<8-f z5a&g<4s38r*Y^)4Ktn$dAPc|K5 zXJ8Q4VPH_1EGR2E@uo0X5zvT@pYO1A^hy^i1L_rRdS74p| zK%5uZIH01f@b%)np>3N~Q)umDwZOunun2=fXstTx9>^udiYM>Ymxhp&_? z+~%259MB+HDr1GIlttDDt~6XW3u@|7ISWvnO#Y}SHhI1x8^lxvd3&g!3`C$w-W{7N zsmW{#s;Dac6tJk=q2P_GN=-2V(>#3@smX^GwNX_HDurOG>`-z+RrOve097DK*$q|T sw6Y_nIr=KDsH&!`V6hG4E)7*Qca^CIW19Cy)dSVMaJ49~z!o(%0D0(G1^@s6 diff --git a/examples/zips/cloudMigrations.zip b/examples/zips/cloudMigrations.zip index 4d9cdda3237deb536edbd60c361620f310067695..a88fc5d55133c9bd66b0766a55d089847da761ae 100644 GIT binary patch delta 629 zcmaFu_}Y;#z?+$civa}0S22c9x)aVfHfcX1B(I0H%lnb*s~22p8*3mNMComAZ%n1$JUMWs`*_we zLX_t7*}z06Z{j-u5iH|3hY4=p!XE@x$|Y!tX=;X`D?+KD5fj9KSHjN7N(Di_vb-u} zD9OaYaEFb7!FA#VnaR5HqLU|x$iTI47BPlt7qdgw4l&bLJOHkAiMTIR=~qb`W?(o? zR+N^3C<~GDh6u<)1rABYpsH|`_C!^&RyqPzg@#Nds){8tRj2}vvRttO~%@C7w kM^(`v7mTXnn_M8OiY)mIR25(4eNa`TD8zvUjw+}D0925~kpKVy delta 629 zcmaFu_}Y;#z?+$civa}IE&dfYkxx%mz3E_zCJ>iaa5FHnykurzV5tU5qbW?ZWrr%9 ztS>Ib0@i%k4=e^0-z>qnlNl^H`6`PwhRVsNtX^=XZLEQ85T&=dy)l(~^W?yl?&Dd@ z2vM5PX9E+Ryov7sM6itC945GV3x5z)DVLxnrl}c%t_Y=qMobU`UI{xRD-{I!%JQm^ zp(GOn!yPsT2G@xfWG3s%i%y;(A_LdHS;QEoUCa(yJH$+1@c_8eCE~tNrC%j&n1SIm zSy5UBqAWzp8zLYJ6*wdngQ~(&+7ng9TImQ>6&f;;s4AAoRG|tu%6g#+tdn&`HA76! k9aTkxTrjGNZ*qaCDzfA=P*r@D_d!*Wq7VlbII5rq00|K9R{#J2 diff --git a/examples/zips/cloudguard.zip b/examples/zips/cloudguard.zip index 5dc31d47d70266814febe3dd319d6ad3311a38e3..2742987a9969f807a7f2401f71c8270beba05c30 100644 GIT binary patch delta 1146 zcmbQSl5xgLM!o=VW)?065D;I*7(S6tlijxLWQu*+$;pPgB3wu^F&0QNQY>KAJ43-@ zKpmS!84ojo1t;HOw!%<3*_tI1u5>obEEb4TOHLy6|S^NEe-0bH#&BhO8s>aA-Gys0BY)f15-?;l7{|pQ}Ye^ zSp-2b0FF2)p*Z<~mH6a$fxJASA)E}%h-id*_O59l+yGOvDrgjJwlac?zOnLQg!s$G zCIr(3TWzA@O2uv6;i086SwNSUS0B5r`&``Nns{8*p*}SCFb6qsa-oL|#KMUlZcqWS z$satRLH5fd8C6w-rw690*PiL9s!F{AFjc+q3P)9yWp_PreKJVE2`E#J}|S8 z9BbwqhpKA3FH9SfDtW&|R8@=p>@aO)@ef8-Rpsx4sp_RaTJYotIAf~18W4+WR%oCL nrm8)G@tA^kK@O-|7X~F^s!|KiL{+sZ7>mcHLPEi+ibB)?3gd$; delta 1146 zcmbQSl5xgLM!o=VW)?065LmbPSJ*^8O?LIBgDIL#2PYfqif|#x#8@E7NU?xb?+gWt z0d;H^WjxFT7My&C*$PADWNVg4xYF4yvsfTXEjgVql`i1)ge(2P>C6sMYA$GrsdTDf zI9%yxK?^pBQhfY_B08Di=~RRgdnic&K*SGdw9wKS-!-ssq2D)rYzgy3pj0jR0_4NNhWN*emZP0cst zXAuO&065~HgyQ4_R^pT21@iKQhHx@4Bcc)N*}JBJa05)us-RJ@*~$nm`o_wK5#lc! zn-EMFY_*AoD;2kOhliHRWC2}XUVZGg?sIX6YvOTLhx*Xm!yM$m$%P&=5DO=IxIqQP zCV%jN2H7ulRo*tO0UVEmasw(vgz*P0ZD;!l-lD9jisx#iHn1UfbuBck~_`u9U za;%we9IC4AzA$Y_s^t9=QB^JWv%|EJ#XlHTRh7RFrmC0zXu*>o;Ebv2YCtTiS)qY0 on5y;!#$yWF1v#K5nc7HC;Y`v8f!1q3xAF=C8yA;t%Z!N?OvOzgcgcdm0AdEnvefBtjMKQp&;-K}%o zEkIS|?%~6u{=!E16?Xy>Jmsy64M$rSfmj;?j5>h_%`21s;UdV!4${o2pZvDzNi*=( z>o5at@!m!+NS_N2xs-$WplmEXA2iB`Qc*}Ari~%>ZjdhRU}S=LTgj=>qI**v1fIx#374DwT# zdGp-a;E>aD@=071mvTfPq@tv=M*qSfuxC}QV^tTH_5Tvn0? zl>W?RQ_nnh$=7B6D7ur%jAtTDeU!P_v{d;EWv)^maqT~$W;^{>SD|z(D_GiJAwj49 zsxlwj?yOR~!&xuas4#s|6N4On)FxvpsZ$`T*QC3S@J6G+(!_cXWUG+Gf=3nslO)=Y z4x%r0{IstdkN3%WK#_D1bCzu&#_G+8sRNpAV8)h7V}ZdcWPT))I;t(ey>DytP*N)w z;P8Yrv5A#lZCXZ|6zkx#gHrb0f)QN~;|w-*X)vqA<`WFG>6=&3swFM>J=<=#>_b^S zY{dpPf&LHDdbY6+Wo-+HMjPNGLj(I$*L`p1(v-=0F;_slCIWnJ^#VpiAk!T<46^~0 zYAdd8_?A-@$p;;pa9Vc1ot4?!`{3l&9r$emV}~5V)s76t&=z}b!w=H%?n+FrbniwZ z>NR5U!5;jd2g?WS9ViDnbPmx5F_?4s{ijCU%YMer_4dH;CD^*3Mtu(e-@FTsQ)M%UN@*2= z8~ur->UDn+333KX$TIr?Tmdf`HCRO|?ha;<9-D)?B&ZpJ0MGIS0c^T^_$*m6HVk9H zC1P_9skm-d(Euwp&4r|*VT2RqJ1$U+s>zc1(OMGZkIBg{Lu2`*LTITb6+M=8Qt{p5 zaul3<;;@#J9?9ddEe@!AoTKoX;9RZd2_@O~%S0IoswO#YA5U^h4otxkoT2bifv+79r3xgCRZ~y=R delta 2298 zcmZ{kSxi$w6oy-tvV&z2sS6Y=2({osP*wq1BuHD9f*?yVkeVp57@-;-3M7gqMr!7X zm}qO+Dzq%Meb7Wi4H(pf#E3D*g%}?s1|v_XnAm$~?p)_K@W8{@|NQ5ie`apqsz=|d zN3gQg)61Vn{n^aFt8WI!`y}+vwj}n>07_|Z~n%5@($3>8hr_s!%pZd1$Lo@Kz z_b>zPyZwy5kUke4aw`YBLvyk8Oz0RNN=4xXn6`#DdqBFdm8B7p`w%UOg0`*+?0r#B z1E5wek-9g#EjfT~-%2XHp;RV?E5LQ(THvZQ8%tkG`_WuYvZI(DaUb5+`deKkcyJd8vTm|?Ku&`wq{Lh3fFAB`!PN}A+|>eT7(BfL?|u{5dK3)#vgvEZ>)z$A(G zqk}N-pEwcV!Q*{$9nelXh#9Llh_U%GV(Ne%wlHJMq_IG66EZ&%NgdG~!@X~43Q$r@ zXW{UKG^vf1UTRxJnUrbavx8Fh-GY1CJjNNUX;WcVN$o`pwCmcJ(5mGf_&wWibnHc0 zJ?g{;c7g6M()x6<4pm+Ah(_z-BSQlRQP({&Yhl{tx|mC#TO9>HclrXOK7{EGocf2s zlxiccY4n;)wUZBe)Z1v;oo-g<=r+U2>wECq1je3h2$y>@7(;t(?^+>a2ET67N4dNG)B25wR#9$-IXrw0u1dkHq~q*C7lz_;vx<5U{6 zXdoU!VA@zff+$lFS<-7NBo!+rISEeQtsuc77ZjSI2cE-V6@htkG+E|1m`ek!QrJY` z%3uUBjd%SLTIfg6$WcMsrYVn zI||M{aoVa$kCX}676;Tn!BO~5a;{eUq=IbwWwMF{byJ+Svs0XsgVV4CXDV}wz_aOi w(kIByi9p8%%XZGSQrtgAdOWzVp#knx;NY0r9GqNbP8cK3#NdQ)XW1G54@T#`YybcN diff --git a/examples/zips/computeinstanceagent.zip b/examples/zips/computeinstanceagent.zip index dc72aa2cb8bcb72ee5c14327ca5ed21626c77b53..b92d333854f58c3d4ab728cf2082683bf18e3d67 100644 GIT binary patch delta 262 zcmaDa`CgJQz?+$civa}0S22c91}3(7J7XjxL{x;?%ZMl=J2x2L>0)DG_$SQ3;5S*3*<$hu zW;wWlZ<&{|K@6PE<;V;)aI!DA3`F2Jmp`gNF1Ht0U>8iqE$#?Z6`?$ZV1bi7Y5-PN BOrih) delta 262 zcmaDa`CgJQz?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O zG)H!jLLi>F?hp$|@8l9j8<^PU?TnF(5K$3kFC(Ii?A%~{r;Ck&;h!)AgWqIDW{b%u znC0LGzGYs<1~G6tmm@RKz{$ScG7y2^T>hv6x!hi0fn6{ax40uvRfO^sf(1_Ur~v@T Cnp)%l diff --git a/examples/zips/concepts.zip b/examples/zips/concepts.zip index 68c8180330405e6e041b04fee52b02b0418c0471..cc174da571a80e49afbf3735ee2602ff08a8a46f 100644 GIT binary patch delta 466 zcmeyb`d^hVz?+$civa}0S22c9jnyL)@Ejfikh%^!$sRz zTA`x+Y!1jaK@2EibB8NE#3sZ95xv1-jj7av(+RG$k<$aJ^ene2Oms3Q&n}4m<2(j1 z!Oj180-+8F<}(HPVDbk(vB?PnY!IcZ`JAAFG7td)eqU6927Yf;fp`3onC4^&_@S!0 gEf9*SDp=4HRn>mM08{}ZA!k&98A5hoftx~V00$(PYybcN delta 466 zcmeyb`d^hVz?+$civa}IE&dfYkx!jnz3E_zX4AomHc~8Lp(qoW&}1o2DM66f^kdyq zFEBDNWV0|ZXiauxQJU<_&&$Qhzzot0#2bIUVgzfR{G7=atQ#n}S(}*^Dr&;w4Hs== zX@!dNvpFE!1Tmn5%^j}v5StJaMDzxSHKtMvPA9n1Motf?(zD#AFwx1JJi8$JkMkJ7 z1ULWV34}Tzn9mgCgUKKG#3m;QutAir=5vAy%0L7J_W&TVw#gB;D@T} hwm>MRs$fA+R8{*015gEwgq%?YW(e7V1#Swd0RVXNx5@wj diff --git a/examples/zips/container_engine.zip b/examples/zips/container_engine.zip index fca4c280bf8fac52c6b5513826f523901bfdf5e3..6cb1bd5f2ea1e7b45959ab58b1566ff3e32fa13f 100644 GIT binary patch delta 3771 zcmaJ^2{=@H8y}5rEW!&Fi zqJ}ItiSi*zio(6NMn$$_`o`FA-EZc3=6TLLzxVep=RLpwdwR1uMvFP%*5*)7KFH!n zqKM;Q3LM9yAKK()7}^ASqLC77|F9v;KX?#>mI8xJ#0Bi_U=Zk<1B#PP(qh3TVcE;1 zIqG=ei^iMMud|X_baHs`grN*51QS@r$ijGefLe;{rL7}aS}ta)Og7zQj^IzqEPei> zH5*PzOb>g9*PMo@F*64ALR*2DN&av0pW*rfckaZf%#AWHz4I~Cr227P(Hm-d_aV%t zf1oR%Rd|3*eUuOtTyd~!+Vx8p;)*BZ#f*X2v2*9qkHrbw!%sRCbWv60zb588o;8e| z0(2oG9E%gzv;T;b zV_u8&p`*?O=7C~oKgtl--3h!DIZW}Pp`R8It!54#(B13wcQPgoOF|Ntsi9yZ_nRU1;>CC-bn4nS32 zL6d#P(6#ZBxV*;ZeAvj@V~W{Gs_YNRFLs#?Tk8X@-SYq5GcKBxBbAYO<@W$|c4im1 z!%Kagl)Y4i=u>H%D&fc7YeMFtyq~*^>%heZj7%6Je^G9UsGUT-jVX3|m8Ji(o-f&0 zr?G>J6fgPy=|K6DX1>a4H`6ejs0slXrA%3H?6P=dq?Q;igg?`>_f02f(%><18-qg; z!HQXhl_yY0MEA6F8I1u4&e_o!_hzJ~)kp5mr&JIcb9noTKBKp9%bvcfK^Z9VU6>o( zyD8z~z8!m1fXIk1W~7{%0PAhiLzzTcWH8z8w4t(EWKGfz7%}8U*}P+o^eqZ7E*^oq zo-dy>)@xmVUi$W4nZfbx4a4c6M)e2}7|lJQ`|-v@Ur1yws^G1dFgJ{RWmyRi~ zEx4@2v}>Gm2>EIV;mGT_Pe@Q8ub^F08^MwtNLh!WT7#L{CA8X-+rpXnrIG&freKqT7u zXDEQST!nU^Ie3?#ujTYtte~WP)xW6Ejz#s6IUMZmlr^`~l8nL=WSzD9d zu)e4;`Fz{p!m$JZ(X40Uc7STS^Lh>aam}AX5`)j~nr-ro+egFHIo65uW4J;*LMF;m zn)k2_E}EPo`$9=6q_ri`H$Vy)UtAufcVTt`^<{x!Enz zhl<`keF+PwbKkNbcb0ekt;!%?eW$2*#hP2*jfveM+D~ z2v~1n4)N=O7F;((p=8&9bp9ky!CFDp+jqw0s{9R_f%;Z5(>7G8q52see!hgRE9Ojm znCv|7SSa+yr5w+|I23Hb^GUkqYHxj=SFe<2VrqaOeqGpEHLG#T=$O};@tDLeWy=T? zo5bx&H#Mt>%6jgdQt#1t(>1_#xf^HMkgw|cq=3S`*+q80<2cb;>gyHZtluxdb|Zld42-HZ+|#4)h0Zza&LacfZG6t z_}#V|PU~#qSNp>AV9rfBY?SY45=Jo^i<_hbNZu)giYUEMjqaC+wfvBP#owdE%zU!g zIV4^?eBgBt^up22O|7+G-)eauvGVX6ga!!C`i57E{r8Kdj&%3s$q#kYos1SR6|4FD zlZ1-`;1lX)qMLKlg{#$~KZHMbY?7Iokng*#*}?XlKt+87^;LhJ#NY$VlkLSA8j%)5o?_qegd*!<2{r1TUf@#}q^bJbB_jXUfabK|B>%9VZKX$8$^ zEp9oDY3B!Vo|&gOKcY_8byHOGLW8saKAd(=^TDOBHG9NJF(HLT&Y!N;=|;TiuAA}g zMIpDQ9Z7!As7Nzoe%w7bYWo?tD6B}9!0@v7FYvv*_KF0SNh{cMED2*cR_kXCeTg+# zg>F$~@+?8oIK!Wz0B)V!;*2&eK_v)gs{}^~k;}1$)z+}P)ZLb?SsLc6*v}eM%M2sh zq*beq&Q9nOZ{V)A{jYXc?lRWbP?L>aS}jqC#ig+OkcqAyHv}>y3V|rGm&%WZqN|MD zMhBPA5Km+M#Vr%eF_v5kQEP0wY!CrBxaF){ZhOWvU&MZ7{VaVqu4$MB+2zDEhQgC zLUH(l7?L{p7!6yaTo?5_2?c#D$7WD76J1IBr;s}~gnTN$=pgy41MZ)-v6 znTdl{!mVh$!XlI0ub5Vk%GFM=(`FMME*;^}V=)+QVy*cb2tO&aYvEJiUn}?L4$5vQ z=fZZj4-?D#FSkb590eU%0U`b$@wN@b+tk^_tro&R5wpuszL?R0WtG6i8cgjCWhAb8 zf|WSowTNpiVE7pBImBu~7t4QRPqA9dQDxQ-1UumVy3X5sSWd$%r;Pz;v{zCEoh(=8 zVBMS~TcV&Px~rJimWcJ_OVcJ`g@VrNuV6$D`=1OUdk3@EonPETSEVD3zq9g~7l1&t zHWVL4T;Tv;Sc&}WOky_lI&=>NY%`SosnJWR9o>h5wy_c0RhDx3=h|g$zIYc{@20G; M59{qQ(0uXgf88G4&;S4c delta 2334 zcmaJ@2{crD7{4=v8Dvsp$qeaG_ScB9OqMZa$u=`(2}v7zmO_>iHBnJ1OgDPKFhuaB4^mB3Sf>f|pm;Hu-sl9!APJ5tq6RH9 z6HH(b85bcTeeg5pH(^>$5`$(caB00Nl-E=CrDHuu-l+_Rjd*FDRxOO2YEkMQj9IXNHRB#od6xnOe{{t8%P?108n zPP|TD_p082IW6n*)__;$_1=MJMm&<1*q>b?-TqUlQnK0a)1|maZ0D|P>f3-pzmf*E zNQI%X3NM>OL_%2aDxM~T=~~{WG#r4jX9qJIZ8&U_o|)NpqRZX-(G@KJ+y^aMES+la z0uT1Brn2O`oTUMOHXb%CcULdJ*y`?HYZU3|$xZmM=kj-r%!m0oj~E{>44{hbNY+b2 z`*^!-{e5MQCaa8EmyXlU5vz)ic61g`53ng!FRTuQ(&WW?%Df&i=1-JN>Wxf2d4_g+ zk#^v|w2#qwF$I^ZyL(?9i>SU0(obz>F_RDIB>Sc82-5oE9TYY`sPPq$p?W*iG~`+i0~?MrMUo;&=N zGo3!77Wd?lrlMLp<$mRXt5=$*jJ48I!k=Y(S(4YXE%MGO-S4zJ&peh*?(>|!(YbgN zWq(rT`6idM&5$vfm*4rVp$^~q?NglKqb%C(k|>d@>D`VSB@2`IcVKr;I#z))Ha<>am;nx5PU+KuE|2}VO>ih z)L3sC&4-$jC<~z(q&XX3NmfWclw{%{6gX}YE2t$-p2K>QeFV{pwT?opjM=C_LBi5r z7$Yomq}^YZd&0SpgPVFIs4`(^@zej=Ife!C((NTA-jk3zj-5 zfUBJa!45|kK~R}r)YZvrHt@?bZg(=9&tDU|tqM5##16WD1O5q~Vcavw#(I!pgAGls58I9%K)P z001q4DD)G!5?8Mdi!$iAS)-~mo$b2Wk1&G}R!9I)7a_a^FVj`PLI!rebAEFj3_LPW z1J>i}O8x4g^-|;d9y9)-Q%)Eq}<1=M1mp;09euhKoTkU))XdecU>$(*sAq=?Fq=+ zk3|4rB0|`14inm4mkJ2;4)z`xZ$*C k{@X+zkOmN9{g7X=80g3_9A`!f0P@haUlIT|+Rohl2mDsBE&u=k diff --git a/examples/zips/container_instances.zip b/examples/zips/container_instances.zip index 829e06ddbe950ccddfc730a38d8600f2eb212a29..ed563e222c6bde956723f86dd9acdf1a2e2002a6 100644 GIT binary patch delta 186 zcmdlfu~ULCz?+$civa}0S22c9R delta 186 zcmdlfu~ULCz?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O zR7-Y{LLlC_)R>(GqxcyKCj&pm01%!Fj0El5jEdT%j diff --git a/examples/zips/database.zip b/examples/zips/database.zip index f510b404122e1a88424652822944653cc315f336..072ca6c266597e5aafd25a752f1d15affd1bd04a 100644 GIT binary patch delta 9897 zcmbVS3sg;M`#;a_UZ@i8#ahpKp5OC(F7NYRPP?*nzuv2B z6gE*qQ(s2?SRRFG8Ac!I1gtEJ8M(5I{9MmGBTQS95|gfW4ydOD%rbUp_4awj*+4b1 zlCiOeL|TaP3bSD>(9(>v-lUa=kyJZGgV!$A2-aXQW*l)Q^X+uWQ99~=SqF=BMsW^K z=_~^yiYgrn{SP^Mt_xar1x(~qBJ^Y$d|0gc4!ut~^JYBtBW-aWqb6s0J$D|jLMR;Ja$A>yuyh~EN$0q) zW~KLif~5e#!}$8_8#Yp(0eCoOtWI|o$m9mtm@SEpOBkFO%k>nMjGu!;S$g{6O#2A(zCL^!=d&(+8><>WlPR1)_4-Uc z75!#CVQZ{4hc6scql+fKKrLN!-0HgY(j|T7j^n&+n)`%pg!p+(WE9PF^GdXsc#{|M z(#nNz*h-cy9>F0P#aFPpji2*U=j9_<-35tE+X&c~CGza8R%ij8N5kVm=U?MS_R*Hf zhSGW5a2L$b@ft8uYbdf=Z(!lxm8ytSlbAAN+ISh#UCA&%_a(=iyjkT`=(@U-W%R*1 z-ubF^g=}R9Z{($4ZJfyJmTw-UUT+54CWZ4^7@snS&3$=lD3=t6Epe=LM;b??ur4i) zg^k-bn$tbCtzL_c|M14R8Jal$EBM!*>>&D*XEMw=wHq0>;=zUThk+G&V~-AbGE4to zhF2Ilm4nD5t6BdkSxm=M#lDf{!*Vs)J(SjEOGU5lS2Y)ve_%q!nxwtEf~?$QOrqV) zSf-4R@9t)e^Y(Bd2@7%WJAQn6W!E!7M6B?w9fx7V2r|Q2fhz04Mygse( zT61+KQ-*07G7%oQjeiE z@(n-K(%(#HEAi}aZcvckZ{N{bnSVd;kUuU&IzbnLcC_#ve`eY6ZYtYK_ulh6bN{a8 z%qa$C5%7sBTSe^zOk(RcN)xy(w3vx^YUrC2mQ8qnj>WWFwJEA@!1o`I{tXq zBWOdzm?fymYh^w;C{9z*?#^OsQ> zTH+zU(!TEN0ol1;Mi1U-2M4CDdF&E9_Vnk${jS)x)qQ?$>xo2-oP(8-j~besu192! zJ7lIAw5cq6?cGI(4tQuOe~kHK!+}lTXg_G&v~}mJ^vqk&j)fmB&404MyJluy!nmV{ z!?Z)z*H3N!@%8DFL=T%?eg1HF4mxf7F1*%f(z^qWEt5U6782KYzg>H5-rRu3#T|Nk zvzt7tBNlt#AM?J)Xy$0wfZxB*O4Z$}BaiRuy6F?#7B}lsguLLCVxsel>v>C0d$ssq z+^;#yt9JdtjNAuL7ERxtTA`^3bDJP9zPaMj(X&1o0b29_T>N}s`k~@Rjl%G# zGN`Ce?WkSW3nIJ>MkuP&KG-|;=vk$n*Du+f?@wfQ-RxOv`|G{B+#lk4y2+dU;}7{1 zG}#O>$!b|XeD9_;ex0I&>d=09Q3*KIR{T3y5UwW5SAyxk_1Ti`o<^HJ-n^gZAIGjGOx{O@V3~N*oxepL4CG$F3cO0weH@xcB{7JI>&U}nDMsRydl-B@f}T? zzZjG8Gab;5L15ndc?=z~2IgXe7s!zp)}UiZT?T)jcGKMoFQXoEN0Jq7jy`mRKHQWH zbc7-70$uF{+(uP&%?WbYsk&qkaA$vXZV;3+Q*xUta0gIS>k4g*_?jDdaOf}?!dUbv z?%<|AR2l6f?!cTsFzKR4?(jg99=1PC9XmA*PsdIIQPED+Xmb|GWIh1uND z%1OZN`2sIZli&+ZJ317a*bOHn0z7Fsqs?DRUF{r^M>q8Om)gP~Q{WVPF`~?( z;z1APcY}c{JuDM?M^(s;OK;&5?l-1rrtRk zqsiQnkzTag0FR1>MQrLS76Nk<5Tsyy9L(WTkQWEvu-isJyqf$#JZxmU?1L{LhSMLv z8E+dXFARd>KDAkATovVY;=hp_p<#R#%H3{8aIfOPErGfuhpVZ3{4do`OW%5lD z__4IS*Qm)it^r^xwq*mqD1^5?^kx%Vda8FZYlDDZpK1 z@M()p_w-Z%4T(f5?fRDb+^?~nPdZiX0ZG7O0$0+qXK{ZNsQIsy> zq2?C_7sAIhKdi?7kc}1efm0v7&?VIGXjBSlUGiJoLw zs29~-04ughUR?xl>J<-lyn}vBUhJNL63xE^gGKVn5-h)Q34Cbz=t`CThb6F4sv0iR z3j9r?^`H?05|_b6q&o33go*%vxeT9*v_855(IU}LS75G4pqMXl_UN>1c|h2?n8`7H0J@^COp-u2P_s(Vt5_fg}f-YPC~-EUb4V*>LpFy zrvb)^sIG31V6`^D0uj}fjSwg@!~$?UAIJ-l;@5)W_jjQaWsEE2(6K9wwy?N1?Aq-D`05#=$ls{pn2#aWzwDsC%NyGlt4AVu1%bu|!-XpzlXthZ8jnEc}YFSHf8B(H%R>^!m z)GFy3%Qgwaoo$jisP$Yjg4RBlGgTBf-600DYhz!wBErjZ}>IHGp?VC9%o|nf?U> zbf-j!VKY5Ehd;$%4TUOYGB*M29mWRLS%aPmmg+3J5Zu)oXLpFe%*mN@<;xXFzork^yg&UbuN60CtVQT zmy;F^#fTobgRKRq@6f4ET#!~bFi>%!l14|zp3>?66s(m@W+H1Fo#IL5+T18QahY3; zyEL7Hr^Fdw!go$T{LP@9z~3Fl5|z1wvC1JulgZEfP8`U~p)@#k-|x!>N)uYQwP5ic z97a8EWG4Y^jW1(!br_hdVEN*g|BYcQ{82{_^d*;B>mq+YuoZRz<3HprRvaB5P#iDC z`;RuEBzBFX@{Lm$2$n)DnkzZ;$!=;6l(G0wwojFZWKPCrKUf`d=cO5(;m1_wV!^i}1GZ;Y4nH_s=u2P^%vh*Am^=8~>cfKtn6IbIek@#+s2)alE`lnsB>qt(5d+LtZFsu!)q z>Pr%67bqP+#z?5{>cAZ{Z3Uwd283v!R}HK7qQ2L=V~GFMLO`N@C1Yc<0^}-GJ~p}$ zSFA=E8iXr~BnU08W;9vFqGM0(acony#KWYPwW%ZsIcLMv`5yvPoxhI3T)IXW3=ON! z)=R*)Xd`9jCqiu3Ae8uRCRvNH=ig>LHuD334+!5|arbYbV(w2rneY{(lxX+rV`&7} z-PBfWlExU?Y7x#H2ihj5Yu$!^Ix<1Pujo6Dr&<%Tnq$=Z_poZ$?Ih)ClBWq}vK56PEU9sG9FUzlzF)dqjLF39$fpEz9l z9Y=8Vp@XTge)visS1QFsCL1HLeR7tueW6DT5^IzT&pymzXxAqcMme$^*{2imUrYRkcO2P&0gzNY#Q*>R delta 9298 zcmZ`;30zHS8$Zvz?cLiZE%&CqtRXT*h7!ttGuDP=$v%F}AX^g|`;t1wn;3k)nT#dd zMPvqzp`sGXt~4k_vSi8h`QCHhbI-ZwoXq@gzn|wk%l}#4=Xu_9*8XDg^A-ym-2kPD z6~+8_@V^ZsQf*qAw@l8R)H*qro@42lsxvcT$S8a)c+<0#%~DfLn|hvlD#D1YVP$A9 zn9CBeKK*v+4J-U?#SR;4pg>GAt22(h1fh=HiT zdQHn=J7X8kQ=RM=Dp~U`pN~3M0!8gMLAzFiD=N7PY6b+IchsKet~go`^aCdnU;3Go z;6|YH4h5^{SyIMYE!HzYLD!vip&!^;r)ku@0!K|35>k4QHk7BPXtxq*Ov-%d*;*^K zq!6r{4EH*Zz6Lq^md8@!=NQkgdE)qej`Y(7MJyQA?ea063W~aJM%(%Npu!?h8I&>! z&iCrZMbFH)JFlRh?|q`Rjb8{$l++cy%CDCZoy%#hUq6EeeGmUK3!=igLroLbWv||H*8UL#c&*zbMw$@T_mPpttoBS%E%`a+K#&DR9rL27 zu5|Q%m$VQ^x?_}Ov+u@Fo7H~qWWK_faGZ=9%mK8DCdEWN=R8b`9?4t1AH9xaof$*& zC}J&)5rX0N?PF5l?e_k?JP#N6U_h@HaTSJomO(S4l;F~3vX^Vu4VW|Th}kXJGfoG` z_TjBBkA2LQ^2`auX9j-Gg!85(63eCv)GJfpaXBuS(Sz4uGqafEeK1F$`hDMn z6qLxTg1LfMuJcTZSLy?ir{Cgw4>m(!3of)S*@=#s-^^f%ernlT|I7TxT-C2!Kr)Z< za;_E;$TyfwfNm%Gg`> z#J{Ob|0)) zr=U~)h+gDY2{uNxs~@*x9I&Ao*Qp@z7tH*%2}OC6&^+GhXuxoES2hRX^nVBhQM$Z# zk2Y}Xm+ijI6?$xD7Xy{f$UIGoX7rv;EKwwXcn{x|aq)GhEY#!-Pu)hMS*+^nbNWN^03&j<@ovC|%H zsD|c-l!&6z=iC_Hm*3Atl9?COxbf`;++qd-9=R@za5K8q-*yH@W{$Gpd=4Gmb_q~Q9SiVevDGh^xvY$)W1q`B^*F?Ov_V011|$Srk0l# z)^h0oJO{BNeZ?^Jhg{{m01wtElbaT3(Tf`JG&U)$0d-~ld6nTe zyt&3Q<&Ho-c_&kCs5Ec%zzVGClqXH>GpC*iGFDH2CyM~P%CLXv@Z&Cww2FRI<6tl; z+te5iTYC086I%DY2^))^^T$>H*Ykyz1Xs^@LT}snZWNb_XCL@>L3jDsz~(UiZq{$z zaV9n@nCZjfA=aig2>Z>_h7nxl-uWa9ZqI+e=QheM3K(i|Ap4~P265R7GXZ`gXQ!Ef z85u5UyCv{L9lf@Md=@o2V+Fyi8sid0!770{dxHul6K~La8zbfYY$1Rg1GLBi_>q`> z(E+riQg$~HL8N_?v7AO&OlvbURoNCi$+P$nd^c|>cPdB zag+-j0JfA5t@$TC5HmhU_8JIE!sR=O`ORBkO@YZ%Y|vye&i0Db%Y&7Hsy^@EG>;zD zdFbfFH6EVLz22p^4D|Ev;IQho?sJPN-FCOgG(FV!=FL~9cC7ciaUeQhmD~G}RlN4Z z(5T-XBicDP@wcxQd;Kl_{gHU8E$y~~V%5!vm!eDk}zKB;U_hNE*r zx@~5^y{#LE_V4vw?uJWeYF^upEq!M)am~eZKdmUv)>M@#&y3i1weEfQl_57`3J;ci zPFlXhe!tI;!y-w$!ZT@rZh*^d@Ut7?4BCX$ql>z%E^o)Kr zLDRqUfxhQ=DHb@co1oNnQl5@^JIGtBj6dnrm>!iE7N@M5_*GTxx&eD)8$O*qJuzzX zqtHK3T1+nJdSq6u`^&uUCw$F4oO`wS#DtUAPc>AI(0z{g-J$EVChJIOR@{>*_x@b^ zTjs8i=qmq>3!Ce{O?~nC*ycy^*47uMe0prn-nNA67Cke@8x;kBqpVf22Q95*VAm=$ zyyj`xNy#uGtvjd;=VniPcQ9uw>hj2|9b9omeWp_uxUw42!4F_-Tz<>^pfh*IPWl7i z?6NId!cOi??hgR|Mu0v909mL|L3`j=8RXmnUXY__(GfZtkYxAl2s$#c**?YnabYI5 zR^}X$e;f#8q~Szldv=0*q;2Azgq&!G+#?uvb7%BXH|WZn^9_Y#oHO^j16jXB9bm}U zkic^neGS*liP5%ccsOir1dSmyA}RB}u!NUd+ZX&vZ$u@>u~eiE{J!9dpALTD<#y_z znrm8XM?fG;CssuF>2^OKR9JpNU(b<3BC^+ygd?0je5dPXq>tPt(5|sY+%LxB{II^# zmA!nBX98HFB??8eFIbA42;_dkM0>|Xn9jvXH3P`@D2mUj88DXjvt|aY=lbg6Sw{4V zS&+;XRQx=c#PgTTgVtQm8s|ftfzIvduM}3oxj;Bg{^*>k!l}tLRWCAfIA}41k}+AG zxV2d|-V?VpXXa8zl$9tPmF#ng0H*Azx)xFz#O!A`)pTH@D-$7mRBWm+L!Xm@-_rP- z138H26RK?S@v6aB_F`j^Su24b!`awDEx3)jl*C@R1aE{Bfp;TT+8VX6P&kTx6N@_F`=swk;%XH~ZKZ<1S(bjVr@u+thV6 zJ8u)jajC(PC*xX__>?r@SLy7RX>iGl94EYMk!4j{;GV}}oFT(#<#Fgs`0+vFmoLG! z@DoP6K*k9eu4H%rVr}IcD|0*u?I@}j)4x5CM-Gr{8B?y&IpE6$q5POP+Lp`Zfs;N!?@!9RC7Wu9^e?hAzy@DdbfMZUlFDA!yKl|AzJwy80rf z+gyNPmOlQXfq&`+NS3okOSqO@lyTu3mj;F9fxm=xO&$!ED6BMBXpmz*bd|8q&WG_5 z(%XE9m5}BYz*q^Xz5vEaNC}r@q>q<4B!aioFGG|>uwv-F4plemB%qu99g?2$1d?Nu- zTPDLb`G$;Cegg(d1P9&ZNJ2RNxGBqAn_Dtmzuw}4BcS)ZEsOTn+cFULcVxQO8At*M z)4Q_sF#fJg{hhm9>;({`@5wA)y$3@iZb#gQ-ja0eyAP2PF2{11Bq41phoKTdy9!R1 z03xA+D@B1+T_FQ8`ho0#-+v&hbX_I%kyt!gDbv;FADAM6dh8#FkO<W7U^TCm4HY(4X|=LgJ*<_L&hVEqgvBqpDi?wrQ77v|Id!rs zZ}SS`B(7z>k~NCfuVp=W?`y8g1&dj4aJt*Rflzes1z1S52D}B0vQQ25oG0#dT!RUk z$q)>k*^7D6G`05@Prxff6y6a#QZDTFhW|3B%W)9c zV(YFa0U2fNL&f;<6 zI*Ak~wnKFvWiw)61J?IP0MLQ+o1rBQV8f~tf|JEOkL&<6(2l6Q0jzj)1dsJ6{Cq3- zy!$7xmpq@%JUg85nIjt~y^4;`9(AX8A8T@vvAK;bMV5NpUh1 zWk(_ot{SBDALsLRSAX+Ja3={-k>uTHnxP*kW0=qFyzmoFw+w8BNvIyV(9HCOnfuo>WC2(r*_`ztY;&}lqN z3$$0M5c(ObJE;2Q?5X&i=epvyDuUBtrjcObEU+{-z{*a1Sg&R7-p}xFh)CA;2P4@N z^P1`tpG+{gBXf=T1}A{ZU_%HgQ}2r41q@$1aX88O{+D^ajXbxVKmPk4*blx&b;?2& zUO-5b*>W+fnt3H5@{nkMW`?ydTuNB*TL>N?UwCQ!3kdvqR1}0K%NemAd@hMb=5DB% zx`KJ+$-HZD=AX-Q-Gk3HGvclZG7czqbyG3DYoX9Uf0Sgd@M2Uupw{^91FxUh$GfdY zac={9V5#sC$CI_szn75Bx8RM8Ob3ZNHa!(7xZ+*VWGjU$`_hrRHJ%Fz_n zTNIp#O{~ZbD@A9CMrJuv&N<2q#TLw41+{=usETb2Q>nn@h~kceo4k73sxaSAdO;bo zJRy!8X_}kee+$L!JxhhZXNqvv8_T{_897M8*;b7W?8)X0v@*sZ>#ZJqMww9%a28Ny xE_k9kwL&t|g_k1~hdqS2kz?+$civa}0S22c9hdqS2kz?+$civa}IE&dfYkxz$Rz3E_zX4Aomj#4aOp?C|h5KwsIya}vevB^ek zRxrWI#ccZ_f@bWdFu~15>>-R0(Ni4ea8VASM9@RT3MRO@QzV=bBKkzso*Afja=(}iM8HkV U4OL*hm@le;ytoHgAWK{g0K3UI5dZ)H delta 186 zcmbQBKS7@_z?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O z6bp8cLLlC_c!m%QNb_WSVSAY1n+a diff --git a/examples/zips/databasemigration.zip b/examples/zips/databasemigration.zip index 10f4213e9aeacb7338c156e4f7d4fd5307949486..ad284dfd819e14ca70aca23769ed228881e869a9 100644 GIT binary patch delta 291 zcmew@^IL{5z?+$civa}0S22c9WxE-K0y!Uz$~z;Q@B~2X%`zr=~WI(xTq*+2qQ!^m&*jxfMZxO{Q|j|Zx{-8>i`Lx(=%TA`)mz|twFU0~DiZuoc0fjeCU(E;>o9xD9 z2ou~~$26S@A}Yyh0TZ1Z!MYD3D8*(57Yt|H1rZcwha0-tpFI?6>Ix1EW}r2bS8~cg hlreKUq6(yQ+M^1brHCy%Y;rDApJ(1QgyleKjLkY_c1Z zAxv;{9n*9sh^Qp11x$2u1nWMCpcI=KTriw%7er8$9d77mfA&zQsVg`vn1R+zUdbr~ hQO3;ah$@iIX^$#!lG6=Uz=+EQRbVC;#EiRKY5>S%T@e5P diff --git a/examples/zips/dataflow.zip b/examples/zips/dataflow.zip index d36c2349d8e0f1ffb3b93b5028fbfd75d1aab475..6d6c2539d6890e405a4bbf9e703e8490c485a573 100644 GIT binary patch delta 164 zcmbOvGf9Roz?+$civa}0S22c9Rlt?k8C764uN_$64X+vi D`I|G@ delta 164 zcmbOvGf9Roz?+$civa}IE&dfYkx!jnz3E_zX4AomHc~8Lp(s7D5Kwqye;y}TY%(L4 zDNJy(E!Q51;9o8SnBZm;?l4A(XdjO$Gf?m3ZeAIPz%w2jQ~_6BXH9 Dese!T diff --git a/examples/zips/dataintegration.zip b/examples/zips/dataintegration.zip index 574ff9a8c338afc2b4f77bdc0dba4d38bb07c769..7656af29785986315c3b7b3164725573241ee3fb 100644 GIT binary patch delta 432 zcmcbtaan^ez?+$civa}0S22c9OlA8~41~Edcl;Czmwh|&(#~lh+dW(A=)btuY zADAf6^j{FAXZdZIfgYP2ASeS7&=GJ(6__O81r-pRd`^fBqUyhZAF8SX!9-MnFM^S% d0tG^@nC9FN@<&zWC7g^Za6vcoiGjg^hk?Ov@*&Qi9tN*-D6D9d{^P=`HSgP}6Jp zd|;wL(|5KwsI0)9rY*yPQO zMliw6Zy3KrMV~WU!bB&lv+Rc`eZ^t|6WpxI8U|Hb&t}OCG;#87HW`Sr+iaew0`BY% Tr~<3l-BATZIGn%&ksN9O#AQ&I diff --git a/examples/zips/datasafe.zip b/examples/zips/datasafe.zip index 3ae35b9033c6137e665e797b9c30e53cae0c6240..ae5376cd71c6195908f0fd88220da451391f581a 100644 GIT binary patch delta 3833 zcmZ{mX;4#F6vq<+L_%27K!E_#gcLChk5r;c`T`o&tR?bl8j`rf-YH@WW#ANX+jo&P!Kf6l#+ z$-8!wckNuaWk~F0BKF7YvN*rTb%iv(YPKYyY8K269zEL}?YZNf8*PqN3iix-6ofv)WlxB-^Z9e>^_V!Dr%@>X$Q7+pi1jI^vWj@dFD+L>R$k?hyYjP`>RUHiTA?|`Ik>pH>wYz}OIb0LF^r7K$VO@K|t;SyqpTH^J zkBk$dwYlDfzjkW1w?#@+x zS*0~I3ndqW!r%=7r`#>u#PkjNm|Li^g_yOriO^v|to4#j#wxL`)B0#3>YISB6Km$7 zggM-4X3~2?^it9WQs!St$rz0;)_`A+r=>W&>RbzD5pL=-rr{C?xSHh6P)e9hL2k3@ zo~9fpbI`zO|1x-;=Cs88?xa}<;y#D7 za#Ka6;1%SIkx%}3BZx8PgdKNjM*B4uakieu?TJ`tCTG2H4BFgmlCn0p9i#UT2ScdA zMTqY;SZ~V}!`?T)R&PUhy8|pXI6`89vrwbF!1`p(6hx6OIrkNnHRVP@pJ)+x6k4}y zyikJQAJ(37)8Rw=YL*CFR%8t`6g?%I7Aq{Rzc`Dy@n^9oM#rUr&}ftkmI76^+i3l; zd}`F;n1=@vgz_;5cM$o(g9Bp0TOR{WM^?h(&|Bbo&`}sa{y{Z~*M2xbhK0T$)GFyp z(F4h@fT`5-xmzep7OL(yl@QejrV*@~s%F2u9A zuCz{~sgxu8=JUa5u) zHU6Z+>6%Y)wuIU!_CFH%r^62wHBg()9Xubz2hMdSni#4}r3uIS0-88hpF$Ha>+@-% zq#=nWW*bmiQb&Aa9!=b6tfn=xnsR93PSa7EC_J{FCThe3hdZS>-Yk)g6z%+=;_po5f!NV*3n@f^&O!pw%NdbUbE%>yk=kY zr_(yQXNqVYc02w)!`qIy0p4~5G^^l;fi<+2-yrX@ur+-#$g4?wmRA!?!C4+P$EW7I zRZwv*gwFWQx!rX28_)9|l8N)Yhs5tfCauwRVLz?mIkbx=`i5F*B5oM%BAMCPFuHVP zT@)kRX^pm#3R;7`?@^0U5LrY-L?DW2qexs@A&3-)mVFgOB^(f3 zSb`&kPQ{Ma={Qa+PO;W$ZM7YB>Szb2U#z9tes#*w_ujp^;l3w);KSv2{^y+kIrly$ zZre@Vwv%tkl-Nr}?9b%+*Lt&jnbWeSo5dkbH^JiIVcz0s&mHerzu;J{V9#7aK8liy zMWR?ck!Ta#5A!tF`1XhcIF6CH5-JWBbHOn0wE~jroMicV&LW9TT`gy2eh8>vo5V=W zIK$8BDi~>zGOVu@ldO<~WQQFRnv2tdzsb!toUerbe8VAwWOs7}oPEqGdSUIjBq!7m ztDmu?6Qhru(-)##n-6}ix$%N&^SPr)l*hIS{_##dQg3LLBCA-5D^h!0;&oZ-LJ5@Z zT~{M1%{LiO5ikBk_G96Nlii92zobYjXiegkQN%E zT^C!Seaq4K*r8rt{y83MnkE=#!`uZ`BFX76TX+89Gq@&p>BA#s!n$@x+Kj&(IgV4j zADtjXZ$#&k7QADwVdaOh8y2G6ij+K+~ zFPQ03!fx=kmdn=hbmJ`6yPFk3I<()Mi>sR})j~wCzcqxq%+uL>NkrI|3pip*7pg2b zmYK>c1g{`xjBMhkt3ix0$LzREGt#HEinH}JY)!&C)46MeV+hR4At`I}+A(_XP%wn+ zU4{4_z3sMK)bDxoYxOpCw>!Xmy(1(QxCk}M3T#i-bU_U1l5<~CQC(&f^obU6d!cQ+ z#tJ3){bB7XGaWj(w|bGVB?eoV-tdHMTD-8dzM^d6#$QFA7#(v8fCi&XuoS4OT}Io7 zmfg~h^r3|=aZ;3pQT;VJ+`+Q}eBe@RqKU!UG@5X%E1-#{x>TBYQMZjI zitCeU;!ZtEOX^tLkWUj=8>(oH?8aQ0xYc-sCJLL@(8RT-^)%t%oK6!R&4n~ESgQt2 z%L_AZY!cGLwgEMeAkYAAx7zrZlZ~c zM~$>b!jKxWJ3?scYzK0W=qNffX`;T9R|{*!(qlX;N{;b{KiQ)ONmm4|rSIB9*Yvnc zPZPPvtLcMR$9c2LKf&9ouTSu{%FwQcoRgun&d^DoVJ|Iei0EEMQy+I{a|gtZ+3pQA zvCYgQSUdhO^X!P~5!kVj*6{&k1=*cp(9x+C!)j3XuBO92>OD+TY_kD=^t{*|4Au z)lhyWjL!J&nO$`C>(BBYlJT>=hs5_>7Ol~BZXd1TIk=N1dIwu+B4G&aBAMCf5V~|^ zT@=GxX^pnwa$1AE?=d61``$6Km!{k-y!&2h;kozHvX0KQb(FW5tiQjH^88(X9_cin G5BeX}23eN? diff --git a/examples/zips/datascience.zip b/examples/zips/datascience.zip index 0e707c1173434ccc1a953aeb854d6ef3967a4f5b..21b7b2928f23be9807984a5c780dc05c5494425d 100644 GIT binary patch delta 1101 zcmX^2m+9PJCcXe~W)?065D;I*7(S6ti`};DWQu*+$;pbcQY>JxSTnE~P#h$-xzX;Z99P@K?S81*K5zF#6^P#viYjn@M--+xAvsY45c`73kUvvk@s&zwULyG(2jbH&}4RJ~aSh9el$8 delta 1101 zcmX^2m+9PJCcXe~W)?065LmbPSJ*^8Eq3*$gDIL#2PZ4aO0j^&V$Hx}Kyi@R=2{yS zX>k#t1`e>6a-Usti-A0TMg|7u$s02yCg*Jv;NoOp2AKoaBePc!WDdv<7=S2r*v`ij z8Uj^{Y~^HoSr>eE_S;lWs$*hcc*M@YpbfSYXp~59eoAVNUP&6U~$ahKo{#z`7L14}_ zd0mF|&&oTw|~(R0C2ZeNI?rYR<;MP$kd6pb55lLoVlJfjzv) zwrk`CLVZ|U0uL1=H`$ik!z_g+1Xx&|o}`ClF(lbcmYWQBBRt(8`(gPy6PR(EAFaF1 z4DrLkO}22+(UOU7!MDlLPiaoo>C&4OP_=bOGM& zL73W_w)>%K`@G!~RUm#xD5}8q9Z{I(gzSvL6ui9C5mV57mpiI?3wL2r#k$)AU6s`2 yuHEXG=3UwCgDL2|2hGvD_xPfkr@hw(RiJAx%toY8{kqo))9|Q$-eAEM`_ur0%DaC6 diff --git a/examples/zips/devops.zip b/examples/zips/devops.zip index c9b346def91e0c34626827154a7487b15ee63c1b..2cc48c6a802a54e9f37a1467452c2c7f3004fba7 100644 GIT binary patch delta 2908 zcmZvdZA?>F7{_l*Tcx2bqf$uM1{l+=%V0=1W#O%CLLKiaRY0IHm{o^V3^E{5p;B62 z3WdW!#*0NHCeAob$Cm8n!xEbXl1a>xnJwFZ5tr-}#;8kXl-+yJIk)%R(xmr3MGC9$%!AWR~sm`}`g(UD>0&TW~kiw)VWi^JX>pjIZ6uyXnCpsa<`O%p58 z^zA2Z5vzeNakh{H55##G^rwbJBeFn}8$vEf3ORDSR3=g~)@*6)4_MY|fZZ7>52wPm zs1cl$nL|?kBCFz3zPl|o43=q^r*rCUxmNYO9362Bo zRKteo%KXjh4&>A&jt8okI9}eDn5GozQ{9x5qRz)sR2oQ#SJRLdcw*F?*|iw06q)Ia zSOuH9Z=m?SJ{gPtNBR;p)ZDnVpcA`2)-5@s^-h znBbk11}=dw9{O%~Z?z+%@fkw-IQ}6+Dui=GzbZoS)Mt$`A#bO$KmlMgoe= zdN65=;NqW|1L#QIDXPaRu%7a=g*w(A{nbyOly&-B3}(${pd5?f6$;)gnHOHjRhb5O z?P{PLe-&)D@XrIR{&1-S`}kK%6VdEsmKt95knFWMIWqciC%Qco6-PqI=*l*Z9IbSr z&BayMajL6&6HTQ5}LHGg$wuA<)fs3)|c=|w)x{fFQh-FS9w4RmNVg) z<})1l*8R3}Y!w{#N_$yIczMSe4EpbNsE|>vDjw8!>4i@dY@^^Dd;^%L=!Q^DQAaiu`jGI{QA`pWZY}7#h{7;+|6&UGtTl){a|aJB7jR2=Sl!(Bw?u=XA$ zg+F>xwKzvkUk2&o>&qjBwLvXN>=%T&`p=M5&9oNm8Q4#{%?_L(g(OcS8TOs$W0J@p zY$1uYK|u@FA%XSdp;KgzZZFD#n|yir6Ef+-a4Q*7JaT~~9*$IyL?dV-iRZvZ60T81 zVB6SFn@QpZ7VyGMV}hgc)0mfZ=^RHB!%0<_07(QceMGtxP4tk$(+N8%xIaSzu0uOn zPZGXK2NW=oJ5@~*fhjaXOw>$&ND}MQg6-R91iie#0?y&NTu$cL?yDh%UZ3Cu#m-id t#Q3aW`^i_1K?1ulXZ79{!CB3i>m;d_xl%Im!K;F^x_TA91)1}^{s*#8_{{(S delta 2908 zcmZvddrVVT9LH}JvX3I8U#3lO+W7H)YW%u55&h0(7G-?0%=JWe~ ze~)ucH5SLL&!x*AxG|%%0x=Wnk|j}0V_HUusb8=;Z)c* zHG-2eb4bcxWmR0tw|1n4!7}agbWXh~_e!9et9m;m{<`W2N6I3<6GJi(1>@N%!Eu1y zYS<86nZHHdftM|1Uu`#nW{(b(7^OikE$j2rftlYoB^33JnxgXPuJ*9t^MP=Fra)r2 zlwEA$H|I|urs=_5Aku1}(O3A`0Yej7%eACxo)K){kbI15e>uw_+P2LkV6rL{uM2vG z3EoU;`NsV|=NI&eGDLwElL6eAk$@tz z9!%OIxcH~$06J2)iW;yAYEOCDLLKW5{_dww$_D){2D4@}P>x0L3I(r~%nL8%noI+{ zb~R9rzYMlo`R4&vUuJP&AOET)5zS6!t>IM<$zH3IBcsbY(e0V2ct3=Uu59DT(MlKE zTwHZMr@E@Q&_w%cIh83NT20njLzC9Ga^c?ke3bOBh7umhHh=t=#q@{tDi2A)N+uk$ zd^(voCjU~Sl6O;X%;>hAOrh;4XSiTHi1zZN2~LK-am-%WYsu{esI0Hjd(~~T7ucA{ zp3f^6YNzcM&gVz_1bk9AH2UTh`lcs@vp4VdLV4Pc(4FVA_9qp6Gg zzn~qbL5f2T@hpdt`G)`rP8}3R9obOmL&9T6F-dH?wV>-F3d7Xhi=`x0+YNs&xb~A&udAM<6mArTt8I6q;&9iS?jkZrZSPT1 z__G&Pi*w}kWsokuzC2P`AJl@xenFV4{|rghOl!gZfrF&m?7#_9Nb)q1Vc&Z`B8mLL zR+3mB6tqw~B(Q!sbc)Q;?L|3olP?Z`LMB}t{+J9Y9=Sjg_eUy7q6svU#4}(c3D+nh zux;$8EhKRr3wU9sF~QOJdCW_?bdIBm;iRfdfFuH!J|ta=CVEKW@r0ce+@B!<*P)$k zAPL{30}7bPovJ2@z!VxGCTgZXAc>7>!S?Mlf?l3u0q5{sE+=#B^wp3;uTOA-VrQ#J tVtiJx{p2ghAc0+&vwG)>;H+lMb&}NToP|t$_^RNnu3d$1LFW9P{{bHmx9R`@ diff --git a/examples/zips/disaster_recovery.zip b/examples/zips/disaster_recovery.zip index 084410def131e17aa0bd9be67a8b7e61b4657a36..a907bc47868b5937bd46c3559e33461a3c28ebff 100644 GIT binary patch delta 959 zcmZ3Sy*QgMz?+$civa}0S22c9?+usP$^R9s-%~iAeLW)s!)6u+ z1{<*c_W~j?Rhzj4PclNRzAoeg7u6DGgPLd}8Uz>Z70rZ-{t^#^i-t>ZLPI4*+72c< zd8PD0h_QJx7GOb$k04^FW&B_YH!H|Kgc{1K;0P0)?5pq#qSRZ_9VWPWrs7Vh(l8ZB zFo6PZzRF^#sGGV6TrJ40VDD#1YB*X0z3&DLLKUF*iaa5FHnykurzV5tU5qbdaJfD-zX z9YvKUZ_p9o2@T<7V20|SxK4@%Y~-0Jc90MdZ`Nh3Wd;jQUdQ4K6P?V&`V%7fpEVdJ zxH*z-8L`nr%0TvSV#4Qir^Xb@bqS2PnU`b#_vE*dVu2@RDLX*-zc ztvt`{L_g>6{yioL=l*zmjvabnB1xtfTC>j54|*0fkypE zRDr+x@u&jz22rR2e+&{(1?mk`PzBhGe4qj-t|>KgLsfUrCejQ{`u diff --git a/examples/zips/dns.zip b/examples/zips/dns.zip index 9b9a220f06d79ed950116461f5407ebf76a634e0..7625453d377e960516d87cb8fc9e9757696d522e 100644 GIT binary patch delta 989 zcmbOoH#?3mz?+$civa}0S22c9&6;G()Gs(`JA6RN->jS#2+lGT!$R;a4VG|{ZSrRj>P z%}L7wQ*f>pnpQ^b093WEY+!UmP=Go0UFegC6M_Shn)tnYxG!<`j(SjpF Q56#e>dX``_zUrv~09*<`y8r+H delta 989 zcmbOoH#?3mz?+$civa}IE&dfYkxxlgz3E_zCJ>iaa5FHnykurzV5tU5qbUs4WQQu8 zJYPUc5Tx0*Gk`UdiGg7SCj*1rLvxHuV@K?;F*9&I`5jQBUns!U zPF7R=2JxDL5+Z;RLD{SfkD|%Dly^dumaAyPORE!#_^PJ{001a~Q2+n{ diff --git a/examples/zips/em_warehouse.zip b/examples/zips/em_warehouse.zip index cdfcee37e3ff30e7298c73d203ef3e06b65b1bd3..42cca48d7899b8d926c3ffaf7d8892a274cbf3b5 100644 GIT binary patch delta 164 zcmew%^h1a*z?+$civa}0S22c9Sq9${s_eRO z(MWcGsOTCFeYof&jvAUy?c`~^7a&f^;xl3f zI)Cy(ei?|sem)CS0V#e*RDn8v2ULNF{8p#}b^_L@0&@gxQ3d`8*q{nT3!)jiPtX#q I;+LQr0E#$;%K!iX delta 419 zcmZ3WvOt9|z?+$civa}IE&dfYkxxZcz3E_zCJ>iaa5FHnykurzV5tU5gA|GYX%2|O za4mL_LLlDQ@r02Dqk9IBKAxNnCnx(dk?bP*G_fxMiC|czB?qDZJV+wUejuUVu0ui_eG| z=={kC`DGvi`}r(T1*G^LQ3dMw9Z&@x@>`(_*a=vp3d|9(MHToXV1p_UEr@35K0!;c IieG|i0EFS9PXGV_ diff --git a/examples/zips/events.zip b/examples/zips/events.zip index efb9581c44ee3364401455da83ea0f843c7757c9..26f5e56f8cef46365af84a325911e405459a0d3d 100644 GIT binary patch delta 164 zcmeC@>*wPO@MdP=VgLd0RgB>i`Bd3$%TA`)mz|twCB*_3iqHWI0fjeqH!*?5CJQnf z!vrULGw*^3awv7L={-YW&;*@$)*MX Dj`A{y delta 164 zcmeC@>*wPO@MdP=VgP}4i+_bprHCl@tqDC_)D;1Qg!b-NXbIn=Hs| z3=^E}&AbaD$jPDy6Wnaa637SgNw!pazI5hgj`^vlQ#=J zhZs9g7~zEv!dsw9SBP4}lx}_{D#Qd?>1G@2Gm8Fy3_i)Fk~1q5ZIQ3d*C15gE+Q@Z(;s1Ora?Ia0vxS*ZHK8VsuQkKlXfSUYKMh0SFjFdmB zz&WWXQ~_`4NK}F2(r8*NW!zC!ESB*`6%dq-MiuCn4L}uOl5;{8NSAX#6*wmsgeu@H UkLIxb@}8(Fv=v;z0>uhy07cjF^8f$< diff --git a/examples/zips/functions.zip b/examples/zips/functions.zip index b9c857736459bc1aa15b3b7c9db49c9e802eb77f..2f94a5d72c869b2872cb99e3cd125cad9c1bdee0 100644 GIT binary patch delta 203 zcmbO%Jz1JBz?+$civa}0S22c9%|G8~Z1>$*J TPz8?h*rN()@H&A7a(UGNcz8k7 delta 203 zcmbO%Jz1JBz?+$civa}IE&dfYkxzqNz3E_zX4Aomwo)u$p=f=u5KwsIL^D>f*yPi! zW-!6Y9BjKGg2&kmVS=0gvjs3hM1wg@;G%sTBFqrcW!z@WKock5=azv8{O7hs6^Q3? UK@~X0V~;AJ!RrJT$mLZ70OHwD761SM diff --git a/examples/zips/fusionapps.zip b/examples/zips/fusionapps.zip index c795c851c9514e886b1ced45b1ccb96fbe18150e..43fb870385b129bf800b1fc36709c6ab49ae1b01 100644 GIT binary patch delta 1050 zcmcZ;ewm4dCBrx*D`A86GfpjGK$s}@MIP0nL;gy{!br?vS38_YUxS+mIo>ViC>A)E}% z2p>s7Y$)LD|g9-|`VCvTs zOo6G~JX7#FG%&IyO()BXuunc9%!;Yym2fOvi=T)!R7S`(^@iRzxHD*md+p$gP#xT0!#rV)gyB3iQuRmBHQe^eDoTG?nSv=UKOlxR;x z70}ReK+~crHF>FyDXOZ!I%o#xs{vK%LbSremO~HC*K74+P|eZNZwCu((^mrkiBeh% delta 1050 zcmcZ;eJl^pxMh7X?W&PQgxPmlMyS$1@_v{~^A#%L4tTGy z80vs&O6H)Lm|UnX0|~GXN(o?rMir<)vGN2|6>2IGs45n!)S;?yQjJAbaY(fbRYks9 z6sn3hYE7srCaQa)s`#rOhbmB~;fku|nMM$*ifGLuR23gI{ZUmUX=S6S&`LyAQKCH& zRX{_>0Zogh)a0c)rl_j^>Yy2%uLe}53(*P>TMj)mU$51RK{ZE5za1>FOP~m5B{f2uUdxu=@S3 zU?HHM&D@N$7{P**W7t(D`wMdOgobc3FvE?L;sfcpUhwk3A0`Hd6TFl6vr7S$iEu#` zfy{7W7Gs8(5yxf@GkNkHwmmR|P0(F1c`Lg$OyTD5>?KSPmHAwD7%DGuAsj2meG;nj zHLnp|zY1R<)C-mT<{+0(z9=XIG4L|K4_H7@7%Jc-5R9tgqoCB}O9C3Gs$>N{Q3W~$ kUD35Up{fWIf@pzTeMkt+YC~a&)o`~g7j^)f@k&??0ODtsPXGV_ delta 469 zcmbQBF+qbbz?+$civa}IE&dfYkx!Fdz3E_zX4Aom3q`mP5|i_}R3@Ud86B@$FzzjD|iVvjYdcn&Bf0!5;PVi3N&n^X2Cc*_( z1Tw>gS&SKCMjV?t%;d>)*!I8-HbHm6bAK_erSA z*Stn>{VIHcP%l*Sn}b|F`J$i<#K6n^K41YsVW@zUKrpI`kAhN@F9~R%s*)A-L>1^1 kbVb+ZgsLJ;2%-gU^&ufNs||%AR>R%0T-X6@#w%ep0PVH4tpET3 diff --git a/examples/zips/health_checks.zip b/examples/zips/health_checks.zip index 633483ca738e273b9617e5f6ef970b5f49cbdfbb..0ac81b90261a0368a6fd414cd10d5fb6e67fae50 100644 GIT binary patch delta 805 zcmez2^23EMz?+$civa}0S22c9QXLDL&bNb|;oE~tudvL9VxE-ik zeX;_t5LO-Gya*l3c-KL7>=Fa&;NqFwEg*uXix1>8-kp4|cbFI$W^qn75SN9j zj;hL5E(}xEHaRp^3i4P~GBCqUL1>w5$b!%_f#n>NAjo{M-B3bp@3n8i8SKwK88l7BLr zpd{ROHNkICvlK+EV4{-~MfO8HpdxAt6Wp928V2>&E-`mB>maJt#G~P=JH&aIA)+&+ ztU!@5`J=qp|p`vo$SM?4HMg3#~92A5xvS}zzkG1Ig?oiBA~%+hbqv?YzY=P%B%(e DC;lmW delta 147 zcmaFO{+gXHz?+$civa}IE&dfYkxxlgz3E_zCJ>iaa5FHnykurzV5tU5gA|GYX%2|O zPy=?5LLi>lvxfzwcd`$oHcV`D9b+&fMD!|?0W(n5 DP4F@a diff --git a/examples/zips/identity.zip b/examples/zips/identity.zip index b7292a38186a65807f20db2651688a680b862cf3..1d7c7ab7b15bc8776ddf06935fffcb15257e7e09 100644 GIT binary patch delta 1079 zcmX?5f1sW(z?+$civa}0S22c9w`g=JY;i6YL|1v{FukpIVL?=mZy?C};|Gz$syb zW%43QP_?e2Zg91eL^GkH|HVvUqLZz~cS9`uC9Ve(+^jEQ$_f$9khO)2u94+}8n8>w z051AbE)D90XhnqRB*g%z+Gk2eaJBNvHBiy{DsU%kzOBLoHQ}|IK3uJ$`g*A76-{55 z=wuD8XW-bn5X7Pq3XH8D4h9A-aBQ8imEz)LUNQ7r$c>p z+{6^*fXRubG7x3*ruL`;jizp>0r2Q~_gaJ5+%w=mKA@9Z*$7*r3_6 p&&C#2g`90Ps=ypuUsM4eJ2Z!7+o8GRj2)V1z3qL#X3Vlz0|4B1Vlw~$ delta 1079 zcmX?5f1sW(z?+$civa}IE&dfYkx!jnz3E_zX4AomHc~8Lp(sPJ5KwsIBwI#7kl6iG zZyDv77#Kv@7#Nf%8}f@z{>mr@Q?*%$$$|;2b+R7|T<_*KmU~dq40bDYOC}#@_k-(~ z;mBo#=KY_YWed!tVhS++56m5o&;kpc7nlqM#|%0jGo! zmdT4KLDjm7y1~^>63v8){ueWaiB7f_-wmYM&_?!PUwu*FZ(*tH7PG`L+rV)P&b+`f#<1>g%DRS2TTL zqLVeWo`GZQLJ*5eC@{8qI2ahTz_E44R*H+0ff*FjK)g9ZJ0Gh3v@YCZoAjKZf^G%~ zx7HdYG4g?uz~ToL{|^FFjU40Ti|i7U{cM#d%iFUdnL63R=r$x=#EtD>ZrU7UoDTKX zaT8OJ112Y$%0QIKo7$raG@81h3cP}=5aU9m*~va;9;oWJo5i3Cn3?;d3al^>Mir2= z2tyT^ZV`Ygz-5VMXs2Zeii$~A&M5rJX;wC<0!OX9Q3Z^x?N9}#pbLDpc0g4TVS{GN pJ{wz96>_%Gr~-3reNhE??9d#RZHMNLGj?d6^|to`n=#8?4FH=YtXBX4 diff --git a/examples/zips/identity_data_plane.zip b/examples/zips/identity_data_plane.zip index 46769088740f305ead98e21cd0a32ac65b7a5bab..5aaf1c26a51b20895e9e03f940c86a61c3aeb84a 100644 GIT binary patch delta 186 zcmbQkKZl<$z?+$civa}0S22c9;My-T*`b9B51{84HMj4!xGO35xvjqzzozonTuTpBH+Xp Uf-10+%@0*Ti`^3}P{ytX04mfpg#Z8m delta 186 zcmbQkKZl<$z?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O zR5x~zLLlC_se*|Gqq!WlYu06oS0y1rKA+sY)aPv;)w=59RRUGzk z(GMJtplYvi`@lstd4QIIO{n0vgNyFvUk+89Art@?-7hqOQxK%qDaTanBG5^XIT#pJ zKu(%$U&zD7$-oSC*5=7FubIFq16wQ2e*#sqa5FF%fmN=NmxUX6L0%YY`Ew;(nCN6} z0{4f=~r^6(}qW zMHP5i=#456UWDe3lSP53Dr}2gPz9D0qZukw5{#;1Qi&U?!0!?dRDrZowD7oH>V>Mp xqYO>O-ZD>A6`JL)r~(tq(fq<(5ss>&wgSx^FDk-NRU}rT3EZlLI841t4FFlasX71v delta 1260 zcmX^6h4JhcM!o=VW)?065LmbPSJ*^8eIxazgDILoTw1}+z{v8FnSp_&8Ym4?C<3H8 zzzXett-iaAiGiVulYv2hvY@-{#2zVjkWL`pxb^@O3&^y|h0KmH!Oc6F-?BhNS8>?G zML%#nf~vj7?E@FpqfbhEM=pbidF9PC<}bryNtQi$Etm=3rn@ z0Xb>1eIXAQCj&FoS(_)zyk-Kc3~a45{|Qvd!p*>71Xj65UKVcP1$kkp<$2KNkAqIvy%?u2RU~3x6Sorly(n3R! zTqU5NE(9^8+R+_u$VtaVj1bX$XIHrBZf94h(^%Xs;G)j%;ZU{nJgnfN_dPP9qCQ?O zaM9^r&!A!0=xYNLoqR!FX7dBze~{3Tf6r@c0gUwtz|a9l?c|0sapZ8+4Gdxiha)31 zgOCR!Fi8MatARbZHbf9+=;os#Nl*u9hnd4gGsE(r$>4SrJRmnKN1H=E78mCUSGz8* z11f5jgz#8(63pC($sTaE1}TzIwZ7>H(K+c*rz)SBajFj(<#E8op$>McOtuhQvuXA! zXsA5SwFRY@$$^D3kl=UD3qlpxk>`&ppq1~7DljWQ3ROV7zz0>Jtso9nfW6QiRiLmi z6jk75p*N~PcoCXAP8J2Cs<16~K^0h1jAp1zNieF4NhNNm0>4W96RgqYUCUC0~;xP3pH2?!1`4RvC diff --git a/examples/zips/integration.zip b/examples/zips/integration.zip index 87d9848fc41959ea101bae337e8dca45f10fa955..043dfbe94690f37568d7c3acd0625218d36b5208 100644 GIT binary patch delta 164 zcmcb@e}$hfz?+$civa}0S22c9A5>J2S#~nNIv-DH2&xSb|1IQ01jT*6 z87O*KC(jk&!}QYy0fZJl!APi6vE|L>I230E0CObJsQ~-yI>_riQTQAxS z)x#$4fowcDcs?mdPn!h{p6M(M3|8Ra`J<_T7Ce*xa>;CdDh~5lqogLXF_17gFA0zM z&1_Pypeg5zj3cJfC|QUzKmor}7M5~EHJhpRZE zs@SdKfvQ4HH40V5V%0=c0d+M?R4oZgQj_PZsi3NQq6Tp>+<_ofY3gXI)~cha64mfS zHK$D@6xFtW8V;x`5;f60d0I0JRfUUIEUFntw9HXe$Z4YmXT7#Rs)~==5JTbq$|Dc5VWJP(g$>FMMT$~Kd2){~!70Uj+d1oyn0|PTF z1A`q@p~~d*8k{i2KnU=z*A*eP${I`$~5fu0N zW}xU{ojg~757SQ<1Q1&I1S6qZvV|P5C>3&tyGTy>7*we|o9yHmQ2`t-vKK`JZoOzT zR1cfD2eR?t;Q6E+J#7{+c&4*3Fj#?u=Z~fWTJTK%%O$hsxS z)toksP*mIgX*i&&NYq60A*YQNob}rNs46~cLkxxcCrbz7 QFnBCJ(uo0Uanw}<0I-+cNB{r; diff --git a/examples/zips/kms.zip b/examples/zips/kms.zip index f576a26357842a675434399976bf6b13f60cbe98..9546e89db059f152dcee9de437768a138699394b 100644 GIT binary patch delta 574 zcmaE2{luCtz?+$civa}0S22c9iaa5FHnykurzV5tU5gA|GYX%2|O zP%U5W!C@8Zg1limcP22JB%s zgo}P*zXcV:YG7I+^hyho);ewmlc>JJtMeu6E4d~#Nhl;M|(}jsnzR&j%V!#o8 zgaP09VM-+hbzn+2`v^XP8ek%<2N%s0?qr6T@J$SE>}D zRnh`gph40SRp5@K9jbt>lo_hPG%0&jfge(6W`szi32cxyN7ce5V~r}1A%mvnh>R7g R3Po8PRDlLrh#C82)c{u++X4Up diff --git a/examples/zips/license_manager.zip b/examples/zips/license_manager.zip index 9fb9f31c8317d32f83de9cc1446a8ce25998866f..ab49b93abc8c50f4217371ce146f025c20e19089 100644 GIT binary patch delta 492 zcmcbsaaV&cz?+$civa}0S22c9qc zIcq;e(26YvE;yI%C`2%g9jlt zxH*hxGF0hXUQd|lWLv%!5T!5qY?y(*oIFuL1|s0W?}I9^o!=K#KwTgmRbZol7pj1q opdYG0zhD-sfQ%5Die4dCR25%^qEQ8kh22pF?h1#41iaa5FHnykurzV5tU5gA|GYX%2|O zL_2nnLLi>F>@W*R@8n!Ydzjef&5SjS5K&|1NSNs4$;>Apg7GXiaKS|^yC8xItPXI& z<*fY>K`XWxxZqs2qY%L~cDTyTYuTSbZJNqy4pX}MGG_o(RGr%wCOWyAdpg7bF&;~p z;N~!%$xx+lc|BpGlWqA{K$O1Zvtb7Ma`Hq08Hj)fzYnUwc79(}0d;|NRDq2GUZ?_c pf_|t1{eoGj0y08qDtd)nQB`~uibfSE7IsG!xGNkE7BCl40|4?*!a@K5 diff --git a/examples/zips/limits.zip b/examples/zips/limits.zip index 027f9223b66fea7e47e70427da7d3724b84bf188..bf030972d6a791f899a59d3ba5ee1f7230c6e2af 100644 GIT binary patch delta 202 zcmca5d`p-wz?+$civa}0S22c9;JKTrSw delta 202 zcmca5d`p-wz?+$civa}IE&dfYkx!Lfz3E_zX4AomR#Gfrp$KEJ5KwsHq@7@)$^MLb zFtN=ojQ)%e(d$e)a8WL152$Dui!NNWi=~JetacKIF*DG>$+I|QAbP_%98m>!aoC^= SNOD@C3Y2kLg9Wy5ssR8xDNT|9 diff --git a/examples/zips/load_balancer.zip b/examples/zips/load_balancer.zip index e2c41fed9feeb7c5b15fc3b9c88ce1ace6a00dac..427121d095e6c3fd5abb8d8ef0eb57b1c6fa56e9 100644 GIT binary patch delta 332 zcmexr^wo$jz?+$civa}0S22c9{63^#ksjS8JIy@fq3&g#t=rZ=E>if%#jQP>)vSg?cq;m28JRY z1_phgZrRBS%p8-`B>0g{n9D580x@9=y9tsB5HVg3JD8g`2XR>OK}08rS%F+I`GJHC tMBuHM2dY4XxHD8hj0@rE$@|1zQPrtQ1YuJ*TfzxN-6TmLFyCKN4FLPwW^e!i delta 332 zcmexr^wo$jz?+$civa}IE&dfYkxz$Rz3E_zX4Aomj#4aOp?E8>5KwsHf_;J@q4S;% zT~>??3|34G3<{GEvP(_w73b#SWMBqq1>()~7(*DrnkRo_GDk8Htb3!`w}(HO85oLq z7#Q?{x@9LTFmp^!li)`-VJ@>U3&eyi>?TMiK*V@C>|k!%9K>P82N9hhW(9J=h zbsWZU(H$I&aD!|xtd!$+hO5lre$NcCGMe8ME;^n67F2(!kP}=#)Vq`K2zg+Lc?yTZ zbWdC;wt2U(H7mr}UlLI;iOtcHGEifyr5)f#z`XT9It;GTRwj^95EQm+Ki>bj3>fqR zj0_B_lOM23P2MRh3{y7wvg`qfEz{*7UIN7m%)I|{F))RjljLu(KvdePSYX&ZTg45o z@`Va4=-#T?VWNCw(+O}oOW13BHzvxRn>JnG&gzM LyMt9swO0cG71@fD delta 1155 zcmdm8zq_6-ya*yi2B)~pa?e@R5aBsND&%0P{+mUe&}0rS=a=`grTTbV#cK~UJP{doW9GGNdP zFfuTxPJX~DHF>A3FihFx%d!U`woI3UcnK6MF!TP)#lRG9PLjXD0#RwFVu4}vY!x@S z$`>lIpnI!khoLe+JrJ&Pg*qS9%w5`up!=pB3XN@lU2_cmt921U|5bMpG&E)#Si()c zZ6FR6{bpnZiu%bDO~fWUSg=8yA8hOi6_kMp>^F|WRApllgsN(zNe-qe2U9OpRclRS zPz7|%95J;`FhkS!*DMfKTcNo#rnc+m0hoeb7Gaozhb@v(&GWR(z*Kd`(hpUYt5piB zz!@tKOl{`YXpUWNorS5&!p05Ntc5lqn5rafeNa`k+s2~`aN1!BiF`X(R8`mQ(A?y0 L?+#Wm)m{w%Cyv@{ diff --git a/examples/zips/logging.zip b/examples/zips/logging.zip index 8c5414e16422b2c27c04908d761371128cf20101..39fa48ff4e5b4c604195a81df71ee856b11780ab 100644 GIT binary patch delta 726 zcmccWcGZn9z?+$civa}0S22c9u~(W2EH-%! zlO2Y_$^6U_FqND0nEhBGN)K?DV=9&5^nxqR<=n;yQL4^ufT^^G+Xk+5KlekZ(j~km zaMAm`bD*O2{92d>oa2X>3iQBcRsnHlh+PW8`p8Q8KwcFT_`kxCiGg7`>*RwH;*$-S zStfTW3UP5VFoOaGq<^chH#7uT#31@XqE=$6P*DY8MbXTZ)Vz|+l1ly15U5V%;GDc& z!V2#49}*j&E?*;M2p4@KH32GGA!7ovdh&W18HlUT%UDAN#3uifV}l6l%KD(Hnj@Qr zsY+GO6;)NQTm+^n4tYCNRhjZ$r~=pIoiMdoD_Eeanx+6V2g#w|6>L#eg)4fX3LH{| asX)@Eqy!U$hC-7Pnzpw}_F!}LmDK<<>+;zE delta 726 zcmccWcGZn9z?+$civa}IE&dfYkxz|Xz3E_zX4ApRADN_Bz+#cQU@@Th#$IVAu-N1^ zOm-LwC-XB$z*KI|WA7^J`%maE>2hD$oO)Sp~$IA$BPU>mw`W19??Y;QtCkCI*J(tdkE)h)*_P zW|`cjD8$9dzzhl$kp8X0-p~+W5rgOliCT%NLPZsX6-6^sQu9hOODgq4L!dg5gLCqB z2`jkEe@JYAx_ph4Azbu{)C8z#g^UTv>dEV6WFW3SFJlcA5S#o@jtwHHE9--*YL09g zrYcoAS5#HKauJxSIOOe6Rb|S1p$c4+cf!U=-lzg!x!h0%;iaa5FHnykurzV5tU5gA|GYX%2|O zBqw%|LLlC_x`>$tqt2Xp5}O4~aPva8U`B}O4|arp wKMtsV6HZ%Zpe>W_xMd)!rf>$J3b1pOV diff --git a/examples/zips/management_dashboard.zip b/examples/zips/management_dashboard.zip index 4d2e5e5ee898dfa7a6e9934b2b5333c45e2d7e50..d6b35a34a053322df2e8e1a428350e34f4c72893 100644 GIT binary patch delta 264 zcmcbleMy@yz?+$civa}0S22c9E2z#Ik2#cTz)QR|`s`wz{g(?s$>H`*7BdP`f@;Ooj delta 264 zcmcbleMy@yz?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O zG%I$HLLlC_T$P;#qip&fvEH03PKe)$YqZzpv>)tD$v922o|`&tp)&wYEBCP delta 246 zcmew+{!N@Oz?+$civa}IE&dfYkxz?Vz3E_zX4Aom_EIchp;$Ax&@8CX4i~TxP~~Q3 zMr&rUy2(x~hH%j;mO3Vg=pQx=sOTyQ zc(82#At4EMl&BQK13^+tp=y82STh5IZ}LW28Hj@-WkXQ~F3Lut3i!%-q6+Mki$xW% zl=nduSRwC%D!{Lhi7GH#!5>wCS1}k>pjj~rMPQN=nlo~g0#Fo8zORJlm2hQiaa5FHnykurzV5tU5gA|GYX%2|O z1b23jLLlC_PKJpEqCj8-dg^5n~5cmyog1ev( zOmOoo!7Yq@AU~wADJSL3ssO)2CaS<}1%FflUd3Qkfo8=h6oE-fXwJw{3P4dX`MwgGSHhJc&X}jH F1^~lc`8ogq diff --git a/examples/zips/metering_computation.zip b/examples/zips/metering_computation.zip index 539ccba28363a37a6ed2bd5c69f263199befebfb..f4f5dba25b85761d55404d66610e1be4971caf95 100644 GIT binary patch delta 509 zcmcbmbW4dZz?+$civa}0S22c9W7AKGBD%OBm&gT0XCh-rTX+LCI$v+j>#W5RVIECVh3ph;?3NQN0 z2Gl1zvS?`$Z~SBv7H7DLbu3X#EFcpn-(hoviB48wKL`(}M-WQORk;&lXt#N>UvG7y1#yzWo|vB?wo*&u=*e152^cJg^)s#4<* h#1x#x?~f_SBLLG5w^eHLWC2}Fm5&7=Hk$~l0RTm`joAPI delta 509 zcmcbmbW4dZz?+$civa}IE&dfYkiaa5FHnykurzV5tU5qbi)-!Kr6e zTAY}ksvjD{$-s<9lL$~V2iSBTm+I52m>3wOIVOMLRGIimh#jO2h&OXH9$^v$IRNAk z7*L<=$fBi1yz!GwSe)S|*0Dq}v4BjRe22{uCOTP#{UAi}CA$qwaI+3a1S3SWgVPe9 z_Ypps{EX89u3wkSlNqAFiq{bo5|j7w%0L9}@w!6=#3oPRXM+fO@cE&t+R5jIsY;DM h5L0j#zdxoRj{r zfu$O#1Eg03NOM5+Zn6gJ1uEY7rHl!zd2$}JIZSZ!8sdM=?#Z`!WFP`Zxb49L*1S*wH6Bk?fk`~Bs9JvU*rBS3 R=50p%_C|s8C921vdjD%S&bk z29|1|4v=0EAk6{MyU7}?7pQpSmog@>=E-@?<}ks@Ynb;y1anvnh%<8XK^9Ax_RWl} z*I6L??{FHyMMb#+86l!s+~&+cyC>h`k%0&t;kE}0So1;!)Ob8m1t#&hqH6iYV~46D Rn%5mw;3%&HSb&314FH+}auWam diff --git a/examples/zips/mysql.zip b/examples/zips/mysql.zip index 595b65655a08b9abb087ae43f446c6a9eef7d36d..26d9f784a02861d75395988f61d9dbacc415cdd5 100644 GIT binary patch delta 522 zcmca>d)JmPz?+$civa}0S22c9 zP6lR#TOc-0?&GnAYq`X85NhXi0ZhkDejxyN-DV|0m_v?=nt=^~_z-HUf*8Wo6tRm? zQ!S;8Kn|F!C@TYTnWL=K4Wc oWLz*+U6%1iRplsag{f+uEX*lzv!o`=$Z27!%#?$ew_Q#R0JvAA3jhEB delta 522 zcmca>d)JmPz?+$civa}IE&dfYkxzwPz3E_zX4ApR1w0~LNHXC%NHS6^VAU&(!D2ui z8y|gR28&I;!=eon+|0*1p9Lbik<$n!I{6jnZiwJYE?t=5=DS=$j1bYIqVkhug?K_k zI2o7`Zh_c1xsS&duH_QXL8zV61uz{q`Go-7b(@t0VGcPeY6dm{;zOvZ3StOTQ^YPp zO|_IV0y$u^qO1(WWsb5^lUGP7Kn2An$IG!nBwkB7VhZ|8TVe{XmUh4tz6Rh6Tx6{f0rvM{H>&61idBd3L_GE)v>-gY@P0AqE=LjV8( diff --git a/examples/zips/network_firewall.zip b/examples/zips/network_firewall.zip index 4e297a4ad955aade5d2dcdc743e79d9d9928b659..47fa9e69a85d6f21614f3832fffd9c9f14a718e3 100644 GIT binary patch delta 355 zcmcbsd{>z-z?+$civa}0S22c9+n72p)`MinR*aKmQO0|7LR M5rQ#bb=w8i0MX51^Z)<= delta 355 zcmcbsd{>z-z?+$civa}IE&dfYkxyS$z3E_zCJ>iaa5FHnykurzV5tU5qbW>sz^70I zsDT4w;&FF&kcmLNS(Gt`nFVCc((LZU*)+MG z-4Cw+4*LT(i2eh7w#-1wCl~UIaUnc9S%KdVDl7w0H<3RSRe)2#8&#lOzzv&84+PLO NMhM1$)omA40|4Jab?N{B diff --git a/examples/zips/network_load_balancer.zip b/examples/zips/network_load_balancer.zip index 33ce45372ff48cfdc36d5e47dcb0a95b387da26d..5033dd06ba1fdcee02531c2df2f7032b2755f214 100644 GIT binary patch delta 313 zcmeA+?l$HN@MdP=VgLd0RgB>i`Ak%8%TA`)1952uHv=QfOJ)WJmTI6hn!8NCG27R7cE-8EDVsLNOVLz(lbysDRicaW;q;mv|1UqM72c7>Xn%GBCuJNCaSr MiA#Ee#Zo2J0KdCm0RR91 delta 313 zcmeA+?l$HN@MdP=VgP}4i+_bp7E6^>0|5DIa`ylL diff --git a/examples/zips/networking.zip b/examples/zips/networking.zip index 6e97f158cc0e5ca5e25892ced1c4d7fd54cf44f7..738a9be0b12dd76b007593cca75b3f400b153607 100644 GIT binary patch delta 2458 zcmZvcT}%^M6vwAusB|qf;-Uk@CC;uT+FBG!(cK-23axChs{;tS+ejd5nt);x+%;h- zlrIsn)5C|+7dO%1nrtFgV>W)rXf!59A52Vq(YP_GMv3~S?yjA=w|BTR^q~*u{?3_m z{{M4tY+4_i)>{HK24f~8{c_Lf8bnLcyze^iw(y;I!DGtFR8HW3BPT|3XPvS}IpcDz z97|;-th$#5IhcaiYe)#1wh;7!sYH*^*YjLj)H{C@LC5BMF)B83ahn;k%o*B@b>lvmX6ZV8ziGxvVcDhL7lyxhf=HsFo67}a;jSHph`efVJ%XAEr zfEgiAPUfpE1QV*u(|s-Vktokbamm~HKal9sf&wFIcU_^v4j1l2Y@9=bA*ZnhJGp9- ze};2lGgITnZTa#6MSE6}CrrNG*v^g` zfBGbGtL7rMGZG+t;$dI~W$-6J0RWpmWCp{CSp_R>|`YCt0wdiNT_|s6h<_VOnrIP` zr9|wf;s%&*E>q~}H=h9{jbP;f delta 2458 zcmZvce@s(X6vrR^0ZM0~5k(&mM|_(l+FBG!QL|E1Xl2E!k0PjRB#@aVpx8v62~t{q ziHLnY{4nmHEgNB5vSnC}F}f)+8WR(vf0&r~kH*EM8YSv~>eRk>Z|~#2NB`&_=YGz4 z=X}5C-q^GzHmx!G>a@CSM*RKt%R9edEXi6GnQ1MF%z#Uumo1;bCmkn*^XHthIw|97 zy%bAjB}^I5wNfwzZ&Z;G&~GQ`MSYnDp)a%SYSg`8D?vvWxG^d;b8)i)atxX3j17j( zB%{}0(3r&Lq`B~4DHPjT@I~1#8u*2bR-O{g0UsB&kpe+uPX_94Hm4#T1xxNfD0t1n z!HT?mRUxDJO?KSV@6a$zQ8pY5u_6Z}rrdOq#H48_p631HIuiBfnRJW9Y=5%-s}&gx zlYm*iKuUJj8VSbNR;K$}?jcbp8^tAW6@E*i%ZrM1sND_4GCNd!7_o5<4ThY?8tmn2 zN&X+46`PqFH*PMJ4k+4XZX)#0W>%jTr%H`-R@wUF);o9zk4-M{yKRYH<=L{7X9e@i z?EdjC-<1-|tOZjC3l4h@>80L2fj^L}Sg-EIzQ=cXe5JY zGmEMNI);fafuEe~;9#|EZh!R;I%x=EV`>q~q12iW{|_&N`K=V(+tU4jlUShc0?71odsTGi-O5Dg%rPlI3LUXv9Z ztnNVDMXi6JL#{m4k-mb~PI=%%ov*R5Z6W!tUkXhV#W;u^HK{wfbyR-La*zFnSM=(M z3h~*3C*6fe+>9^_w(hl3P>AASq^!_ z^=pKuiGpZ|4opY4(kb3S7S{Kc(bQ0H6CKFxQv@P?jWqE=89374OcQVWQ3_G7eE{`B zlzTAHAf*t(J6KQG_;>JoCBZ_=Nk#jYPa=Iu;mRRJ+Kr)&bm8JtF1m0Z4v-qjQ(l^A z8s1LVxHGJn*nL_NxOsXvol-TT2wWN2Llc!}6vTxyRdgR+z(Q$k4V@N_Da3vktEGun z0a;4Kek^RJiJCatTSAczg0WUOQBE`h2d~)J^AeL{;~j V&jXvfG=2+IbqD$F!2-+zY5U@@Th#0k5=LX-U% zbzx$gn-~KbA)?or3@~(0)?qe>E6rloV1_82#%7GE^c|ZOT&X_0KNCc06Q>rY(uGQc_Q#YN@5mnu9 WJ`Zf_()cY<)g9!w2MaI@r~v@y1&xaU diff --git a/examples/zips/notifications.zip b/examples/zips/notifications.zip index cbaa2cb87ddd0d6d654392d7837b6523bd5f5d3e..f6f7d26ab8da6c677e4ac450af39e1933391902b 100644 GIT binary patch delta 547 zcmexv{N0!@z?+$civa}0S22c9HuEy=WQ3?Z#q0+cm1pT^6a*Qm@s^?e5fcN$6%Gal{mCDMq$UT5@=o3_ z#>>UYzznh;h&TUb{lf$?<1dE`+zby+0jOvUw*y>sF}D`fzKcAja8X{~0H|mppAlFT z$y<|m@VUcPf?Ni%Yo>rLT=cF06V$H9LJ zE<~74mKJqKRo5yShAQw+GzL|mRxAir;1jw)y0{;ziW}n2PyrOn?Iavf)h(0=MHP^g P^hOnEmxQ?YqNExCb_}lk delta 547 zcmexv{N0!@z?+$civa}IE&dfYkxz$Rz3E_zX4Aomj#4aOp?E8>5KwsHf<0iN$q9^> z=*lMVWAuQj+sw(RGy`uQ4nOL##@H=M@$S1S2!3L^e2B1lA0VK$~$?# z7%vwm12f2aAm03!^$!!ojK3T%a5FqO1)!oa+zxQj#oSs@`!4dB!bN#`1E8Xbd`4hV zByUaL!RHQF333_4u9*V1aM8O0Oi;TX3qkw~a+k8O4peQhh!x1SlN%*uAeuLbct8cj zxDa7FSz6Q`Rb8uS7^=WO(HK;LTCpHhflufH>EeEHvT@vEni;`*pVeQlo diff --git a/examples/zips/object_storage.zip b/examples/zips/object_storage.zip index c5b00b801d98a59f91407a89d78a6156a67a0056..354e575283d4b3377305df0212322e6c762cf3a4 100644 GIT binary patch delta 725 zcmaFu`r4H*z?+$civa}0S22c9aE%h^;11;8dUNC(ASW zf-DagCj&E@Rg;f0`@rpzU@2vW*fo*e8YVjVGW&jr;4}_|;0=!D5W!|nU*h~Z`737% z%*@RRTun?6{m*#J;G)XBVNk!;@*zZb@!f)o&JeJGtGzC;87kT*WD6I)B(xYRS}9@& z7u_fF3M#rr3}Nm|vG*(xH{6l728GMyjS4al0V^3-RDne@?oa_SE<_wp=8+9XRo5gN ziz>h*7lkTNFXxFW@ER_FVsyBCG^)C*@iaa5FHnykurzV5tU5gA|GYX%2|O z1ao$fLLiyKR#=#KG1x7Ahw!3fm405pDfSh z3$i?1oD9rpR!u(2>;tz;f~AxhV%J1=YnbTd%k29hg3~wSeTnnuz#dhgQNRi;uunh@0Nds^rT_o{ delta 186 zcmaE&_(YK}z?+$civa}IE&dfYkxyAwz3E_zCJ>iaa5FHnykurzV5tU5gA|GYX%2|O zFfDeFLLlDQp25Qc(meSyk0DHOvNrEdh~Nue9hl%|X}&;4h-d-7Au~|#0!&Q1R=R;NQVX=XUPX5nw0HXact2c&rW40ie!p%Kw)llu+ z903?A8#uz@D(`W`LsdF*xnZbW!{rN8xrw_Js<4vB945GVJ5LByl%Ee`JvdAtUZ32? z7YSGSj4v9h(pA6(!=iNp5Dx)EX_Fv76U3Lo!d^%U1wo;yGQ;7WBO?QY8#4og&13~( z3*p?v%sjo4w9pVv24+y4fWrBfa4gg=Yf&4J=wwDI8Hky)MAN_m52c|3%3`^wDmIIS zp{mdkk3|(&BkqN&MN%RXRmD_^1XL9gl5waiW=f`_s!)^)K~*tBDjHQlOxhJyOPw^t n7Pwy+Wztbqbjt*xm@!Ef;!t>S)W}AlD46_RHXbYxDW?Vi#hdxd delta 761 zcmexw^WTOqz?+$civa}IE&dfYkx!3Zz3E_zX4Aom2Sm7#BoZSK5>hN+wfEw|LO}JK zT^Q{c!Ge?9m^{!GPX5f~4_E2QoDWsGhs6daI{81#0f_d)tlk*fjoE@=3ODz#RYSFN za|B?hY~TootGve%4^`>N<%Xeh4VN!W>3F42#wYKs*EtrA>nTOb}lR3wt3c6aE zErfFuGxPLH(n3Qx8JIzF0t)9_!m&`htVL}=qLUe=WFThF5={dOJd}nCD2wHys@NQo0NXDV6m?@cxszOmJ1XaZhsc2LIF=01^9W}x253al~^We%+7 Tr~iaa5FHnykurzV5tU5gA|GYX%2|O zP)&A_LLlDQ`ht-KqmHz?+$civa}0S22c9dZG#@Io*BLAXRJoa* zv6ls`Zt@IPbC~GlYpnYrf-~8SV1k=3u>~_iL^V0gnSq)oU*HhqLRdbznZpYzECW&Z Wfg=!AAcfNvRp1P#16Y8cOAP>O#zEBp delta 207 zcmdlgvQ>mHz?+$civa}IE&dfYkx!Fdz3E_zX4Aomc2X>0p%@#u(0r)SUT3fnP~~QJ z#$Fb%y2&$G&0(UGud(ij2+m|Pf(dTE#1_m55!K`{X9jAXe1SuZ3t{=>W)3f?una`q W2aZ5gffPLzT(;QhbvQ zBvrUL8JIyn2YKlOza6HR3?Pd6c|t>=N`Zj{50S}p1jFDi_$l}m>Vi+gE+A7UZx9ii zTp-B?aaN>A2vkr8B5*+@4T~z#1XNXbMC(umYQ=&uwS5u`MOBq0o`EXxRooX-TdG7f Zs;b8lC77zJB!f{^eUMB63xrFl0RX~Iyl(&i delta 590 zcmexs^4Ekfz?+$civa}IE&dfYkz3E_zX4Aom-cl@Jp-eZJ(BwKnsMwVVuozJ3 zW@E-RjDjGAU_+pU?Zk(=lVzDDFmz6iVlIGdy~wT=;Xs3M<9aTobH(V zzjH>xRBn#o;$em;&EU0%i>~91XM~6f^7|qi0CD9}-3}E-28MPf28O_i4^<}XOYu!M zkW}H~WMBsQ9OR`B{C1dLGJq)N=LrpgDg_1-JVYkX5e$R7;HThMs0%&`yMRocyg@{4 za)Bfp#95IdAy7dXh`d%6jfE0cm}G#S8-oVZK)E` ZsHz@Ilwhi=k_<*w^+7TPED$cG1^~`j;eh}E diff --git a/examples/zips/opsi.zip b/examples/zips/opsi.zip index 349eab24ed428c4d46761e48d0ced17654cc108e..583f499695826003c048dacb18cf2bb9d759f89e 100644 GIT binary patch delta 3181 zcmai$2~?9;7RSG=ia@|2w(vnf7DIptfxuuu_5qDR2_XxFW>^9uBLs#ZP>=$yoGPMy z0sbitc2D6y15>h6>_HWTM6_iZYmCt*LjX#-yT^ zY}`Ky8Y94w*apzx50Xd%gIy~CMo7ha1s+*W)GFLs6REdSOm`!?M<{U^f4oJmjs!e1 zRr#KUIik^QCB)F{sPE`#WgXQSAwRPY!jSehNqX{Ko3ls+?zC+fvXQ3HlUDXM2-)uF zt+Rp&$L;`i0W}3iK48cW$}CCC&CkhHc;)3Qvc2S)#fp@I%>2B9LNB4f1S05<0IpDb zpKK;ei3A8LG=U(-YrTz>JPWt$wbXjMN=zXf@u^CNSf+}kPIy=TkY%}9oN{USBT{-G z*CObL8JDQ!(b)F}<_KZyStH*%h6DEsZuc(2tFneRmjnyjvykmrK~XpRWQVI&7ymz^ zpS}V6A3U|)6cSWc96tRdFK$Mp6s%`8#vUij%`g7&zUdIN$vb9$rO*A!sJ*3o$2T>_ zqz)w-a828eKHsd`EAct;K8hdR5VC0 z3Wg~WOB)(IM!O%66p0vDTi*g%6LgL;?t{!4kMkL>JA^}Dw|~m*9OHalR5P+zR$cJ% zpC{rEyG6CGUhe`ec0-*$l)im`>k55dBCw)w4fWVZOvCT85q&5>akPaw?@+t^U3J&6 zNoV+(!~#cLwcDo;`!5Tf#^Kl@{^1I)!&TVtSyqdJL5YVmPPTIW?&p5fPwIbh@MFbD zz5A_qSM9mhAo_>j=wZqA+7p(P`>}0b71YRo++ann{b`BWITcvGE6{e%b>Ct4ty$caDZM0{+x*yHBaA#wZ&RX;-CdY*X9Egv|2 z?y?vD7t4ySp5%VlrRRm-JtwEWoO?1qINI~Yzh>6Za%$*i?BaC#I4gcR``5X&qQcc( zf>P<&-1Zxxzu#W2rn9FW?2%rVeCgp`UoqY$-aE9tlygej5HwtVotNKnjBIZ`!E>%F z`d}@u`#bLN8C!zO;3wgP*@=mDlYvJ+oC;hR&mX>-7(t-6;UmmzW+C63U5_?S7yC4o zaHAy;u1!APv8|0N^W7s4RrI#EUwW9_NvCz0F|xKeY>4H*iu-KM;tTihJ)aHZSM8{{ z!a6>C|JnuqpxMFlCu3#up4v0wL$%Y}m-?3aKfk+Z+Z-eaZdS;mdwN})7_$1_i#_)$ zZ`?cf>JYBDZr_o{)5PTtTXN~s>VdK=z6_j2-0Z6ZF6X8uewm#AyZ?j9=cD~0=oiqq zQ`wLmIP1j0^gY=*PuJnf-Oi>+-yfp;8c3tJ?|XW@!H&Fr64!ja!dI>viEGtuK4#-T zD^c}lwiyKZfF-&UsAgH~F&?uJ+32Z5kbS`{18J11bx5eej-*;1!q+Q|g-DU8{3F6KWJ`p$Q0kHL zbA%^CGPW@F{>fY7aN03(eyaz@|K(OcJsH5|BC#Hf4a1NNv1xiz_|_W;naB55zq}w# z{03kNw383?@db#{PP=nJ!aG=MEFlbQ3=pKFU2h2XqYYWY1gzVnP>QCcqB1P?n@EPH zs>BDelt*GTnrckU!cxvjiD;@NsS0ffmxLI*X|Ahrr@-Kn#DQuweN=Odq?u!?YTEI! zL(E#^jZ=NLS4}%XuNjC&qMDJWm(?87`ae!rHl&q?AWLW=ERqgxN&?Wi(2`;NWwqT8 z$dj4IX=x9*N44(n4$`EKtBsOadAH4|-HvL!Kqbe{1eL#oI>0_3plj1xhwaqwSZ{8Js^ zP5wVs4M*iU=C2X1!#S~p#NeYbTZ_=-ii~j@`-nIl|DHP)%F~=5$+Tg#N5djxN zU`X6YQek{a5VGt97E;|_t80tW%?k%K8O^vFMxEZ22IKoR05}_BX$&D-o2J7!H()2T zSFIZbW+ZVW9mdZ_srK+%!5t@q@!Phj79(^O(^TPM|3J2%>LM`ks-NJfvmM4dcQ%^5JEGX?_YTxUbsR=&4PR9V>ZfR*Wq3Rx4{&X%gYUsVI? j3rh%!L50?+_DFDB;ddo3nnYIjHbeDKqC$|3Nd4`9#HBvs delta 2064 zcmZvdZAep57{||E)O5CKE}fTUPGw`8I>nWS&Dw^p)beGz7tOY*OYP05pjK%mR8Umr zAu5U}6pDxlR#8#W`p}0Wh=`yldjA+C2t^ch?!D(6ce?Gv{qW!K|2+TaIp=OSUdpaM zm8n~s6v_<1f38jb@|{o@rkEvTEez|57Az^E(Hhx$$7uPtO(Maa#Id}_6%zYH z<1hi^i%lwQueaC!5LHzpM*T<*hR^-x~-TT zaa9mgJ~Pr4g%tmy`qgbsMbb@4azx~CkIpBhU^jrjbg7MXZ5 zgUwcn|90~tO3pN|#9^InP6>IbEka36doCu;zDj+6e)OH_YiLc#FEa6=J%-W3Isb~QgtzYS05+W+i5sk zO?px|AwbwX`XNIJfL8;+08{gHvM&vu>CS|!`wK{VvHtOXPVQbp>kmg$=Ok}P=wMQN zl>yY@R2BeHro)3|r;V+gh;oXXbpU>J>1Ru#m%;Gw50RDGTE;ToQl2!WU?_X6dg?}- z^P|l$p%ngcX;kIg*U|Li`83#V%TA`)mz|twE5!m9iq;1U0fjeCjAH?dP5#Vc z1{0iYz`6$__<_|BCb(IHEtnA^TF-9A4AeWhorHCtrQDbC|VyZ1QgylF^&Z+Hu*D) z8BB1p0qY)!;0IPinBZm&wqQnxXg#|bGf?m3dJY+gzzud=Q~?VP7gT}y9QI&=ha74E Dn@K-4 diff --git a/examples/zips/oracle_cloud_vmware_solution.zip b/examples/zips/oracle_cloud_vmware_solution.zip index e05a8c1b1b1065fbe5e5524277f854a8308a6d59..6442fd9f350695cd60803d183b1c66b47c83375e 100644 GIT binary patch delta 164 zcmeB{@0RBa@MdP=VgLd0RgB>i`K;M(%TA`)mz|s#AjJX}%5wq>0fjeiH|GM2P5#8? z2@{;`#C;GV$j;*e6WkoclgJ1W-OlUD4AeXM1D^~;K$$N9RbU!lII4gEe-Kz8m0t}2 DXniz{ delta 164 zcmeB{@0RBa@MdP=VgP}4i+_bprGXfD{W@D9;Hj1Qg!5-JA<7Hu)2m zCrog%6Zb)gAUlr>OmK4$Pa-2kbUUvnGf?m34}3BZ0cE}bRDo%H;iv)v{6S!WRDLx8 D?M6TJ diff --git a/examples/zips/oracle_content_experience.zip b/examples/zips/oracle_content_experience.zip index 5be7fd78980c4f6e7317b94e44e0be121da2e87f..1663d9f8b446d4022398ad46d974ce4d2e6458df 100644 GIT binary patch delta 164 zcmZ1_uu6b0z?+$civa}0S22c9ciQOM8z`~&h E09^DybN~PV diff --git a/examples/zips/oracle_digital_assistant.zip b/examples/zips/oracle_digital_assistant.zip index f5c9f9aac696343b5030a59abb2a963db3d04f9e..4ef40f43056bcac17abfb2dfca0b37f6f08724b2 100644 GIT binary patch delta 203 zcmca7eove)z?+$civa}0S22c9ku|_jOL`~Tp;i9$d>P!&P6`ZcjKoci_;FN&~2ypqJ3eAOHXW diff --git a/examples/zips/osmanagement.zip b/examples/zips/osmanagement.zip index 87cb0ef5cb6ccd065cd9e23edf45f0f7d04bd1db..3d3071ec6a215337f9ce9fd74ee662acb259cb43 100644 GIT binary patch delta 675 zcmbQ?GQ)*0z?+$civa}0S22c9b)R z1dB~hOU>yjievp$H~^hK`=8mPZ7S&$OrN{ zIB3AcK5>-W~d;+Q&JPK%z>r+TWRUxhzj%vn4#W=9QCq*>?hq4KC diff --git a/examples/zips/osp_gateway.zip b/examples/zips/osp_gateway.zip index 5e590b64bfe33358b90c5821b07ad64e04855964..03a29a21ab96ddac41c3ec9ca357716935b1cfee 100644 GIT binary patch delta 450 zcmca2eMOotz?+$civa}0S22c9 zfu$O#1Eg03NOM5+Zm|UG1uEY7C6@`Td2%YV1x#@A66XC7!E_dLBchDt%suWJ!pOi- z1GG_d;z5bYJuJMF^LRM9I2o8h1_1G94%R$Is6$mJU*O@=fXV^AfZx57FS5ZMyjhUF z2V%W=ESzQ_i5@Mb~w z9*8NE7jhWGT)g=x*Ac8>9j_Vys8^hv diff --git a/examples/zips/osub_billing_schedule.zip b/examples/zips/osub_billing_schedule.zip index e5250217b918ac363824ac312ae6e6daa6aa0b8b..6a5489888e7d49b1930a7486db422a251205eb2b 100644 GIT binary patch delta 186 zcmZ3%yMmW5z?+$civa}0S22c9||sCX`XDxiaa5FHnykurzV5tU5gA|GYX%2|O zbZd5yLLlC_vXhYoqiaa5FHnykurzV5tU5gA|GYX%2|O z0vC3WLLlC_yO@y$qi`3zKT%TA`)1952uHv=QfOJ)WJmTI6hNTCRj=71J7%EX$#Ym`AOd?> VT~P&8*nCh0CbPMN1@5w`0RTr&Lj?c; diff --git a/examples/zips/osub_usage.zip b/examples/zips/osub_usage.zip index c5d40f1d017ecb2d4edc2e33747ab3745b711337..c5ff1ab4f3e68c2e30e5075d8975a22bc60aae25 100644 GIT binary patch delta 164 zcmcc0dzF_jz?+$civa}0S22c9LR1QgylS&j)THhC+P zIZSZ!XQsUn!7a>2Fu~1lnIjk>qMoeg%s{=9eb{6m0*hJgPz6}nTu}vb*c`wD>)F%* Da~?B> delta 164 zcmcc0dzF_jz?+$civa}IE&dfYkx!Fdz3E_zX4Aomc2X>0p%??O5KwsIWH~0V*yOED z<}ks@pPBYT1h+67!2~zIWsYEkhj9xHxo8K^6F+o&nu~@-HW4LP=A)>EYwc(<&Y(7xYTy`xCQ}?i&!c`*lS8zJO zMfY=ZLG_>I(!tO#$88Q*iO_$CCl)U1z#9$KKcCMML;qjC5V*<+{&y@8_j`#LW2jst z5(QVuEb0L@(_hREE*isK!pO(SB*%;h@5y2k2F$>aoqSP7Y_ftR8^rib2|K8u3`F3R zge|5jEy)N>!KIQOn1TXQmZ;|CNLgU2IxgjmDX1&$hpKg+v=yeR-_ov_g2^)3s9HbD fxMQk{mQ6xc^+47UQ;i318+1`|9n164E=xkLf|SR_}{TW-0vk~jG=Oo zNEBQpv#1BuOn)&uxM&P_2_qjPlN>W5yeErE7%&4vcJf6TvB?UOY!Kr!CG4PrG7y1N z61JGCv?L=i1(!;CUbR6Mrl790AF9@Q(pH$NeoMPz3MR{BqiX#q fi`BYSG%TA`)1952uHv=QfOJ)WJmTI6hNTCRj=71;+ z*JcMP1mcaI9Ly{r&6B4x8^Hu8pJUzw5$t2pg$Zsx#1hB|5fx|Chlx)1Wvhn>USKnT z32tU*cY!MP=P+UhS~Gberwl~d5)Mlgfk~VWDE!IEoYtrU2RUs~1r)jLzye8JY5*J^ BP51x+ delta 262 zcmeAW?GWV)@MdP=VgP}4i+_bp%F5QsN+axk-iG*6z&Yy=aWe2#e!M6i!V7bdv*5KABoH7t)OE@f11SWAhpztRrb6TSc9OSe`6;R}|0}CW^sR01p Cq+b*O diff --git a/examples/zips/recovery.zip b/examples/zips/recovery.zip index f4aa6ccbb292225cd30f48a43638f1d98ec2976a..ce9568a293ad5e91238218f884b02aa7c5082493 100644 GIT binary patch delta 359 zcmbQKJX4u3z?+$civa}0S22c9Q<&)F?=1Tuf;(9aV1k=Jum(Yuy0IIokOktvvzq9Ov2<~JxfC+B?z#0Tq>c(ya7p-UKgo^fX7{W!5a3n%S zHMy+eqS;(4p`sEz0dUcLo&u=oV_s8cpi3toh2mdxfkp74V z3EEXm3=9W37#MUWH?Yb~u9Xnw;$&ckTC~|qUiaa5FHnykurzV5tU5gA|GYX%2|O zL|1l@LLlC__7DpTNb}@kRu7oq;zO)#5W!>IrZB+nmB1?BOK>Br zR1o%Hgjkd#;s>*6^FfgWsHm!#4an3ka{9j^WDEwk^XB7TTaW53Un}k0K Te}{xC3SU7o2E?CSFR2Cqs?CMR diff --git a/examples/zips/serviceManagerProxy.zip b/examples/zips/serviceManagerProxy.zip index be857be41707673fa64debc7a41a57308e486c1a..e19c962fd5c1c9b1238cbaaa7cbbf41dafc225fb 100644 GIT binary patch delta 186 zcmbQuJDZm;z?+$civa}0S22c91!4TW}x25daN=KWqz#g Tr~*4!{ZIuo**w7lrEF>dSP(Tr delta 186 zcmbQuJDZm;z?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O zR7-Y{LLlC_bUq^sNb_V5CI^_{8rLS2Wn1OmH>#@o}l=-o` UqYCU`^+OfVWb*_Il(MM-0Q+%3ssI20 diff --git a/examples/zips/service_catalog.zip b/examples/zips/service_catalog.zip index 6e5e93c99d46c350c57a3b8415cf4ff817c15706..9cba1e0f28581c87d98690bbc6908aa5b0eee6a4 100644 GIT binary patch delta 342 zcmeB`>y_gR@MdP=VgLd0RgB>i`Set6%TA`)1952uHv=QfOJ)WJmTI6hNTCRj=71~P55!GWghl}R020;xt#O44O zy_gR@MdP=VgP}4i+_bpmdQ6lrz?+$civa}0S22c9mdQ6lrz?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O zbZd5yLLlC_asw+1Nb}@aHYb?i)2x$A)|8 VJy8Yja|WOa1aWzT1r~6r0RWm)Lrwqy diff --git a/examples/zips/service_mesh.zip b/examples/zips/service_mesh.zip index 6c1d8f5688ea012008bfc7a93ce05afe8f5daf59..c8cdd0f023b7811fe068d3c2c00465e268431b7a 100644 GIT binary patch delta 585 zcmccPe#f0Jz?+$civa}0S22c9ajeWt%Rp9vEKgEQx3eSVqA6BPL;@8A}JtGmqY#{|)> z%4Z1^ot(ebPQC# zrYt;^Ca23bL6p9gwPXec+vJIIG7tezIagGHjdI?o0`l?!r~;GZ!%+oz6x>k-$`sI4 qd{FR2RS~0zX3Hr>CsY;sN`9yU3zR%i1-O+RPzCaoA%5AWtOfwlqrMja delta 585 zcmccPe#f0Jz?+$civa}IE&dfYkx!dlz3E_zX4Aom4pJ;&p*VA}5KwsHoJO$FWJN|> znAql2Mg?YwXeWykT=WvlS~fnA_L=_Pd?ri`49=XB_4#EcPf+Bayn|Z=uI@6o9}`5k zDxW1xbaE=+9;hI{Crog2DgQ|(L6DJKPSwQ90gaU9U|>+2Jb_zsa)yv7Tv>~d1=Pd? zA_!Nqh(2P382L)f1g=(9JP0aUE#UwcJtScTF=3Ll6-;olqqH|f{{(3xnBeA<(lJo| znzHavnw&1%1X21{){+?*Y?CL-$v^}=4b z$)@c4A^Lx?hhyq5;b?%V-29v4HdOyDZaYk+wmg1trIUDGL6tV}Tfjy4^M^7*?2-@+ zz%-y&un4Y{O=vyTfSn>vm`W8y!{AD5MVpueLBWC?cBa6vGw0P04dG;9MhZT#I(JT1 zLq{eChI4ET3_&1ulW!|4a6uJ!#RgOr cB1!?MD%zD&P*w0LN1&?cR4xSzFsi5l0QeK)g#Z8m delta 742 zcmZ4PvD||%z?+$civa}IE&dfYkx$=9z3E_zCJ>iaa5FHnykurzV5tU5qbdaJfD(F> z8#xRn&SztX>YOakBgFzX?NkI<3@E-?lhK?BEI2uZIRQiEpvf08! zC!4bGhv@&o9*(KMgrfnba`SJF+feZvhwG&mYPNu}eZQ z0Mme8!6LX)Hlg)U19plyVJcM+4TCGK6>VY?1O*Fn*qH*u&YV|2G=!6Z87cU{>fAY5 z4IP;n7|yXVFa&|rO}?$Hzy(zZ3eyJ?u~5q$rENjlCpSvVKpehMIuI-ns0bAhl}STY zF;6BBRfWFn0#t!dvfij#668`*RlJbvLsc=4B|`2`mbTBIF zU;)HHVLX!=-N*z!kdXrXr3L!%@Par1YV2ZjN4Np6&0j#{^SX@(l4uF@ z=2;HKuyAm)0862mlIP?GSHIiInFrk&Yt7XsE2MJspt%8_FD7UB!~HRNr@sj#96$O) zq7ucbfB?A4%?kspp~><=umh&6TtmX(u38jQ2vsT`VFF5NlMklIK&;7&umB5ujD!lD zjBrL3(2sOS6_^a!h#gNw TQ{j~6hw6^aX(?am*RFXV;Ad5FoK=+hgJQ^cc8QWvNABpgPqmD#4=efmWPXz zff*EFK)g9uQV`;ara8K)6M(9v*%=s=;i}iiaP#Yxq=kkcX*npp3hL~9Su2>Wn>WZV zf`(C;f*D+NvVti)#D!Aimlo*5!wcd7sIiO99pMJNHh%$)&+9fGNTMao zn`b!`!@|MI0xX4MN}iJ&T>Wk*XC8ECtTk7ktdPphgXRW!zL=ch5BJC9o&F|}aQx^G ziAof!0s`PFH!lpZh9=7g!48O$hQ~{4@G($HXG?yNZN3&KV!4|9q9;O`$R;U6`6VN>8 znHY>}%l^a&R4rCXXx1)C@<-JomK=tvr9Tia72JFz?+$civa}0S22c9ia72JFz?+$civa}IE&dfYkxzqNz3E_zX4Aomwo)u$p=f=u5KwsI#JS91vB^d( zW-!6Y`7FC3f_kimFu~1ftU-(r(LHQt%s{=9_pr-A1Vq_wQ3XobT~Gz?u-k(L7&OPSnZ3O9ddYJ{q+V6lLSPTtP452C%2)d@rU16EI%!p#P36;SPK*p1<$&)CCY z)^l1g1Kl%OpIeMe1n6`Qu;VAs=Cp?j%Rub;%jt(rT^?5`HsNPnZm8P*xdX7NJH#E1 OP1uIV5iH!mqXq!)mt}$g delta 346 zcmZ1`xlEETz?+$civa}IE&dfYkxz?Vz3E_zX4Aom_EIchp;$w(5KwsI)a8s|vB?fh z4(RG8FJ*FvDct;-sS&EOg2e(RI(a+GK8W^8RwoSY4_G~63O5_DRY0|`VK;`0K4TAq zS5unpKz>c3ho6{aDECaFUFQ*?ib$MK&*o2>PxuI(J=MKQ8?hto4 OHenkcN3d`Mj~W17Q+!eY diff --git a/examples/zips/vault_secret.zip b/examples/zips/vault_secret.zip index c756092ff8b838b4a90ab95285551d378acd7e17..02d6f17c5a44f5d373146119214cdc8d8f287258 100644 GIT binary patch delta 164 zcmaFP`<$0Az?+$civa}0S22c9@8#!I#ViFu~0VEWwNr(Q;N(W}x25>se(W0_Rz6PzChZoKXd)u-SnHuCl2C E03j7XBme*a diff --git a/examples/zips/visual_builder.zip b/examples/zips/visual_builder.zip index 8f71784f869ad3072f860ae40dc72fc48f6935e8..82b45fede7353213458d806e0f8f7ec43715e002 100644 GIT binary patch delta 186 zcmX@YcZ82Gz?+$civa}0S22c9iaa5FHnykurzV5tU5gA|GYX%2|O z1QT|ULLlBaJBNt{qFT0H$j{bN~PV diff --git a/examples/zips/vn_monitoring.zip b/examples/zips/vn_monitoring.zip index 298bd5d324ed03c5774cea5a5e7ca180bc1f772d..f5218c750ddd3a2e0a1c40c4add304eac84c6b9b 100644 GIT binary patch delta 322 zcmdljwOfiWz?+$civa}0S22c95KwsHf_;J@A+T~N zp*49So62M_Zf-7424*y^laDdF!SrqxW_rN{HgNKP7E`#WHESp%M05%p#2$#%V0)G< zuL^v@1hj~Ufk6jokH%yTb{>RQb{1xcR%b3NkkykLxMUy#3%ER>0%DW>c-SC<+}ysX es;ap|Pz645J7a2#;DMP1HT*D-KUkG0uNnZyaC2?| diff --git a/examples/zips/vulnerability_scanning_service.zip b/examples/zips/vulnerability_scanning_service.zip index 0fcb30e80e9e714d09afefce60fdd2e9ce408f10..3acac091c2969189e6c256bc858a3d417bb81637 100644 GIT binary patch delta 186 zcmZ1?v_yz6z?+$civa}0S22c9iaa5FHnykurzV5tU5gA|GYX%2|O z0vC3WLLlC_dp9!+Nb}?>7H^o~mbWDgZz?+$civa}0S22c9Jq0KFhKX#fBK delta 186 zcmX>mbWDgZz?+$civa}IE&dfYkiaa5FHnykurzV5tU5gA|GYX%2|O zG%I$HLLlC_+>C_HZZ}>hHSBn5Yb8Oj?6&4lN~u^AOhdm UJx~P_Is8!tE^~N+1r#{d0AP?o(EtDd diff --git a/examples/zips/web_app_firewall.zip b/examples/zips/web_app_firewall.zip index 2fdd1b0144f4c57efd0ddcf168e9a945c104dcda..ecdbb81f3e663efc633fcee713d80822cdf239a0 100644 GIT binary patch delta 186 zcmew-`cITEz?+$civa}0S22c9MFYIxQ5YaGBTV|l%$&6ew5P@x+ U9;gC}T;8Yx{akKffg4iaa5FHnykurzV5tU5gA|GYX%2|O zBrA51LLlC_n2C)Aq0e? znAqmOj9H8j(QM`rxacwF8exd2n|K&AQ19gV;xZ6{{o*O80&WuVr~)S>lE4DGl4<~k CEjJ D3~54& From 7a1c833c50ef470d30f2aec54e556e34c733e9ff Mon Sep 17 00:00:00 2001 From: Francis Chuang Date: Thu, 9 Mar 2023 14:32:10 +1100 Subject: [PATCH 25/25] Add oci_certificates_certificate_bundle and oci_certificates_certificate_authority_bundle data sources --- go.mod | 8 +- go.sum | 8 + internal/client/certificates_clients.go | 33 ++ ...cates_certificate_authority_bundle_test.go | 61 +++ .../certificates_certificate_bundle_test.go | 64 +++ internal/provider/register_datasource.go | 2 + ...ertificate_authority_bundle_data_source.go | 224 +++++++++++ ...ificates_certificate_bundle_data_source.go | 272 +++++++++++++ .../certificates/register_datasource.go | 11 + .../github.com/google/go-cmp/cmp/compare.go | 83 ++-- .../google/go-cmp/cmp/export_panic.go | 1 + .../google/go-cmp/cmp/export_unsafe.go | 1 + .../go-cmp/cmp/internal/diff/debug_disable.go | 1 + .../go-cmp/cmp/internal/diff/debug_enable.go | 1 + .../google/go-cmp/cmp/internal/diff/diff.go | 44 +- .../cmp/internal/flags/toolchain_legacy.go | 10 - .../cmp/internal/flags/toolchain_recent.go | 10 - .../google/go-cmp/cmp/internal/value/name.go | 7 + .../cmp/internal/value/pointer_purego.go | 1 + .../cmp/internal/value/pointer_unsafe.go | 1 + .../google/go-cmp/cmp/internal/value/zero.go | 48 --- .../github.com/google/go-cmp/cmp/options.go | 10 +- vendor/github.com/google/go-cmp/cmp/path.go | 22 +- .../google/go-cmp/cmp/report_compare.go | 13 +- .../google/go-cmp/cmp/report_reflect.go | 24 +- .../google/go-cmp/cmp/report_slices.go | 31 +- .../google/go-cmp/cmp/report_text.go | 1 + .../hashicorp/go-version/CHANGELOG.md | 20 + .../github.com/hashicorp/go-version/README.md | 2 +- .../hashicorp/go-version/constraint.go | 114 +++++- .../hashicorp/go-version/version.go | 23 +- .../hashicorp/terraform-json/LICENSE | 2 + .../hashicorp/terraform-json/README.md | 1 - .../hashicorp/terraform-json/config.go | 3 + .../hashicorp/terraform-json/metadata.go | 104 +++++ .../hashicorp/terraform-json/plan.go | 37 +- .../hashicorp/terraform-json/schemas.go | 60 ++- .../hashicorp/terraform-json/state.go | 50 ++- .../hashicorp/terraform-json/validate.go | 23 +- .../oci-go-sdk/v65/certificates/ca_bundle.go | 45 +++ .../certificate_authority_bundle.go | 74 ++++ ...ate_authority_bundle_version_collection.go | 39 ++ ...ficate_authority_bundle_version_summary.go | 72 ++++ .../v65/certificates/certificate_bundle.go | 237 +++++++++++ .../certificate_bundle_public_only.go | 145 +++++++ .../certificate_bundle_version_collection.go | 39 ++ .../certificate_bundle_version_summary.go | 72 ++++ .../certificate_bundle_with_private_key.go | 151 +++++++ .../v65/certificates/certificates_client.go | 377 ++++++++++++++++++ .../get_ca_bundle_request_response.go | 93 +++++ ...icate_authority_bundle_request_response.go | 159 ++++++++ ...get_certificate_bundle_request_response.go | 207 ++++++++++ ...hority_bundle_versions_request_response.go | 183 +++++++++ ...ficate_bundle_versions_request_response.go | 183 +++++++++ .../v65/certificates/revocation_reason.go | 80 ++++ .../v65/certificates/revocation_status.go | 45 +++ .../oci-go-sdk/v65/certificates/validity.go | 44 ++ .../v65/certificates/version_stage.go | 72 ++++ .../go-cty/cty/function/stdlib/collection.go | 2 +- .../zclconf/go-cty/cty/function/stdlib/csv.go | 13 +- .../go-cty/cty/function/stdlib/format.go | 2 + .../go-cty/cty/function/stdlib/number.go | 38 +- .../zclconf/go-cty/cty/primitive_type.go | 45 +++ .../zclconf/go-cty/cty/value_ops.go | 12 +- vendor/github.com/zclconf/go-cty/cty/walk.go | 35 +- vendor/modules.txt | 11 +- ...certificate_authority_bundle.html.markdown | 71 ++++ ...tificates_certificate_bundle.html.markdown | 82 ++++ 68 files changed, 3801 insertions(+), 258 deletions(-) create mode 100644 internal/client/certificates_clients.go create mode 100644 internal/integrationtest/certificates_certificate_authority_bundle_test.go create mode 100644 internal/integrationtest/certificates_certificate_bundle_test.go create mode 100644 internal/service/certificates/certificates_certificate_authority_bundle_data_source.go create mode 100644 internal/service/certificates/certificates_certificate_bundle_data_source.go create mode 100644 internal/service/certificates/register_datasource.go delete mode 100644 vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go delete mode 100644 vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go delete mode 100644 vendor/github.com/google/go-cmp/cmp/internal/value/zero.go create mode 100644 vendor/github.com/hashicorp/terraform-json/metadata.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_public_only.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_with_private_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificates_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_authority_bundle_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_certificate_bundle_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_authority_bundle_versions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/list_certificate_bundle_versions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_reason.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/validity.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/certificates/version_stage.go create mode 100644 website/docs/d/certificates_certificate_authority_bundle.html.markdown create mode 100644 website/docs/d/certificates_certificate_bundle.html.markdown diff --git a/go.mod b/go.mod index 5d490859750..5ff4e126ab1 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/gofrs/flock v0.8.1 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.4.2 // indirect - github.com/google/go-cmp v0.5.6 // indirect + github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/gax-go/v2 v2.0.5 // indirect github.com/hashicorp/errwrap v1.0.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect @@ -35,10 +35,10 @@ require ( github.com/hashicorp/go-plugin v1.4.1 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-uuid v1.0.1 // indirect - github.com/hashicorp/go-version v1.3.0 + github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/hcl/v2 v2.8.2 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-json v0.12.0 // indirect + github.com/hashicorp/terraform-json v0.15.0 // indirect github.com/hashicorp/terraform-plugin-go v0.3.0 // indirect github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect @@ -58,7 +58,7 @@ require ( github.com/sony/gobreaker v0.5.0 // indirect github.com/ulikunitz/xz v0.5.8 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect - github.com/zclconf/go-cty v1.8.4 // indirect + github.com/zclconf/go-cty v1.10.0 // indirect go.opencensus.io v0.22.4 // indirect golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect diff --git a/go.sum b/go.sum index a2f7ac5bb21..c38410b2ea6 100644 --- a/go.sum +++ b/go.sum @@ -149,6 +149,8 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0 h1:pMen7vLs8nvgEYhywH3KDWJIJTeEr2ULsVWHWYHQyBs= @@ -195,6 +197,8 @@ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw= github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hcl/v2 v2.3.0/go.mod h1:d+FwDBbOLvpAM3Z6J7gPj/VoAGkNe/gm352ZhjJ/Zv8= @@ -208,6 +212,8 @@ github.com/hashicorp/terraform-exec v0.14.0 h1:UQoUcxKTZZXhyyK68Cwn4mApT4mnFPmEX github.com/hashicorp/terraform-exec v0.14.0/go.mod h1:qrAASDq28KZiMPDnQ02sFS9udcqEkRly002EA2izXTA= github.com/hashicorp/terraform-json v0.12.0 h1:8czPgEEWWPROStjkWPUnTQDXmpmZPlkQAwYYLETaTvw= github.com/hashicorp/terraform-json v0.12.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv1nozM+wskr/bGFJpI= +github.com/hashicorp/terraform-json v0.15.0 h1:/gIyNtR6SFw6h5yzlbDbACyGvIhKtQi8mTsbkNd79lE= +github.com/hashicorp/terraform-json v0.15.0/go.mod h1:+L1RNzjDU5leLFZkHTFTbJXaoqUC6TqXlFgDoOXrtvk= github.com/hashicorp/terraform-plugin-go v0.3.0 h1:AJqYzP52JFYl9NABRI7smXI1pNjgR5Q/y2WyVJ/BOZA= github.com/hashicorp/terraform-plugin-go v0.3.0/go.mod h1:dFHsQMaTLpON2gWhVWT96fvtlc/MF1vSy3OdMhWBzdM= github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 h1:SuI59MqNjYDrL7EfqHX9V6P/24isgqYx/FdglwVs9bg= @@ -340,6 +346,8 @@ github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.8.4 h1:pwhhz5P+Fjxse7S7UriBrMu6AUJSZM5pKqGem1PjGAs= github.com/zclconf/go-cty v1.8.4/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= +github.com/zclconf/go-cty v1.10.0 h1:mp9ZXQeIcN8kAwuqorjH+Q+njbJKjLrvB2yIh4q7U+0= +github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 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 9aec070b572..80b52742071 100644 --- a/internal/provider/register_datasource.go +++ b/internal/provider/register_datasource.go @@ -23,6 +23,7 @@ import ( tf_bds "github.com/oracle/terraform-provider-oci/internal/service/bds" tf_blockchain "github.com/oracle/terraform-provider-oci/internal/service/blockchain" tf_budget "github.com/oracle/terraform-provider-oci/internal/service/budget" + 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" @@ -132,6 +133,7 @@ func init() { tf_bds.RegisterDatasource() tf_blockchain.RegisterDatasource() tf_budget.RegisterDatasource() + tf_certificates.RegisterDatasource() tf_certificates_management.RegisterDatasource() tf_cloud_bridge.RegisterDatasource() tf_cloud_guard.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/google/go-cmp/cmp/compare.go b/vendor/github.com/google/go-cmp/cmp/compare.go index 86d0903b8b5..087320da7f0 100644 --- a/vendor/github.com/google/go-cmp/cmp/compare.go +++ b/vendor/github.com/google/go-cmp/cmp/compare.go @@ -13,21 +13,21 @@ // // The primary features of cmp are: // -// • When the default behavior of equality does not suit the needs of the test, -// custom equality functions can override the equality operation. -// For example, an equality function may report floats as equal so long as they -// are within some tolerance of each other. +// - When the default behavior of equality does not suit the test's needs, +// custom equality functions can override the equality operation. +// For example, an equality function may report floats as equal so long as +// they are within some tolerance of each other. // -// • Types that have an Equal method may use that method to determine equality. -// This allows package authors to determine the equality operation for the types -// that they define. +// - Types with an Equal method may use that method to determine equality. +// This allows package authors to determine the equality operation +// for the types that they define. // -// • If no custom equality functions are used and no Equal method is defined, -// equality is determined by recursively comparing the primitive kinds on both -// values, much like reflect.DeepEqual. Unlike reflect.DeepEqual, unexported -// fields are not compared by default; they result in panics unless suppressed -// by using an Ignore option (see cmpopts.IgnoreUnexported) or explicitly -// compared using the Exporter option. +// - If no custom equality functions are used and no Equal method is defined, +// equality is determined by recursively comparing the primitive kinds on +// both values, much like reflect.DeepEqual. Unlike reflect.DeepEqual, +// unexported fields are not compared by default; they result in panics +// unless suppressed by using an Ignore option (see cmpopts.IgnoreUnexported) +// or explicitly compared using the Exporter option. package cmp import ( @@ -36,33 +36,34 @@ import ( "strings" "github.com/google/go-cmp/cmp/internal/diff" - "github.com/google/go-cmp/cmp/internal/flags" "github.com/google/go-cmp/cmp/internal/function" "github.com/google/go-cmp/cmp/internal/value" ) +// TODO(≥go1.18): Use any instead of interface{}. + // Equal reports whether x and y are equal by recursively applying the // following rules in the given order to x and y and all of their sub-values: // -// • Let S be the set of all Ignore, Transformer, and Comparer options that -// remain after applying all path filters, value filters, and type filters. -// If at least one Ignore exists in S, then the comparison is ignored. -// If the number of Transformer and Comparer options in S is greater than one, -// then Equal panics because it is ambiguous which option to use. -// If S contains a single Transformer, then use that to transform the current -// values and recursively call Equal on the output values. -// If S contains a single Comparer, then use that to compare the current values. -// Otherwise, evaluation proceeds to the next rule. +// - Let S be the set of all Ignore, Transformer, and Comparer options that +// remain after applying all path filters, value filters, and type filters. +// If at least one Ignore exists in S, then the comparison is ignored. +// If the number of Transformer and Comparer options in S is non-zero, +// then Equal panics because it is ambiguous which option to use. +// If S contains a single Transformer, then use that to transform +// the current values and recursively call Equal on the output values. +// If S contains a single Comparer, then use that to compare the current values. +// Otherwise, evaluation proceeds to the next rule. // -// • If the values have an Equal method of the form "(T) Equal(T) bool" or -// "(T) Equal(I) bool" where T is assignable to I, then use the result of -// x.Equal(y) even if x or y is nil. Otherwise, no such method exists and -// evaluation proceeds to the next rule. +// - If the values have an Equal method of the form "(T) Equal(T) bool" or +// "(T) Equal(I) bool" where T is assignable to I, then use the result of +// x.Equal(y) even if x or y is nil. Otherwise, no such method exists and +// evaluation proceeds to the next rule. // -// • Lastly, try to compare x and y based on their basic kinds. -// Simple kinds like booleans, integers, floats, complex numbers, strings, and -// channels are compared using the equivalent of the == operator in Go. -// Functions are only equal if they are both nil, otherwise they are unequal. +// - Lastly, try to compare x and y based on their basic kinds. +// Simple kinds like booleans, integers, floats, complex numbers, strings, +// and channels are compared using the equivalent of the == operator in Go. +// Functions are only equal if they are both nil, otherwise they are unequal. // // Structs are equal if recursively calling Equal on all fields report equal. // If a struct contains unexported fields, Equal panics unless an Ignore option @@ -143,7 +144,7 @@ func rootStep(x, y interface{}) PathStep { // so that they have the same parent type. var t reflect.Type if !vx.IsValid() || !vy.IsValid() || vx.Type() != vy.Type() { - t = reflect.TypeOf((*interface{})(nil)).Elem() + t = anyType if vx.IsValid() { vvx := reflect.New(t).Elem() vvx.Set(vx) @@ -319,7 +320,6 @@ func (s *state) tryMethod(t reflect.Type, vx, vy reflect.Value) bool { } func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value { - v = sanitizeValue(v, f.Type().In(0)) if !s.dynChecker.Next() { return f.Call([]reflect.Value{v})[0] } @@ -343,8 +343,6 @@ func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value { } func (s *state) callTTBFunc(f, x, y reflect.Value) bool { - x = sanitizeValue(x, f.Type().In(0)) - y = sanitizeValue(y, f.Type().In(1)) if !s.dynChecker.Next() { return f.Call([]reflect.Value{x, y})[0].Bool() } @@ -372,19 +370,6 @@ func detectRaces(c chan<- reflect.Value, f reflect.Value, vs ...reflect.Value) { ret = f.Call(vs)[0] } -// sanitizeValue converts nil interfaces of type T to those of type R, -// assuming that T is assignable to R. -// Otherwise, it returns the input value as is. -func sanitizeValue(v reflect.Value, t reflect.Type) reflect.Value { - // TODO(≥go1.10): Workaround for reflect bug (https://golang.org/issue/22143). - if !flags.AtLeastGo110 { - if v.Kind() == reflect.Interface && v.IsNil() && v.Type() != t { - return reflect.New(t).Elem() - } - } - return v -} - func (s *state) compareStruct(t reflect.Type, vx, vy reflect.Value) { var addr bool var vax, vay reflect.Value // Addressable versions of vx and vy @@ -654,7 +639,9 @@ type dynChecker struct{ curr, next int } // Next increments the state and reports whether a check should be performed. // // Checks occur every Nth function call, where N is a triangular number: +// // 0 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 ... +// // See https://en.wikipedia.org/wiki/Triangular_number // // This sequence ensures that the cost of checks drops significantly as diff --git a/vendor/github.com/google/go-cmp/cmp/export_panic.go b/vendor/github.com/google/go-cmp/cmp/export_panic.go index 5ff0b4218c6..ae851fe53f2 100644 --- a/vendor/github.com/google/go-cmp/cmp/export_panic.go +++ b/vendor/github.com/google/go-cmp/cmp/export_panic.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build purego // +build purego package cmp diff --git a/vendor/github.com/google/go-cmp/cmp/export_unsafe.go b/vendor/github.com/google/go-cmp/cmp/export_unsafe.go index 21eb54858e0..e2c0f74e839 100644 --- a/vendor/github.com/google/go-cmp/cmp/export_unsafe.go +++ b/vendor/github.com/google/go-cmp/cmp/export_unsafe.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !purego // +build !purego package cmp diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go index 1daaaacc5ee..36062a604ca 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !cmp_debug // +build !cmp_debug package diff diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go index 4b91dbcacae..a3b97a1ad57 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build cmp_debug // +build cmp_debug package diff diff --git a/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go b/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go index bc196b16cfa..a248e5436d9 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go @@ -127,9 +127,9 @@ var randBool = rand.New(rand.NewSource(time.Now().Unix())).Intn(2) == 0 // This function returns an edit-script, which is a sequence of operations // needed to convert one list into the other. The following invariants for // the edit-script are maintained: -// • eq == (es.Dist()==0) -// • nx == es.LenX() -// • ny == es.LenY() +// - eq == (es.Dist()==0) +// - nx == es.LenX() +// - ny == es.LenY() // // This algorithm is not guaranteed to be an optimal solution (i.e., one that // produces an edit-script with a minimal Levenshtein distance). This algorithm @@ -169,12 +169,13 @@ func Difference(nx, ny int, f EqualFunc) (es EditScript) { // A diagonal edge is equivalent to a matching symbol between both X and Y. // Invariants: - // • 0 ≤ fwdPath.X ≤ (fwdFrontier.X, revFrontier.X) ≤ revPath.X ≤ nx - // • 0 ≤ fwdPath.Y ≤ (fwdFrontier.Y, revFrontier.Y) ≤ revPath.Y ≤ ny + // - 0 ≤ fwdPath.X ≤ (fwdFrontier.X, revFrontier.X) ≤ revPath.X ≤ nx + // - 0 ≤ fwdPath.Y ≤ (fwdFrontier.Y, revFrontier.Y) ≤ revPath.Y ≤ ny // // In general: - // • fwdFrontier.X < revFrontier.X - // • fwdFrontier.Y < revFrontier.Y + // - fwdFrontier.X < revFrontier.X + // - fwdFrontier.Y < revFrontier.Y + // // Unless, it is time for the algorithm to terminate. fwdPath := path{+1, point{0, 0}, make(EditScript, 0, (nx+ny)/2)} revPath := path{-1, point{nx, ny}, make(EditScript, 0)} @@ -195,19 +196,21 @@ func Difference(nx, ny int, f EqualFunc) (es EditScript) { // computing sub-optimal edit-scripts between two lists. // // The algorithm is approximately as follows: - // • Searching for differences switches back-and-forth between - // a search that starts at the beginning (the top-left corner), and - // a search that starts at the end (the bottom-right corner). The goal of - // the search is connect with the search from the opposite corner. - // • As we search, we build a path in a greedy manner, where the first - // match seen is added to the path (this is sub-optimal, but provides a - // decent result in practice). When matches are found, we try the next pair - // of symbols in the lists and follow all matches as far as possible. - // • When searching for matches, we search along a diagonal going through - // through the "frontier" point. If no matches are found, we advance the - // frontier towards the opposite corner. - // • This algorithm terminates when either the X coordinates or the - // Y coordinates of the forward and reverse frontier points ever intersect. + // - Searching for differences switches back-and-forth between + // a search that starts at the beginning (the top-left corner), and + // a search that starts at the end (the bottom-right corner). + // The goal of the search is connect with the search + // from the opposite corner. + // - As we search, we build a path in a greedy manner, + // where the first match seen is added to the path (this is sub-optimal, + // but provides a decent result in practice). When matches are found, + // we try the next pair of symbols in the lists and follow all matches + // as far as possible. + // - When searching for matches, we search along a diagonal going through + // through the "frontier" point. If no matches are found, + // we advance the frontier towards the opposite corner. + // - This algorithm terminates when either the X coordinates or the + // Y coordinates of the forward and reverse frontier points ever intersect. // This algorithm is correct even if searching only in the forward direction // or in the reverse direction. We do both because it is commonly observed @@ -389,6 +392,7 @@ type point struct{ X, Y int } func (p *point) add(dx, dy int) { p.X += dx; p.Y += dy } // zigzag maps a consecutive sequence of integers to a zig-zag sequence. +// // [0 1 2 3 4 5 ...] => [0 -1 +1 -2 +2 ...] func zigzag(x int) int { if x&1 != 0 { diff --git a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go b/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go deleted file mode 100644 index 82d1d7fbf8a..00000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2019, The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !go1.10 - -package flags - -// AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. -const AtLeastGo110 = false diff --git a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go b/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go deleted file mode 100644 index 8646f052934..00000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2019, The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.10 - -package flags - -// AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. -const AtLeastGo110 = true diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go b/vendor/github.com/google/go-cmp/cmp/internal/value/name.go index b6c12cefb47..7b498bb2cb9 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/value/name.go @@ -9,6 +9,8 @@ import ( "strconv" ) +var anyType = reflect.TypeOf((*interface{})(nil)).Elem() + // TypeString is nearly identical to reflect.Type.String, // but has an additional option to specify that full type names be used. func TypeString(t reflect.Type, qualified bool) string { @@ -20,6 +22,11 @@ func appendTypeName(b []byte, t reflect.Type, qualified, elideFunc bool) []byte // of the same name and within the same package, // but declared within the namespace of different functions. + // Use the "any" alias instead of "interface{}" for better readability. + if t == anyType { + return append(b, "any"...) + } + // Named type. if t.Name() != "" { if qualified && t.PkgPath() != "" { diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go index 44f4a5afddc..1a71bfcbd39 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build purego // +build purego package value diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go index a605953d466..16e6860af6e 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !purego // +build !purego package value diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/zero.go b/vendor/github.com/google/go-cmp/cmp/internal/value/zero.go deleted file mode 100644 index 9147a299731..00000000000 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/zero.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2017, The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package value - -import ( - "math" - "reflect" -) - -// IsZero reports whether v is the zero value. -// This does not rely on Interface and so can be used on unexported fields. -func IsZero(v reflect.Value) bool { - switch v.Kind() { - case reflect.Bool: - return v.Bool() == false - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return math.Float64bits(v.Float()) == 0 - case reflect.Complex64, reflect.Complex128: - return math.Float64bits(real(v.Complex())) == 0 && math.Float64bits(imag(v.Complex())) == 0 - case reflect.String: - return v.String() == "" - case reflect.UnsafePointer: - return v.Pointer() == 0 - case reflect.Chan, reflect.Func, reflect.Interface, reflect.Ptr, reflect.Map, reflect.Slice: - return v.IsNil() - case reflect.Array: - for i := 0; i < v.Len(); i++ { - if !IsZero(v.Index(i)) { - return false - } - } - return true - case reflect.Struct: - for i := 0; i < v.NumField(); i++ { - if !IsZero(v.Field(i)) { - return false - } - } - return true - } - return false -} diff --git a/vendor/github.com/google/go-cmp/cmp/options.go b/vendor/github.com/google/go-cmp/cmp/options.go index e57b9eb5392..1f9ca9c4892 100644 --- a/vendor/github.com/google/go-cmp/cmp/options.go +++ b/vendor/github.com/google/go-cmp/cmp/options.go @@ -33,6 +33,7 @@ type Option interface { } // applicableOption represents the following types: +// // Fundamental: ignore | validator | *comparer | *transformer // Grouping: Options type applicableOption interface { @@ -43,6 +44,7 @@ type applicableOption interface { } // coreOption represents the following types: +// // Fundamental: ignore | validator | *comparer | *transformer // Filters: *pathFilter | *valuesFilter type coreOption interface { @@ -336,9 +338,9 @@ func (tr transformer) String() string { // both implement T. // // The equality function must be: -// • Symmetric: equal(x, y) == equal(y, x) -// • Deterministic: equal(x, y) == equal(x, y) -// • Pure: equal(x, y) does not modify x or y +// - Symmetric: equal(x, y) == equal(y, x) +// - Deterministic: equal(x, y) == equal(x, y) +// - Pure: equal(x, y) does not modify x or y func Comparer(f interface{}) Option { v := reflect.ValueOf(f) if !function.IsType(v.Type(), function.Equal) || v.IsNil() { @@ -430,7 +432,7 @@ func AllowUnexported(types ...interface{}) Option { } // Result represents the comparison result for a single node and -// is provided by cmp when calling Result (see Reporter). +// is provided by cmp when calling Report (see Reporter). type Result struct { _ [0]func() // Make Result incomparable flags resultFlags diff --git a/vendor/github.com/google/go-cmp/cmp/path.go b/vendor/github.com/google/go-cmp/cmp/path.go index f01eff318c5..a0a588502ed 100644 --- a/vendor/github.com/google/go-cmp/cmp/path.go +++ b/vendor/github.com/google/go-cmp/cmp/path.go @@ -41,13 +41,13 @@ type PathStep interface { // The type of each valid value is guaranteed to be identical to Type. // // In some cases, one or both may be invalid or have restrictions: - // • For StructField, both are not interface-able if the current field - // is unexported and the struct type is not explicitly permitted by - // an Exporter to traverse unexported fields. - // • For SliceIndex, one may be invalid if an element is missing from - // either the x or y slice. - // • For MapIndex, one may be invalid if an entry is missing from - // either the x or y map. + // - For StructField, both are not interface-able if the current field + // is unexported and the struct type is not explicitly permitted by + // an Exporter to traverse unexported fields. + // - For SliceIndex, one may be invalid if an element is missing from + // either the x or y slice. + // - For MapIndex, one may be invalid if an entry is missing from + // either the x or y map. // // The provided values must not be mutated. Values() (vx, vy reflect.Value) @@ -94,6 +94,7 @@ func (pa Path) Index(i int) PathStep { // The simplified path only contains struct field accesses. // // For example: +// // MyMap.MySlices.MyField func (pa Path) String() string { var ss []string @@ -108,6 +109,7 @@ func (pa Path) String() string { // GoString returns the path to a specific node using Go syntax. // // For example: +// // (*root.MyMap["key"].(*mypkg.MyStruct).MySlices)[2][3].MyField func (pa Path) GoString() string { var ssPre, ssPost []string @@ -159,7 +161,7 @@ func (ps pathStep) String() string { if ps.typ == nil { return "" } - s := ps.typ.String() + s := value.TypeString(ps.typ, false) if s == "" || strings.ContainsAny(s, "{}\n") { return "root" // Type too simple or complex to print } @@ -178,7 +180,7 @@ type structField struct { unexported bool mayForce bool // Forcibly allow visibility paddr bool // Was parent addressable? - pvx, pvy reflect.Value // Parent values (always addressible) + pvx, pvy reflect.Value // Parent values (always addressable) field reflect.StructField // Field information } @@ -282,7 +284,7 @@ type typeAssertion struct { func (ta TypeAssertion) Type() reflect.Type { return ta.typ } func (ta TypeAssertion) Values() (vx, vy reflect.Value) { return ta.vx, ta.vy } -func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", ta.typ) } +func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", value.TypeString(ta.typ, false)) } // Transform is a transformation from the parent type to the current type. type Transform struct{ *transform } diff --git a/vendor/github.com/google/go-cmp/cmp/report_compare.go b/vendor/github.com/google/go-cmp/cmp/report_compare.go index 104bb30538b..2050bf6b46b 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_compare.go +++ b/vendor/github.com/google/go-cmp/cmp/report_compare.go @@ -7,8 +7,6 @@ package cmp import ( "fmt" "reflect" - - "github.com/google/go-cmp/cmp/internal/value" ) // numContextRecords is the number of surrounding equal records to print. @@ -116,7 +114,10 @@ func (opts formatOptions) FormatDiff(v *valueNode, ptrs *pointerReferences) (out } // For leaf nodes, format the value based on the reflect.Values alone. - if v.MaxDepth == 0 { + // As a special case, treat equal []byte as a leaf nodes. + isBytes := v.Type.Kind() == reflect.Slice && v.Type.Elem() == byteType + isEqualBytes := isBytes && v.NumDiff+v.NumIgnored+v.NumTransformed == 0 + if v.MaxDepth == 0 || isEqualBytes { switch opts.DiffMode { case diffUnknown, diffIdentical: // Format Equal. @@ -245,11 +246,11 @@ func (opts formatOptions) formatDiffList(recs []reportRecord, k reflect.Kind, pt var isZero bool switch opts.DiffMode { case diffIdentical: - isZero = value.IsZero(r.Value.ValueX) || value.IsZero(r.Value.ValueY) + isZero = r.Value.ValueX.IsZero() || r.Value.ValueY.IsZero() case diffRemoved: - isZero = value.IsZero(r.Value.ValueX) + isZero = r.Value.ValueX.IsZero() case diffInserted: - isZero = value.IsZero(r.Value.ValueY) + isZero = r.Value.ValueY.IsZero() } if isZero { continue diff --git a/vendor/github.com/google/go-cmp/cmp/report_reflect.go b/vendor/github.com/google/go-cmp/cmp/report_reflect.go index 33f03577f98..2ab41fad3fb 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_reflect.go +++ b/vendor/github.com/google/go-cmp/cmp/report_reflect.go @@ -16,6 +16,13 @@ import ( "github.com/google/go-cmp/cmp/internal/value" ) +var ( + anyType = reflect.TypeOf((*interface{})(nil)).Elem() + stringType = reflect.TypeOf((*string)(nil)).Elem() + bytesType = reflect.TypeOf((*[]byte)(nil)).Elem() + byteType = reflect.TypeOf((*byte)(nil)).Elem() +) + type formatValueOptions struct { // AvoidStringer controls whether to avoid calling custom stringer // methods like error.Error or fmt.Stringer.String. @@ -184,7 +191,7 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } for i := 0; i < v.NumField(); i++ { vv := v.Field(i) - if value.IsZero(vv) { + if vv.IsZero() { continue // Elide fields with zero values } if len(list) == maxLen { @@ -205,12 +212,13 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } // Check whether this is a []byte of text data. - if t.Elem() == reflect.TypeOf(byte(0)) { + if t.Elem() == byteType { b := v.Bytes() - isPrintSpace := func(r rune) bool { return unicode.IsPrint(r) && unicode.IsSpace(r) } + isPrintSpace := func(r rune) bool { return unicode.IsPrint(r) || unicode.IsSpace(r) } if len(b) > 0 && utf8.Valid(b) && len(bytes.TrimFunc(b, isPrintSpace)) == 0 { out = opts.formatString("", string(b)) - return opts.WithTypeMode(emitType).FormatType(t, out) + skipType = true + return opts.FormatType(t, out) } } @@ -281,7 +289,12 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } defer ptrs.Pop() - skipType = true // Let the underlying value print the type instead + // Skip the name only if this is an unnamed pointer type. + // Otherwise taking the address of a value does not reproduce + // the named pointer type. + if v.Type().Name() == "" { + skipType = true // Let the underlying value print the type instead + } out = opts.FormatValue(v.Elem(), t.Kind(), ptrs) out = wrapTrunkReference(ptrRef, opts.PrintAddresses, out) out = &textWrap{Prefix: "&", Value: out} @@ -292,7 +305,6 @@ func (opts formatOptions) FormatValue(v reflect.Value, parentKind reflect.Kind, } // Interfaces accept different concrete types, // so configure the underlying value to explicitly print the type. - skipType = true // Print the concrete type instead return opts.WithTypeMode(emitType).FormatValue(v.Elem(), t.Kind(), ptrs) default: panic(fmt.Sprintf("%v kind not handled", v.Kind())) diff --git a/vendor/github.com/google/go-cmp/cmp/report_slices.go b/vendor/github.com/google/go-cmp/cmp/report_slices.go index 2ad3bc85ba8..23e444f62f3 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_slices.go +++ b/vendor/github.com/google/go-cmp/cmp/report_slices.go @@ -80,7 +80,7 @@ func (opts formatOptions) CanFormatDiffSlice(v *valueNode) bool { } // Use specialized string diffing for longer slices or strings. - const minLength = 64 + const minLength = 32 return vx.Len() >= minLength && vy.Len() >= minLength } @@ -104,7 +104,7 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { case t.Kind() == reflect.String: sx, sy = vx.String(), vy.String() isString = true - case t.Kind() == reflect.Slice && t.Elem() == reflect.TypeOf(byte(0)): + case t.Kind() == reflect.Slice && t.Elem() == byteType: sx, sy = string(vx.Bytes()), string(vy.Bytes()) isString = true case t.Kind() == reflect.Array: @@ -147,7 +147,10 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { }) efficiencyLines := float64(esLines.Dist()) / float64(len(esLines)) efficiencyBytes := float64(esBytes.Dist()) / float64(len(esBytes)) - isPureLinedText = efficiencyLines < 4*efficiencyBytes + quotedLength := len(strconv.Quote(sx + sy)) + unquotedLength := len(sx) + len(sy) + escapeExpansionRatio := float64(quotedLength) / float64(unquotedLength) + isPureLinedText = efficiencyLines < 4*efficiencyBytes || escapeExpansionRatio > 1.1 } } @@ -171,12 +174,13 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { // differences in a string literal. This format is more readable, // but has edge-cases where differences are visually indistinguishable. // This format is avoided under the following conditions: - // • A line starts with `"""` - // • A line starts with "..." - // • A line contains non-printable characters - // • Adjacent different lines differ only by whitespace + // - A line starts with `"""` + // - A line starts with "..." + // - A line contains non-printable characters + // - Adjacent different lines differ only by whitespace // // For example: + // // """ // ... // 3 identical lines // foo @@ -231,7 +235,7 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { var out textNode = &textWrap{Prefix: "(", Value: list2, Suffix: ")"} switch t.Kind() { case reflect.String: - if t != reflect.TypeOf(string("")) { + if t != stringType { out = opts.FormatType(t, out) } case reflect.Slice: @@ -326,12 +330,12 @@ func (opts formatOptions) FormatDiffSlice(v *valueNode) textNode { switch t.Kind() { case reflect.String: out = &textWrap{Prefix: "strings.Join(", Value: out, Suffix: fmt.Sprintf(", %q)", delim)} - if t != reflect.TypeOf(string("")) { + if t != stringType { out = opts.FormatType(t, out) } case reflect.Slice: out = &textWrap{Prefix: "bytes.Join(", Value: out, Suffix: fmt.Sprintf(", %q)", delim)} - if t != reflect.TypeOf([]byte(nil)) { + if t != bytesType { out = opts.FormatType(t, out) } } @@ -446,7 +450,6 @@ func (opts formatOptions) formatDiffSlice( // {NumIdentical: 3}, // {NumInserted: 1}, // ] -// func coalesceAdjacentEdits(name string, es diff.EditScript) (groups []diffStats) { var prevMode byte lastStats := func(mode byte) *diffStats { @@ -503,7 +506,6 @@ func coalesceAdjacentEdits(name string, es diff.EditScript) (groups []diffStats) // {NumIdentical: 8, NumRemoved: 12, NumInserted: 3}, // {NumIdentical: 63}, // ] -// func coalesceInterveningIdentical(groups []diffStats, windowSize int) []diffStats { groups, groupsOrig := groups[:0], groups for i, ds := range groupsOrig { @@ -548,7 +550,6 @@ func coalesceInterveningIdentical(groups []diffStats, windowSize int) []diffStat // {NumRemoved: 9}, // {NumIdentical: 64}, // incremented by 10 // ] -// func cleanupSurroundingIdentical(groups []diffStats, eq func(i, j int) bool) []diffStats { var ix, iy int // indexes into sequence x and y for i, ds := range groups { @@ -563,10 +564,10 @@ func cleanupSurroundingIdentical(groups []diffStats, eq func(i, j int) bool) []d nx := ds.NumIdentical + ds.NumRemoved + ds.NumModified ny := ds.NumIdentical + ds.NumInserted + ds.NumModified var numLeadingIdentical, numTrailingIdentical int - for i := 0; i < nx && i < ny && eq(ix+i, iy+i); i++ { + for j := 0; j < nx && j < ny && eq(ix+j, iy+j); j++ { numLeadingIdentical++ } - for i := 0; i < nx && i < ny && eq(ix+nx-1-i, iy+ny-1-i); i++ { + for j := 0; j < nx && j < ny && eq(ix+nx-1-j, iy+ny-1-j); j++ { numTrailingIdentical++ } if numIdentical := numLeadingIdentical + numTrailingIdentical; numIdentical > 0 { diff --git a/vendor/github.com/google/go-cmp/cmp/report_text.go b/vendor/github.com/google/go-cmp/cmp/report_text.go index 0fd46d7ffb6..388fcf57120 100644 --- a/vendor/github.com/google/go-cmp/cmp/report_text.go +++ b/vendor/github.com/google/go-cmp/cmp/report_text.go @@ -393,6 +393,7 @@ func (s diffStats) Append(ds diffStats) diffStats { // String prints a humanly-readable summary of coalesced records. // // Example: +// // diffStats{Name: "Field", NumIgnored: 5}.String() => "5 ignored fields" func (s diffStats) String() string { var ss []string diff --git a/vendor/github.com/hashicorp/go-version/CHANGELOG.md b/vendor/github.com/hashicorp/go-version/CHANGELOG.md index dbae7f7be9c..5f16dd140c3 100644 --- a/vendor/github.com/hashicorp/go-version/CHANGELOG.md +++ b/vendor/github.com/hashicorp/go-version/CHANGELOG.md @@ -1,3 +1,23 @@ +# 1.6.0 (June 28, 2022) + +FEATURES: + +- Add `Prerelease` function to `Constraint` to return true if the version includes a prerelease field ([#100](https://github.com/hashicorp/go-version/pull/100)) + +# 1.5.0 (May 18, 2022) + +FEATURES: + +- Use `encoding` `TextMarshaler` & `TextUnmarshaler` instead of JSON equivalents ([#95](https://github.com/hashicorp/go-version/pull/95)) +- Add JSON handlers to allow parsing from/to JSON ([#93](https://github.com/hashicorp/go-version/pull/93)) + +# 1.4.0 (January 5, 2022) + +FEATURES: + + - Introduce `MustConstraints()` ([#87](https://github.com/hashicorp/go-version/pull/87)) + - `Constraints`: Introduce `Equals()` and `sort.Interface` methods ([#88](https://github.com/hashicorp/go-version/pull/88)) + # 1.3.0 (March 31, 2021) Please note that CHANGELOG.md does not exist in the source code prior to this release. diff --git a/vendor/github.com/hashicorp/go-version/README.md b/vendor/github.com/hashicorp/go-version/README.md index 851a337beb4..4d250509033 100644 --- a/vendor/github.com/hashicorp/go-version/README.md +++ b/vendor/github.com/hashicorp/go-version/README.md @@ -1,5 +1,5 @@ # Versioning Library for Go -[![Build Status](https://circleci.com/gh/hashicorp/go-version/tree/master.svg?style=svg)](https://circleci.com/gh/hashicorp/go-version/tree/master) +[![Build Status](https://circleci.com/gh/hashicorp/go-version/tree/main.svg?style=svg)](https://circleci.com/gh/hashicorp/go-version/tree/main) [![GoDoc](https://godoc.org/github.com/hashicorp/go-version?status.svg)](https://godoc.org/github.com/hashicorp/go-version) go-version is a library for parsing versions and version constraints, diff --git a/vendor/github.com/hashicorp/go-version/constraint.go b/vendor/github.com/hashicorp/go-version/constraint.go index d055759611c..da5d1aca148 100644 --- a/vendor/github.com/hashicorp/go-version/constraint.go +++ b/vendor/github.com/hashicorp/go-version/constraint.go @@ -4,6 +4,7 @@ import ( "fmt" "reflect" "regexp" + "sort" "strings" ) @@ -11,30 +12,40 @@ import ( // ">= 1.0". type Constraint struct { f constraintFunc + op operator check *Version original string } +func (c *Constraint) Equals(con *Constraint) bool { + return c.op == con.op && c.check.Equal(con.check) +} + // Constraints is a slice of constraints. We make a custom type so that // we can add methods to it. type Constraints []*Constraint type constraintFunc func(v, c *Version) bool -var constraintOperators map[string]constraintFunc +var constraintOperators map[string]constraintOperation + +type constraintOperation struct { + op operator + f constraintFunc +} var constraintRegexp *regexp.Regexp func init() { - constraintOperators = map[string]constraintFunc{ - "": constraintEqual, - "=": constraintEqual, - "!=": constraintNotEqual, - ">": constraintGreaterThan, - "<": constraintLessThan, - ">=": constraintGreaterThanEqual, - "<=": constraintLessThanEqual, - "~>": constraintPessimistic, + constraintOperators = map[string]constraintOperation{ + "": {op: equal, f: constraintEqual}, + "=": {op: equal, f: constraintEqual}, + "!=": {op: notEqual, f: constraintNotEqual}, + ">": {op: greaterThan, f: constraintGreaterThan}, + "<": {op: lessThan, f: constraintLessThan}, + ">=": {op: greaterThanEqual, f: constraintGreaterThanEqual}, + "<=": {op: lessThanEqual, f: constraintLessThanEqual}, + "~>": {op: pessimistic, f: constraintPessimistic}, } ops := make([]string, 0, len(constraintOperators)) @@ -66,6 +77,16 @@ func NewConstraint(v string) (Constraints, error) { return Constraints(result), nil } +// MustConstraints is a helper that wraps a call to a function +// returning (Constraints, error) and panics if error is non-nil. +func MustConstraints(c Constraints, err error) Constraints { + if err != nil { + panic(err) + } + + return c +} + // Check tests if a version satisfies all the constraints. func (cs Constraints) Check(v *Version) bool { for _, c := range cs { @@ -77,6 +98,56 @@ func (cs Constraints) Check(v *Version) bool { return true } +// Equals compares Constraints with other Constraints +// for equality. This may not represent logical equivalence +// of compared constraints. +// e.g. even though '>0.1,>0.2' is logically equivalent +// to '>0.2' it is *NOT* treated as equal. +// +// Missing operator is treated as equal to '=', whitespaces +// are ignored and constraints are sorted before comaparison. +func (cs Constraints) Equals(c Constraints) bool { + if len(cs) != len(c) { + return false + } + + // make copies to retain order of the original slices + left := make(Constraints, len(cs)) + copy(left, cs) + sort.Stable(left) + right := make(Constraints, len(c)) + copy(right, c) + sort.Stable(right) + + // compare sorted slices + for i, con := range left { + if !con.Equals(right[i]) { + return false + } + } + + return true +} + +func (cs Constraints) Len() int { + return len(cs) +} + +func (cs Constraints) Less(i, j int) bool { + if cs[i].op < cs[j].op { + return true + } + if cs[i].op > cs[j].op { + return false + } + + return cs[i].check.LessThan(cs[j].check) +} + +func (cs Constraints) Swap(i, j int) { + cs[i], cs[j] = cs[j], cs[i] +} + // Returns the string format of the constraints func (cs Constraints) String() string { csStr := make([]string, len(cs)) @@ -92,6 +163,12 @@ func (c *Constraint) Check(v *Version) bool { return c.f(v, c.check) } +// Prerelease returns true if the version underlying this constraint +// contains a prerelease field. +func (c *Constraint) Prerelease() bool { + return len(c.check.Prerelease()) > 0 +} + func (c *Constraint) String() string { return c.original } @@ -107,8 +184,11 @@ func parseSingle(v string) (*Constraint, error) { return nil, err } + cop := constraintOperators[matches[1]] + return &Constraint{ - f: constraintOperators[matches[1]], + f: cop.f, + op: cop.op, check: check, original: v, }, nil @@ -138,6 +218,18 @@ func prereleaseCheck(v, c *Version) bool { // Constraint functions //------------------------------------------------------------------- +type operator rune + +const ( + equal operator = '=' + notEqual operator = '≠' + greaterThan operator = '>' + lessThan operator = '<' + greaterThanEqual operator = '≥' + lessThanEqual operator = '≤' + pessimistic operator = '~' +) + func constraintEqual(v, c *Version) bool { return v.Equal(c) } diff --git a/vendor/github.com/hashicorp/go-version/version.go b/vendor/github.com/hashicorp/go-version/version.go index 8068834ec84..e87df69906d 100644 --- a/vendor/github.com/hashicorp/go-version/version.go +++ b/vendor/github.com/hashicorp/go-version/version.go @@ -64,7 +64,6 @@ func newVersion(v string, pattern *regexp.Regexp) (*Version, error) { } segmentsStr := strings.Split(matches[1], ".") segments := make([]int64, len(segmentsStr)) - si := 0 for i, str := range segmentsStr { val, err := strconv.ParseInt(str, 10, 64) if err != nil { @@ -72,8 +71,7 @@ func newVersion(v string, pattern *regexp.Regexp) (*Version, error) { "Error parsing version: %s", err) } - segments[i] = int64(val) - si++ + segments[i] = val } // Even though we could support more than three segments, if we @@ -92,7 +90,7 @@ func newVersion(v string, pattern *regexp.Regexp) (*Version, error) { metadata: matches[10], pre: pre, segments: segments, - si: si, + si: len(segmentsStr), original: v, }, nil } @@ -390,3 +388,20 @@ func (v *Version) String() string { func (v *Version) Original() string { return v.original } + +// UnmarshalText implements encoding.TextUnmarshaler interface. +func (v *Version) UnmarshalText(b []byte) error { + temp, err := NewVersion(string(b)) + if err != nil { + return err + } + + *v = *temp + + return nil +} + +// MarshalText implements encoding.TextMarshaler interface. +func (v *Version) MarshalText() ([]byte, error) { + return []byte(v.String()), nil +} diff --git a/vendor/github.com/hashicorp/terraform-json/LICENSE b/vendor/github.com/hashicorp/terraform-json/LICENSE index a612ad9813b..3b97eaf3c31 100644 --- a/vendor/github.com/hashicorp/terraform-json/LICENSE +++ b/vendor/github.com/hashicorp/terraform-json/LICENSE @@ -1,3 +1,5 @@ +Copyright (c) 2019 HashiCorp, Inc. + Mozilla Public License Version 2.0 ================================== diff --git a/vendor/github.com/hashicorp/terraform-json/README.md b/vendor/github.com/hashicorp/terraform-json/README.md index fea0ba26092..4a9cd94a119 100644 --- a/vendor/github.com/hashicorp/terraform-json/README.md +++ b/vendor/github.com/hashicorp/terraform-json/README.md @@ -1,6 +1,5 @@ # terraform-json -[![CircleCI](https://circleci.com/gh/hashicorp/terraform-json/tree/main.svg?style=svg)](https://circleci.com/gh/hashicorp/terraform-json/tree/main) [![GoDoc](https://godoc.org/github.com/hashicorp/terraform-json?status.svg)](https://godoc.org/github.com/hashicorp/terraform-json) This repository houses data types designed to help parse the data produced by diff --git a/vendor/github.com/hashicorp/terraform-json/config.go b/vendor/github.com/hashicorp/terraform-json/config.go index e093cfa8bff..5ebe4bc840c 100644 --- a/vendor/github.com/hashicorp/terraform-json/config.go +++ b/vendor/github.com/hashicorp/terraform-json/config.go @@ -48,6 +48,9 @@ type ProviderConfig struct { // The name of the provider, ie: "aws". Name string `json:"name,omitempty"` + // The fully-specified name of the provider, ie: "registry.terraform.io/hashicorp/aws". + FullName string `json:"full_name,omitempty"` + // The alias of the provider, ie: "us-east-1". Alias string `json:"alias,omitempty"` diff --git a/vendor/github.com/hashicorp/terraform-json/metadata.go b/vendor/github.com/hashicorp/terraform-json/metadata.go new file mode 100644 index 00000000000..70d7ce4380a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-json/metadata.go @@ -0,0 +1,104 @@ +package tfjson + +import ( + "encoding/json" + "errors" + "fmt" + + "github.com/hashicorp/go-version" + "github.com/zclconf/go-cty/cty" +) + +// MetadataFunctionsFormatVersionConstraints defines the versions of the JSON +// metadata functions format that are supported by this package. +var MetadataFunctionsFormatVersionConstraints = "~> 1.0" + +// MetadataFunctions is the top-level object returned when exporting function +// signatures +type MetadataFunctions struct { + // The version of the format. This should always match the + // MetadataFunctionsFormatVersionConstraints in this package, else + // unmarshaling will fail. + FormatVersion string `json:"format_version"` + + // The signatures of the functions available in a Terraform version. + Signatures map[string]*FunctionSignature `json:"function_signatures,omitempty"` +} + +// Validate checks to ensure that MetadataFunctions is present, and the +// version matches the version supported by this library. +func (f *MetadataFunctions) Validate() error { + if f == nil { + return errors.New("metadata functions data is nil") + } + + if f.FormatVersion == "" { + return errors.New("unexpected metadata functions data, format version is missing") + } + + constraint, err := version.NewConstraint(MetadataFunctionsFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(f.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", f.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported metadata functions format version: %q does not satisfy %q", + version, constraint) + } + + return nil +} + +func (f *MetadataFunctions) UnmarshalJSON(b []byte) error { + type rawFunctions MetadataFunctions + var functions rawFunctions + + err := json.Unmarshal(b, &functions) + if err != nil { + return err + } + + *f = *(*MetadataFunctions)(&functions) + + return f.Validate() +} + +// FunctionSignature represents a function signature. +type FunctionSignature struct { + // Description is an optional human-readable description + // of the function + Description string `json:"description,omitempty"` + + // ReturnType is the ctyjson representation of the function's + // return types based on supplying all parameters using + // dynamic types. Functions can have dynamic return types. + ReturnType cty.Type `json:"return_type"` + + // Parameters describes the function's fixed positional parameters. + Parameters []*FunctionParameter `json:"parameters,omitempty"` + + // VariadicParameter describes the function's variadic + // parameter if it is supported. + VariadicParameter *FunctionParameter `json:"variadic_parameter,omitempty"` +} + +// FunctionParameter represents a parameter to a function. +type FunctionParameter struct { + // Name is an optional name for the argument. + Name string `json:"name,omitempty"` + + // Description is an optional human-readable description + // of the argument + Description string `json:"description,omitempty"` + + // IsNullable is true if null is acceptable value for the argument + IsNullable bool `json:"is_nullable,omitempty"` + + // A type that any argument for this parameter must conform to. + Type cty.Type `json:"type"` +} diff --git a/vendor/github.com/hashicorp/terraform-json/plan.go b/vendor/github.com/hashicorp/terraform-json/plan.go index 97635bd4733..274006a0180 100644 --- a/vendor/github.com/hashicorp/terraform-json/plan.go +++ b/vendor/github.com/hashicorp/terraform-json/plan.go @@ -4,11 +4,13 @@ import ( "encoding/json" "errors" "fmt" + + "github.com/hashicorp/go-version" ) -// PlanFormatVersions represents versions of the JSON plan format that -// are supported by this package. -var PlanFormatVersions = []string{"0.1", "0.2"} +// PlanFormatVersionConstraints defines the versions of the JSON plan format +// that are supported by this package. +var PlanFormatVersionConstraints = ">= 0.1, < 2.0" // ResourceMode is a string representation of the resource type found // in certain fields in the plan. @@ -53,6 +55,19 @@ type Plan struct { // The Terraform configuration used to make the plan. Config *Config `json:"configuration,omitempty"` + + // RelevantAttributes represents any resource instances and their + // attributes which may have contributed to the planned changes + RelevantAttributes []ResourceAttribute `json:"relevant_attributes,omitempty"` +} + +// ResourceAttribute describes a full path to a resource attribute +type ResourceAttribute struct { + // Resource describes resource instance address (e.g. null_resource.foo) + Resource string `json:"resource"` + // Attribute describes the attribute path using a lossy representation + // of cty.Path. (e.g. ["id"] or ["objects", 0, "val"]). + Attribute []json.RawMessage `json:"attribute"` } // Validate checks to ensure that the plan is present, and the @@ -66,9 +81,19 @@ func (p *Plan) Validate() error { return errors.New("unexpected plan input, format version is missing") } - if !isStringInSlice(PlanFormatVersions, p.FormatVersion) { - return fmt.Errorf("unsupported plan format version: expected %q, got %q", - PlanFormatVersions, p.FormatVersion) + constraint, err := version.NewConstraint(PlanFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(p.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", p.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported plan format version: %q does not satisfy %q", + version, constraint) } return nil diff --git a/vendor/github.com/hashicorp/terraform-json/schemas.go b/vendor/github.com/hashicorp/terraform-json/schemas.go index 88c2c94bb43..f7c8abd50f6 100644 --- a/vendor/github.com/hashicorp/terraform-json/schemas.go +++ b/vendor/github.com/hashicorp/terraform-json/schemas.go @@ -5,12 +5,13 @@ import ( "errors" "fmt" + "github.com/hashicorp/go-version" "github.com/zclconf/go-cty/cty" ) -// ProviderSchemasFormatVersions represents the versions of -// the JSON provider schema format that are supported by this package. -var ProviderSchemasFormatVersions = []string{"0.1", "0.2"} +// ProviderSchemasFormatVersionConstraints defines the versions of the JSON +// provider schema format that are supported by this package. +var ProviderSchemasFormatVersionConstraints = ">= 0.1, < 2.0" // ProviderSchemas represents the schemas of all providers and // resources in use by the configuration. @@ -38,9 +39,19 @@ func (p *ProviderSchemas) Validate() error { return errors.New("unexpected provider schema data, format version is missing") } - if !isStringInSlice(ProviderSchemasFormatVersions, p.FormatVersion) { - return fmt.Errorf("unsupported provider schema data format version: expected %q, got %q", - ProviderSchemasFormatVersions, p.FormatVersion) + constraint, err := version.NewConstraint(ProviderSchemasFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(p.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", p.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported provider schema format version: %q does not satisfy %q", + version, constraint) } return nil @@ -212,6 +223,43 @@ type SchemaAttribute struct { Sensitive bool `json:"sensitive,omitempty"` } +// jsonSchemaAttribute describes an attribute within a schema block +// in a middle-step internal representation before marshalled into +// a more useful SchemaAttribute with cty.Type. +// +// This avoid panic on marshalling cty.NilType (from cty upstream) +// which the default Go marshaller cannot ignore because it's a +// not nil-able struct. +type jsonSchemaAttribute struct { + AttributeType json.RawMessage `json:"type,omitempty"` + AttributeNestedType *SchemaNestedAttributeType `json:"nested_type,omitempty"` + Description string `json:"description,omitempty"` + DescriptionKind SchemaDescriptionKind `json:"description_kind,omitempty"` + Deprecated bool `json:"deprecated,omitempty"` + Required bool `json:"required,omitempty"` + Optional bool `json:"optional,omitempty"` + Computed bool `json:"computed,omitempty"` + Sensitive bool `json:"sensitive,omitempty"` +} + +func (as *SchemaAttribute) MarshalJSON() ([]byte, error) { + jsonSa := &jsonSchemaAttribute{ + AttributeNestedType: as.AttributeNestedType, + Description: as.Description, + DescriptionKind: as.DescriptionKind, + Deprecated: as.Deprecated, + Required: as.Required, + Optional: as.Optional, + Computed: as.Computed, + Sensitive: as.Sensitive, + } + if as.AttributeType != cty.NilType { + attrTy, _ := as.AttributeType.MarshalJSON() + jsonSa.AttributeType = attrTy + } + return json.Marshal(jsonSa) +} + // SchemaNestedAttributeType describes a nested attribute // which could also be just expressed simply as cty.Object(...), // cty.List(cty.Object(...)) etc. but this allows tracking additional diff --git a/vendor/github.com/hashicorp/terraform-json/state.go b/vendor/github.com/hashicorp/terraform-json/state.go index ad632e49d5c..3c3f6a4b0aa 100644 --- a/vendor/github.com/hashicorp/terraform-json/state.go +++ b/vendor/github.com/hashicorp/terraform-json/state.go @@ -5,11 +5,14 @@ import ( "encoding/json" "errors" "fmt" + + "github.com/hashicorp/go-version" + "github.com/zclconf/go-cty/cty" ) -// StateFormatVersions represents the versions of the JSON state format +// StateFormatVersionConstraints defines the versions of the JSON state format // that are supported by this package. -var StateFormatVersions = []string{"0.1", "0.2"} +var StateFormatVersionConstraints = ">= 0.1, < 2.0" // State is the top-level representation of a Terraform state. type State struct { @@ -50,9 +53,19 @@ func (s *State) Validate() error { return errors.New("unexpected state input, format version is missing") } - if !isStringInSlice(StateFormatVersions, s.FormatVersion) { - return fmt.Errorf("unsupported state format version: expected %q, got %q", - StateFormatVersions, s.FormatVersion) + constraint, err := version.NewConstraint(StateFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(s.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", s.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported state format version: %q does not satisfy %q", + version, constraint) } return nil @@ -163,4 +176,31 @@ type StateOutput struct { // The value of the output. Value interface{} `json:"value,omitempty"` + + // The type of the output. + Type cty.Type `json:"type,omitempty"` +} + +// jsonStateOutput describes an output value in a middle-step internal +// representation before marshalled into a more useful StateOutput with cty.Type. +// +// This avoid panic on marshalling cty.NilType (from cty upstream) +// which the default Go marshaller cannot ignore because it's a +// not nil-able struct. +type jsonStateOutput struct { + Sensitive bool `json:"sensitive"` + Value interface{} `json:"value,omitempty"` + Type json.RawMessage `json:"type,omitempty"` +} + +func (so *StateOutput) MarshalJSON() ([]byte, error) { + jsonSa := &jsonStateOutput{ + Sensitive: so.Sensitive, + Value: so.Value, + } + if so.Type != cty.NilType { + outputType, _ := so.Type.MarshalJSON() + jsonSa.Type = outputType + } + return json.Marshal(jsonSa) } diff --git a/vendor/github.com/hashicorp/terraform-json/validate.go b/vendor/github.com/hashicorp/terraform-json/validate.go index db9db1919ce..97b82d0a979 100644 --- a/vendor/github.com/hashicorp/terraform-json/validate.go +++ b/vendor/github.com/hashicorp/terraform-json/validate.go @@ -4,8 +4,14 @@ import ( "encoding/json" "errors" "fmt" + + "github.com/hashicorp/go-version" ) +// ValidateFormatVersionConstraints defines the versions of the JSON +// validate format that are supported by this package. +var ValidateFormatVersionConstraints = ">= 0.1, < 2.0" + // Pos represents a position in a config file type Pos struct { Line int `json:"line"` @@ -110,10 +116,19 @@ func (vo *ValidateOutput) Validate() error { return nil } - supportedVersion := "0.1" - if vo.FormatVersion != supportedVersion { - return fmt.Errorf("unsupported validation output format version: expected %q, got %q", - supportedVersion, vo.FormatVersion) + constraint, err := version.NewConstraint(ValidateFormatVersionConstraints) + if err != nil { + return fmt.Errorf("invalid version constraint: %w", err) + } + + version, err := version.NewVersion(vo.FormatVersion) + if err != nil { + return fmt.Errorf("invalid format version %q: %w", vo.FormatVersion, err) + } + + if !constraint.Check(version) { + return fmt.Errorf("unsupported validation output format version: %q does not satisfy %q", + version, constraint) } return nil diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go new file mode 100644 index 00000000000..8f9bf795641 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/ca_bundle.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// 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 CA bundle. + Id *string `mandatory:"true" json:"id"` + + // 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 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 CaBundle) 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/certificate_authority_bundle.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go new file mode 100644 index 00000000000..d5baf83e096 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2023, 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/certificates/certificate_authority_bundle_version_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go new file mode 100644 index 00000000000..fad700a4655 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_authority_bundle_version_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// CertificateAuthorityBundleVersionCollection The results of a certificate authority (CA) version search. Results contain CA version summary objects and other data. +type CertificateAuthorityBundleVersionCollection struct { + + // A list of CA version summary objects. + Items []CertificateAuthorityBundleVersionSummary `mandatory:"true" json:"items"` +} + +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 CertificateAuthorityBundleVersionCollection) 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/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..e866c4858d7 --- /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, 2023, 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..6aa7b7aff92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle.go @@ -0,0 +1,237 @@ +// Copyright (c) 2016, 2018, 2023, 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 + 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"` + CertificatePem *string `mandatory:"false" json:"certificatePem"` + CertChainPem *string `mandatory:"false" json:"certChainPem"` + VersionName *string `mandatory:"false" json:"versionName"` + RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"` + 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: + return *m, nil + } +} + +//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 +} + +//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 +} + +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..f3d5699bebe --- /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, 2023, 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/certificates/certificate_bundle_version_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go new file mode 100644 index 00000000000..30f6dae7806 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificate_bundle_version_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// CertificateBundleVersionCollection The results of a certificate bundle versions search. Results contain certificate bundle version summary objects. +type CertificateBundleVersionCollection struct { + + // A list of certificate bundle version summary objects. + Items []CertificateBundleVersionSummary `mandatory:"true" json:"items"` +} + +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 CertificateBundleVersionCollection) 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/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..16eed0432ef --- /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, 2023, 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..dec96e902ce --- /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, 2023, 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..91f98272a76 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/certificates_client.go @@ -0,0 +1,377 @@ +// Copyright (c) 2016, 2018, 2023, 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) { + 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/certificates/get_ca_bundle_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go new file mode 100644 index 00000000000..9f1959031b8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/get_ca_bundle_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// GetCaBundleRequest wrapper for the GetCaBundle operation +// +// 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 GetCaBundleRequest. +type GetCaBundleRequest struct { + + // The OCID of the CA bundle. + CaBundleId *string `mandatory:"true" contributesTo:"path" name:"caBundleId"` + + // 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 + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCaBundleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCaBundleRequest) 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 GetCaBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +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 GetCaBundleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCaBundleResponse wrapper for the GetCaBundle operation +type GetCaBundleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // 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. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetCaBundleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +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..c166667cc8e --- /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, 2023, 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..3bd35c42f04 --- /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, 2023, 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..16cb070ce1f --- /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, 2023, 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..dd4fa3614e7 --- /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, 2023, 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..cf1da2df2ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_reason.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2023, 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/certificates/revocation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go new file mode 100644 index 00000000000..17e0d2f6e72 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/revocation_status.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// RevocationStatus The current revocation status of the certificate or certificate authority (CA). +type RevocationStatus struct { + + // 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 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 RevocationStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + 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 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} 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..3eef35e7dec --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/validity.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2023, 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..82ac5eb07b2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/certificates/version_stage.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2023, 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/zclconf/go-cty/cty/function/stdlib/collection.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go index f50f196e2ca..279a20ee535 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go @@ -538,7 +538,7 @@ func flattener(flattenList cty.Value) ([]cty.Value, []cty.ValueMarks, bool) { // Any dynamic types could result in more collections that need to be // flattened, so the type cannot be known. - if val.Type().Equals(cty.DynamicPseudoType) { + if val == cty.DynamicVal { isKnown = false } diff --git a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go index 5070a5adf57..339d04dbdbd 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/csv.go @@ -30,7 +30,7 @@ var CSVDecodeFunc = function.New(&function.Spec{ return cty.DynamicPseudoType, fmt.Errorf("missing header line") } if err != nil { - return cty.DynamicPseudoType, err + return cty.DynamicPseudoType, csvError(err) } atys := make(map[string]cty.Type, len(headers)) @@ -64,7 +64,7 @@ var CSVDecodeFunc = function.New(&function.Spec{ break } if err != nil { - return cty.DynamicVal, err + return cty.DynamicVal, csvError(err) } vals := make(map[string]cty.Value, len(cols)) @@ -91,3 +91,12 @@ var CSVDecodeFunc = function.New(&function.Spec{ func CSVDecode(str cty.Value) (cty.Value, error) { return CSVDecodeFunc.Call([]cty.Value{str}) } + +func csvError(err error) error { + switch err := err.(type) { + case *csv.ParseError: + return fmt.Errorf("CSV parse error on line %d: %w", err.Line, err.Err) + default: + return err + } +} diff --git a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go index 63881f58531..8b17758950c 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/format.go @@ -114,6 +114,8 @@ var FormatListFunc = function.New(&function.Spec{ continue } iterators[i] = arg.ElementIterator() + case arg == cty.DynamicVal: + unknowns[i] = true default: singleVals[i] = arg } diff --git a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go index 7bbe584b0a1..4effeb7bb8d 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/number.go @@ -371,14 +371,21 @@ var CeilFunc = function.New(&function.Spec{ }, Type: function.StaticReturnType(cty.Number), Impl: func(args []cty.Value, retType cty.Type) (ret cty.Value, err error) { - var val float64 - if err := gocty.FromCtyValue(args[0], &val); err != nil { - return cty.UnknownVal(cty.String), err + f := args[0].AsBigFloat() + + if f.IsInf() { + return cty.NumberVal(f), nil } - if math.IsInf(val, 0) { - return cty.NumberFloatVal(val), nil + + i, acc := f.Int(nil) + switch acc { + case big.Exact, big.Above: + // Done. + case big.Below: + i.Add(i, big.NewInt(1)) } - return cty.NumberIntVal(int64(math.Ceil(val))), nil + + return cty.NumberVal(f.SetInt(i)), nil }, }) @@ -393,14 +400,21 @@ var FloorFunc = function.New(&function.Spec{ }, Type: function.StaticReturnType(cty.Number), Impl: func(args []cty.Value, retType cty.Type) (ret cty.Value, err error) { - var val float64 - if err := gocty.FromCtyValue(args[0], &val); err != nil { - return cty.UnknownVal(cty.String), err + f := args[0].AsBigFloat() + + if f.IsInf() { + return cty.NumberVal(f), nil } - if math.IsInf(val, 0) { - return cty.NumberFloatVal(val), nil + + i, acc := f.Int(nil) + switch acc { + case big.Exact, big.Below: + // Done. + case big.Above: + i.Sub(i, big.NewInt(1)) } - return cty.NumberIntVal(int64(math.Floor(val))), nil + + return cty.NumberVal(f.SetInt(i)), nil }, }) diff --git a/vendor/github.com/zclconf/go-cty/cty/primitive_type.go b/vendor/github.com/zclconf/go-cty/cty/primitive_type.go index 7b3d1196cd0..603901732b1 100644 --- a/vendor/github.com/zclconf/go-cty/cty/primitive_type.go +++ b/vendor/github.com/zclconf/go-cty/cty/primitive_type.go @@ -52,6 +52,51 @@ func (t primitiveType) GoString() string { } } +// rawNumberEqual is our cty-specific definition of whether two big floats +// underlying cty.Number are "equal" for the purposes of the Value.Equals and +// Value.RawEquals methods. +// +// The built-in equality for big.Float is a direct comparison of the mantissa +// bits and the exponent, but that's too precise a check for cty because we +// routinely send numbers through decimal approximations and back and so +// we only promise to accurately represent the subset of binary floating point +// numbers that can be derived from a decimal string representation. +// +// In respect of the fact that cty only tries to preserve numbers that can +// reasonably be written in JSON documents, we use the string representation of +// a decimal approximation of the number as our comparison, relying on the +// big.Float type's heuristic for discarding extraneous mantissa bits that seem +// likely to only be there as a result of an earlier decimal-to-binary +// approximation during parsing, e.g. in ParseNumberVal. +func rawNumberEqual(a, b *big.Float) bool { + switch { + case (a == nil) != (b == nil): + return false + case a == nil: // b == nil too then, due to previous case + return true + default: + // This format and precision matches that used by cty/json.Marshal, + // and thus achieves our definition of "two numbers are equal if + // we'd use the same JSON serialization for both of them". + const format = 'f' + const prec = -1 + aStr := a.Text(format, prec) + bStr := b.Text(format, prec) + + // The one exception to our rule about equality-by-stringification is + // negative zero, because we want -0 to always be equal to +0. + const posZero = "0" + const negZero = "-0" + if aStr == negZero { + aStr = posZero + } + if bStr == negZero { + bStr = posZero + } + return aStr == bStr + } +} + // Number is the numeric type. Number values are arbitrary-precision // decimal numbers, which can then be converted into Go's various numeric // types only if they are in the appropriate range. diff --git a/vendor/github.com/zclconf/go-cty/cty/value_ops.go b/vendor/github.com/zclconf/go-cty/cty/value_ops.go index 8c37535c885..cdcc1506f01 100644 --- a/vendor/github.com/zclconf/go-cty/cty/value_ops.go +++ b/vendor/github.com/zclconf/go-cty/cty/value_ops.go @@ -116,9 +116,9 @@ func (val Value) GoString() string { // Use RawEquals to compare if two values are equal *ignoring* the // short-circuit rules and the exception for null values. func (val Value) Equals(other Value) Value { - if val.IsMarked() || other.IsMarked() { - val, valMarks := val.Unmark() - other, otherMarks := other.Unmark() + if val.ContainsMarked() || other.ContainsMarked() { + val, valMarks := val.UnmarkDeep() + other, otherMarks := other.UnmarkDeep() return val.Equals(other).WithMarks(valMarks, otherMarks) } @@ -191,7 +191,7 @@ func (val Value) Equals(other Value) Value { switch { case ty == Number: - result = val.v.(*big.Float).Cmp(other.v.(*big.Float)) == 0 + result = rawNumberEqual(val.v.(*big.Float), other.v.(*big.Float)) case ty == Bool: result = val.v.(bool) == other.v.(bool) case ty == String: @@ -1283,9 +1283,7 @@ func (val Value) AsBigFloat() *big.Float { } // Copy the float so that callers can't mutate our internal state - ret := *(val.v.(*big.Float)) - - return &ret + return new(big.Float).Copy(val.v.(*big.Float)) } // AsValueSlice returns a []cty.Value representation of a non-null, non-unknown diff --git a/vendor/github.com/zclconf/go-cty/cty/walk.go b/vendor/github.com/zclconf/go-cty/cty/walk.go index d17f48ccd1e..87ba32e796b 100644 --- a/vendor/github.com/zclconf/go-cty/cty/walk.go +++ b/vendor/github.com/zclconf/go-cty/cty/walk.go @@ -33,10 +33,15 @@ func walk(path Path, val Value, cb func(Path, Value) (bool, error)) error { return nil } + // The callback already got a chance to see the mark in our + // call above, so can safely strip it off here in order to + // visit the child elements, which might still have their own marks. + rawVal, _ := val.Unmark() + ty := val.Type() switch { case ty.IsObjectType(): - for it := val.ElementIterator(); it.Next(); { + for it := rawVal.ElementIterator(); it.Next(); { nameVal, av := it.Element() path := append(path, GetAttrStep{ Name: nameVal.AsString(), @@ -46,8 +51,8 @@ func walk(path Path, val Value, cb func(Path, Value) (bool, error)) error { return err } } - case val.CanIterateElements(): - for it := val.ElementIterator(); it.Next(); { + case rawVal.CanIterateElements(): + for it := rawVal.ElementIterator(); it.Next(); { kv, ev := it.Element() path := append(path, IndexStep{ Key: kv, @@ -134,6 +139,12 @@ func transform(path Path, val Value, t Transformer) (Value, error) { ty := val.Type() var newVal Value + // We need to peel off any marks here so that we can dig around + // inside any collection values. We'll reapply these to any + // new collections we construct, but the transformer's Exit + // method gets the final say on what to do with those. + rawVal, marks := val.Unmark() + switch { case val.IsNull() || !val.IsKnown(): @@ -141,14 +152,14 @@ func transform(path Path, val Value, t Transformer) (Value, error) { newVal = val case ty.IsListType() || ty.IsSetType() || ty.IsTupleType(): - l := val.LengthInt() + l := rawVal.LengthInt() switch l { case 0: // No deep transform for an empty sequence newVal = val default: elems := make([]Value, 0, l) - for it := val.ElementIterator(); it.Next(); { + for it := rawVal.ElementIterator(); it.Next(); { kv, ev := it.Element() path := append(path, IndexStep{ Key: kv, @@ -161,25 +172,25 @@ func transform(path Path, val Value, t Transformer) (Value, error) { } switch { case ty.IsListType(): - newVal = ListVal(elems) + newVal = ListVal(elems).WithMarks(marks) case ty.IsSetType(): - newVal = SetVal(elems) + newVal = SetVal(elems).WithMarks(marks) case ty.IsTupleType(): - newVal = TupleVal(elems) + newVal = TupleVal(elems).WithMarks(marks) default: panic("unknown sequence type") // should never happen because of the case we are in } } case ty.IsMapType(): - l := val.LengthInt() + l := rawVal.LengthInt() switch l { case 0: // No deep transform for an empty map newVal = val default: elems := make(map[string]Value) - for it := val.ElementIterator(); it.Next(); { + for it := rawVal.ElementIterator(); it.Next(); { kv, ev := it.Element() path := append(path, IndexStep{ Key: kv, @@ -190,7 +201,7 @@ func transform(path Path, val Value, t Transformer) (Value, error) { } elems[kv.AsString()] = newEv } - newVal = MapVal(elems) + newVal = MapVal(elems).WithMarks(marks) } case ty.IsObjectType(): @@ -212,7 +223,7 @@ func transform(path Path, val Value, t Transformer) (Value, error) { } newAVs[name] = newAV } - newVal = ObjectVal(newAVs) + newVal = ObjectVal(newAVs).WithMarks(marks) } default: diff --git a/vendor/modules.txt b/vendor/modules.txt index 3daf611832a..739b1a1c9ea 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -99,8 +99,8 @@ github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/golang/protobuf/ptypes/empty github.com/golang/protobuf/ptypes/timestamp -# github.com/google/go-cmp v0.5.6 -## explicit; go 1.8 +# github.com/google/go-cmp v0.5.9 +## explicit; go 1.13 github.com/google/go-cmp/cmp github.com/google/go-cmp/cmp/internal/diff github.com/google/go-cmp/cmp/internal/flags @@ -146,7 +146,7 @@ github.com/hashicorp/go-safetemp # github.com/hashicorp/go-uuid v1.0.1 ## explicit github.com/hashicorp/go-uuid -# github.com/hashicorp/go-version v1.3.0 +# github.com/hashicorp/go-version v1.6.0 ## explicit github.com/hashicorp/go-version # github.com/hashicorp/hcl/v2 v2.8.2 @@ -167,7 +167,7 @@ github.com/hashicorp/logutils github.com/hashicorp/terraform-exec/internal/version github.com/hashicorp/terraform-exec/tfexec github.com/hashicorp/terraform-exec/tfinstall -# github.com/hashicorp/terraform-json v0.12.0 +# github.com/hashicorp/terraform-json v0.15.0 ## explicit; go 1.13 github.com/hashicorp/terraform-json # github.com/hashicorp/terraform-plugin-go v0.3.0 @@ -269,6 +269,7 @@ github.com/oracle/oci-go-sdk/v65/bastion 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/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 @@ -381,7 +382,7 @@ github.com/ulikunitz/xz/lzma ## explicit github.com/vmihailenco/msgpack github.com/vmihailenco/msgpack/codes -# github.com/zclconf/go-cty v1.8.4 +# github.com/zclconf/go-cty v1.10.0 ## explicit; go 1.12 github.com/zclconf/go-cty/cty github.com/zclconf/go-cty/cty/convert 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.