From 00ddcb2a23943eff653996571d4be7c63c43342d Mon Sep 17 00:00:00 2001 From: Khalid-Chaudhry Date: Fri, 28 Jul 2023 14:20:50 -0700 Subject: [PATCH 01/14] 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 02/14] 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 03/14] 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 04/14] 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 05/14] 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 06/14] 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 07/14] 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 08/14] 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 09/14] 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 10/14] 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 11/14] 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 12/14] 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 13/14] 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 14/14] 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&